Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 219) sorted by relevance

123456789

/original-bsd/lib/libc/stdio/
H A Dmktemp.c21 mkstemp(path) in mkstemp() argument
22 char *path; in mkstemp()
26 return (_gettemp(path, &fd) ? fd : -1);
30 mktemp(path) in mktemp() argument
31 char *path; in mktemp()
33 return(_gettemp(path, (int *)NULL) ? path : (char *)NULL);
37 _gettemp(path, doopen) in _gettemp() argument
38 char *path; in _gettemp()
58 if (trv <= path)
62 if (stat(path, &sbuf))
[all …]
/original-bsd/contrib/sort/
H A Dtmp.c37 char pathb[_POSIX_PATH_MAX], *path; in ftmp() local
39 path = pathb; in ftmp()
45 (void)snprintf(path, in ftmp()
48 memmove(path, _PATH_SORTTMP, sizeof(_PATH_SORTTMP)); in ftmp()
52 path = mktemp(path); in ftmp()
53 if (!path) in ftmp()
55 if (!(fd = fopen(path, "w+"))) in ftmp()
56 err(2, "%s", path); in ftmp()
57 (void)unlink(path); in ftmp()
/original-bsd/usr.bin/ranlib/
H A Dmisc.c31 char *envtmp, path[MAXPATHLEN]; in tmp() local
34 (void)sprintf(path, "%s%s", envtmp, strrchr(_PATH_RANTMP, '/')); in tmp()
36 bcopy(_PATH_RANTMP, path, sizeof(_PATH_RANTMP)); in tmp()
40 if ((fd = mkstemp(path)) == -1) in tmp()
41 error(path); in tmp()
42 (void)unlink(path); in tmp()
59 rname(path) in rname() argument
60 char *path; in rname()
64 return((ind = rindex(path, '/')) ? ind + 1 : path);
/original-bsd/usr.bin/make/
H A Ddir.c474 Lst_Close(path);
730 Lst_Close (path);
747 Lst_Close (path);
801 Lst_Close (path);
839 Lst_Close (path);
946 fullName = gn->path;
976 gn->path = fullName;
1116 Lst_Close (path);
1171 Dir_ClearPath(path) in Dir_ClearPath() argument
1244 Dir_PrintPath (path) in Dir_PrintPath() argument
[all …]
/original-bsd/old/dbx/tests/
H A Dnoenv.c21 char *path; local
25 path = getenv("PATH");
26 if (path == NULL) {
27 path = "";
30 cp = index(path, ':');
36 sprintf(fullname, "%s/%s", path, name);
39 path = cp + 1;
40 cp = index(path, ':');
/original-bsd/local/toolchest/ksh/sh/
H A Dservice.c201 path = cpystak(path);
218 path = prune(path,valup(np));
220 return(path);
241 path = cpystak(path);
245 path=catpath(path,name);
278 path=catpath(path,name);
349 while(path=execs(path,t));
376 path++;
379 s = path;
380 path=catpath(path,base);
[all …]
H A Dapollo.c52 register char *path; local
57 path = prog;
61 if((path = fullname(prog))==NULL)
63 endstak(path+strlen(path));
69 xitval = invokeve(path,INV_WAIT,conlist,com+1,arge);
73 if(get_shell(path,iname)<0)
/original-bsd/usr.bin/ar/
H A Dmisc.c39 char path[MAXPATHLEN]; in tmp() local
47 (void)sprintf(path, "%s/%s", envtmp, _NAME_ARTMP); in tmp()
49 strcpy(path, _PATH_ARTMP); in tmp()
53 if ((fd = mkstemp(path)) == -1) in tmp()
55 (void)unlink(path); in tmp()
91 rname(path) in rname() argument
92 char *path; in rname()
96 return ((ind = strrchr(path, '/')) ? ind + 1 : path);
/original-bsd/usr.bin/uucp/libuu/
H A Dgetpwinfo.c24 guinfo(uid, name, path) in guinfo() argument
26 register char *path, *name;
42 *path = '\0';
47 strcpy(path, pwd->pw_dir);
59 gninfo(name, uid, path) in gninfo() argument
60 char *path, *name; in gninfo()
68 *path = '\0';
72 strcpy(path, pwd->pw_dir);
/original-bsd/usr.bin/locate/code/
H A Dlocate.code.c81 register char *cp, *oldpath, *path; local
107 path = buf2;
109 while (fgets(path, sizeof(buf2), stdin) != NULL) {
111 cp = path + strlen(path) - 1;
112 if (cp > path && *cp == '\n')
116 for (cp = path; *cp != '\0'; cp++) {
122 for (cp = path; *cp == *oldpath; cp++, oldpath++)
125 count = cp - path;
153 if (path == buf1) { /* swap pointers */
154 path = buf2;
[all …]
/original-bsd/usr.bin/f77/libU77/test/
H A Dgwdtst.f10 character*50 path
13 ier = getcwd(path)
14 write(*,*) ier, path
16 ier = getcwd(path)
17 write(*,*) ier, path
/original-bsd/usr.bin/locate/bigram/
H A Dlocate.bigram.c37 register char *oldpath = buf1, *path = buf2; in main() local
39 while ( fgets ( path, sizeof(buf2), stdin ) != NULL ) { in main()
42 for ( cp = path; *cp == *oldpath; cp++, oldpath++ ) in main()
53 if ( path == buf1 ) /* swap pointers */ in main()
54 path = buf2, oldpath = buf1; in main()
56 path = buf1, oldpath = buf2; in main()
/original-bsd/games/cribbage/
H A Dinstr.c34 char *pager, *path; in instructions() local
46 if (!(path = getenv("PAGER"))) in instructions()
47 path = _PATH_MORE; in instructions()
48 if (pager = rindex(path, '/')) in instructions()
50 pager = path; in instructions()
51 execlp(path, pager, _PATH_INSTR, (char *)NULL); in instructions()
/original-bsd/sbin/mount_portal/
H A Dconf.c31 typedef struct path path; typedef
32 struct path { struct
92 path *p0; in pinsert()
101 path *p = (path *) q;
117 static path *palloc(cline, lno) in palloc()
124 path *p;
156 p = ALLOC(path);
194 path *p; in pfree()
219 pfree((path *) q);
249 path *p = palloc(cline, nread+1);
[all …]
/original-bsd/usr.bin/uucp/port/
H A Dmkdir.c19 mkdir(path, mode) in mkdir() argument
20 char *path; in mkdir()
28 (void) chmod(path, mode);
31 (void) execlp("mkdir", "mkdir", path, (char *)NULL);
32 perror(path);
/original-bsd/libexec/mail.local/
H A Dmail.local.c277 (void)snprintf(path, sizeof(path), "%s/%s", _PATH_MAILDIR, name);
301 lockmbox(path);
302 if (lstat(path, &sb)) {
303 mbfd = open(path,
426 lockmbox(path) in lockmbox() argument
427 char *path; in lockmbox()
759 mkstemp(path) in mkstemp() argument
760 char *path; in mkstemp()
777 _gettemp(path, doopen) in _gettemp() argument
778 char *path; in _gettemp()
[all …]
/original-bsd/usr.sbin/config.new/
H A Dfiles.c62 addfile(path, opts, flags, rule) in addfile() argument
63 const char *path; in addfile()
87 error("file %s listed again", path);
92 tail = rindex(path, '/');
94 tail = path;
100 error("invalid pathname `%s'", path);
117 error("is overriden by %s", path);
123 path, base);
137 fi->fi_path = path;
142 if (ht_insert(pathtab, path, fi))
[all …]
/original-bsd/lib/libc/compat-43/
H A Dcreat.c15 creat(const char *path, mode_t mode) in creat() argument
17 creat(path, mode) in creat()
18 char *path; in creat()
22 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
/original-bsd/usr.sbin/sysctl/
H A Dpathconf.c59 char *path; local
86 path = *argv++;
87 if (strcmp(path, "-") == 0)
91 listall(path, &pclist);
97 parse(path, *argv, 1);
104 listall(path, lp) in listall() argument
105 char *path; in listall()
115 parse(path, lp->list[lvl2].ctl_name, Aflag);
/original-bsd/sbin/savecore/
H A Dsavecore.c300 char *rawp, path[MAXPATHLEN]; in save_core() local
306 (void)snprintf(path, sizeof(path), "%s/bounds", dirname); in save_core()
307 if ((fp = fopen(path, "r")) == NULL) in save_core()
317 if ((fp = fopen(path, "w")) == NULL) in save_core()
318 syslog(LOG_ERR, "%s: %m", path); in save_core()
326 (void)snprintf(path, sizeof(path), "%s/vmcore.%d%s", in save_core()
353 compress ? "compressed " : "", path); in save_core()
388 (void)snprintf(path, sizeof(path), "%s/vmunix.%d%s", in save_core()
510 char buf[100], path[MAXPATHLEN]; in check_space() local
524 (void)snprintf(path, sizeof(path), "%s/minfree", dirname); in check_space()
[all …]
/original-bsd/bin/mkdir/
H A Dmkdir.c89 build(path) in build() argument
90 char *path; in build()
97 p = path;
124 if (stat(path, &sb)) {
126 mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
127 warn("%s", path);
/original-bsd/usr.bin/nohup/
H A Dnohup.c61 char *p, path[MAXPATHLEN]; in dofile() local
68 (void)strcpy(path, p); in dofile()
69 (void)strcat(path, "/"); in dofile()
70 (void)strcat(path, FILENAME); in dofile()
71 if ((fd = open(p = path, in dofile()
/original-bsd/usr.bin/whereis/
H A Dwhereis.c39 char *p, *t, *std, path[MAXPATHLEN]; local
80 (void)snprintf(path, sizeof(path), "%s/%s", t, *argv);
81 if (!stat(path, &sb))
82 (void)printf("%s\n", path);
/original-bsd/usr.sbin/mtree/
H A Dverify.c28 static char path[MAXPATHLEN]; variable
40 miss(root, path); in verify()
135 (void)printf("missing: %s", path);
149 else if (mkdir(path, S_IRWXU))
167 if (chown(path, p->st_uid, p->st_gid)) {
169 path, strerror(errno));
172 if (chmod(path, p->st_mode))
174 path, strerror(errno));
/original-bsd/lib/libc/sys/
H A Dtruncate.c20 truncate(path, length) in truncate() argument
21 char *path; in truncate()
25 return(__syscall((quad_t)SYS_truncate, path, 0, length));

123456789