Back to index

glibc  2.9
Defines | Functions
stat.h File Reference
#include <features.h>
#include <bits/types.h>
#include <bits/stat.h>

Go to the source code of this file.

Defines

#define __S_ISTYPE(mode, mask)   (((mode) & __S_IFMT) == (mask))
#define S_ISDIR(mode)   __S_ISTYPE((mode), __S_IFDIR)
#define S_ISCHR(mode)   __S_ISTYPE((mode), __S_IFCHR)
#define S_ISBLK(mode)   __S_ISTYPE((mode), __S_IFBLK)
#define S_ISREG(mode)   __S_ISTYPE((mode), __S_IFREG)
#define S_ISUID   __S_ISUID /* Set user ID on execution. */
#define S_ISGID   __S_ISGID /* Set group ID on execution. */
#define S_IRUSR   __S_IREAD /* Read by owner. */
#define S_IWUSR   __S_IWRITE /* Write by owner. */
#define S_IXUSR   __S_IEXEC /* Execute by owner. */
#define S_IRWXU   (__S_IREAD|__S_IWRITE|__S_IEXEC)
#define S_IRGRP   (S_IRUSR >> 3) /* Read by group. */
#define S_IWGRP   (S_IWUSR >> 3) /* Write by group. */
#define S_IXGRP   (S_IXUSR >> 3) /* Execute by group. */
#define S_IRWXG   (S_IRWXU >> 3)
#define S_IROTH   (S_IRGRP >> 3) /* Read by others. */
#define S_IWOTH   (S_IWGRP >> 3) /* Write by others. */
#define S_IXOTH   (S_IXGRP >> 3) /* Execute by others. */
#define S_IRWXO   (S_IRWXG >> 3)
#define _STAT_VER   0
#define _MKNOD_VER   0

Functions

int stat (__const char *__restrict __file, struct stat *__restrict __buf) __THROW __nonnull((1
int int fstat (int __fd, struct stat *__buf) __THROW __nonnull((2))
int chmod (__const char *__file, __mode_t __mode) __THROW __nonnull((1))
__mode_t umask (__mode_t __mask) __THROW
int mkdir (__const char *__path, __mode_t __mode) __THROW __nonnull((1))
int mkfifo (__const char *__path, __mode_t __mode) __THROW __nonnull((1))
int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __THROW __nonnull((3))
int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __THROW __nonnull((2
int int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __THROW __nonnull((2
int int int __fxstatat (int __ver, int __fildes, __const char *__filename, struct stat *__stat_buf, int __flag) __THROW __nonnull((3
int int int int __xmknod (int __ver, __const char *__path, __mode_t __mode, __dev_t *__dev) __THROW __nonnull((2
int int int int int __xmknodat (int __ver, int __fd, __const char *__path, __mode_t __mode, __dev_t *__dev) __THROW __nonnull((3

Define Documentation

#define __S_ISTYPE (   mode,
  mask 
)    (((mode) & __S_IFMT) == (mask))

Definition at line 129 of file stat.h.

#define _MKNOD_VER   0

Definition at line 392 of file stat.h.

#define _STAT_VER   0

Definition at line 389 of file stat.h.

#define S_IRGRP   (S_IRUSR >> 3) /* Read by group. */

Definition at line 184 of file stat.h.

#define S_IROTH   (S_IRGRP >> 3) /* Read by others. */

Definition at line 190 of file stat.h.

#define S_IRUSR   __S_IREAD /* Read by owner. */

Definition at line 172 of file stat.h.

#define S_IRWXG   (S_IRWXU >> 3)

Definition at line 188 of file stat.h.

#define S_IRWXO   (S_IRWXG >> 3)

Definition at line 194 of file stat.h.

Definition at line 176 of file stat.h.

#define S_ISBLK (   mode)    __S_ISTYPE((mode), __S_IFBLK)

Definition at line 133 of file stat.h.

#define S_ISCHR (   mode)    __S_ISTYPE((mode), __S_IFCHR)

Definition at line 132 of file stat.h.

#define S_ISDIR (   mode)    __S_ISTYPE((mode), __S_IFDIR)

Definition at line 131 of file stat.h.

#define S_ISGID   __S_ISGID /* Set group ID on execution. */

Definition at line 165 of file stat.h.

#define S_ISREG (   mode)    __S_ISTYPE((mode), __S_IFREG)

Definition at line 134 of file stat.h.

#define S_ISUID   __S_ISUID /* Set user ID on execution. */

Definition at line 164 of file stat.h.

#define S_IWGRP   (S_IWUSR >> 3) /* Write by group. */

Definition at line 185 of file stat.h.

#define S_IWOTH   (S_IWGRP >> 3) /* Write by others. */

Definition at line 191 of file stat.h.

#define S_IWUSR   __S_IWRITE /* Write by owner. */

Definition at line 173 of file stat.h.

#define S_IXGRP   (S_IXUSR >> 3) /* Execute by group. */

Definition at line 186 of file stat.h.

#define S_IXOTH   (S_IXGRP >> 3) /* Execute by others. */

Definition at line 192 of file stat.h.

#define S_IXUSR   __S_IEXEC /* Execute by owner. */

Definition at line 174 of file stat.h.


Function Documentation

int __fxstat ( int  __ver,
int  __fildes,
struct stat __stat_buf 
)

Definition at line 25 of file fxstat.c.

{
  if (vers != _STAT_VER)
    {
      __set_errno (EINVAL);
      return -1;
    }

  if (fd < 0)
    {
      __set_errno (EBADF);
      return -1;
    }
  else if (buf == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int int int __fxstatat ( int  __ver,
int  __fildes,
__const char *  __filename,
struct stat __stat_buf,
int  __flag 
)
int int __lxstat ( int  __ver,
__const char *  __filename,
struct stat __stat_buf 
)
int int int int __xmknod ( int  __ver,
__const char *  __path,
__mode_t  __mode,
__dev_t __dev 
)

Here is the caller graph for this function:

int int int int int __xmknodat ( int  __ver,
int  __fd,
__const char *  __path,
__mode_t  __mode,
__dev_t __dev 
)

Here is the caller graph for this function:

int __xstat ( int  __ver,
__const char *  __filename,
struct stat __stat_buf 
)

Here is the caller graph for this function:

int chmod ( __const char *  __file,
__mode_t  __mode 
)

Here is the caller graph for this function:

int int fstat ( int  __fd,
struct stat __buf 
)

Here is the caller graph for this function:

int mkdir ( __const char *  __path,
__mode_t  __mode 
)

Here is the caller graph for this function:

int mkfifo ( __const char *  __path,
__mode_t  __mode 
)
int stat ( __const char *__restrict  __file,
struct stat *__restrict  __buf 
)

Here is the caller graph for this function:

__mode_t umask ( __mode_t  __mask)

Here is the caller graph for this function: