1
0
mirror of https://github.com/golang/go synced 2024-11-17 19:25:13 -07:00
go/src/syscall
Cholerae Hu bf512685fe syscall: cap RLIMIT_NOFILE soft limit in TestRlimit on darwin
On some machines, kern.maxfilesperproc is 4096. If Rlimit.Cur is larger
than that, Setrlimit will get an errEINVAL.

Fixes #40564.

Change-Id: Ib94303c790a489ff0559c88d41a021e514d18f8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/246658
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-08-17 09:14:51 +00:00
..
js syscall/js: improve documentation of Func.Release 2020-05-24 17:46:52 +00:00
asm9_unix1_amd64.s
asm9_unix2_amd64.s
asm_aix_ppc64.s
asm_darwin_amd64.s syscall: avoid zeroing unused syscall arguments 2019-09-16 14:18:15 +00:00
asm_darwin_arm64.s
asm_freebsd_arm64.s syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
asm_freebsd_arm.s
asm_linux_386.s
asm_linux_amd64.s syscall: avoid zeroing unused syscall arguments 2019-09-16 14:18:15 +00:00
asm_linux_arm64.s syscall: implement rawVforkSyscall for linux/arm64 2019-09-11 07:19:55 +00:00
asm_linux_arm.s
asm_linux_mips64x.s
asm_linux_mipsx.s
asm_linux_ppc64x.s
asm_linux_riscv64.s syscall: support rawVforkSyscall on linux/riscv64 2020-08-16 14:23:50 +00:00
asm_linux_s390x.s
asm_netbsd_arm64.s
asm_netbsd_arm.s
asm_openbsd_arm64.s runtime, syscall: correct openbsd/arm and openbsd/arm64 syscalls for OpenBSD 6.7 2020-05-26 17:02:46 +00:00
asm_openbsd_arm.s runtime, syscall: correct openbsd/arm and openbsd/arm64 syscalls for OpenBSD 6.7 2020-05-26 17:02:46 +00:00
asm_plan9_386.s
asm_plan9_amd64.s
asm_plan9_arm.s
asm_solaris_amd64.s
asm_unix_386.s
asm_unix_amd64.s syscall: avoid zeroing unused syscall arguments 2019-09-16 14:18:15 +00:00
asm_windows.s
bpf_bsd.go
bpf_darwin.go
const_plan9.go
creds_test.go
dir_plan9.go
dirent_test.go syscall: enable ReadDirent tests on aix, linux and solaris 2019-08-29 06:41:00 +00:00
dirent.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
dll_windows.go syscall: document float arguments and results on windows/amd64 2020-06-04 17:50:16 +00:00
endian_big.go
endian_little.go syscall: add support for linux/riscv64 2019-11-01 16:05:22 +00:00
env_unix.go runtime, syscall: use local cache for Setenv/Getenv in Plan 9 2020-06-19 11:28:19 +00:00
env_windows.go
errors_plan9.go
exec_aix_test.go
exec_bsd.go syscall: document exact meaning of Ctty field 2020-05-01 04:53:11 +00:00
exec_darwin.go syscall: document exact meaning of Ctty field 2020-05-01 04:53:11 +00:00
exec_libc.go syscall: document exact meaning of Ctty field 2020-05-01 04:53:11 +00:00
exec_linux_test.go syscall: append to environment in tests, don't clobber it 2020-05-11 22:26:51 +00:00
exec_linux.go syscall: support rawVforkSyscall on linux/riscv64 2020-08-16 14:23:50 +00:00
exec_plan9.go
exec_solaris_test.go
exec_unix_test.go syscall: if Setctty, require that Ctty be a child descriptor 2020-05-01 21:57:29 +00:00
exec_unix.go internal/poll, os: loop on EINTR 2020-05-11 22:38:32 +00:00
exec_windows.go
export_freebsd_test.go
export_linux_test.go
export_test.go
export_unix_test.go
flock_aix.go
flock_darwin.go
flock_linux_32bit.go internal/syscall/unix: use fcntl64 on 32-bit GNU/Linux systems 2019-12-23 23:29:48 +00:00
flock.go
forkpipe2.go
forkpipe.go
fs_js.go syscall: fix Fchdir on js/wasm 2020-03-01 21:02:40 +00:00
getdirentries_test.go syscall: correct comment in testGetdirentries 2019-10-24 13:58:59 +00:00
lsf_linux.go syscall: use SOCK_CLOEXEC when creating sockets 2019-12-11 00:01:17 +00:00
mkall.sh all: remove scattered remnants of darwin/386 2020-04-08 18:37:38 +00:00
mkasm_darwin.go
mkerrors.sh
mkpost.go
mksyscall_libc.pl
mksyscall_windows.go syscall: replace mksyscall_windows.go with wrapper to new x/sys home 2019-10-04 20:26:09 +00:00
mksyscall.pl all: remove the nacl port (part 2, amd64p32 + toolchain) 2019-10-09 22:34:34 +00:00
mksysctl_openbsd.pl
mksysnum_darwin.pl
mksysnum_dragonfly.pl
mksysnum_freebsd.pl
mksysnum_linux.pl
mksysnum_netbsd.pl
mksysnum_openbsd.pl
mksysnum_plan9.sh
mmap_unix_test.go
msan0.go
msan.go
net_js.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
net.go
netlink_linux.go syscall: use SOCK_CLOEXEC when creating sockets 2019-12-11 00:01:17 +00:00
pwd_plan9.go
route_bsd.go
route_darwin.go
route_dragonfly.go
route_freebsd_32bit.go
route_freebsd_64bit.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
route_freebsd.go
route_netbsd.go
route_openbsd.go
security_windows.go syscall, internal/syscall/windows: remove utf16PtrToString parameter 2020-05-03 07:23:32 +00:00
setuidgid_32_linux.go
setuidgid_linux.go
sock_cloexec_linux.go syscall: use SOCK_CLOEXEC when creating sockets 2019-12-11 00:01:17 +00:00
sockcmsg_dragonfly.go syscall: don't use 32-bit aligned access for cmsgAlignOf on dragonfly after ABI change 2019-10-20 19:33:07 +00:00
sockcmsg_linux.go syscall: avoid "just past the end" pointers in UnixRights 2019-10-17 18:42:47 +00:00
sockcmsg_unix_other.go syscall: don't use 32-bit aligned access for cmsgAlignOf on dragonfly after ABI change 2019-10-20 19:33:07 +00:00
sockcmsg_unix.go syscall: don't use 32-bit aligned access for cmsgAlignOf on dragonfly after ABI change 2019-10-20 19:33:07 +00:00
str.go
syscall_aix_ppc64.go
syscall_aix.go internal/poll: use correct fcntl implementations 2019-12-31 12:11:24 +00:00
syscall_bsd_test.go
syscall_bsd.go syscall: fix wrong unsafe.Pointer alignment in syscall 2019-10-18 19:06:39 +00:00
syscall_darwin_amd64.go syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
syscall_darwin_arm64.go syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
syscall_darwin.go syscall: remove un-used const ptrSize 2019-10-24 12:09:29 +00:00
syscall_dragonfly_amd64.go
syscall_dragonfly.go syscall: don't use 32-bit aligned access for cmsgAlignOf on dragonfly after ABI change 2019-10-20 19:33:07 +00:00
syscall_dup2_linux.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_dup3_linux.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_freebsd_386.go
syscall_freebsd_amd64.go
syscall_freebsd_arm64.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
syscall_freebsd_arm.go
syscall_freebsd_test.go
syscall_freebsd.go syscall: make convertFromDirents11 checkptr safe 2019-10-24 08:47:14 +00:00
syscall_getwd_bsd.go
syscall_js.go syscall: on wasm, do not panic if "process" global is not defined 2019-10-08 02:42:57 +00:00
syscall_linux_386.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_amd64.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_arm64.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_arm.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_mips64x.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_mipsx.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_ppc64x.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_riscv64.go syscall: support rawVforkSyscall on linux/riscv64 2020-08-16 14:23:50 +00:00
syscall_linux_s390x.go syscall: avoid dup2 in forkAndExecInChild1 on Android 2020-05-28 19:51:59 +00:00
syscall_linux_test.go syscall: append to environment in tests, don't clobber it 2020-05-11 22:26:51 +00:00
syscall_linux.go syscall: check secondary group membership for Faccessat(..., AT_EACCESS) on Linux 2020-06-20 08:40:13 +00:00
syscall_netbsd_386.go
syscall_netbsd_amd64.go
syscall_netbsd_arm64.go
syscall_netbsd_arm.go
syscall_netbsd.go
syscall_openbsd_386.go
syscall_openbsd_amd64.go
syscall_openbsd_arm64.go
syscall_openbsd_arm.go
syscall_openbsd.go
syscall_plan9_test.go
syscall_plan9.go syscall: redirect writes to runtime.write in faketime mode 2019-09-04 17:56:17 +00:00
syscall_ptrace_test.go
syscall_solaris_amd64.go
syscall_solaris.go syscall: fix wrong unsafe.Pointer alignment in syscall 2019-10-18 19:06:39 +00:00
syscall_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
syscall_unix_test.go syscall: cap RLIMIT_NOFILE soft limit in TestRlimit on darwin 2020-08-17 09:14:51 +00:00
syscall_unix.go internal/unsafeheader: consolidate stringHeader and sliceHeader declarations into an internal package 2020-05-01 02:31:29 +00:00
syscall_windows_386.go
syscall_windows_amd64.go
syscall_windows_test.go
syscall_windows.go syscall: preserve Windows file permissions for O_CREAT|O_TRUNC 2020-05-20 21:52:34 +00:00
syscall.go syscall, internal/syscall/windows, internal/syscall/windows/registry: make go generate use new golang.org/x/sys/windows/mkwinsyscall 2019-10-05 08:29:48 +00:00
tables_js.go all: remove the nacl port (part 2, amd64p32 + toolchain) 2019-10-09 22:34:34 +00:00
time_fake.go syscall: redirect writes to runtime.write in faketime mode 2019-09-04 17:56:17 +00:00
time_nofake.go syscall: redirect writes to runtime.write in faketime mode 2019-09-04 17:56:17 +00:00
timestruct.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
types_aix.go
types_darwin.go
types_dragonfly.go
types_freebsd.go
types_linux.go syscall: resync various riscv64 structs with x/sys/unix 2020-01-06 11:46:56 +00:00
types_netbsd.go
types_openbsd.go
types_solaris.go
types_windows_386.go
types_windows_amd64.go
types_windows_arm.go
types_windows.go runtime: treat CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, CTRL_SHUTDOWN_EVENT as SIGTERM on Windows 2019-08-29 08:15:20 +00:00
zerrors_aix_ppc64.go
zerrors_darwin_amd64.go
zerrors_darwin_arm64.go
zerrors_dragonfly_amd64.go
zerrors_freebsd_386.go
zerrors_freebsd_amd64.go
zerrors_freebsd_arm64.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
zerrors_freebsd_arm.go
zerrors_linux_386.go
zerrors_linux_amd64.go
zerrors_linux_arm64.go
zerrors_linux_arm.go
zerrors_linux_mips64.go
zerrors_linux_mips64le.go
zerrors_linux_mips.go
zerrors_linux_mipsle.go
zerrors_linux_ppc64.go
zerrors_linux_ppc64le.go
zerrors_linux_riscv64.go syscall: follow convention for generated code comments in linux/riscv64 files 2019-11-23 11:00:41 +00:00
zerrors_linux_s390x.go
zerrors_netbsd_386.go
zerrors_netbsd_amd64.go
zerrors_netbsd_arm64.go
zerrors_netbsd_arm.go
zerrors_openbsd_386.go
zerrors_openbsd_amd64.go
zerrors_openbsd_arm64.go
zerrors_openbsd_arm.go
zerrors_solaris_amd64.go
zerrors_windows_386.go
zerrors_windows_amd64.go
zerrors_windows.go
zsyscall_aix_ppc64.go
zsyscall_darwin_amd64.go syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
zsyscall_darwin_amd64.s syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
zsyscall_darwin_arm64.go syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
zsyscall_darwin_arm64.s syscall: reenable sysctl on iOS 2019-10-23 15:12:15 +00:00
zsyscall_dragonfly_amd64.go
zsyscall_freebsd_386.go
zsyscall_freebsd_amd64.go
zsyscall_freebsd_arm64.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
zsyscall_freebsd_arm.go
zsyscall_linux_386.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_amd64.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_arm64.go syscall: on linux-arm64, prefer prlimit to {g,s}etrlimit 2020-04-30 03:32:25 +00:00
zsyscall_linux_arm.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_mips64.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_mips64le.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_mips.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_mipsle.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_ppc64.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_ppc64le.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_linux_riscv64.go syscall: provide Renameat as a wrapper around renameat2 on riscv64 2020-01-06 09:24:14 +00:00
zsyscall_linux_s390x.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
zsyscall_netbsd_386.go
zsyscall_netbsd_amd64.go
zsyscall_netbsd_arm64.go
zsyscall_netbsd_arm.go
zsyscall_openbsd_386.go
zsyscall_openbsd_amd64.go
zsyscall_openbsd_arm64.go
zsyscall_openbsd_arm.go
zsyscall_plan9_386.go
zsyscall_plan9_amd64.go
zsyscall_plan9_arm.go
zsyscall_solaris_amd64.go
zsyscall_windows.go
zsysctl_openbsd.go
zsysnum_darwin_amd64.go
zsysnum_darwin_arm64.go
zsysnum_dragonfly_amd64.go
zsysnum_freebsd_386.go
zsysnum_freebsd_amd64.go
zsysnum_freebsd_arm64.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
zsysnum_freebsd_arm.go
zsysnum_linux_386.go
zsysnum_linux_amd64.go
zsysnum_linux_arm64.go
zsysnum_linux_arm.go
zsysnum_linux_mips64.go
zsysnum_linux_mips64le.go
zsysnum_linux_mips.go
zsysnum_linux_mipsle.go
zsysnum_linux_ppc64.go
zsysnum_linux_ppc64le.go
zsysnum_linux_riscv64.go syscall: follow convention for generated code comments in linux/riscv64 files 2019-11-23 11:00:41 +00:00
zsysnum_linux_s390x.go
zsysnum_netbsd_386.go
zsysnum_netbsd_amd64.go
zsysnum_netbsd_arm64.go
zsysnum_netbsd_arm.go
zsysnum_openbsd_386.go
zsysnum_openbsd_amd64.go
zsysnum_openbsd_arm64.go
zsysnum_openbsd_arm.go
zsysnum_plan9.go
zsysnum_solaris_amd64.go
zsysnum_windows_386.go
zsysnum_windows_amd64.go
ztypes_aix_ppc64.go
ztypes_darwin_amd64.go
ztypes_darwin_arm64.go
ztypes_dragonfly_amd64.go
ztypes_freebsd_386.go
ztypes_freebsd_amd64.go
ztypes_freebsd_arm64.go syscall: add support for freebsd/arm64 2019-10-05 10:39:30 +00:00
ztypes_freebsd_arm.go
ztypes_linux_386.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_amd64.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_arm64.go syscall: fix epoll_event padding on linux/arm64 2019-11-12 19:15:15 +00:00
ztypes_linux_arm.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_mips64.go syscall: fix EpollEvent padding on mips64{,le} 2019-11-15 15:12:42 +00:00
ztypes_linux_mips64le.go syscall: fix EpollEvent padding on mips64{,le} 2019-11-15 15:12:42 +00:00
ztypes_linux_mips.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_mipsle.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_ppc64.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_ppc64le.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_linux_riscv64.go syscall: resync various riscv64 structs with x/sys/unix 2020-01-06 11:46:56 +00:00
ztypes_linux_s390x.go syscall: don't use deprecated syscalls on linux/arm64 2019-10-08 10:45:48 +00:00
ztypes_netbsd_386.go
ztypes_netbsd_amd64.go
ztypes_netbsd_arm64.go
ztypes_netbsd_arm.go
ztypes_openbsd_386.go
ztypes_openbsd_amd64.go
ztypes_openbsd_arm64.go
ztypes_openbsd_arm.go
ztypes_solaris_amd64.go