Rev 80 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | |||
22 | /* |
||
23 | * Copyright (C) 1999 Massimiliano Giorgi |
||
24 | * |
||
25 | * This program is free software; you can redistribute it and/or modify |
||
26 | * it under the terms of the GNU General Public License as published by |
||
27 | * the Free Software Foundation; either version 2 of the License, or |
||
28 | * (at your option) any later version. |
||
29 | * |
||
30 | * This program is distributed in the hope that it will be useful, |
||
31 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
32 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
33 | * GNU General Public License for more details. |
||
34 | * |
||
35 | * You should have received a copy of the GNU General Public License |
||
36 | * along with this program; if not, write to the Free Software |
||
37 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
38 | * |
||
39 | */ |
||
40 | |||
41 | /* |
||
80 | pj | 42 | * CVS : $Id: limits.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
2 | pj | 43 | * |
44 | * File: $File$ |
||
80 | pj | 45 | * Revision: $Revision: 1.2 $ |
46 | * Last update: $Date: 2003-03-13 13:37:58 $ |
||
2 | pj | 47 | */ |
48 | |||
49 | #ifndef __FS_LIMITS_H |
||
50 | #define __FS_LIMITS_H |
||
51 | |||
52 | #include <bits/limits.h> |
||
1689 | fabio | 53 | #include <arch/sys/cdefs.h> |
2 | pj | 54 | |
80 | pj | 55 | __BEGIN_DECLS |
56 | |||
2 | pj | 57 | /* max filename lenght in chars */ |
58 | #define MAXFILENAMELEN FILENAME_MAX |
||
59 | |||
60 | /* max pathname lenght in chars */ |
||
61 | #define MAXPATHLEN MAXPATHNAMELEN |
||
62 | |||
63 | /* every process can open MAXOPENFILES */ |
||
64 | /* (is equal to MAXSYSFILE because the file descriptors table */ |
||
65 | /* is global to all task and not local by default) */ |
||
66 | |||
67 | /*#define MAXOPENFILES 128*/ |
||
68 | /* defined into bits/limits.h */ |
||
69 | |||
70 | extern __inline__ int getdtablesize(void) |
||
71 | { return MAXOPENFILES; } |
||
72 | |||
73 | /* PS: note that an hartik task can be considered threads or process |
||
74 | * see fsconfig.h for more info |
||
75 | */ |
||
76 | |||
77 | /* max open file into the system */ |
||
78 | /* globally the system can open MAXSYSFILE files */ |
||
79 | #define MAXSYSFILE MAXOPENFILES |
||
80 | |||
81 | /* |
||
82 | * these are used by GLIBC |
||
83 | */ |
||
84 | |||
85 | //#define NGROUPS_MAX 0 /* No supplementary groups. */ |
||
86 | //#define ARG_MAX 5120 |
||
87 | //#define CHILD_MAX 25 |
||
88 | #ifndef OPEN_MAX |
||
89 | #define OPEN_MAX MAXOPENFILES |
||
90 | #endif |
||
91 | //#define LINK_MAX 1000 |
||
92 | //#define MAX_CANON 256 |
||
93 | |||
94 | /* For SVR3, this is 14. For SVR4, it is 255, at least on ufs |
||
95 | file systems, even though the System V limits.h incorrectly |
||
96 | defines it as 14. Giving it a value which is too large |
||
97 | is harmless (it is a maximum). */ |
||
98 | #ifndef NAME_MAX |
||
99 | #define NAME_MAX MAXFILENAMELEN |
||
100 | #endif |
||
101 | #ifndef PATH_MAX |
||
102 | #define PATH_MAX MAXPATHNAMELEN |
||
103 | #endif |
||
104 | |||
80 | pj | 105 | __END_DECLS |
2 | pj | 106 | #endif |
107 | |||
108 | |||
109 | |||
110 | |||
111 |