mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-20 03:50:07 +00:00
c19559b0bc
* include/aio.h: Remove __THROW from internal interfaces. __THROW is only need in external header files that might be compiled by a C++ compiler. * include/alloca.h: Likewise. * include/db.h: Likewise. * include/dirent.h: Likewise. * include/execinfo.h: Likewise. * include/fpu_control.h: Likewise. * include/glob.h: Likewise. * include/grp.h: Likewise. * include/libintl.h: Likewise. * include/math.h: Likewise. * include/math.h: Likewise. * include/mntent.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/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. 1999-11-22 Andreas Jaeger <aj@suse.de> * sunrpc/rpc_clntout.c (printbody): Fix -CLMNab output. Patch by Jerry Perkins <jrperkins@iname.com>, closes PR libc/1456+1457. 1999-11-22 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/siglist.h: Avoid declaring the same field twice if SIGPWR is defined to SIGLOST. * sysdeps/sparc/sparc32/memcpy.S: bcopy takes size_t argument, not signed, so we should not special case it for negative args. * sysdeps/sparc/sparc32/sparcv9/memmove.c: Don't use generic memmove, use the one provided in memcpy.S. * sysdeps/sparc/sparc64/memcpy.S: bcopy should handle overlapping copies like memmove, while the previous version worked like memcpy. Implement optimized assembly memmove. * sysdeps/sparc/sparc64/memmove.c: New file. 1999-11-23 Ulrich Drepper <drepper@cygnus.com> * po/cs.po: Update from translators. 1999-11-23 Andreas Jaeger <aj@suse.de>
47 lines
1.9 KiB
C
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);
|
|
extern int __fstat (int __fd, struct stat *__buf);
|
|
extern int __lstat (__const char *__file, struct stat *__buf);
|
|
extern int __chmod (__const char *__file, __mode_t __mode);
|
|
extern int __fchmod (int __fd, __mode_t __mode);
|
|
extern __mode_t __umask (__mode_t __mask);
|
|
extern int __mkdir (__const char *__path, __mode_t __mode);
|
|
extern int __mknod (__const char *__path,
|
|
__mode_t __mode, __dev_t __dev);
|
|
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
|