mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add __snseconds_t and __SNSECONDS_T_TYPE
This commit is contained in:
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* bits/types.h (__snseconds_t): New type.
|
||||||
|
* time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
|
||||||
|
|
||||||
|
* bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
|
||||||
|
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
|
||||||
|
(__SNSECONDS_T_TYPE): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/bits/typesizes.h
|
||||||
|
(__SNSECONDS_T_TYPE): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
|
||||||
|
(__SNSECONDS_T_TYPE): Likewise.
|
||||||
|
|
||||||
2012-04-09 Andreas Jaeger <aj@suse.de>
|
2012-04-09 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
[BZ #2636]
|
[BZ #2636]
|
||||||
|
@ -148,6 +148,7 @@ __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
|
|||||||
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
|
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
|
||||||
__STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
|
__STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
|
||||||
__STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */
|
__STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */
|
||||||
|
__STD_TYPE __SNSECONDS_T_TYPE __snseconds_t; /* Signed count of nanoseconds. */
|
||||||
|
|
||||||
__STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
|
__STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
|
||||||
__STD_TYPE __SWBLK_T_TYPE __swblk_t; /* Type of a swap block maybe? */
|
__STD_TYPE __SWBLK_T_TYPE __swblk_t; /* Type of a swap block maybe? */
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
||||||
#define __FSID_T_TYPE struct { int __val[2]; }
|
#define __FSID_T_TYPE struct { int __val[2]; }
|
||||||
#define __SSIZE_T_TYPE __SWORD_TYPE
|
#define __SSIZE_T_TYPE __SWORD_TYPE
|
||||||
|
#define __SNSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||||
|
|
||||||
/* Number of descriptors that can fit in an `fd_set'. */
|
/* Number of descriptors that can fit in an `fd_set'. */
|
||||||
#define __FD_SETSIZE 1024
|
#define __FD_SETSIZE 1024
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
||||||
#define __FSID_T_TYPE __UQUAD_TYPE
|
#define __FSID_T_TYPE __UQUAD_TYPE
|
||||||
#define __SSIZE_T_TYPE __SWORD_TYPE
|
#define __SSIZE_T_TYPE __SWORD_TYPE
|
||||||
|
#define __SNSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||||
|
|
||||||
/* Number of descriptors that can fit in an `fd_set'. */
|
/* Number of descriptors that can fit in an `fd_set'. */
|
||||||
#define __FD_SETSIZE 256
|
#define __FD_SETSIZE 256
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#define __BLKSIZE_T_TYPE __U32_TYPE
|
#define __BLKSIZE_T_TYPE __U32_TYPE
|
||||||
#define __FSID_T_TYPE struct { int __val[2]; }
|
#define __FSID_T_TYPE struct { int __val[2]; }
|
||||||
#define __SSIZE_T_TYPE __SWORD_TYPE
|
#define __SSIZE_T_TYPE __SWORD_TYPE
|
||||||
|
#define __SNSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||||
|
|
||||||
/* Number of descriptors that can fit in an `fd_set'. */
|
/* Number of descriptors that can fit in an `fd_set'. */
|
||||||
#define __FD_SETSIZE 1024
|
#define __FD_SETSIZE 1024
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
/* size_t is unsigned long int on s390 -m31. */
|
/* size_t is unsigned long int on s390 -m31. */
|
||||||
#define __SSIZE_T_TYPE __SLONGWORD_TYPE
|
#define __SSIZE_T_TYPE __SLONGWORD_TYPE
|
||||||
#endif
|
#endif
|
||||||
|
#define __SNSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||||
|
|
||||||
/* Number of descriptors that can fit in an `fd_set'. */
|
/* Number of descriptors that can fit in an `fd_set'. */
|
||||||
#define __FD_SETSIZE 1024
|
#define __FD_SETSIZE 1024
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
|
||||||
#define __FSID_T_TYPE struct { int __val[2]; }
|
#define __FSID_T_TYPE struct { int __val[2]; }
|
||||||
#define __SSIZE_T_TYPE __SWORD_TYPE
|
#define __SSIZE_T_TYPE __SWORD_TYPE
|
||||||
|
#define __SNSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||||
|
|
||||||
/* Number of descriptors that can fit in an `fd_set'. */
|
/* Number of descriptors that can fit in an `fd_set'. */
|
||||||
#define __FD_SETSIZE 1024
|
#define __FD_SETSIZE 1024
|
||||||
|
@ -120,7 +120,7 @@ typedef __timer_t timer_t;
|
|||||||
struct timespec
|
struct timespec
|
||||||
{
|
{
|
||||||
__time_t tv_sec; /* Seconds. */
|
__time_t tv_sec; /* Seconds. */
|
||||||
long int tv_nsec; /* Nanoseconds. */
|
__snseconds_t tv_nsec; /* Nanoseconds. */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* timespec not defined and <time.h> or need timespec. */
|
#endif /* timespec not defined and <time.h> or need timespec. */
|
||||||
|
Reference in New Issue
Block a user