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
Renamed include file aros/_timeval.h to aros/types/timeval_s.h.
[AROS.git]
/
compiler
/
clib
/
pathconf.c
blob
3f2f1e9b989773e564269e3b131fdf7669abe21a
1
#include <limits.h>
/* _POSIX_*_MAX */
2
#include <stdio.h>
/* FILENAME_MAX */
3
#include <unistd.h>
/* _PC_* */
4
5
/* just a hack for grub2 */
6
long
pathconf
(
const char
*
path
,
int
name
)
7
{
8
switch
(
name
) {
9
case
_POSIX_NAME_MAX
:
10
return
FILENAME_MAX
;
11
case
_PC_PATH_MAX
:
12
return
PATH_MAX
;
13
default
:
14
return
-
1
;
15
}
16
}