repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update mappings to reflect recent changes
[AROS.git]
/
compiler
/
clib
/
pathconf.c
blob
c788ae1638c4db1c4b44e50cd8cd832ac4e4bc1c
1
#include <limits.h>
/* _POSIX_*_MAX */
2
#include <stdio.h>
/* FILENAME_MAX */
3
#include <unistd.h>
/* _PC_* */
4
5
/* FIXME: add autodoc */
6
long
pathconf
(
const char
*
path
,
int
name
)
7
{
8
/* TODO: Implement pathconf() properly */
9
switch
(
name
) {
10
case
_POSIX_NAME_MAX
:
11
return
FILENAME_MAX
;
12
case
_PC_PATH_MAX
:
13
return
PATH_MAX
;
14
default
:
15
return
-
1
;
16
}
17
}