about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-09 13:42:26 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-09 13:42:26 +0000
commit6077fe6e4d860f5fc53c49a4266d50437f3a2817 (patch)
tree6d32d596c22d409fe3615d7d5980a56315317d69
parent4bae55673314ecad6127cc156b1e5e5bb3c88b57 (diff)
downloadglibc-6077fe6e4d860f5fc53c49a4266d50437f3a2817.tar.gz
glibc-6077fe6e4d860f5fc53c49a4266d50437f3a2817.tar.xz
glibc-6077fe6e4d860f5fc53c49a4266d50437f3a2817.zip
Update.
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.
-rw-r--r--Makerules2
-rw-r--r--grp/grp.h4
-rw-r--r--intl/dcgettext.c3
-rw-r--r--io/fcntl.h4
-rw-r--r--io/sys/stat.h9
-rw-r--r--io/utime.h4
-rw-r--r--libio/Versions5
-rw-r--r--libio/stdio.h1
-rw-r--r--linuxthreads/ChangeLog10
-rw-r--r--linuxthreads/Versions1
-rw-r--r--linuxthreads/lockfile.c4
-rw-r--r--linuxthreads/mutex.c6
-rw-r--r--linuxthreads/weaks.c4
13 files changed, 37 insertions, 20 deletions
diff --git a/Makerules b/Makerules
index 230b800e0b..a339caa714 100644
--- 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 \
diff --git a/grp/grp.h b/grp/grp.h
index 11883ab1f1..265f3c2003 100644
--- 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
diff --git a/intl/dcgettext.c b/intl/dcgettext.c
index 9f76abf89a..77de76f5ed 100644
--- a/intl/dcgettext.c
+++ b/intl/dcgettext.c
@@ -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)
diff --git a/io/fcntl.h b/io/fcntl.h
index 7c654c0503..9f9fe8d50c 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -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
 
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 0847c0c7b8..ab27f7c5fc 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -27,7 +27,10 @@
 
 #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
diff --git a/io/utime.h b/io/utime.h
index 3bfdd092a8..bc82bcad7b 100644
--- a/io/utime.h
+++ b/io/utime.h
@@ -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
diff --git a/libio/Versions b/libio/Versions
index 83fc6ed540..467ba22b74 100644
--- a/libio/Versions
+++ b/libio/Versions
@@ -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;
diff --git a/libio/stdio.h b/libio/stdio.h
index 1167d3cf39..eb0d98d7d2 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -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
 
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index e5fff7590d..4c4cfdf84c 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -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.
diff --git a/linuxthreads/Versions b/linuxthreads/Versions
index abb237962a..cc45a6ceb0 100644
--- a/linuxthreads/Versions
+++ b/linuxthreads/Versions
@@ -92,6 +92,7 @@ libpthread {
 
     pthread_getconcurrency; pthread_setconcurrency;
 
+    __pthread_mutexattr_gettype; __pthread_mutexattr_settype;
     pthread_mutexattr_gettype; pthread_mutexattr_settype;
   }
 }
diff --git a/linuxthreads/lockfile.c b/linuxthreads/lockfile.c
index b0cb2ca006..0c9cf27591 100644
--- a/linuxthreads/lockfile.c
+++ b/linuxthreads/lockfile.c
@@ -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);
diff --git a/linuxthreads/mutex.c b/linuxthreads/mutex.c
index 44a17d5b5a..a337bad758 100644
--- a/linuxthreads/mutex.c
+++ b/linuxthreads/mutex.c
@@ -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 */
 
diff --git a/linuxthreads/weaks.c b/linuxthreads/weaks.c
index ac8e1167d3..fc0873bdd9 100644
--- a/linuxthreads/weaks.c
+++ b/linuxthreads/weaks.c
@@ -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)