OLD | NEW |
1 // mksyscall.sh -l32 syscall_linux.go syscall_linux_386.go | 1 // mksyscall.sh -l32 syscall_linux.go syscall_linux_386.go |
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT | 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT |
3 | 3 |
4 package syscall | 4 package syscall |
5 | 5 |
6 import "unsafe" | 6 import "unsafe" |
7 | 7 |
8 func pipe(p *[2]_C_int) (errno int) { | 8 func pipe(p *[2]_C_int) (errno int) { |
9 _, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) | 9 _, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) |
10 errno = int(e1) | 10 errno = int(e1) |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 errno = int(e1) | 427 errno = int(e1) |
428 return | 428 return |
429 } | 429 } |
430 | 430 |
431 func Setrlimit(resource int, rlim *Rlimit) (errno int) { | 431 func Setrlimit(resource int, rlim *Rlimit) (errno int) { |
432 _, _, e1 := Syscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Poi
nter(rlim)), 0) | 432 _, _, e1 := Syscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Poi
nter(rlim)), 0) |
433 errno = int(e1) | 433 errno = int(e1) |
434 return | 434 return |
435 } | 435 } |
436 | 436 |
437 func Setsid() (pid int) { | 437 func Setsid() (pid int, errno int) { |
438 » r0, _, _ := Syscall(SYS_SETSID, 0, 0, 0) | 438 » r0, _, e1 := Syscall(SYS_SETSID, 0, 0, 0) |
439 pid = int(r0) | 439 pid = int(r0) |
| 440 errno = int(e1) |
440 return | 441 return |
441 } | 442 } |
442 | 443 |
443 func Settimeofday(tv *Timeval) (errno int) { | 444 func Settimeofday(tv *Timeval) (errno int) { |
444 _, _, e1 := Syscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | 445 _, _, e1 := Syscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) |
445 errno = int(e1) | 446 errno = int(e1) |
446 return | 447 return |
447 } | 448 } |
448 | 449 |
449 func Setuid(uid int) (errno int) { | 450 func Setuid(uid int) (errno int) { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 errno = int(e1) | 715 errno = int(e1) |
715 return | 716 return |
716 } | 717 } |
717 | 718 |
718 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
no int) { | 719 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
no int) { |
719 r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Point
er(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.P
ointer(timeout)), 0) | 720 r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Point
er(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.P
ointer(timeout)), 0) |
720 n = int(r0) | 721 n = int(r0) |
721 errno = int(e1) | 722 errno = int(e1) |
722 return | 723 return |
723 } | 724 } |
OLD | NEW |