Changeset 361


Ignore:
Timestamp:
Mar 11, 2009, 3:23:24 AM (9 years ago)
Author:
khorben
Message:

Merge from upstream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/System/Sources/libc/src/kernel/netbsd/i386/syscalls.S

    r200 r361  
    1 /* $Id: syscalls.S,v 1.13 2007/09/26 15:00:35 khorben Exp $ */
    2 /* Copyright (c) 2007 Pierre Pronchery <khorben@defora.org> */
     1/* $Id: syscalls.S,v 1.14 2009/02/22 00:08:56 khorben Exp $ */
     2/* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
    44/* libc is not free software; you can redistribute it and/or modify it under
     
    4949#undef SYS_brk
    5050
     51
    5152/* _exit */
    5253.global _exit
     
    5556        mov     $SYS_exit, %eax
    5657        jmp     _syscall
     58
    5759
    5860/* execve */
     
    6668        ret
    6769#undef SYS_execve
     70
     71
     72/* pipe */
     73.global pipe
     74.type pipe,@function
     75pipe:
     76        mov     $SYS_pipe, %eax
     77        int     $0x80
     78        jc      .errno
     79        mov     4(%esp), %ecx
     80        mov     %eax, (%ecx)
     81        mov     %edx, 4(%ecx)
     82        mov     $0, %eax
     83        ret
     84#undef SYS_pipe
Note: See TracChangeset for help on using the changeset viewer.