]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 10 Dec 1998 09:47:59 +0000 (09:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 10 Dec 1998 09:47:59 +0000 (09:47 +0000)
1998-12-10  Ulrich Drepper  <drepper@cygnus.com>

* inet/getnetgrent_r.c (innetgr): Check host and domain name with
strcasecmp, not strcmp.  [PR libc/894].

1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* posix/regex.h: Declare re_comp, re_exec if compiling for libc to
get prototypes.

* wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.

1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
prototype for __gethostbyname_r.

* include/time.h: Add declarations of internal interfaces.

* time/tzset.c: Remove declarations of internal interfaces.
* time/gmtime.c: Likewise.
* time/localtime.c: Likewise.
* time/offtime.c: Likewise.
* time/tzfile.c: Likewise.

ChangeLog
inet/getnetgrent_r.c
linuxthreads/sysdeps/pthread/pthread.h
posix/regex.h
sysdeps/unix/sysv/linux/gethostid.c
time/gmtime.c
time/localtime.c
time/offtime.c
time/tzfile.c
time/tzset.c
wctype/wctype.h

index aad27c5a3229d16a9aafb99c22c43dd8032d6f96..91365ff1012ca25565205bba731502fe01974d2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
+
+       * inet/getnetgrent_r.c (innetgr): Check host and domain name with
+       strcasecmp, not strcmp.  [PR libc/894].
+
+1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+       * posix/regex.h: Declare re_comp, re_exec if compiling for libc to
+       get prototypes.
+
+       * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.
+
+1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+       * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
+       prototype for __gethostbyname_r.
+
+       * include/time.h: Add declarations of internal interfaces.
+
+       * time/tzset.c: Remove declarations of internal interfaces.
+       * time/gmtime.c: Likewise.
+       * time/localtime.c: Likewise.
+       * time/offtime.c: Likewise.
+       * time/tzfile.c: Likewise.
+
 1998-12-01 09:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
 
        * sysdeps/unix/sysv/linux/sys/timex.h: Copy out
index a04a47712afe3212e1043f9270a907cfcee11305..d3443793bfac1b9607327c7051a2bfffd096f994 100644 (file)
@@ -364,11 +364,12 @@ innetgr (const char *netgroup, const char *host, const char *user,
                      real_entry = 1;
 
                      if ((entry.val.triple.host == NULL || host == NULL
-                          || strcmp (entry.val.triple.host, host) == 0)
+                          || __strcasecmp (entry.val.triple.host, host) == 0)
                          && (entry.val.triple.user == NULL || user == NULL
                              || strcmp (entry.val.triple.user, user) == 0)
                          && (entry.val.triple.domain == NULL || domain == NULL
-                             || strcmp (entry.val.triple.domain, domain) == 0))
+                             || __strcasecmp (entry.val.triple.domain,
+                                              domain) == 0))
                        {
                          result = 1;
                          break;
index bc6c691865afe12682e55dd94c444185f2d9e95f..48619511ee74d2cfce45529c3a4d0b807ee557f3 100644 (file)
@@ -214,14 +214,10 @@ extern int pthread_attr_getscope __P ((__const pthread_attr_t *__attr,
 
 #ifdef __USE_UNIX98
 /* Set the size of the guard area at the bottom of the thread.  */
-extern int __pthread_attr_setguardsize __P ((pthread_attr_t *__attr,
-                                            size_t __guardsize));
 extern int pthread_attr_setguardsize __P ((pthread_attr_t *__attr,
                                           size_t __guardsize));
 
 /* Get the size of the guard area at the bottom of the thread.  */
-extern int __pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
-                                            size_t *__guardsize));
 extern int pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
                                           size_t *__guardsize));
 #endif
@@ -230,28 +226,20 @@ extern int pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
    Depending on whether the stack grows up or doen the value must either
    be higher or lower than all the address in the memory block.  The
    minimal size of the block must be PTHREAD_STACK_SIZE.  */
