Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: src/pkg/syscall/zsyscall_linux_386.go

Issue 878047: code review 878047: syscall: match linux Setsid function signature to darwin (Closed)
Patch Set: code review 878047: syscall: match linux Setsid function signature to darwin Created 14 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/syscall_linux.go ('k') | src/pkg/syscall/zsyscall_linux_amd64.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/syscall_linux.go ('k') | src/pkg/syscall/zsyscall_linux_amd64.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b