OSDN Git Service

2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Thu, 25 Jul 2002 17:59:48 +0000 (17:59 +0000)
committerjjohnstn <jjohnstn>
Thu, 25 Jul 2002 17:59:48 +0000 (17:59 +0000)
        * libc/sys/linux/config.h (__set_errno): Macro definition removed.
        * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
        * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
        * libc/sys/linux/pathconf.c (__set_errno): Ditto.
        * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
        * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.

newlib/ChangeLog
newlib/libc/sys/linux/config.h
newlib/libc/sys/linux/fpathconf.c
newlib/libc/sys/linux/libc-internal.h
newlib/libc/sys/linux/pathconf.c
newlib/libc/sys/linux/sys/errno.h
newlib/libc/sys/linux/ttyname_r.c

index 75d3896..b50866a 100644 (file)
@@ -1,3 +1,12 @@
+2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * libc/sys/linux/config.h (__set_errno): Macro definition removed.
+       * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
+       * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
+       * libc/sys/linux/pathconf.c (__set_errno): Ditto.
+       * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
+       * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
+
 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
 
        * libc/sys/linux/Makefile.am: Add new files.
index 579543a..76b438c 100644 (file)
@@ -13,6 +13,4 @@
 
 #define UINT32_C(c)    c ## U
 
-#define __set_errno(x) (errno = (x))
-
 #include <machine/sysdep.h>
index 63b95f9..dc7aaec 100644 (file)
@@ -29,8 +29,6 @@
 #include <machine/weakalias.h>
 #include "linux_fsinfo.h"
 
-#define __set_errno(x) errno=(x)
-
 /* The Linux kernel header mentioned this as a kind of generic value.  */
 #define LINUX_LINK_MAX 127
 
index a443ced..8369ffe 100644 (file)
@@ -6,9 +6,6 @@
 
 #include <hp-timing.h>
 
-/* macro to set errno */
-#define __set_errno(x) (errno = (x))
-
 /* Initialize the `__libc_enable_secure' flag.  */
 extern void __libc_init_secure (void);
 
index 6ce77d3..bbdb618 100644 (file)
@@ -30,8 +30,6 @@
 #include <machine/weakalias.h>
 #include "linux_fsinfo.h"
 
-#define __set_errno(x) errno=(x)
-
 /* The Linux kernel header mentioned this as a kind of generic value.  */
 #define LINUX_LINK_MAX 127
 
index b4b0f16..aaf9d36 100644 (file)
@@ -23,6 +23,8 @@ extern __IMPORT int _sys_nerr;
 /* --- end of slight redundancy (the use of struct _reent->_errno is
        hard-coded in perror.c so why pretend anything else could work too ? */
 
+#define __set_errno(x) (errno = (x))
+
 #include <asm/errno.h>
 
 #define ENOTSUP EOPNOTSUPP
index a0cc901..efad76a 100644 (file)
@@ -34,8 +34,6 @@ static int getttyname_r (char *buf, size_t buflen,
 
 extern struct dirent64 *__readdir64 (DIR *);
 
-#define __set_errno(x) (errno = (x))
-
 static int
 getttyname_r (char *buf, size_t buflen, dev_t mydev, ino64_t myino,
              int save, int *dostat)