- 30 Aug, 2018 1 commit
-
-
Tobias Klauser authored
Change-Id: I934702b11d21434d9c6646228b05396d2aef1820 Reviewed-on: https://go-review.googlesource.com/132215 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 28 Aug, 2018 1 commit
-
-
Tony Reix authored
Change-Id: I187edceaf3604d73110940bd5580fa127a85e87d Reviewed-on: https://go-review.googlesource.com/129735 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 24 Aug, 2018 1 commit
-
-
Tobias Klauser authored
Change-Id: Icde91c6504cd45d78208c6041bf6dc097d2d8334 Reviewed-on: https://go-review.googlesource.com/131235 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 23 Aug, 2018 1 commit
-
-
Tobias Klauser authored
The pipe syscall no longer exists in FreeBSD 11 and 12. The pipe2 syscall exists in all currently supported FreeBSD versions: 10, 11 and the upcoming 12. Follow CL 38426 Change-Id: If908eecfd2662e6f32a229ac52f27d9a2ec2b9d7 Reviewed-on: https://go-review.googlesource.com/130995 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 21 Aug, 2018 2 commits
-
-
Tobias Klauser authored
Also generate the constants using mkerrors.sh instead of having to list each of them manually in types_solaris.go In order to avoid _*_MAGIC constants being generated, also adjust the corresponding rule in mkerrors.sh Change-Id: If9193b12c2a2ec3b509a324be78329fee35a240d Reviewed-on: https://go-review.googlesource.com/130355 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Kevin Burke authored
The method signature does not explain much about how to use the function, and which arguments to invoke it with, so an example would be helpful. Change-Id: I95747567b2cafe70da1e04939c39f6b507f12684 Reviewed-on: https://go-review.googlesource.com/130317Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 20 Aug, 2018 1 commit
-
-
Tobias Klauser authored
The syscalls marked as NOSTD are defined in kernel modules that might be missing on some systems, but are usually present. Fixes golang/go#27072 Change-Id: Icf9188df85b54872eb80ba73828f35aa578d49aa Reviewed-on: https://go-review.googlesource.com/129855 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 16 Aug, 2018 2 commits
-
-
Tobias Klauser authored
Also generate the constants using mkerror.sh instead of having to list each of them manually in types_freebsd.go Change-Id: I00d38d0e528900be7c5afca05c8dc50ee7628b20 Reviewed-on: https://go-review.googlesource.com/129317 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Also generate the constants using mkerror.sh instead of having to list each of them manually in types_dragonfly.go Change-Id: I89b933834be6aa0eeec3d5ddbbf610e693b29327 Reviewed-on: https://go-review.googlesource.com/129316 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 15 Aug, 2018 1 commit
-
-
Joe Richey joerichey@google.com authored
Values cross-referenced between Visual Studio 2017's "Wincrypt.h", https://github.com/wine-mirror/wine/blob/master/include/wincrypt.h, and the MSDN documentation at: CertOpenStore: https://msdn.microsoft.com/en-us/library/windows/desktop/aa376559.aspx CertAddCertificateContextToStore: https://msdn.microsoft.com/en-us/library/windows/desktop/aa376009.aspx CertTrustStatus: https://msdn.microsoft.com/en-us/library/windows/desktop/aa377590.aspx CertVerifyCertificateChainPolicy: https://msdn.microsoft.com/en-us/library/windows/desktop/aa377163.aspx SSLExtraCertChainPolicyPara: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387784.aspx Change-Id: I143e10c4f47caa2550fb93cd10bdec00bbb2b32d GitHub-Last-Rev: b4b8c6c41923912c7d5956ba57f55fcb2a57a163 GitHub-Pull-Request: golang/sys#15 Reviewed-on: https://go-review.googlesource.com/129275 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 14 Aug, 2018 1 commit
-
-
Tobias Klauser authored
Including linux/stat.h in mkerrors.sh is no longer necessary because the statx types and constants were added to the glibc headers. Change-Id: I643c35fd2da76dd2c15015556658d7fa862249c4 Reviewed-on: https://go-review.googlesource.com/129100 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 10 Aug, 2018 3 commits
-
-
Gianguido Sora` authored
The current Pledge function still takes into account the deprecated "paths" argument, which has been replaced by "execpromises". This change has been committed to OpenBSD on the 11 December 2017: https://marc.info/?l=openbsd-tech&m=151302727506669. This commit updates the Pledge function interface to reflect this change. Fixes golang/go#26824 Change-Id: Id6255b0432cf0a33e680e342dd23c7b02d0aa78f Reviewed-on: https://go-review.googlesource.com/127762 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Reuse the functions added for FreeBSD. Change-Id: Icf5bf65c82f91147659947f6ea296dd2555724a0 Reviewed-on: https://go-review.googlesource.com/128256 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Also generate the constants using mkerror.sh instead of having to list each of them manually in types_openbsd.go Change-Id: I7750ae3cb1e923a13e0035d58d58a81c35e7e86b Reviewed-on: https://go-review.googlesource.com/128775 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 08 Aug, 2018 3 commits
-
-
Tobias Klauser authored
Add Fgetxattr, Flistxattr, Fremovexattr and Fsetxattr on Darwin. Also add a corresponding test. Updates golang/go#26832 Change-Id: Id75bfce90ccc024b567a7b066a9188a615b9eec4 Reviewed-on: https://go-review.googlesource.com/128537 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Fsetxattr should just return an error (like Setxattr and like Fsetxattr is already doing on FreeBSD). Fix for CL 128176 Updates golang/go#26832 Change-Id: Id1c1315d9eb6952128e0c0ce44b19060e0403cc0 Reviewed-on: https://go-review.googlesource.com/128495 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Jan Lehnardt authored
I found this during https://github.com/DataDog/datadog-agent/pull/2079 Change-Id: I51d57e7e3cedb8b23e720bc03f38504dc0ad063d GitHub-Last-Rev: 4e1c193db8bfc9174f630903bfc26e5532555309 GitHub-Pull-Request: golang/sys#13 Reviewed-on: https://go-review.googlesource.com/126620Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 07 Aug, 2018 3 commits
-
-
Tobias Klauser authored
Add Fgetxattr, Flistxattr, Fremovexattr and Fsetxattr on Linux. Updates golang/go#26832 Change-Id: Ia79915e91a928188c6c985ef301d5445f630b19c Reviewed-on: https://go-review.googlesource.com/128176 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matt Layher authored
Change-Id: Ib31ac102a973690d0391626102e1646c8dd387cb Reviewed-on: https://go-review.googlesource.com/128315 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
These are all implemented on FreeBSD. Change-Id: I5f3558c19d7540e08cfa77a06fffd80a9c80f1f3 Reviewed-on: https://go-review.googlesource.com/128175 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 06 Aug, 2018 2 commits
-
-
Tobias Klauser authored
Renameat2 is Linux-specific and allows to pass an additional flags argument to the renameat syscall. Also add the corresponding RENAME_* flag mask values. Change-Id: Ib4baa46fdd0b07ccd0988ac624862ce69d5c3ad5 Reviewed-on: https://go-review.googlesource.com/127763 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mark Pulford authored
F_OK is used with access(2), but it was removed for openbsd/amd64 when generated code was updated to OpenBSD 6.3 in 7f59abf3. Fixes golang/go#26593 Change-Id: I4a542506b1045f0c860bb3137c4d81149a5e1cae Reviewed-on: https://go-review.googlesource.com/126635 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 02 Aug, 2018 1 commit
-
-
Brad Fitzpatrick authored
To simplify the pkg syscall docs. Change-Id: I3ed0bfc59564ada280141c4662a56e141d197e1f Reviewed-on: https://go-review.googlesource.com/127656 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 Aug, 2018 1 commit
-
-
Casey Callendrello authored
This adds the NETNSA constants from net_namespace.h, used for creating and querying network namespace IDs. Fixes golang/go#26330 Change-Id: I786c4c4771be3eddc4fdb830a52e128aa1a2b9fd Reviewed-on: https://go-review.googlesource.com/124436 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 27 Jul, 2018 4 commits
-
-
Ian Lance Taylor authored
The Linux kernel faccessat system call does not take a flags parameter. The flag parameter to the C library faccessat function is implemented in C. The unix.Faccessat function takes a flags parameter. In older releases we have passed the flags parameter to the kernel, which ignored it. In CL 119495 we started returning an error if any flags were set. That seems clearly better than ignoring them, but it turns out that some code was using the flags. The code was previously subtly broken. Now it is obviously broken. That is better, but we can do better still: we can implement the flags as the C library does. That is what this CL does. Change-Id: I02d4bb981ebd39eb35e47c6e5281f85eaea68016 Reviewed-on: https://go-review.googlesource.com/126516 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
For manipulating Linux partitions with the BLKPG ioctl. Change-Id: I2196038ccfc39ecd6926817c3b310d0837220095 Reviewed-on: https://go-review.googlesource.com/125642 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Jeet Parekh authored
Keeps the documentation in sync with syscall package. Copies the changes from CL https://golang.org/cl/126035. Change-Id: I778725fd7d5e96ddf839d33e1d220e5a12e2d24f GitHub-Last-Rev: 4b30513126d7ffbca31640a6120a2259b6a226db GitHub-Pull-Request: golang/sys#12 Reviewed-on: https://go-review.googlesource.com/126435Reviewed-by: Austin Clements <austin@google.com>
-
David Wimmer authored
Change the Pipe() function to use the pipe() syscall (which has a unique calling convention on linux/mips) instead of using pipe2(). This allows it to work on kernels <2.6.27 when pipe2() was introduced. Change-Id: I088886e66b594232869d8b88c6e1a630c76188a3 Reviewed-on: https://go-review.googlesource.com/126176Reviewed-by: Vladimir Stefanovic <vladimir.stefanovic@mips.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 24 Jul, 2018 1 commit
-
-
Brad Fitzpatrick authored
Change-Id: I42e59149e58bd928d9beb2c6665ce186b377d2a1 Reviewed-on: https://go-review.googlesource.com/125640 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 15 Jul, 2018 1 commit
-
-
madiganz authored
Added configuration options for a windows service recovery settings. New configurations include modifying the reboot message, or command to be run when a service fails, and getting the current reboot message or command. Fixes golang/go#23239 Change-Id: I3e501d66e97745b7536fd654aee2bba488083e6d Reviewed-on: https://go-review.googlesource.com/122579 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 09 Jul, 2018 2 commits
-
-
Alexander Menzhinsky authored
Add the SockaddrRFCOMM type and the ability to accept BTPROTO_L2CAP and BTPROTO_RFCOMM protocol sockets. Fixes golang/go#22211 Change-Id: I580b526c5392b90663499af0f2ebe6f55b1f8154 Reviewed-on: https://go-review.googlesource.com/122457 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Tobias Klauser authored
This way we'll get the correct generated code comments. Change-Id: I273cd16dcce99b49b6df0b86fc191b3ff5d7167a Reviewed-on: https://go-review.googlesource.com/122458 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Jul, 2018 1 commit
-
-
Kropekk authored
Added all remaining file attributes constants present on Windows OS. According to: https://docs.microsoft.com/en-gb/windows/desktop/FileIO/file-attribute-constants Fixes golang/go#25979 Change-Id: Ie8cb9edfbd37b3121066b291e4e2a01573c63087 Reviewed-on: https://go-review.googlesource.com/122236 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 06 Jul, 2018 1 commit
-
-
Tobias Klauser authored
Somehow they were not included in CL 119495. No functional change, faccessat was just moved. Change-Id: I954a37109ff2287de14cdf657bd309cae96671de Reviewed-on: https://go-review.googlesource.com/122297 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Jul, 2018 1 commit
-
-
Zachary Madigan authored
Added configuration options for a windows service recovery settings. Current configurations include modifying actions taken when a service fails, setting the reset period, and getting the current recovery settings. Updates golang/go#23239 Change-Id: I4e91b2068122731e6eba3332afb0fe300b298c97 Reviewed-on: https://go-review.googlesource.com/104635 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 27 Jun, 2018 1 commit
-
-
Ian Lance Taylor authored
Fixes golang/go#26078 Change-Id: Ie5a8c7028a755bc7a8d56abc4736a5f61ef91ce5 Reviewed-on: https://go-review.googlesource.com/121175 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 26 Jun, 2018 1 commit
-
-
Tobias Klauser authored
Some file systems don't support sub-second time stamp resolution. Handle these correctly by only checking nanoseconds in case Mtim.Nsec is zero. Fixes golang/go#26034 Change-Id: I1ab400b8e09b5cfdac6b70a33f676770a48180b1 Reviewed-on: https://go-review.googlesource.com/120816 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: jimmy frasche <soapboxcicero@gmail.com>
-
- 25 Jun, 2018 1 commit
-
-
Tobias Klauser authored
If the underlying filesystem doesn't support atime or was mounted with the noatime mount option, TestUtimesNanoAt fails when comparing atime: --- FAIL: TestUtimesNanoAt (0.00s) syscall_linux_test.go:144: UtimesNanoAt: wrong atime: {1111 0} syscall_linux_test.go:147: UtimesNanoAt: wrong mtime: {3333 0} FAIL FAIL golang.org/x/sys/unix 0.376s Fix it by dropping the atime comparison, it's enough to verify UtimesNanoAt working correctly by comparing mtime. Fixes golang/go#26034 Change-Id: Id868f9d4c6a856a99ae930a46bfe91bd64ca8570 Reviewed-on: https://go-review.googlesource.com/120562 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 22 Jun, 2018 1 commit
-
-
Tobias Klauser authored
The ustat syscall has been deprecated on Linux for a long time and the upcoming glibc 2.28 will remove ustat.h and it can no longer be used to to generate the Ustat_t wrapper type. Since Linux still provides the syscall, let's not break this functionality and add a private copy of struct ustat so Ustat_t can still be generated. Updates golang/go#25990 Change-Id: I74cf405ce6df92da36f1ee900ab6d98997d8f994 Reviewed-on: https://go-review.googlesource.com/120295 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 20 Jun, 2018 1 commit
-
-
Thanabodee Charoenpiriyakij authored
Currently Linux faccessat(2) syscall implementation doesn't support the flags parameter. As per discuss in golang/go#25845, permit the same flags as glibc [1]. [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;h=ea42b2303ff4b2d2d6548ea04376fb265f773436;hb=HEAD Fixes golang/go#25845 Change-Id: I390ba14b2816283399472f3572967b19d0a36042 Reviewed-on: https://go-review.googlesource.com/119495 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-