]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 28 Apr 1998 14:12:52 +0000 (14:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 28 Apr 1998 14:12:52 +0000 (14:12 +0000)
1998-04-28  Ulrich Drepper  <drepper@cygnus.com>

* sysdeps/unix/sysv/linux/bits/sem.h: Don't define union semun.
Define macro _SEM_SEMUN_UNDEFINED instead.

ChangeLog
iconvdata/testdata/CP1257..UTF8
sysdeps/unix/sysv/linux/bits/sem.h

index fbc5712211f1822b011918d778fbd1c00269643d..baf2290d5dd981502c37d05291ce4d94fe8b4975 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-04-28  Ulrich Drepper  <drepper@cygnus.com>
+
+       * sysdeps/unix/sysv/linux/bits/sem.h: Don't define union semun.
+       Define macro _SEM_SEMUN_UNDEFINED instead.
+
 1998-04-28 16:32  Philip Blundell  <philb@gnu.org>
 
        * manual/stdio.texi (Variable Arguments Output): Correct variable
index 174fc29c8098c71ee8abe4954914fcbcfcf1c104..db0c22a014210a009fd6b3c488e828237a1ba86d 100644 (file)
@@ -5,7 +5,7 @@
  ` a b c d e f g h i j k l m n o
  p q r s t u v w x y z { | } ~ \7f
      ‚   „ … † ‡   ‰   ‹        
-   â\80\98 â\80\99 â\80\9c â\80\9d â\88\99 – —   ™   ›        
+   â\80\98 â\80\99 â\80\9c â\80\9d â\80¢ – —   ™   ›        
      ¢ £ ¤   ¦ § Ø © Ŗ « ¬ ­ ® Æ
  ° ± ² ³   µ ¶ · ø ¹ ŗ » ¼ ½ ¾ æ
  Ą Į Ā Ć Ä Å Ę Ē Č É Ź Ė Ģ Ķ Ī Ļ
index f3bbd89a12da5d2bd049e4ae1ba73d4c19888bcf..dc0ec46cba4ca0422d4a30f825f0f2ab86ae7070 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 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
@@ -48,14 +48,22 @@ struct semid_ds
   unsigned short int sem_nsems;                /* number of semaphores in set */
 };
 
-/* Union used for argument for `semctl'.  */
-union semun
-{
-  int val;                             /* value for SETVAL */
-  struct semid_ds *buf;                        /* buffer for IPC_STAT & IPC_SET */
-  unsigned short int *array;           /* array for GETALL & SETALL */
-  struct seminfo *__buf;               /* buffer for IPC_INFO */
-};
+
+/* The user should define a union like the following to use it for arguments
+   for `semctl'.
+
+   union semun
+   {
+     int val;                          <= value for SETVAL
+     struct semid_ds *buf;             <= buffer for IPC_STAT & IPC_SET
+     unsigned short int *array;                <= array for GETALL & SETALL
+     struct seminfo *__buf;            <= buffer for IPC_INFO
+   };
+
+   Previous versions of this file used to define this union but this is
+   incorrect.  One can test the macro _SEM_SEMUN_UNDEFINED to see whether
+   one must define the unio or not.  */
+#define _SEM_SEMUN_UNDEFINED   1
 
 #ifdef __USE_MISC