Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 9 Jul 1998 13:42:26 +0000 (13:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 9 Jul 1998 13:42:26 +0000 (13:42 +0000)
1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>

* Versions: Add __pthread_mutexattr_gettype and
__pthread_mutexattr_settype.
* lockfile.c: Use __pthread_mutexattr_settype instead of
__pthread_mutexattr_setkind_np.
* mutex.c: Define __pthread_mutexattr_gettype and
__pthread_mutexattr_settype.
* weak.c: Likewise.

13 files changed:
Makerules
grp/grp.h
intl/dcgettext.c
io/fcntl.h
io/sys/stat.h
io/utime.h
libio/Versions
libio/stdio.h
linuxthreads/ChangeLog
linuxthreads/Versions
linuxthreads/lockfile.c
linuxthreads/mutex.c
linuxthreads/weaks.c

index 230b800e0be19ee2a0c0e5d5cbe045fda6b4ad3f..a339caa71412907df6ec7503d38a24d60f16353a 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -280,7 +280,7 @@ endif
 ifeq ($(versioning),yes)
 -include $(common-objpfx)sysd-versions
 $(addprefix $(common-objpfx),$(version-maps)): $(common-objpfx)sysd-versions
-generated += $(versin-maps)
+generated += $(version-maps)
 
 ifndef avoid-generated
 $(common-objpfx)sysd-versions: $(..)Versions.def $(..)scripts/versions.awk \
index 11883ab1f10c35e07ed7b7e6ef6ef8882935c2c4..265f3c20039ac2d6e2a9bc38af05be1d53d30e59 100644 (file)
--- a/grp/grp.h
+++ b/grp/grp.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 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
@@ -34,7 +34,7 @@ __BEGIN_DECLS
 
 
 /* For the Single Unix specification we must define this type here.  */
-#if defined __USE_UNIX98 && !defined gid_t
+#if defined __USE_XOPEN && !defined gid_t
 typedef __gid_t gid_t;
 # define gid_t gid_t
 #endif
index 9f76abf89aad0c504cfded07dea5c3241c102db3..77de76f5ed902fe89ec449826ede6ea396b56c69 100644 (file)
@@ -430,7 +430,8 @@ find_msg (domain_file, msgid)
      struct loaded_l10nfile *domain_file;
      const char *msgid;
 {
-  size_t top, act, bottom;
+  size_t act = 0;
+  size_t top, bottom;
   struct loaded_domain *domain;
 
   if (domain_file->decided == 0)
index 7c654c0503c3e9bcd95137d25b4df2ce8012d7c5..9f9fe8d50c4131c6d8afc10be6cd9bf8aa554336 100644 (file)
@@ -32,8 +32,8 @@ __BEGIN_DECLS
    numbers and flag bits for `open', `fcntl', et al.  */
 #include <bits/fcntl.h>
 
-/* For Unix98 all symbols from <sys/stat.h> should also be available.  */
-#ifdef __USE_UNIX98
+/* For XPG all symbols from <sys/stat.h> should also be available.  */
+#ifdef __USE_XOPEN
 # include <sys/stat.h>
 #endif
 
index 0847c0c7b8ee30b38e9ddf3ef5233aab23a41242..ab27f7c5fc5cfa06a6d75f550c08dcea3a16f1de 100644 (file)
 
 #include <bits/types.h>                /* For __mode_t and __dev_t.  */
 
-#ifdef __USE_UNIX98
+#ifdef __USE_XOPEN
+# define __need_time_t
+# include <time.h>             /* For time_t.  */
+
 /* The Single Unix specification says that some more types are
    available here.  */
 # ifndef dev_t
@@ -72,7 +75,9 @@ typedef __off64_t off_t;
 typedef __uid_t uid_t;
 #  define uid_t uid_t
 # endif
+#endif /* X/Open */
 
+#ifdef __USE_UNIX98
 # ifndef pid_t
 typedef __pid_t pid_t;
 #  define pid_t pid_t
@@ -83,7 +88,7 @@ __BEGIN_DECLS
 
 #include <bits/stat.h>
 
-#if defined __USE_BSD || defined __USE_MISC || defined __USE_UNIX98
+#if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
 # define S_IFMT                __S_IFMT
 # define S_IFDIR       __S_IFDIR
 # define S_IFCHR       __S_IFCHR
index 3bfdd092a8f125e4f97917b1b7c625104adb8820..bc82bcad7b8375a26c4b831214926cf932aa2063 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 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
@@ -29,7 +29,7 @@ __BEGIN_DECLS
 
 #include <bits/types.h>
 
-#ifdef __USE_UNIX98
+#ifdef __USE_XOPEN
 # define __need_time_t
 # include <time.h>
 #endif
index 83fc6ed5407a05e34cad8dadb135973f0fcaa14d..467ba22b740abcbd25b9940a7c7b99000c2e0c9c 100644 (file)
@@ -49,10 +49,9 @@ libc {
     # f*
     fclose; fcloseall; fdopen; feof; feof_locked; feof_unlocked; ferror;
     ferror_locked; ferror_unlocked; fflush; fflush_locked; fflush_unlocked;
-    fgetc; fgetpos; fgets; fileno; fileno_locked; fileno_unlocked; flockfile;
+    fgetc; fgetpos; fgets; fileno; fileno_locked; fileno_unlocked;
     fopen; fopencookie; fputc; fputc_locked; fputc_unlocked; fputs;
-    fread; freopen; fseek; fsetpos; ftell; ftrylockfile; funlockfile;
-    fwrite;
+    fread; freopen; fseek; fsetpos; ftell; fwrite;
 
     # g*
     getc; getc_locked; getc_unlocked; getchar; getchar_unlocked; getdelim;
index 1167d3cf39c406e915b6490991e433ef9ac9e4b7..eb0d98d7d2a5bf932a4838404bb6ce5ad8384967 100644 (file)
@@ -185,7 +185,6 @@ extern int fflush __P ((FILE *__stream));
 
 #ifdef __USE_MISC
 /* Faster versions when locking is not required.  */
-extern int fclose_unlocked __P ((FILE *__stream));
 extern int fflush_unlocked __P ((FILE *__stream));
 #endif
 
index e5fff7590dae27b04fe9c23df59d5445e4fa0d35..4c4cfdf84cdddbe26c2d2710de0cb1c480461c96 100644 (file)
@@ -1,3 +1,13 @@
+1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
+
+       * Versions: Add __pthread_mutexattr_gettype and
+       __pthread_mutexattr_settype.
+       * lockfile.c: Use __pthread_mutexattr_settype instead of
+       __pthread_mutexattr_setkind_np.
+       * mutex.c: Define __pthread_mutexattr_gettype and
+       __pthread_mutexattr_settype.
+       * weak.c: Likewise.
+
 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
 
        * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
index abb237962a08fb5a90f398302cb672edcb012f54..cc45a6ceb0f917bb25a19a95657fcbaa84c911c7 100644 (file)
@@ -92,6 +92,7 @@ libpthread {
 
     pthread_getconcurrency; pthread_setconcurrency;
 
+    __pthread_mutexattr_gettype; __pthread_mutexattr_settype;
     pthread_mutexattr_gettype; pthread_mutexattr_settype;
   }
 }
index b0cb2ca00682d105a345f23411fb762242900d03..0c9cf275911323fa12f709677e0b704fa81d6626 100644 (file)
@@ -1,5 +1,5 @@
 /* lockfile - Handle locking and unlocking of stream.
-   Copyright (C) 1996 Free Software Foundation, Inc.
+   Copyright (C) 1996, 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
@@ -77,7 +77,7 @@ __fresetlockfiles (void)
   pthread_mutexattr_t attr;
 
   __pthread_mutexattr_init (&attr);
-  __pthread_mutexattr_setkind_np (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+  __pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
 
   for (fp = _IO_list_all; fp != NULL; fp = fp->_chain)
     __pthread_mutex_init (fp->_lock, &attr);
index 44a17d5b5a3f13062b43a003f17b5c4d6b090f1d..a337bad758367518181f2f71e0712b79e5cd3565 100644 (file)
@@ -154,7 +154,8 @@ int __pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind)
   return 0;
 }
 weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)
-weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_settype)
+strong_alias (__pthread_mutexattr_setkind_np, __pthread_mutexattr_settype)
+weak_alias (__pthread_mutexattr_settype, pthread_mutexattr_settype)
 
 int __pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind)
 {
@@ -162,7 +163,8 @@ int __pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind)
   return 0;
 }
 weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np)
-weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_gettype)
+strong_alias (__pthread_mutexattr_getkind_np, __pthread_mutexattr_gettype)
+weak_alias (__pthread_mutexattr_gettype, pthread_mutexattr_gettype)
 
 /* Once-only execution */
 
index ac8e1167d31940d7b1d27a1fa8f0b798c4ef5135..fc0873bdd95940a00a025bf09944b58d6b46b72c 100644 (file)
@@ -50,8 +50,8 @@ weak_alias (__pthread_return_0, pthread_mutex_init)
 weak_alias (__pthread_return_0, pthread_mutex_destroy)
 weak_alias (__pthread_return_0, pthread_mutex_lock)
 weak_alias (__pthread_return_0, pthread_mutex_unlock)
-weak_alias (__pthread_return_0, pthread_mutexattr_setkind_np)
-weak_alias (__pthread_return_0, pthread_mutexattr_getkind_np)
+weak_alias (__pthread_return_0, __pthread_mutexattr_settype)
+weak_alias (__pthread_return_0, __pthread_mutexattr_gettype)
 weak_alias (__pthread_return_0, pthread_condattr_init)
 weak_alias (__pthread_return_0, pthread_condattr_destroy)
 weak_alias (__pthread_return_0, pthread_setschedparam)