]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix getsubopt declaration.
authorEric Blake <eblake@redhat.com>
Tue, 22 Dec 2009 13:07:24 +0000 (13:07 +0000)
committerEric Blake <eblake@redhat.com>
Tue, 22 Dec 2009 13:07:24 +0000 (13:07 +0000)
* libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
* libc/include/stdlib.h: ...here, to match POSIX for getsubopt.

newlib/ChangeLog
newlib/libc/include/stdlib.h
newlib/libc/include/sys/unistd.h

index 491c26139a79a995873b4887b5a35c6c16a3ee47..660e700baf21f0cfd00c8ed4527d09b260e14d73 100644 (file)
@@ -1,19 +1,24 @@
+2009-12-22  Eric Blake  <ebb9@byu.net>
+
+       * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
+       * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
+
 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
 
-        * NEWS: Update with 1.18.0 info.
-        * README: Ditto.
-        * acinclude.m4: Change version number to 1.18.0.
-        * aclocal.m4: Regenerated.
-        * configure: Ditto.
-        * doc/aclocal.m4: Ditto.
-        * doc/configure: Ditto.
-        * libc/*/aclocal.m4: Ditto.
-        * libc/*/configure: Ditto.
-        * libc/libc.texinfo: Ditto.
-        * libm/*/aclocal.m4: Ditto.
-        * libm/*/configure: Ditto.
-        * libm/libm.texinfo: Ditto.
-        * libc/sys/linux/shared.ld: Add VERS_1.18
+       * NEWS: Update with 1.18.0 info.
+       * README: Ditto.
+       * acinclude.m4: Change version number to 1.18.0.
+       * aclocal.m4: Regenerated.
+       * configure: Ditto.
+       * doc/aclocal.m4: Ditto.
+       * doc/configure: Ditto.
+       * libc/*/aclocal.m4: Ditto.
+       * libc/*/configure: Ditto.
+       * libc/libc.texinfo: Ditto.
+       * libm/*/aclocal.m4: Ditto.
+       * libm/*/configure: Ditto.
+       * libm/libm.texinfo: Ditto.
+       * libc/sys/linux/shared.ld: Add VERS_1.18
 
 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
 
@@ -44,7 +49,7 @@
 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
-       * libc/machine/arm/machine/endian.h: Remove (Conflicts with 
+       * libc/machine/arm/machine/endian.h: Remove (Conflicts with
        libc/include/machine/endian.h)
 
 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
@@ -53,7 +58,7 @@
 
 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
 
-       * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock 
+       * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
        * libc/include/sys/stat.h: Use struct timespec st_*tim,
        blksize_t st_blksize, blkcnt_t st_blocks.
        Add st_*time compatibility macros.
 
 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
 
-       * libc/sys/rtems/machine/_types.h: New (Derived from 
+       * libc/sys/rtems/machine/_types.h: New (Derived from
        machine/_default_types.h).
-        * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
+       * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
        * libc/sys/rtems/sys/param.h:
-        Update copyright notice from FreeBSD.
-        Remove HZ.
-        Add #include <sys/priority.h>
-        Remove priority handling (moved to sys/priority.h).
-        Remove CLBYTES (Unused, abandoned in BSD).
+       Update copyright notice from FreeBSD.
+       Remove HZ.
+       Add #include <sys/priority.h>
+       Remove priority handling (moved to sys/priority.h).
+       Remove CLBYTES (Unused, abandoned in BSD).
        * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
-        Remove CIRCLEQ_*.
+       Remove CIRCLEQ_*.
 
 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
 
index 82a2207f51d74355df7ee72b731e7e8154fe7a5b..b33503d82660f6d1d0c9490f5bf8ed6bd1787073 100644 (file)
@@ -83,6 +83,10 @@ char *  _EXFUN(getenv,(const char *__string));
 char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));
 char * _EXFUN(_findenv,(_CONST char *, int *));
 char * _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
+#ifndef __STRICT_ANSI__
+extern char *suboptarg;                        /* getsubopt(3) external variable */
+int    _EXFUN(getsubopt,(char **, char * const *, char **));
+#endif
 long   _EXFUN(labs,(long));
 ldiv_t _EXFUN(ldiv,(long __numer, long __denom));
 _PTR   _EXFUN_NOTHROW(malloc,(size_t __size));
index 80c35daf3c68de5efc37ac774ad7f52f54c4ec21..4193002532f7d8f284b5a9a9a72b0f370928b5d2 100644 (file)
@@ -191,9 +191,6 @@ extern int optreset;                        /* getopt(3) external variable */
 
 #ifndef        _POSIX_SOURCE
 pid_t   _EXFUN(vfork, (void ));
-
-extern char *suboptarg;                        /* getsubopt(3) external variable */
-int     getsubopt(char **, char * const *, char **);
 #endif /* _POSIX_SOURCE */
 
 #ifdef _COMPILING_NEWLIB
This page took 0.053487 seconds and 5 git commands to generate.