[Libsysio-commit] HEAD: libsysio/src fcntl.c getdirentries.c ioctl.c open.c read.c stat.c write.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-10-14 18:00:35
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv24178/src Modified Files: fcntl.c getdirentries.c ioctl.c open.c read.c stat.c write.c Log Message: Added missing symbol aliases for Red Storm plus some that seemed missing. Index: fcntl.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fcntl.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -b -B -p -r1.5 -r1.6 --- fcntl.c 6 Oct 2003 21:19:31 -0000 1.5 +++ fcntl.c 14 Oct 2003 18:00:29 -0000 1.6 @@ -102,3 +102,8 @@ out: #undef __fcntl sysio_sym_weak_alias(fcntl, __fcntl) #endif + +#if defined(BSD) || defined(REDSTORM) +#undef _fcntl +sysio_sym_weak_alias(fcntl, _fcntl) +#endif Index: getdirentries.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/getdirentries.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- getdirentries.c 10 Oct 2003 18:50:31 -0000 1.3 +++ getdirentries.c 14 Oct 2003 18:00:29 -0000 1.4 @@ -221,3 +221,8 @@ out: #else /* !defined(DIRENT64_IS_NATURAL) */ sysio_sym_strong_alias(_getdirentries64, getdirentries) #endif + +#if defined(BSD) || defined(REDSTORM) +#undef _getdirentries +sysio_sym_weak_alias(getdirentries, _getdirentries) +#endif Index: ioctl.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/ioctl.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- ioctl.c 6 Oct 2003 21:19:31 -0000 1.3 +++ ioctl.c 14 Oct 2003 18:00:30 -0000 1.4 @@ -83,3 +83,8 @@ out: #undef __ioctl sysio_sym_weak_alias(ioctl, __ioctl) #endif + +#if defined(BSD) || defined(REDSTORM) +#undef _ioctl +sysio_sym_weak_alias(ioctl, _ioctl) +#endif Index: open.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/open.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -b -B -p -r1.10 -r1.11 --- open.c 10 Oct 2003 18:50:31 -0000 1.10 +++ open.c 14 Oct 2003 18:00:30 -0000 1.11 @@ -216,6 +216,11 @@ sysio_sym_weak_alias(open, open64) sysio_sym_weak_alias(open, __open64) #endif +#if defined(BSD) || defined(REDSTORM) +#undef _open +sysio_sym_weak_alias(open, _open) +#endif + int close(int fd) { @@ -232,6 +237,11 @@ close(int fd) sysio_sym_weak_alias(close, __close) #endif +#if defined(BSD) || defined(REDSTORM) +#undef _close +sysio_sym_weak_alias(close, _close) +#endif + int creat(const char *path, mode_t mode) { @@ -246,6 +256,11 @@ sysio_sym_weak_alias(creat, __creat) sysio_sym_weak_alias(creat, creat64) #undef __creat64 sysio_sym_weak_alias(creat, __creat64) +#endif + +#if defined(BSD) || defined(REDSTORM) +#undef _creat +sysio_sym_weak_alias(creat, _creat) #endif mode_t Index: read.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/read.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- read.c 13 Oct 2003 12:19:25 -0000 1.8 +++ read.c 14 Oct 2003 18:00:30 -0000 1.9 @@ -227,6 +227,11 @@ readv(int fd, const struct iovec *iov, i return iowait(ioid); } +#if defined(BSD) || defined(REDSTORM) +#undef _readv +sysio_sym_weak_alias(readv, _readv) +#endif + ssize_t read(int fd, void *buf, size_t count) { @@ -241,6 +246,11 @@ read(int fd, void *buf, size_t count) #ifdef __GLIBC__ #undef __read sysio_sym_weak_alias(read, __read) +#endif + +#if defined(BSD) || defined(REDSTORM) +#undef _read +sysio_sym_weak_alias(read, _read) #endif #if _LARGEFILE64_SOURCE Index: stat.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/stat.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- stat.c 10 Oct 2003 18:50:31 -0000 1.4 +++ stat.c 14 Oct 2003 18:00:30 -0000 1.5 @@ -108,6 +108,11 @@ __fstat(int fd, struct stat *buf) sysio_sym_weak_alias(__fstat, fstat) +#if defined(BSD) || defined(REDSTORM) +#undef _fstat +sysio_sym_weak_alias(__fstat, _fstat) +#endif + int __xstat(int __ver, const char *__filename, struct stat *__stat_buf) { @@ -148,6 +153,11 @@ __stat(const char *filename, struct stat sysio_sym_weak_alias(__stat, stat) +#if defined(BSD) || defined(REDSTORM) +#undef _stat +sysio_sym_weak_alias(__stat, _stat) +#endif + int __lxstat(int __ver, const char *__filename, struct stat *__stat_buf) { @@ -188,3 +198,7 @@ __lstat(const char *filename, struct sta sysio_sym_weak_alias(__lstat, lstat) +#if defined(BSD) || defined(REDSTORM) +#undef _lstat +sysio_sym_weak_alias(__lstat, _lstat) +#endif Index: write.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/write.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- write.c 13 Oct 2003 12:19:25 -0000 1.8 +++ write.c 14 Oct 2003 18:00:30 -0000 1.9 @@ -229,6 +229,11 @@ writev(int fd, const struct iovec *iov, return iowait(ioid); } +#if defined(BSD) || defined(REDSTORM) +#undef _writev +sysio_sym_weak_alias(writev, _writev) +#endif + ssize_t write(int fd, const void *buf, size_t count) { @@ -243,6 +248,11 @@ write(int fd, const void *buf, size_t co #ifdef __GLIBC__ #undef __write sysio_sym_weak_alias(write, __write) +#endif + +#if defined(BSD) || defined(REDSTORM) +#undef _write +sysio_sym_weak_alias(write, _write) #endif #if _LARGEFILE64_SOURCE |