-extern int __pthread_attr_setstackaddr __P ((pthread_attr_t *__attr,
-                                            void *__stackaddr));
 extern int pthread_attr_setstackaddr __P ((pthread_attr_t *__attr,
                                           void *__stackaddr));
 
 /* Return the previously set address for the stack.  */
-extern int __pthread_attr_getstackaddr __P ((__const pthread_attr_t *__attr,
-                                            void **__stackaddr));
 extern int pthread_attr_getstackaddr __P ((__const pthread_attr_t *__attr,
                                           void **__stackaddr));
 
 /* Add information about the minimum stack size needed for the thread
    to be started.  This size must never be less than PTHREAD_STACK_SIZE
    and must also not exceed the system limits.  */
-extern int __pthread_attr_setstacksize __P ((pthread_attr_t *__attr,
-                                            size_t __stacksize));
 extern int pthread_attr_setstacksize __P ((pthread_attr_t *__attr,
                                           size_t __stacksize));
 
 /* Return the currently used minimal stack size.  */
-extern int __pthread_attr_getstacksize __P ((__const pthread_attr_t *__attr,
-                                            size_t *__stacksize));
 extern int pthread_attr_getstacksize __P ((__const pthread_attr_t *__attr,
                                           size_t *__stacksize));
 
@@ -269,11 +257,9 @@ extern int pthread_getschedparam __P ((pthread_t __target_thread,
 
 #ifdef __USE_UNIX98
 /* Determine  level of concurrency.  */
-extern int __pthread_getconcurrency __P ((void));
 extern int pthread_getconcurrency __P ((void));
 
 /* Set new concurrency level to LEVEL.  */
-extern int __pthread_setconcurrency __P ((int __level));
 extern int pthread_setconcurrency __P ((int __level));
 #endif
 
@@ -324,8 +310,6 @@ extern int pthread_mutexattr_settype __P ((pthread_mutexattr_t *__attr,
                                           int __kind));
 
 /* Return in *KIND the mutex kind attribute in *ATTR. */
-extern int __pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr,
-                                            int *__kind));
 extern int pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr,
                                           int *__kind));
 #endif
@@ -471,7 +455,6 @@ extern int pthread_setcancelstate __P ((int __state, int *__oldstate));
 
 /* Set cancellation state of current thread to TYPE, returning the old
    type in *OLDTYPE if OLDTYPE is not NULL.  */
-extern int __pthread_setcanceltype __P ((int __type, int *__oldtype));
 extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
 
 /* Cancel THREAD immediately or at the next possibility.  */
@@ -557,7 +540,6 @@ extern int pthread_atfork __P ((void (*__prepare) (void),
 /* Terminate all threads in the program except the calling process.
    Should be called just before invoking one of the exec*() functions. */
 
-extern void __pthread_kill_other_threads_np __P ((void));
 extern void pthread_kill_other_threads_np __P ((void));
 
 
index 3fa93e503387c28fa76b602c41bc574ff5e3e251..d88ab92bd400fe69783e14204bc63ea4c77060c1 100644 (file)
@@ -505,7 +505,7 @@ extern void re_set_registers
   _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
              unsigned num_regs, regoff_t *starts, regoff_t *ends));
 
-#ifdef _REGEX_RE_COMP
+#if defined _REGEX_RE_COMP || defined _LIBC
 # ifndef _CRAY
 /* 4.2 bsd compatibility.  */
 extern char *re_comp _RE_ARGS ((const char *));
index f8a3b8048136f74ce08967f8abd868b5c9b49c87..3ef6ac63fbf24bf3bdf4b7ac4bcb300aaeb16451 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <netdb.h>
 
 #define HOSTIDFILE "/var/adm/hostid"
 
index 2b388befb19619a488b202e23a83ae2c70574efd..2de58eea2fdfcc08372d3471d9070d9f4e560ae6 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert `time_t' to `struct tm' in UTC.
-   Copyright (C) 1991, 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #include <time.h>
 
-/* Defined in localtime.c.  */
-extern struct tm _tmbuf;
-
-/* Prototype for the internal function to get information based on TZ.  */
-extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime,
-                                    struct tm *tp));
-
-
 /* Return the `struct tm' representation of *T in UTC,
    using *TP to store the result.  */
 struct tm *
