Lines Matching refs:PATH_MAX
20 * name length is greater than PATH_MAX or a component length is greater than
24 * -> If PATH_MAX is positive,
25 * -> create a semaphore with a name bigger than PATH_MAX.
95 long PATH_MAX, NAME_MAX;
101 /* Get PATH_MAX value */
102 PATH_MAX = pathconf("/", _PC_PATH_MAX);
105 output("PATH_MAX: %ld\n", PATH_MAX);
108 if (PATH_MAX > 0) {
109 /* create a semaphore with a name longer than PATH_MAX */
110 sem_name = calloc(PATH_MAX + 1, sizeof(char));
120 sem_name[PATH_MAX] = '\0';
122 memset(sem_name + 1, 'P', PATH_MAX - 1);