1996-01-02 07:19:15 +01:00
|
|
|
/* Copyright (C) 1991, 1992, 1994, 1995, 1996 Free Software Foundation, Inc.
|
1996-11-15 05:08:00 +01:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
1995-02-18 02:27:10 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_TYPES_H
|
|
|
|
|
|
|
|
#define _SYS_TYPES_H 1
|
|
|
|
#include <features.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
#include <gnu/types.h>
|
|
|
|
|
|
|
|
#ifdef __USE_BSD
|
1996-10-02 03:40:17 +02:00
|
|
|
typedef __u_char u_char;
|
|
|
|
typedef __u_short u_short;
|
|
|
|
typedef __u_int u_int;
|
|
|
|
typedef __u_long u_long;
|
|
|
|
typedef __quad_t quad_t;
|
|
|
|
typedef __u_quad_t u_quad_t;
|
|
|
|
typedef __fsid_t fsid_t;
|
1995-02-18 02:27:10 +01:00
|
|
|
#endif
|
|
|
|
|
1996-10-02 03:40:17 +02:00
|
|
|
typedef __dev_t dev_t;
|
|
|
|
typedef __gid_t gid_t;
|
|
|
|
typedef __ino_t ino_t;
|
|
|
|
typedef __mode_t mode_t;
|
|
|
|
typedef __nlink_t nlink_t;
|
|
|
|
typedef __off_t off_t;
|
|
|
|
typedef __loff_t loff_t;
|
|
|
|
typedef __pid_t pid_t;
|
|
|
|
typedef __uid_t uid_t;
|
|
|
|
|
|
|
|
#ifndef ssize_t
|
|
|
|
typedef __ssize_t ssize_t;
|
|
|
|
#define ssize_t ssize_t
|
1995-02-18 02:27:10 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __USE_BSD
|
1996-10-02 03:40:17 +02:00
|
|
|
typedef __daddr_t daddr_t;
|
|
|
|
typedef __caddr_t caddr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __USE_SVID
|
|
|
|
typedef __key_t key_t;
|
1995-02-18 02:27:10 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __need_time_t
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#define __need_size_t
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __USE_MISC
|
|
|
|
/* Old compatibility names for C types. */
|
Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
460800 baud.
* sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
* sysdeps/unix/sysv/linux/Makefile (headers): Add
alpha/ptrace.h.
* sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
* sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
scalbnf.
* sysdeps/generic/sigset.h (__sigismember, __sigaddset,
__sigdelset): Add declaration to keep ANSI compilers quiet.
* sysdeps/alpha/__math.h (cabs): Remove underscores from struct
__cabs_complex member names in call to __hypot().
* sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
* sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
name collision with math library.
* sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
of divrem.S.
* sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
to simplify declaration of leaf functions.
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/ffs.S,
sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/syscall.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
* sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
define.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
ptrace, and sysctl.
* sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
* sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
dynamic recognition of platform type.
(_bus_base): New function.
* sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
* sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
they produce ugly warnings by gcc.
* posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/alpha/setjmp.S: Must establish global pointer before
address of __sigsetjmp_aux can be loaded.
1996-05-23 07:33:49 +02:00
|
|
|
typedef unsigned long int ulong;
|
1995-02-18 02:27:10 +01:00
|
|
|
typedef unsigned short int ushort;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __USE_BSD
|
|
|
|
/* These size-specific names are used by some of the inet code. */
|
|
|
|
|
1996-02-08 03:10:15 +01:00
|
|
|
#if !defined (__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7
|
|
|
|
|
1995-02-18 02:27:10 +01:00
|
|
|
typedef char int8_t;
|
|
|
|
typedef unsigned char u_int8_t;
|
1995-07-26 12:14:02 +02:00
|
|
|
typedef short int int16_t;
|
|
|
|
typedef unsigned short int u_int16_t;
|
|
|
|
typedef int int32_t;
|
|
|
|
typedef unsigned int u_int32_t;
|
|
|
|
#ifdef __GNUC__
|
|
|
|
typedef long long int int64_t;
|
|
|
|
typedef unsigned long long int u_int64_t;
|
|
|
|
#endif
|
1996-10-02 03:40:17 +02:00
|
|
|
typedef int register_t;
|
1995-07-26 12:14:02 +02:00
|
|
|
|
1996-02-08 03:10:15 +01:00
|
|
|
#else
|
|
|
|
|
|
|
|
/* For GCC 2.7 and later, we can use specific type-size attributes. */
|
|
|
|
#define __intN_t(N, MODE) \
|
|
|
|
typedef int int##N##_t __attribute__ ((__mode__ (MODE)))
|
|
|
|
#define __u_intN_t(N, MODE) \
|
|
|
|
typedef unsigned int u_int##N##_t __attribute__ ((__mode__ (MODE)))
|
|
|
|
|
|
|
|
__intN_t (8, __QI__);
|
|
|
|
__u_intN_t (8, __QI__);
|
|
|
|
__intN_t (16, __HI__);
|
|
|
|
__u_intN_t (16, __HI__);
|
|
|
|
__intN_t (32, __SI__);
|
|
|
|
__u_intN_t (32, __SI__);
|
|
|
|
__intN_t (64, __DI__);
|
|
|
|
__u_intN_t (64, __DI__);
|
|
|
|
|
|
|
|
typedef int register_t __attribute__ ((__mode__ (__word__)));
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
1995-07-26 12:14:02 +02:00
|
|
|
/* Some code from BIND tests this macro to see if the types above are
|
|
|
|
defined. */
|
|
|
|
#define __BIT_TYPES_DEFINED__ 1
|
1995-02-18 02:27:10 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1996-01-02 07:19:15 +01:00
|
|
|
#ifdef __USE_BSD
|
|
|
|
/* In BSD <sys/types.h> is expected to define BYTE_ORDER. */
|
|
|
|
#include <endian.h>
|
1995-02-18 02:27:10 +01:00
|
|
|
|
Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
* sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
* malloc/malloc-size.c (malloc_usable_size): Renamed from
malloc_object_allocation_size.
* malloc/malloc.h: Fix decl.
* sys/select.h: New file, wrapper header.
* posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
fd_set, associated macros, and select decl.
* sysdeps/posix/isfdtype.c: New file.
Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
The latest Japanese proposal for POSIX locales renames the
CHARMAP keyword in locale definition files to CHARCONV.
* locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
function ctype_is_charmap to ctype_is_charconv.
* locale/programs/locfile-kw.gperf: Replace charmap keyword with
charconv.
* locale/programs/locfile-token.h: Add definition of token
charconv.
* locale/programs/locfile.c: Recognize charconv keyword. Rename
lables according to this.
* locale/weight.h (get_weight): Cast constants to prevent
warnings.
* stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
string/strxfrm.c: Add some more casts to prevent signed<->unsigned
warnings.
New stuff described in P1003.1g.
* misc/Makefile (headers): Add sys/select.h.
(routines): Add pselect.
* misc/sys/select.h: New file. Declare select functions and
needed data types and macros.
* sysdeps/generic/pselect.c: New file. Add generic implementation
of pselect() function which uses select().
* posix/getconf.c: Recognize new variables from P1003.1g.
* posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
_POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
* posix/unistd.h: Add description of the P1003.1g variables.
* sysdeps/generic/confname.h: Define _SC_* values for new
variables.
* sysdeps/posix/fpathconf.c (fpathconf): Add handling of
_PC_SOCK_MAXBUF.
* sysdeps/stub/fpathconf.c (fpathconf): Ditto.
* sysdeps/posix/sysconf.c (sysconf): Add handling of new
P1003.1g variables.
* sysdeps/stub/sysconf.c (sysconf): Ditto.
* sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
_POSIX_SELECT since Linux has this.
* socket/Makefile (routines): Add isfdtype.
* sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
* sysdeps/stub/isfdtype.c: New file. Stub implementation of
isfdtype.
* wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1996-07-04 02:07:18 +02:00
|
|
|
/* It also defines `fd_set' and the FD_* macros for `select'. */
|
|
|
|
#include <sys/select.h>
|
1995-02-18 02:27:10 +01:00
|
|
|
#endif /* Use BSD. */
|
|
|
|
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* sys/types.h */
|