2000-02-17 20:39:52 +01:00
|
|
|
/* ANSI C namespace clean utility typedefs */
|
|
|
|
|
|
|
|
/* This file defines various typedefs needed by the system calls that support
|
|
|
|
the C library. Basically, they're just the POSIX versions with an '_'
|
|
|
|
prepended. This file lives in the `sys' directory so targets can provide
|
|
|
|
their own if desired (or they can put target dependant conditionals here).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS__TYPES_H
|
|
|
|
#define _SYS__TYPES_H
|
|
|
|
|
|
|
|
typedef long _off_t;
|
2002-07-18 01:25:44 +02:00
|
|
|
__extension__ typedef long long _off64_t;
|
2002-06-28 00:48:05 +02:00
|
|
|
|
|
|
|
#if defined(__INT_MAX__) && __INT_MAX__ == 2147483647
|
|
|
|
typedef int _ssize_t;
|
|
|
|
#else
|
2000-02-17 20:39:52 +01:00
|
|
|
typedef long _ssize_t;
|
2002-06-28 00:48:05 +02:00
|
|
|
#endif
|
2000-02-17 20:39:52 +01:00
|
|
|
|
2002-08-23 03:56:05 +02:00
|
|
|
#define __need_wint_t
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/* Conversion state information. */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int __count;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
wint_t __wch;
|
2002-09-09 23:42:14 +02:00
|
|
|
unsigned char __wchb[4];
|
2002-08-23 03:56:05 +02:00
|
|
|
} __value; /* Value so far. */
|
|
|
|
} _mbstate_t;
|
|
|
|
|
2002-09-03 21:40:36 +02:00
|
|
|
typedef int _flock_t;
|
|
|
|
|
2000-02-17 20:39:52 +01:00
|
|
|
#endif /* _SYS__TYPES_H */
|