Lines Matching refs:buf
42 int stat(const char *path, struct stat *buf);
53 int fstat(int fildes, struct stat *buf) in fstat() argument
56 static int (*p_fstat) (int fildes, struct stat *buf) = NULL; in fstat()
58 p_fstat = (int (*)(int fildes, struct stat *buf)) in fstat()
60 ret = (*p_fstat)(fildes, buf); in fstat()
61 if (buf != NULL) in fstat()
63 buf->st_uid = 0; /* root */ in fstat()
64 buf->st_gid = 2; /* bin */ in fstat()
96 int fstatat64(int fildes, const char *path, struct stat64 *buf, int flag) in fstatat64() argument
99 static int (*p_fstatat) (int fildes, const char *path, struct stat64 *buf, int flag) = NULL; in fstatat64()
101 p_fstatat = (int (*)(int fildes, const char *path, struct stat64 *buf, int flag)) in fstatat64()
103 ret = (*p_fstatat)(fildes, path, buf, flag); in fstatat64()
104 if (buf != NULL) in fstatat64()
106 buf->st_uid = 0; /* root */ in fstatat64()
107 buf->st_gid = 2; /* bin */ in fstatat64()
120 int __lxstat(int n, const char *path, struct stat *buf)
123 static int (*p_lstat) (int n, const char *path, struct stat *buf) = NULL;
125 p_lstat = (int (*)(int n, const char *path, struct stat *buf))
127 ret = (*p_lstat)(n, path, buf);
128 if (buf != NULL)
130 buf->st_uid = 0; /* root */
131 buf->st_gid = 0; /* root */
136 int __lxstat64(int n, const char *path, struct stat64 *buf)
139 static int (*p_lstat) (int n, const char *path, struct stat64 *buf) = NULL;
141 p_lstat = (int (*)(int n, const char *path, struct stat64 *buf))
143 ret = (*p_lstat)(n, path, buf);
144 if (buf != NULL)
146 buf->st_uid = 0;
147 buf->st_gid = 0;