Files
sys/unix
Caio Marcelo de Oliveira Filho 23999e87b4 x/sys/unix: add support for O_TMPFILE in Linux
Since Linux 3.11, O_TMPFILE flag can be used in open syscall to create
an unnamed file in a directory. The file occupies space in the
filesystem, and can be given a name using linkat syscall. If the file is
closed without being given a name, its contents are deleted.

See the manpage open(2) in Linux for details.

Exports O_TMPFILE for Linux in 386 and amd64 (other architectures
already had it). Exports Linkat syscall and AT_SYMLINK_FOLLOW (used for
giving a name to the file) for all Linux in all architectures.

Fixes golang/go#7830.

Change-Id: Ib82e44f405b227e227b9cbf317c2657b32e046f5
Reviewed-on: https://go-review.googlesource.com/21003
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-22 23:15:03 +00:00
..
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-18 19:16:10 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-07 23:38:20 +00:00
2015-05-12 03:31:30 +00:00
2014-10-01 12:10:37 -07:00
2015-05-12 03:04:57 +00:00
2015-05-07 23:38:20 +00:00
2015-05-12 03:04:57 +00:00
2014-08-11 15:58:26 -07:00
2015-05-13 20:12:53 +00:00
2014-12-09 22:46:33 +00:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00