OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [cygwin/] [sys/] [param.h] - Blame information for rev 1010

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/* sys/param.h
2
 
3
   Copyright 2001 Red Hat, Inc.
4
 
5
   This software is a copyrighted work licensed under the terms of the
6
   Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
7
   details. */
8
 
9
#ifndef _SYS_PARAM_H
10
#define _SYS_PARAM_H
11
 
12
#include <sys/types.h>
13
/* Linux includes limits.h, but this is not universally done. */
14
#include <limits.h>
15
 
16
/* Max number of open files.  The Posix version is OPEN_MAX.  */
17
/* Number of fds is virtually unlimited in cygwin, but we must provide
18
   some reasonable value for Posix conformance */
19
#define NOFILE          8192
20
 
21
/* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */
22
#define NGROUPS         16
23
 
24
/* Ticks/second for system calls such as times() */
25
/* FIXME: is this the appropriate value? */
26
#define HZ              1000
27
 
28
/* Max hostname size that can be dealt with */
29
/* FIXME: is this the appropriate value? */
30
#define MAXHOSTNAMELEN  64
31
 
32
/* This is defined to be the same as MAX_PATH which is used internally.
33
   The Posix version is PATH_MAX.  */
34
#define MAXPATHLEN      (260 - 1 /*NUL*/)
35
 
36
/* Some autoconf'd packages check for endianness.  When cross-building we
37
   can't run programs on the target.  Fortunately, autoconf supports the
38
   definition of byte order in sys/param.h (that's us!).
39
   The values here are the same as used in gdb/defs.h (are the more
40
   appropriate values?).  */
41
#define BIG_ENDIAN      4321
42
#define LITTLE_ENDIAN   1234
43
 
44
/* All known win32 systems are little endian.  */
45
#define BYTE_ORDER      LITTLE_ENDIAN
46
 
47
#ifndef NULL
48
#define NULL            0L
49
#endif
50
 
51
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.