Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/include/sys/stat.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
14 lines (13 sloc)
793 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <io/sys/stat.h> | |
/* The `stat', `fstat', `lstat' functions have to be handled special since | |
even while not compiling the library with optimization calls to these | |
functions in the shared library must reference the `xstat' etc functions. | |
We have to use macros but we cannot define them in the normal headers | |
since on user level we must use real functions. */ | |
#define stat(fname, buf) __xstat (_STAT_VER, fname, buf) | |
#define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf) | |
#define lstat(fname, buf) __lxstat (_STAT_VER, fname, buf) | |
#define __lstat(fname, buf) __lxstat (_STAT_VER, fname, buf) | |
#define stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf) | |
#define fstat64(fd, buf) __fxstat64 (_STAT_VER, fd, buf) | |
#define lstat64(fname, buf) __lxstat64 (_STAT_VER, fname, buf) |