[Libsysio-commit] RedStorm: libsysio/src fcntl.c getdirentries.c ioctl.c open.c read.c stat.c write.
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2003-10-14 17:50:39
|
Update of /cvsroot/libsysio/libsysio/src
In directory sc8-pr-cvs1:/tmp/cvs-serv22567/src
Modified Files:
Tag: RedStorm
fcntl.c getdirentries.c ioctl.c open.c read.c stat.c write.c
Log Message:
Somehow, all the needed symbol aliases for Red Storm cnos were lost in
the integration. Added back those we know are missing plus a few that
make sense from what I believe should be symmetry.
Index: fcntl.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/fcntl.c,v
retrieving revision 1.3.4.2
retrieving revision 1.3.4.3
diff -u -w -b -B -p -r1.3.4.2 -r1.3.4.3
--- fcntl.c 27 Sep 2003 23:01:23 -0000 1.3.4.2
+++ fcntl.c 14 Oct 2003 17:50:34 -0000 1.3.4.3
@@ -102,3 +102,7 @@ out:
#undef __fcntl
sysio_sym_weak_alias(fcntl, __fcntl)
#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_weak_alias(fcntl, _fcntl)
+#endif
Index: getdirentries.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/getdirentries.c,v
retrieving revision 1.1.10.4
retrieving revision 1.1.10.5
diff -u -w -b -B -p -r1.1.10.4 -r1.1.10.5
--- getdirentries.c 29 Sep 2003 14:57:01 -0000 1.1.10.4
+++ getdirentries.c 14 Oct 2003 17:50:34 -0000 1.1.10.5
@@ -221,3 +221,7 @@ out:
#else /* !defined(DIRENT64_IS_NATURAL) */
sysio_sym_strong_alias(_getdirentries64, getdirentries)
#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(getdirentries, _getdirentries)
+#endif
Index: ioctl.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/ioctl.c,v
retrieving revision 1.1.1.1.14.2
retrieving revision 1.1.1.1.14.3
diff -u -w -b -B -p -r1.1.1.1.14.2 -r1.1.1.1.14.3
--- ioctl.c 27 Sep 2003 23:01:23 -0000 1.1.1.1.14.2
+++ ioctl.c 14 Oct 2003 17:50:34 -0000 1.1.1.1.14.3
@@ -82,4 +81,8 @@ out:
#ifdef __GLIBC__
#undef __ioctl
sysio_sym_weak_alias(ioctl, __ioctl)
+#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(ioctl, _ioctl)
#endif
Index: open.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/open.c,v
retrieving revision 1.7.4.4
retrieving revision 1.7.4.5
diff -u -w -b -B -p -r1.7.4.4 -r1.7.4.5
--- open.c 27 Sep 2003 23:01:23 -0000 1.7.4.4
+++ open.c 14 Oct 2003 17:50:34 -0000 1.7.4.5
@@ -216,6 +216,10 @@ sysio_sym_weak_alias(open, open64)
sysio_sym_weak_alias(open, __open64)
#endif
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(open, _open)
+#endif
+
int
close(int fd)
{
@@ -232,6 +236,10 @@ close(int fd)
sysio_sym_weak_alias(close, __close)
#endif
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(close, _close)
+#endif
+
int
creat(const char *path, mode_t mode)
{
@@ -246,6 +254,10 @@ sysio_sym_weak_alias(creat, __creat)
sysio_sym_weak_alias(creat, creat64)
#undef __creat64
sysio_sym_weak_alias(creat, __creat64)
+#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(creat, _creat)
#endif
mode_t
Index: read.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/read.c,v
retrieving revision 1.2.10.3
retrieving revision 1.2.10.4
diff -u -w -b -B -p -r1.2.10.3 -r1.2.10.4
--- read.c 29 Sep 2003 14:57:01 -0000 1.2.10.3
+++ read.c 14 Oct 2003 17:50:34 -0000 1.2.10.4
@@ -171,6 +171,10 @@ pread(int fd, void *buf, size_t count, o
sysio_sym_weak_alias(_pread, pread)
#endif
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(pread, _pread)
+#endif
+
/*
* API interface to accomplish asynch read into iovec from current file offset.
*/
@@ -217,6 +221,10 @@ readv(int fd, const struct iovec *iov, i
return iowait(ioid);
}
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(readv, _readv)
+#endif
+
ssize_t
read(int fd, void *buf, size_t count)
{
@@ -231,6 +239,10 @@ read(int fd, void *buf, size_t count)
#ifdef __GLIBC__
#undef __read
sysio_sym_weak_alias(read, __read)
+#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(read, _read)
#endif
#if _LARGEFILE64_SOURCE
Index: stat.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/stat.c,v
retrieving revision 1.3.6.2
retrieving revision 1.3.6.3
diff -u -w -b -B -p -r1.3.6.2 -r1.3.6.3
--- stat.c 19 May 2003 13:51:20 -0000 1.3.6.2
+++ stat.c 14 Oct 2003 17:50:34 -0000 1.3.6.3
@@ -108,6 +108,10 @@ __fstat(int fd, struct stat *buf)
sysio_sym_weak_alias(__fstat, fstat)
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(__fstat, _fstat)
+#endif
+
int
__xstat(int __ver, const char *__filename, struct stat *__stat_buf)
{
@@ -148,6 +152,10 @@ __stat(const char *filename, struct stat
sysio_sym_weak_alias(__stat, stat)
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(__stat, _stat)
+#endif
+
int
__lxstat(int __ver, const char *__filename, struct stat *__stat_buf)
{
@@ -188,3 +196,6 @@ __lstat(const char *filename, struct sta
sysio_sym_weak_alias(__lstat, lstat)
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(__lstat, _lstat)
+#endif
Index: write.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/write.c,v
retrieving revision 1.2.12.3
retrieving revision 1.2.12.4
diff -u -w -b -B -p -r1.2.12.3 -r1.2.12.4
--- write.c 29 Sep 2003 14:57:01 -0000 1.2.12.3
+++ write.c 14 Oct 2003 17:50:34 -0000 1.2.12.4
@@ -171,6 +171,10 @@ pwrite(int fd, const void *buf, size_t c
sysio_sym_weak_alias(_pwrite, pwrite)
#endif
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(pwrite, _pwrite)
+#endif
+
/*
* API interface to accomplish asynch write into iovec from current file offset.
*/
@@ -217,6 +221,10 @@ writev(int fd, const struct iovec *iov,
return iowait(ioid);
}
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(writev, _writev)
+#endif
+
ssize_t
write(int fd, const void *buf, size_t count)
{
@@ -231,6 +239,10 @@ write(int fd, const void *buf, size_t co
#ifdef __GLIBC__
#undef __write
sysio_sym_weak_alias(write, __write)
+#endif
+
+#if defined(REDSTORM) || defined(BSD)
+sysio_sym_strong_alias(write, _write)
#endif
#if _LARGEFILE64_SOURCE
|