+2011-09-06 Robert Dewar <dewar@adacore.com>
+
+ * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
+
+2011-09-06 Pascal Obry <obry@adacore.com>
+
+ * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
+ types.
+
2011-09-06 Robert Dewar <dewar@adacore.com>
* g-socket.adb: Minor reformatting
private
- type sigset_t is array (0 .. 127) of unsigned_char;
+ type sigset_t is
+ array (0 .. OS_Constants.SIZEOF_sigset - 1) of unsigned_char;
pragma Convention (C, sigset_t);
for sigset_t'Alignment use Interfaces.C.unsigned_long'Alignment;
type unsigned_long_long_t is mod 2 ** 64;
-- Local type only used to get the alignment of this type below
- type pthread_attr_t is
- array (1 .. OS_Constants.PTHREAD_ATTR_SIZE) of unsigned_char;
+ subtype char_array is Interfaces.C.char_array;
+
+ type pthread_attr_t is record
+ Data : char_array (1 .. OS_Constants.PTHREAD_ATTR_SIZE);
+ end record;
pragma Convention (C, pthread_attr_t);
for pthread_attr_t'Alignment use Interfaces.C.unsigned_long'Alignment;
- type pthread_condattr_t is
- array (1 .. OS_Constants.PTHREAD_CONDATTR_SIZE) of unsigned_char;
+ type pthread_condattr_t is record
+ Data : char_array (1 .. OS_Constants.PTHREAD_CONDATTR_SIZE);
+ end record;
pragma Convention (C, pthread_condattr_t);
for pthread_condattr_t'Alignment use Interfaces.C.int'Alignment;
- type pthread_mutexattr_t is
- array (1 .. OS_Constants.PTHREAD_MUTEXATTR_SIZE) of unsigned_char;
+ type pthread_mutexattr_t is record
+ Data : char_array (1 .. OS_Constants.PTHREAD_MUTEXATTR_SIZE);
+ end record;
pragma Convention (C, pthread_mutexattr_t);
for pthread_mutexattr_t'Alignment use Interfaces.C.int'Alignment;
- type pthread_mutex_t is
- array (1 .. OS_Constants.PTHREAD_MUTEX_SIZE) of unsigned_char;
+ type pthread_mutex_t is record
+ Data : char_array (1 .. OS_Constants.PTHREAD_MUTEX_SIZE);
+ end record;
pragma Convention (C, pthread_mutex_t);
for pthread_mutex_t'Alignment use Interfaces.C.unsigned_long'Alignment;
- type pthread_cond_t is
- array (1 .. OS_Constants.PTHREAD_COND_SIZE) of unsigned_char;
+ type pthread_cond_t is record
+ Data : char_array (1 .. OS_Constants.PTHREAD_COND_SIZE);
+ end record;
pragma Convention (C, pthread_cond_t);
for pthread_cond_t'Alignment use unsigned_long_long_t'Alignment;