Searched defs:pathname (Results 1 - 7 of 7) sorted by relevance

/ast/src/lib/libast/comp/
H A Ddirname.c33 extern char *dirname(register char *pathname) argument
37 for(last=pathname; *last; last++);
39 while(last>pathname && *--last=='/');
41 for(;last>pathname && *last!='/';last--);
42 if(last==pathname)
54 for(;*last=='/' && last > pathname; last--);
56 if(last==pathname && *pathname=='/' && pathname[1]=='/')
60 return(pathname);
[all...]
H A Dbasename.c33 extern char *basename(register char *pathname) argument
36 for(first=last=pathname; *last; last++);
49 for(first=last++;first>pathname && *first!='/';first--);
/ast/src/lib/libcmd/
H A Dbasename.c26 * namebase pathname [suffix]
28 * print the namebase of a pathname
50 "pathname is printed on a separate line on the standard output.]"
52 "pathname, with \asuffix\a removed if it exists, is printed on a "
69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument
73 for(first=last=pathname; *last; last++);
86 for(first=last++;first>pathname && *first!='/';first--);
H A Ddirname.c28 * print the dirname of a pathname
66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) argument
70 for(last=pathname; *last; last++);
72 while(last>pathname && *--last=='/');
74 for(;last>pathname && *last!='/';last--);
75 if(last==pathname)
78 if(*pathname!='/')
79 last = pathname = ".";
84 for(;*last=='/' && last > pathname; last--);
87 if(last!=pathname
[all...]
/ast/src/cmd/paxlib/tp/
H A Dtp.c41 char pathname[32]; member in struct:Dir_s
126 } while (!*dp->pathname);
136 ccmaps(dp->pathname, sizeof(dp->pathname), CC_ASCII, CC_NATIVE);
137 f->name = dp->pathname;
/ast/src/cmd/nmake/
H A Dbind.c247 * support viewed or covered directories in the pathname
1982 pathname(register char* s, register Rule_t* r) function
/ast/src/lib/libtk/generic/
H A DtkText.c2152 char *pathname;
2154 pathname = "";
2156 pathname = Tk_PathName(ewPtr->tkwin);
2158 DumpSegment(interp, "window", pathname,
2137 char *pathname; local

Completed in 74 milliseconds