@@ -39,14 +39,14 @@ const (
39
39
//sysnb Setreuid(ruid int, euid int) (err error)
40
40
//sys Shutdown(fd int, how int) (err error)
41
41
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
42
- //sys Stat(path string, stat *Stat_t) (err error)
43
42
//sys Statfs(path string, buf *Statfs_t) (err error)
44
43
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
45
44
//sys Truncate(path string, length int64) (err error)
46
45
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
47
46
//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
48
47
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
49
48
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
49
+ //sys fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
50
50
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
51
51
//sysnb setgroups(n int, list *_Gid_t) (err error)
52
52
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
@@ -61,6 +61,10 @@ const (
61
61
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
62
62
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
63
63
64
+ func Stat (path string , stat * Stat_t ) (err error ) {
65
+ return fstatat (_AT_FDCWD , path , stat , 0 )
66
+ }
67
+
64
68
//go:noescape
65
69
func gettimeofday (tv * Timeval ) (err Errno )
66
70
0 commit comments