ReactOS
0.4.16-dev-197-g92996da
param.h
Go to the documentation of this file.
1
/* @(#)param.h 1.7 12/01/22 Copyright 2006-2011 J. Schilling */
2
/*
3
* Abstraction from sys/param.h
4
*
5
* Copyright (c) 2006-2011 J. Schilling
6
*/
7
/*
8
* The contents of this file are subject to the terms of the
9
* Common Development and Distribution License, Version 1.0 only
10
* (the "License"). You may not use this file except in compliance
11
* with the License.
12
*
13
* See the file CDDL.Schily.txt in this distribution for details.
14
*
15
* When distributing Covered Code, include this CDDL HEADER in each
16
* file and include the License file CDDL.Schily.txt from this distribution.
17
*/
18
19
#ifndef _SCHILY_PARAM_H
20
#define _SCHILY_PARAM_H
21
22
#ifndef _SCHILY_MCONFIG_H
23
#include <
schily/mconfig.h
>
24
#endif
25
26
/*
27
* Let us include system defined types first.
28
*/
29
#ifndef _SCHILY_TYPES_H
30
#include <
schily/types.h
>
31
#endif
32
#ifdef HAVE_SYS_PARAM_H
33
#ifndef _INCL_SYS_PARAM_H
34
#include <
sys/param.h
>
/* Must be before limits.h */
35
#define _INCL_SYS_PARAM_H
36
#endif
37
#endif
38
#ifndef _SCHILY_LIMITS_H
39
#include <
schily/limits.h
>
/* For _SC_CLK_TCK */
40
#endif
41
#ifndef _SCHILY_UNISTD_H
42
#include <
schily/unistd.h
>
/* For _SC_CLK_TCK */
43
#endif
44
45
#ifndef NBBY
46
#define NBBY 8
/* Number of bits per byte */
47
#endif
48
49
#ifndef DEV_BSIZE
50
#define DEV_BSIZE 512
/* UNIX Device Block size */
51
#endif
52
53
/*
54
* NODEV may be in sys/param.h keep this definition past the include.
55
*/
56
#ifndef NODEV
57
#define NODEV ((dev_t)-1L)
58
#endif
59
60
#ifndef HZ
61
#if defined(_SC_CLK_TCK)
62
#define HZ ((clock_t)sysconf(_SC_CLK_TCK))
63
#else
64
#define HZ 100
65
#endif
66
#endif
67
68
/*
69
* Do we need to define _XOPEN_SOURCE to get NZERO?
70
* On Linux, it is needed but on Linux NZERO is 20.
71
*/
72
#ifndef NZERO
/* for nice(2) */
73
#define NZERO 20
74
#endif
75
76
#endif
/* _SCHILY_PARAM_H */
param.h
mconfig.h
types.h
limits.h
unistd.h
sdk
tools
mkisofs
schilytools
include
schily
param.h
Generated on Wed Oct 30 2024 06:13:52 for ReactOS by
1.9.6