]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: generate AT_* constants and regenerate ztypes_linux_*.go
authorDave Cheney <dave@cheney.net>
Wed, 25 Feb 2015 01:56:44 +0000 (12:56 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 25 Feb 2015 02:45:02 +0000 (02:45 +0000)
Updates #9974

The *at family of syscalls requires some constants to be defined in the
syscall package for linux. Add the necessary constants and regenerate
the ztypes_linux_*.go files.

Change-Id: I6df343fef7bcacad30d36c7900dbfb621465a4fe
Reviewed-on: https://go-review.googlesource.com/5836
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/types_linux.go
src/syscall/ztypes_linux_386.go
src/syscall/ztypes_linux_amd64.go
src/syscall/ztypes_linux_arm.go
src/syscall/ztypes_linux_ppc64.go
src/syscall/ztypes_linux_ppc64le.go

index 5e9f698cf1b2cad306ae348d41bd08b48ace8739..1fec1bc367c01e43e95ade938fe24f200e78ee70 100644 (file)
@@ -376,7 +376,9 @@ type Ustat_t C.struct_ustat
 type EpollEvent C.struct_my_epoll_event
 
 const (
-       _AT_FDCWD = C.AT_FDCWD
+       _AT_FDCWD            = C.AT_FDCWD
+       _AT_REMOVEDIR        = C.AT_REMOVEDIR
+       _AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
 )
 
 // Terminal handling
index daecb1dedc1832e4061c80796609c0e6fde1520e..a887f31427717123f8c6f6476b8a7a2f91d0bcbb 100644 (file)
@@ -572,7 +572,9 @@ type EpollEvent struct {
 }
 
 const (
-       _AT_FDCWD = -0x64
+       _AT_FDCWD            = -0x64
+       _AT_REMOVEDIR        = 0x200
+       _AT_SYMLINK_NOFOLLOW = 0x100
 )
 
 type Termios struct {
index 694fe1eac78718de3ba8ee110c37ec5fe20d07c7..adf95caee786d13079ec2d836b3c7e4ce5cc3a4f 100644 (file)
@@ -590,7 +590,9 @@ type EpollEvent struct {
 }
 
 const (
-       _AT_FDCWD = -0x64
+       _AT_FDCWD            = -0x64
+       _AT_REMOVEDIR        = 0x200
+       _AT_SYMLINK_NOFOLLOW = 0x100
 )
 
 type Termios struct {
index 5f21a948dfff83be5cd884012f091f2b75ef0139..1ae9718945a99c78c793f32b2781d91258e53d4d 100644 (file)
@@ -561,7 +561,9 @@ type EpollEvent struct {
 }
 
 const (
-       _AT_FDCWD = -0x64
+       _AT_FDCWD            = -0x64
+       _AT_REMOVEDIR        = 0x200
+       _AT_SYMLINK_NOFOLLOW = 0x100
 )
 
 type Termios struct {
index 204d8068532cc42b6badc43dd4ca4b2c1b9eadc8..fe438364d447e92fbf534b42f46176f2728b6b22 100644 (file)
@@ -578,7 +578,9 @@ type EpollEvent struct {
 }
 
 const (
-       _AT_FDCWD = -0x64
+       _AT_FDCWD            = -0x64
+       _AT_REMOVEDIR        = 0x200
+       _AT_SYMLINK_NOFOLLOW = 0x100
 )
 
 type Termios struct {
index df481f5c760275e69e546b9a7434314d00023495..c6b6f1615dcc516d0aeeceb994380b327eeaa33c 100644 (file)
@@ -578,7 +578,9 @@ type EpollEvent struct {
 }
 
 const (
-       _AT_FDCWD = -0x64
+       _AT_FDCWD            = -0x64
+       _AT_REMOVEDIR        = 0x200
+       _AT_SYMLINK_NOFOLLOW = 0x100
 )
 
 type Termios struct {