Rev 2 | 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 | * Copyright (C) 2000 Massimiliano Giorgi |
||
23 | * |
||
24 | * This program is free software; you can redistribute it and/or modify |
||
25 | * it under the terms of the GNU General Public License as published by |
||
26 | * the Free Software Foundation; either version 2 of the License, or |
||
27 | * (at your option) any later version. |
||
28 | * |
||
29 | * This program is distributed in the hope that it will be useful, |
||
30 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
32 | * GNU General Public License for more details. |
||
33 | * |
||
34 | * You should have received a copy of the GNU General Public License |
||
35 | * along with this program; if not, write to the Free Software |
||
36 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
37 | * |
||
38 | */ |
||
39 | |||
40 | /* |
||
41 | * CVS : $Id: fpathcon.c,v 1.1.1.1 2002-03-29 14:12:53 pj Exp $ |
||
42 | * |
||
43 | * File: $File$ |
||
44 | * Revision: $Revision: 1.1.1.1 $ |
||
45 | * Last update: $Date: 2002-03-29 14:12:53 $ |
||
46 | */ |
||
47 | |||
48 | #include <errno.h> |
||
49 | #include <limits.h> |
||
50 | #include <time.h> |
||
51 | #include <unistd.h> |
||
52 | |||
53 | /* it is not conforming to POSIX (the filedescis not check/used) */ |
||
54 | |||
55 | long fpathconf(int filedes, int name) |
||
56 | { |
||
57 | switch (name) { |
||
58 | case _PC_ASYNC_IO : return _POSIX_ASYNC_IO; |
||
59 | case _PC_CHOWN_RESTRICTED : return _POSIX_CHOWN_RESTRICTED; |
||
60 | case _PC_LINK_MAX : return _POSIX_LINK_MAX; |
||
61 | case _PC_MAX_CANON : return _POSIX_MAX_CANON; |
||
62 | case _PC_MAX_INPUT : return _POSIX_MAX_INPUT; |
||
63 | case _PC_NAME_MAX : return _POSIX_NAME_MAX; |
||
64 | case _PC_NO_TRUNC : return _POSIX_NO_TRUNC; |
||
65 | case _PC_PATH_MAX : return _POSIX_PATH_MAX; |
||
66 | case _PC_PIPE_BUF : return _POSIX_PIPE_BUF; |
||
67 | case _PC_PRIO_IO : return _POSIX_PRIO_IO; |
||
68 | case _PC_SYNC_IO : return _POSIX_SYNC_IO; |
||
69 | case _PC_VDISABLE : return _POSIX_VDISABLE; |
||
70 | } |
||
71 | errno=EINVAL; |
||
72 | return -1; |
||
73 | } |