mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 16:47:27 -04:00
unix: add bindings for setattrlist() on macOS
The setattrlist() function can be used to mutate the attributes of files through a single call. For example, one can perform a chmod(), chown(), chflags(), [...] all at once. This change also adds bindings for the UF_* and SF_* flags that are accepted by chflags(). This makes it possible to use setattrlist() to perform the equivalent of lchflags(), for which we currently have no binding. Change-Id: Ib5a604503a984b95a02b65ad1a437246cd170584 GitHub-Last-Rev: 45dd9d475aa72d628eaa4d06221adba6afd60278 GitHub-Pull-Request: golang/sys#155 Reviewed-on: https://go-review.googlesource.com/c/sys/+/481815 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Gopher Robot
parent
90abad3705
commit
64840c112d
@@ -119,6 +119,7 @@ var darwinTests = [...]darwinTest{
|
||||
{"sendfile", libc_sendfile_trampoline_addr},
|
||||
{"sendmsg", libc_sendmsg_trampoline_addr},
|
||||
{"sendto", libc_sendto_trampoline_addr},
|
||||
{"setattrlist", libc_setattrlist_trampoline_addr},
|
||||
{"setegid", libc_setegid_trampoline_addr},
|
||||
{"seteuid", libc_seteuid_trampoline_addr},
|
||||
{"setgid", libc_setgid_trampoline_addr},
|
||||
|
||||
Reference in New Issue
Block a user