LEFT | RIGHT |
1 // mksyscall.pl -l32 syscall_linux.go syscall_linux_386.go | 1 // mksyscall.pl -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 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 8 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
9 | 9 |
10 func open(path string, mode int, perm uint32) (fd int, err error) { | 10 func open(path string, mode int, perm uint32) (fd int, err error) { |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) { | 726 func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) { |
727 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource),
uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0) | 727 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource),
uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0) |
728 if e1 != 0 { | 728 if e1 != 0 { |
729 err = e1 | 729 err = e1 |
730 } | 730 } |
731 return | 731 return |
732 } | 732 } |
733 | 733 |
734 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 734 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
735 | 735 |
| 736 func read(fd int, p []byte) (n int, err error) { |
| 737 var _p0 unsafe.Pointer |
| 738 if len(p) > 0 { |
| 739 _p0 = unsafe.Pointer(&p[0]) |
| 740 } else { |
| 741 _p0 = unsafe.Pointer(&_zero) |
| 742 } |
| 743 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)
)) |
| 744 n = int(r0) |
| 745 if e1 != 0 { |
| 746 err = e1 |
| 747 } |
| 748 return |
| 749 } |
| 750 |
| 751 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 752 |
736 func Readlink(path string, buf []byte) (n int, err error) { | 753 func Readlink(path string, buf []byte) (n int, err error) { |
737 var _p0 *byte | 754 var _p0 *byte |
738 _p0, err = BytePtrFromString(path) | 755 _p0, err = BytePtrFromString(path) |
739 if err != nil { | 756 if err != nil { |
740 return | 757 return |
741 } | 758 } |
742 var _p1 unsafe.Pointer | 759 var _p1 unsafe.Pointer |
743 if len(buf) > 0 { | 760 if len(buf) > 0 { |
744 _p1 = unsafe.Pointer(&buf[0]) | 761 _p1 = unsafe.Pointer(&buf[0]) |
745 } else { | 762 } else { |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 } | 1060 } |
1044 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(uns
afe.Pointer(buf)), 0) | 1061 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(uns
afe.Pointer(buf)), 0) |
1045 if e1 != 0 { | 1062 if e1 != 0 { |
1046 err = e1 | 1063 err = e1 |
1047 } | 1064 } |
1048 return | 1065 return |
1049 } | 1066 } |
1050 | 1067 |
1051 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1068 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1052 | 1069 |
| 1070 func write(fd int, p []byte) (n int, err error) { |
| 1071 var _p0 unsafe.Pointer |
| 1072 if len(p) > 0 { |
| 1073 _p0 = unsafe.Pointer(&p[0]) |
| 1074 } else { |
| 1075 _p0 = unsafe.Pointer(&_zero) |
| 1076 } |
| 1077 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p
))) |
| 1078 n = int(r0) |
| 1079 if e1 != 0 { |
| 1080 err = e1 |
| 1081 } |
| 1082 return |
| 1083 } |
| 1084 |
| 1085 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1086 |
1053 func exitThread(code int) (err error) { | 1087 func exitThread(code int) (err error) { |
1054 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) | 1088 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) |
1055 if e1 != 0 { | 1089 if e1 != 0 { |
1056 err = e1 | 1090 err = e1 |
1057 } | 1091 } |
1058 return | 1092 return |
1059 } | 1093 } |
1060 | 1094 |
1061 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1095 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1062 | 1096 |
1063 func read(fd int, p *byte, np int) (n int, err error) { | 1097 func readlen(fd int, p *byte, np int) (n int, err error) { |
1064 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)),
uintptr(np)) | 1098 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)),
uintptr(np)) |
1065 n = int(r0) | 1099 n = int(r0) |
1066 if e1 != 0 { | 1100 if e1 != 0 { |
1067 err = e1 | 1101 err = e1 |
1068 } | 1102 } |
1069 return | 1103 return |
1070 } | 1104 } |
1071 | 1105 |
1072 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1106 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1073 | 1107 |
1074 func write(fd int, p *byte, np int) (n int, err error) { | 1108 func writelen(fd int, p *byte, np int) (n int, err error) { |
1075 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)),
uintptr(np)) | 1109 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)),
uintptr(np)) |
1076 n = int(r0) | 1110 n = int(r0) |
1077 if e1 != 0 { | 1111 if e1 != 0 { |
1078 err = e1 | 1112 err = e1 |
1079 } | 1113 } |
1080 return | 1114 return |
1081 } | 1115 } |
1082 | 1116 |
1083 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1117 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1084 | 1118 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1577 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1544 | 1578 |
1545 func Time(t *Time_t) (tt Time_t, err error) { | 1579 func Time(t *Time_t) (tt Time_t, err error) { |
1546 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) | 1580 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) |
1547 tt = Time_t(r0) | 1581 tt = Time_t(r0) |
1548 if e1 != 0 { | 1582 if e1 != 0 { |
1549 err = e1 | 1583 err = e1 |
1550 } | 1584 } |
1551 return | 1585 return |
1552 } | 1586 } |
LEFT | RIGHT |