index 3d8d8fbd10043252d1d2f3f06b246400f8c757aa..148879274d6d41d2a6be79db27acddcc932278f3 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert `time_t' to `struct tm' in local time zone.
-   Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
+   Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 /* The C Standard says that localtime and gmtime return the same pointer.  */
 struct tm _tmbuf;
 
-/* Prototype for the internal function to get information based on TZ.  */
-extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime,
-                                    struct tm *tp));
-
-
 
 /* Return the `struct tm' representation of *T in local time,
    using *TP to store the result.  */
index 52e40703c83e4417c58df1197fd699750c0fc286..f85879014184de98ac2beba65b33d4371d377b10 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,9 +18,6 @@
 
 #include <time.h>
 
-/* Defined in mktime.c.  */
-extern const unsigned short int __mon_yday[2][13];
-
 #define        SECS_PER_HOUR   (60 * 60)
 #define        SECS_PER_DAY    (SECS_PER_HOUR * 24)
 
index 497fe3f006fa48752032742708df24a7d9a9d67e..e723892405dad54c816a35b31a4d8a7753a42bd8 100644 (file)
@@ -44,8 +44,6 @@ struct leap
     long int change;           /* Seconds of correction to apply.  */
   };
 
-extern char * __tzstring (const char *); /* Defined in tzset.c.  */
-
 static struct ttinfo *find_transition (time_t timer) internal_function;
 static void compute_tzname_max (size_t) internal_function;
 
@@ -530,8 +528,6 @@ static void
 internal_function
 compute_tzname_max (size_t chars)
 {
-  extern size_t __tzname_cur_max; /* Defined in tzset.c. */
-
   const char *p;
 
   p = zone_names;
index 60188c27207485e9df048974b321545114f78d2a..d6d1b2089a940a8430af52b754d4a42b6674262a 100644 (file)
 #include <string.h>
 #include <time.h>
 
-/* Defined in mktime.c.  */
-extern const unsigned short int __mon_yday[2][13];
-
-/* Defined in localtime.c.  */
-extern struct tm _tmbuf;
 
 #define NOID
 #include <timezone/tzfile.h>
 
-extern int __use_tzfile;
-extern void __tzfile_read __P ((const char *file));
-extern int __tzfile_compute __P ((time_t timer, int use_localtime,
-                                 long int *leap_correct, int *leap_hit,
-                                 struct tm *tp));
-extern void __tzfile_default __P ((const char *std, const char *dst,
-                                  long int stdoff, long int dstoff));
-extern char *__tzstring __P ((const char *string));
-
 char *__tzname[2] = { (char *) "GMT", (char *) "GMT" };
 int __daylight = 0;
 long int __timezone = 0L;
index 710275888ac90a81dce4073daddc7371896f848a..c4f4f6ca024432d4029f026b00cd7ffc27391119 100644 (file)
@@ -145,6 +145,13 @@ extern int iswupper __P ((wint_t __wc));
    in the previous subclause.  */
 extern int iswxdigit __P ((wint_t __wc));
 
+/* Test for any wide character that corresponds to a standard blank
+   wide character or a locale-specific set of wide characters for
+   which `iswalnum' is false.  */
+# ifdef __USE_GNU
+extern int iswblank __P ((wint_t __wc));
+# endif
+
 /*
  * Extensible wide-character classification functions: 7.15.2.2.
  */
@@ -280,6 +287,10 @@ extern int __iswupper_l __P ((wint_t __wc, __locale_t __locale));
    in the previous subclause.  */
 extern int __iswxdigit_l __P ((wint_t __wc, __locale_t __locale));
 
+/* Test for any wide character that corresponds to a standard blank
+   wide character or a locale-specific set of wide characters for
+   which `iswalnum' is false.  */
+extern int __iswblank_l __P ((wint_t __wc, __locale_t __locale));
 
 /* Construct value that describes a class of wide characters identified
    by the string argument PROPERTY.  */