Subversion Repositories shark

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/* Copyright (C) 1999 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
3
 
4
   The GNU C Library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Library General Public License as
6
   published by the Free Software Foundation; either version 2 of the
7
   License, or (at your option) any later version.
8
 
9
   The GNU C Library is distributed in the hope that it will be useful,
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
   Library General Public License for more details.
13
 
14
   You should have received a copy of the GNU Library General Public
15
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
16
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
   Boston, MA 02111-1307, USA.  */
18
 
19
#ifndef _UNISTD_H
20
# error "Never include this file directly.  Use <unistd.h> instead"
21
#endif
22
 
23
#include <bits/wordsize.h>
24
 
25
/* This header should define the following symbols under the described
26
   situations.  A value `1' means that the model is always supported,
27
   `-1' means it is never supported.  Undefined means it cannot be
28
   statically decided.
29
 
30
   _XBS5_ILP32_OFF32    32bit int, long, pointers, and off_t type
31
   _XBS5_ILP32_OFFBIG   32bit int, long, and pointers and larger off_t type
32
 
33
   _XBS5_LP64_OFF32     64bit long and pointers and 32bit off_t type
34
   _XBS5_LPBIG_OFFBIG   64bit long and pointers and large off_t type
35
*/
36
 
37
#if __WORDSIZE == 64
38
 
39
/* We can never provide environments with 32-bit wide pointers.  */
40
# define _XBS5_ILP32_OFF32      -1
41
# define _XBS5_ILP32_OFFBIG     -1
42
 
43
/* By default we have 64-bit wide `long int', pointers and `off_t'.  */
44
# define _XBS5_LP64_OFF32       1
45
# define _XBS5_LPBIG_OFFBIG     1
46
 
47
#else /* __WORDSIZE == 32 */
48
 
49
/* By default we have 32-bit wide `int', `long int', pointers and `off_t'.  */
50
# define _XBS5_ILP32_OFF32      1
51
 
52
/* We optionally provide an environment with the above size but an 64-bit
53
   side `off_t'.  Therefore we don't define _XBS5_ILP32_OFFBIG.  */
54
 
55
/* We can never provide environments with 64-bit wide pointers.  */
56
# define _XBS5_LP64_OFF64       -1
57
# define _XBS5_LPBIG_OFFBIG     -1
58
 
59
#endif /* __WORDSIZE == 32 */