Searched refs:PATH_MAX (Results 1 - 25 of 104) sorted by relevance

12345

/haiku-fatelf/src/bin/bash/include/
H A Dmaxpath.h1 /* maxpath.h - Find out what this system thinks PATH_MAX and NAME_MAX are. */
30 /* If PATH_MAX is not defined, look for MAXPATHLEN */
31 #if !defined (PATH_MAX)
36 # if defined (MAXPATHLEN) && !defined (PATH_MAX)
37 # define PATH_MAX MAXPATHLEN macro
38 # endif /* MAXPATHLEN && !PATH_MAX */
39 #endif /* !PATH_MAX */
52 #if !defined (PATH_MAX) && defined (_POSIX_PATH_MAX)
53 # define PATH_MAX _POSIX_PATH_MAX macro
62 #if !defined (PATH_MAX)
63 # define PATH_MAX macro
71 # undef PATH_MAX macro
72 # define PATH_MAX macro
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dpathmax.h4 /* Define PATH_MAX somehow. Requires sys/types.h.
33 # if !defined PATH_MAX && defined _PC_PATH_MAX && defined HAVE_PATHCONF
34 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ macro
39 # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
43 # if !defined PATH_MAX && defined MAXPATHLEN
44 # define PATH_MAX MAXPATHLEN macro
47 # ifndef PATH_MAX
48 # define PATH_MAX _POSIX_PATH_MAX macro
H A Dchdir-long.h22 #ifndef PATH_MAX
24 # define PATH_MAX MAXPATHLEN macro
28 /* On systems without PATH_MAX, presume that chdir accepts
30 #ifndef PATH_MAX
H A Dcanonicalize.c111 if (dest - rname < PATH_MAX)
113 char *p = xrealloc (rname, PATH_MAX);
116 rname_limit = rname + PATH_MAX;
125 rname = xmalloc (PATH_MAX);
126 rname_limit = rname + PATH_MAX;
168 if (end - start + 1 > PATH_MAX)
171 new_size += PATH_MAX;
228 ((n + len + 1) > PATH_MAX) ? (n + len + 1) : PATH_MAX;
H A Dstat.c72 reports ENOENT for names longer than PATH_MAX, when we want
74 Fortunately, mingw PATH_MAX is small enough for stack
76 char fixed_name[PATH_MAX + 1] = {0};
79 if (PATH_MAX <= len)
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dpathmax.h1 /* Define PATH_MAX somehow. Requires sys/types.h.
29 # if !defined PATH_MAX && defined _PC_PATH_MAX
30 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ macro
35 # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
39 # if !defined PATH_MAX && defined MAXPATHLEN
40 # define PATH_MAX MAXPATHLEN macro
43 # ifndef PATH_MAX
44 # define PATH_MAX _POSIX_PATH_MAX macro
H A Dchdir-long.h22 #ifndef PATH_MAX
24 # define PATH_MAX MAXPATHLEN macro
28 /* On systems without PATH_MAX, presume that chdir accepts
30 #ifndef PATH_MAX
H A Dcanonicalize.c182 if (dest - rname < PATH_MAX)
184 char *p = xrealloc (rname, PATH_MAX);
187 rname_limit = rname + PATH_MAX;
196 rname = xmalloc (PATH_MAX);
197 rname_limit = rname + PATH_MAX;
234 if (end - start + 1 > PATH_MAX)
237 new_size += PATH_MAX;
290 ((n + len + 1) > PATH_MAX) ? (n + len + 1) : PATH_MAX;
/haiku-fatelf/src/bin/sharutils/lib/
H A Dpathmax.h1 /* Define PATH_MAX somehow. Requires sys/types.h.
26 PATH_MAX but might cause redefinition warnings when sys/param.h is
36 #if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
37 #define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) macro
41 #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
45 #if !defined(PATH_MAX) && defined(MAXPATHLEN)
46 #define PATH_MAX MAXPATHLEN macro
49 #ifndef PATH_MAX
50 #define PATH_MAX _POSIX_PATH_MAX macro
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompat.h34 #ifndef PATH_MAX
35 #define PATH_MAX 4096 macro
H A Drealpath.c28 strncpy(resolved_path, path, PATH_MAX);
29 resolved_path[PATH_MAX] = '\0';
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_unlink/
H A D5-1.c21 * name length is greater than PATH_MAX or a component length is greater than
25 * -> If PATH_MAX is positive,
26 * -> create a semaphore with a name bigger than PATH_MAX.
96 #undef PATH_MAX macro
98 long PATH_MAX, NAME_MAX; local
104 /* Get PATH_MAX value */
105 PATH_MAX = pathconf( "/", _PC_PATH_MAX );
108 output( "PATH_MAX: %ld\n", PATH_MAX );
111 if ( PATH_MAX >
[all...]
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dpathphys.c79 char tbuf[PATH_MAX+1], linkbuf[PATH_MAX+1];
87 if (linklen >= PATH_MAX)
92 q = result = (char *)xmalloc (PATH_MAX + 1);
94 /* Even if we get something longer than PATH_MAX, we might be able to
96 if (linklen >= PATH_MAX)
100 workpath = (char *)xmalloc (PATH_MAX + 1);
152 if (q - result >= PATH_MAX)
167 linklen = _path_readlink (result, linkbuf, PATH_MAX);
192 /* If the new path length would overrun PATH_MAX, pun
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_open/
H A D27-1.c11 * length is greater than PATH_MAX.
27 char qname[PATH_MAX*2];
33 //Ensures queue name will have > PATH_MAX chars
34 for(i=0;i<PATH_MAX;i++) {
/haiku-fatelf/headers/posix/sys/
H A Dparam.h12 #define MAXPATHLEN PATH_MAX
/haiku-fatelf/src/kits/network/libbind/isc/
H A Dctl_p.h8 #define MAX_NTOP PATH_MAX
/haiku-fatelf/src/libs/ncurses/ncurses/
H A Dcurses.priv.h86 #ifndef PATH_MAX
88 # define PATH_MAX _POSIX_PATH_MAX macro
90 # define PATH_MAX MAXPATHLEN macro
92 # define PATH_MAX 255 /* the Posix minimum path-size */ macro
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dhome_terminfo.c57 && my_length <= PATH_MAX) {
H A Daccess.c97 && strlen(path) < PATH_MAX) {
98 char head[PATH_MAX];
/haiku-fatelf/src/libs/ncurses/progs/
H A Dprogs.priv.h157 #ifndef PATH_MAX
159 # define PATH_MAX _POSIX_PATH_MAX macro
161 # define PATH_MAX MAXPATHLEN macro
163 # define PATH_MAX 255 /* the Posix minimum pathsize */ macro
/haiku-fatelf/src/bin/zip/
H A Dapi.h16 # ifndef PATH_MAX
17 # define PATH_MAX 260 macro
20 # ifndef PATH_MAX
21 # define PATH_MAX 128 macro
/haiku-fatelf/src/add-ons/kernel/bus_managers/scsi/
H A Dsim_interface.cpp94 name = (char*)malloc(PATH_MAX + 1);
98 snprintf(name, PATH_MAX + 1, "bus/scsi/%d/bus_raw", pathID);
/haiku-fatelf/src/add-ons/kernel/file_systems/ramfs/
H A DSymLink.cpp27 status_t error = (newSize >= 0 && newSize < PATH_MAX ? B_OK : B_BAD_VALUE);
51 int32 len = strnlen(path, PATH_MAX - 1);
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dlrealpath.c60 # if defined (PATH_MAX)
61 # define REALPATH_LIMIT PATH_MAX
109 though, some systems do not limit PATH_MAX (return -1 for
119 /* PATH_MAX is bounded. */
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/ramfs/
H A DSymLink.cpp27 status_t error = (newSize >= 0 && newSize < PATH_MAX ? B_OK : B_BAD_VALUE);
51 int32 len = strnlen(path, PATH_MAX - 1);

Completed in 179 milliseconds

12345