Searched refs:pathbuf (Results 1 - 25 of 43) sorted by relevance

12

/macosx-10.10.1/sudo-73/src/
H A Diolog.c96 char pathbuf[PATH_MAX]; local
114 len = snprintf(pathbuf, sizeof(pathbuf), "%s/seq", def_iolog_dir);
115 if (len <= 0 || len >= sizeof(pathbuf)) {
117 log_fatal(USE_ERRNO, "%s/seq", pathbuf);
119 fd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
121 log_fatal(USE_ERRNO, "cannot open %s", pathbuf);
128 log_fatal(USE_ERRNO, "cannot read %s", pathbuf);
131 log_fatal(0, "invalid sequence number %s", pathbuf);
151 log_fatal(USE_ERRNO, "Can't write to %s", pathbuf);
223 char pathbuf[PATH_MAX]; local
[all...]
H A Dttyname.c188 char pathbuf[PATH_MAX], **subdirs = NULL, *devname = NULL; local
200 if (sdlen + 1 >= sizeof(pathbuf)) {
205 memcpy(pathbuf, dir, sdlen);
206 pathbuf[sdlen++] = '/';
207 pathbuf[sdlen] = '\0';
215 if (sdlen + d_len >= sizeof(pathbuf))
217 memcpy(&pathbuf[sdlen], dp->d_name, d_len + 1); /* copy NUL too */
224 if (d_len == len && strncmp(pathbuf, ignore_devs[i], len) == 0)
235 if (d_len == len && strncmp(pathbuf, search_devs[i], len) == 0)
248 if (stat(pathbuf,
[all...]
H A Dglob.c587 Char pathbuf[PATH_MAX]; local
592 return glob2(pathbuf, pathbuf + PATH_MAX - 1,
593 pathbuf, pathbuf + PATH_MAX - 1,
603 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, pattern_last, pglob)
604 Char *pathbuf, *pathbuf_last;
620 if (g_lstat(pathbuf, &sb, pglob))
626 (g_stat(pathbuf, &sb, pglob) == 0) &&
634 return globextend(pathbuf, pglo
[all...]
H A Dsudoreplay.c207 static int open_io_fd __P((char *pathbuf, int len, const char *suffix, union io_fd *fdp));
967 char pathbuf[PATH_MAX], **sessions = NULL; local
974 sdlen = strlcpy(pathbuf, dir, sizeof(pathbuf));
975 if (sdlen + 1 >= sizeof(pathbuf)) {
979 pathbuf[sdlen++] = '/';
980 pathbuf[sdlen] = '\0';
1012 len = snprintf(&pathbuf[sdlen], sizeof(pathbuf) - sdlen,
1014 if (len <= 0 || len >= sizeof(pathbuf)
[all...]
/macosx-10.10.1/iodbc-42.5/iodbc/iodbcinst/
H A DSQLWritePrivateProfileString.c145 char pathbuf[1024]; local
163 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, TRUE))
166 pathbuf);
178 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, TRUE))
181 pathbuf);
201 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, TRUE))
204 pathbuf);
[all...]
H A DSQLGetPrivateProfileString.c166 char pathbuf[1024]; local
196 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, FALSE))
199 lpszRetBuffer, cbRetBuffer, pathbuf);
211 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, FALSE))
214 lpszRetBuffer, cbRetBuffer, pathbuf);
234 if (_iodbcadm_getinifile (pathbuf, sizeof (pathbuf), FALSE, FALSE))
238 lpszRetBuffer, cbRetBuffer, pathbuf);
[all...]
/macosx-10.10.1/rsync-45/rsync/popt/
H A Dfindme.c14 char * pathbuf; local
25 start = pathbuf = alloca(strlen(path) + 1);
28 strcpy(pathbuf, path);
/macosx-10.10.1/tcsh-65/tcsh/win32/
H A Dglobals.c186 char *pathbuf; local
189 pathbuf=heap_alloc(MAX_PATH+1);
190 if(!pathbuf)
197 if (GetEnvironmentVariable("PATH",pathbuf,MAX_PATH) ==0) {
201 pathbuf[MAX_PATH]=0;
203 dwret = SearchPath(pathbuf,prog,".EXE",MAX_PATH<<1,progpath,&pext);
211 heap_free(pathbuf);
217 heap_free(pathbuf);
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/sh/
H A Dgetcwd.c88 char *pathbuf; local
102 pathbuf = path;
213 while ((space = pathp - pathbuf) <= namlen)
217 if (pathbuf == path)
225 new = (char *)realloc ((PTR_T) pathbuf, (pathsize * 2));
232 pathbuf = new;
253 size_t len = pathbuf + pathsize - pathp;
272 if (pathbuf != path)
273 free (pathbuf);
286 if ((pathbuf !
[all...]
/macosx-10.10.1/tcsh-65/tcsh/
H A Dglob.c456 struct strbuf pathbuf = strbuf_INIT; local
464 err = glob2(&pathbuf, pattern, pglob, no_match);
465 xfree(pathbuf.s);
475 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument
489 strbuf_terminate(pathbuf);
491 if (Lstat(pathbuf->s, &sbuf))
495 pathbuf->s[pathbuf->len - 1] != SEP) &&
499 (Stat(pathbuf->s, &sbuf) == 0) &&
503 strbuf_append1(pathbuf, SE
535 glob3(struct strbuf *pathbuf, const Char *pattern, const Char *restpattern, glob_t *pglob, int no_match) argument
[all...]
/macosx-10.10.1/xnu-2782.1.97/tools/tests/kqueue_tests/
H A Dkqueue_file_tests.c668 char pathbuf[50]; local
680 makepath(pathbuf, DIR1, FILE1);
683 init_action(&test.t_helpthreadact, SLEEP, CREAT, 2, (void*)pathbuf, NULL);
684 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)pathbuf, (void*)NULL);
688 makepath(pathbuf, DIR1, FILE1);
691 init_action(&test.t_helpthreadact, SLEEP, OPEN, 2, (void*)pathbuf, NULL);
692 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)pathbuf, (void*)NULL);
696 makepath(pathbuf, DIR1, FILE1);
699 init_action(&(test.t_prep_actions[1]), NOSLEEP, CREAT, 2, (void*)pathbuf, (void*)NULL);
700 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)pathbuf, NUL
875 char pathbuf[50]; local
985 char pathbuf[50]; local
1141 char pathbuf[50]; local
[all...]
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/dlcompat-20010505/
H A Ddlopen.c108 char *pathbuf,
123 pathbuf_end = pathbuf + PATH_MAX - 8;
138 q = pathbuf;
141 if(q == pathbuf){ /* empty element */
170 if(stat(pathbuf, stat_buf) == 0){
199 char pathbuf[PATH_MAX]; local
224 if(_dl_search_paths(path, pathbuf, &stat_buf)){
229 DEBUG_PRINT1("found %s -> ", pathbuf);
230 module_path = pathbuf;
106 _dl_search_paths( const char *filename, char *pathbuf, struct stat *stat_buf) argument
/macosx-10.10.1/apache-793/httpd/os/win32/
H A Dutil_win32.c58 char *pathbuf = (char*) wbinpath; local
59 if (!GetModuleFileName(NULL, pathbuf, sizeof(wbinpath))) {
62 *binpath = apr_pstrdup(p, pathbuf);
/macosx-10.10.1/lukemftp-14/tnftp/libnetbsd/
H A Dglob.c491 Char pathbuf[MAXPATHLEN+1]; local
500 return(glob2(pathbuf, pathbuf,
501 pathbuf + (sizeof(pathbuf) / sizeof(*pathbuf)) - 1,
512 glob2(Char *pathbuf, Char *pathend, Char *pathlim, argument
526 if (g_lstat(pathbuf, &sb, pglob))
532 (g_stat(pathbuf, &sb, pglob) == 0) &&
540 return(globextend(pathbuf, pglo
570 glob3(Char *pathbuf, Char *pathend, Char *pathlim, Char *pattern, Char *restpattern, glob_t *pglob, size_t *limit) argument
[all...]
/macosx-10.10.1/Heimdal-398.1.2/lib/roken/
H A Dglob.c496 Char pathbuf[MaxPathLen+1]; local
501 return(glob2(pathbuf, pathbuf, pattern, pglob, limit));
519 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, argument
533 if (g_lstat(pathbuf, &sb, pglob))
539 (g_stat(pathbuf, &sb, pglob) == 0) &&
545 return(globextend(pathbuf, pglob, limit));
563 return(glob3(pathbuf, pathend, pattern, p, pglob,
570 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, argument
589 if ((dirp = g_opendir(pathbuf, pglo
[all...]
/macosx-10.10.1/mail_cmds-30/mail/
H A Dfio.c75 char linebuf[LINESIZE], pathbuf[PATHSIZE]; local
79 (void)snprintf(pathbuf, sizeof(pathbuf), "%s/mail.XXXXXXXXXX", tmpdir);
80 if ((c = mkstemp(pathbuf)) == -1 || (mestmp = Fdopen(c, "r+")) == NULL)
81 err(1, "can't open %s", pathbuf);
82 (void)rm(pathbuf);
/macosx-10.10.1/Security-57031.1.35/Security/sec/securityd/
H A DSecCAIssuerCache.c80 char pathbuf[PATH_MAX]; local
84 memcpy(pathbuf, path, len);
88 if (pathbuf[pos] == '/')
90 pathbuf[pos] = '\0';
92 if (!mkdir(pathbuf, 0777))
H A DSecTrustStoreServer.c85 char pathbuf[PATH_MAX]; local
89 memcpy(pathbuf, path, len);
93 if (pathbuf[pos] == '/')
95 pathbuf[pos] = '\0';
97 if (!mkdir(pathbuf, 0777))
/macosx-10.10.1/OpenSSH-189/openssh/openbsd-compat/
H A Dglob.c611 Char pathbuf[MAXPATHLEN]; local
616 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1,
617 pathbuf, pathbuf+MAXPATHLEN-1,
627 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument
641 if (g_lstat(pathbuf, &sb, pglob))
655 (g_stat(pathbuf, &sb, pglob) == 0) &&
663 return(globextend(pathbuf, pglob, limitp, &sb));
687 return(glob3(pathbuf, pathbuf_las
695 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob, struct glob_lim *limitp) argument
[all...]
/macosx-10.10.1/webdavfs-367/mount.tproj/
H A Dwebdav_cache.c1110 char *pathbuf; local
1114 pathbuf = NULL;
1120 pathbuf = malloc(PATH_MAX);
1121 require_action(pathbuf != NULL, malloc_pathbuf, error = errno);
1126 *pathbuf = '\0';
1131 cur_ptr = pathbuf + PATH_MAX - 1;
1142 require_action((cur_ptr - cur_node->redir_name_length + 1) >= pathbuf,
1158 require_action((cur_ptr - cur_node->name_length + 1) >= pathbuf,
1173 memmove(pathbuf, cur_ptr, path_len + 1);
1179 pathbuf[path_le
[all...]
/macosx-10.10.1/Libc-1044.1.2/gen/FreeBSD/
H A Dglob.c582 Char pathbuf[MAXPATHLEN]; local
587 return(glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1,
597 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument
611 if (g_lstat(pathbuf, &sb, pglob, loc))
624 (g_stat(pathbuf, &sb, pglob, loc) == 0) &&
632 return(globextend(pathbuf, pglob, limit, loc));
655 return(glob3(pathbuf, pathend, pathend_last, pattern, p,
662 glob3(Char *pathbuf, Cha argument
[all...]
/macosx-10.10.1/ncurses-44/ncurses/ncurses/tinfo/
H A Dread_termcap.c778 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local
779 char *pathvec[PVECSIZ]; /* to point to names in pathbuf */
787 p = pathbuf;
799 _nc_str_init(&desc, pathbuf, sizeof(pathbuf));
823 *fname++ = pathbuf; /* tokenize path into vector of names */
1014 char pathbuf[PATH_MAX]; local
1049 (void) sprintf(pathbuf, PRIVATE_CAP, envhome);
1050 ADD_TC(pathbuf, filecount);
/macosx-10.10.1/zsh-61/zsh/Src/
H A Dglob.c103 int pathpos; /* position in pathbuf (needed by pattern code) */
106 char *pathbuf; /* pathname buffer (needed by pattern code) */ variable
163 int gd_pathbufsz; /* size of pathbuf */
218 (N).gd_pathbuf = pathbuf; \
221 pathbuf = NULL; \
226 zfree(pathbuf, pathbufsz); \
229 pathbuf = (N).gd_pathbuf; \
243 /* Add a component to pathbuf: This keeps track of how *
251 DPUTS(!pathbuf, "BUG: pathbuf no
[all...]
/macosx-10.10.1/autofs-246/autofs_kext/
H A Dauto_subr.c273 char *pathbuf, size_t pathbuflen)
291 subdir = &pathbuf[pathbuflen];
330 if (subdir < pathbuf)
335 if (subdir < pathbuf)
370 char pathbuf[MAXPATHLEN]; local
390 &key, &keylen, &subdir, pathbuf, sizeof(pathbuf));
410 char pathbuf[MAXPATHLEN]; local
456 pathbuf, sizeof(pathbuf));
271 get_key_and_subdirectory(struct fninfo *fnip, char *name, int namelen, fnnode_t *parentp, char **keyp, int *keylenp, char **subdirp, char *pathbuf, size_t pathbuflen) argument
532 char pathbuf[MAXPATHLEN]; local
[all...]
/macosx-10.10.1/apache-793/httpd/support/
H A Dsuexec.c201 char pathbuf[512]; local
223 sprintf(pathbuf, "PATH=%s", AP_SAFE_PATH);
224 cleanenv[cidx] = strdup(pathbuf);

Completed in 331 milliseconds

12