glibc/include/sys/stat.h
Ulrich Drepper fe559c5e1c Update.
1999-10-19  Andreas Jaeger  <aj@suse.de>

	* include/bits/ipc.h: Remove K&R compatibility.
	* include/libintl.h: Likewise.
	* include/math.h: Likewise.
	* include/mntent.h: Likewise
	* include/netdb.h: Likewise.
	* include/pwd.h: Likewise.
	* include/sched.h: Likewise.
	* include/shadow.h: Likewise
	* include/stdlib.h: Likewise.
	* include/sys/file.h: Likewise.
	* include/sys/gmon.h: Likewise.
	* include/sys/ioctl.h: Likewise.
	* include/sys/mman.h: Likewise.
	* include/sys/resource.h: Likewise.
	* include/sys/socket.h: Likewise.
	* include/sys/stat.h: Likewise.
	* include/sys/sysinfo.h: Likewise.
	* include/sys/time.h: Likewise.
	* include/sys/times.h: Likewise.
	* include/sys/uio.h: Likewise.
	* include/sys/wait.h: Likewise.
	* include/termios.h: Likewise.
	* include/time.h: Likewise.
	* include/ulimit.h: Likewise.
	* include/utmp.h: Likewise.
	* include/wchar.h: Likewise.
	* include/wctype.h: Likewise.

1999-10-19  Andreas Jaeger  <aj@suse.de>

	* math/libm-test.inc: Remove one K&R compatibility.
	(main): Enable nexttoward_test.

	* math/gen-libm-test.pl (output_ulps): Output name of Ulps file to
	libm-test-ulps.h; pretty print output a bit.

1999-10-19  Andreas Jaeger  <aj@suse.de>

	* iconv/iconv_prog.c (main): Set exit value in case that reading
	from stdin failed [PR libc/1404].
1999-10-19 13:53:34 +00:00

47 lines
1.9 KiB
C

#ifndef _SYS_STAT_H
#include <io/sys/stat.h>
/* Now define the internal interfaces. */
extern int __stat (__const char *__file, struct stat *__buf) __THROW;
extern int __fstat (int __fd, struct stat *__buf) __THROW;
extern int __lstat (__const char *__file, struct stat *__buf) __THROW;
extern int __chmod (__const char *__file, __mode_t __mode) __THROW;
extern int __fchmod (int __fd, __mode_t __mode) __THROW;
extern __mode_t __umask (__mode_t __mask) __THROW;
extern int __mkdir (__const char *__path, __mode_t __mode) __THROW;
extern int __mknod (__const char *__path,
__mode_t __mode, __dev_t __dev) __THROW;
extern __inline__ int __stat (__const char *__path, struct stat *__statbuf)
{
return __xstat (_STAT_VER, __path, __statbuf);
}
extern __inline__ int __lstat (__const char *__path, struct stat *__statbuf)
{
return __lxstat (_STAT_VER, __path, __statbuf);
}
extern __inline__ int __fstat (int __fd, struct stat *__statbuf)
{
return __fxstat (_STAT_VER, __fd, __statbuf);
}
extern __inline__ int __mknod (__const char *__path, __mode_t __mode,
__dev_t __dev)
{
return __xmknod (_MKNOD_VER, __path, __mode, &__dev);
}
/* 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 __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)
#endif