| /onnv/onnv-gate/usr/src/lib/libast/common/comp/ |
| dirname.c | 33 extern char *dirname(register char *pathname) 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...] |
| basename.c | 33 extern char *basename(register char *pathname) 36 for(first=last=pathname; *last; last++); 49 for(first=last++;first>pathname && *first!='/';first--);
|
| /onnv/onnv-gate/usr/src/uts/common/sys/ |
| pathname.h | 47 * Pathname structure. 55 * to the underlying storage; routines which manipulate the pathname 60 typedef struct pathname { struct 62 char *pn_path; /* remaining pathname */ 69 extern void pn_alloc(struct pathname *); 70 extern int pn_get(char *, enum uio_seg, struct pathname *); 71 extern int pn_get_buf(char *, enum uio_seg, struct pathname *, 73 extern int pn_set(struct pathname *, char *); 74 extern int pn_insert(struct pathname *, struct pathname *, size_t) [all...] |
| /onnv/onnv-gate/usr/src/lib/libcmd/common/ |
| dirname.c | 28 * print the dirname of a pathname 66 static void l_dirname(register Sfio_t *outfile, register const char *pathname) 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 && pathname[0]=='/' && pathname[1]=='/' [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| getcwd.c | 30 * getcwd() returns the pathname of the current working directory. 43 getcwd(char *pathname, size_t size) 52 if (pathname == NULL) { 53 if ((pathname = malloc(size)) == NULL) { 60 if (syscall(SYS_getcwd, pathname, size) == 0) 61 return (pathname); 64 free(pathname);
|
| getwd.c | 39 getwd(char *pathname) 48 if ((c = getcwd(pathname, val)) == NULL) { 50 (void) strcpy(pathname, 53 (void) strcpy(pathname, "getwd: buffer too small"); 55 (void) strcpy(pathname, "getwd: failure occurred");
|
| isaexec.c | 50 char *pathname; local 84 * Allocate a full pathname buffer. The sum of the lengths of the 88 if ((pathname = malloc(len)) == NULL) { 97 (void) strcpy(pathname, execname); 98 if ((str = strrchr(pathname, '/')) != NULL) { 100 fname = execname + (str - pathname); 103 *pathname = '\0'; 105 len = strlen(pathname); 116 (void) strcpy(pathname + len, str); 117 (void) strcat(pathname + len, "/") [all...] |
| catopen.c | 95 char pathname[PATH_MAX + 1]; local 146 /* unqualified pathname is unsafe */ 158 s = replace_nls_option(s, name, pathname, locale, 161 p = file_open(pathname, UNSAFE_F); 196 t = pathname; 201 while (*s && t < pathname + PATH_MAX) 204 while (*s && t < pathname + PATH_MAX) 207 while (*s && t < pathname + PATH_MAX) 210 return (file_open(pathname, SAFE_F)); 216 * with appropiate values. Returns expanded pathname [all...] |
| /onnv/onnv-gate/usr/src/ucblib/libucb/port/gen/ |
| getwd.c | 39 getwd(char *pathname) 47 if ((c = getcwd(pathname, val)) == NULL) { 49 (void) strcpy(pathname, 52 (void) strcpy(pathname, "getwd: buffer too small"); 54 (void) strcpy(pathname, "getwd: failure occurred");
|
| /onnv/onnv-gate/usr/src/tools/cscope-fast/ |
| compath.c | 34 * compath(pathname) 41 * WARNING: since pathname is altered by this function, it should 50 compath(char *pathname) 63 if (strchr(pathname, '/') == 0) 64 return (pathname); 70 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) 96 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) 98 ((lastchar - 1 == pathname) || (*(lastchar - 2) == '/'))) { 115 for (lastchar = pathname + 1; *lastchar != '\0'; lastchar++) 116 if ((lastchar != pathname) && (*lastchar == '/') & [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/sys/ |
| inst_sync.c | 35 inst_sync(char *pathname, int flags) 37 return (syscall(SYS_inst_sync, pathname, flags));
|
| /onnv/onnv-gate/usr/src/psm/promif/ieee1275/common/ |
| prom_path.c | 51 * Given an OBP pathname, do the best we can to fully expand 52 * the OBP pathname, in place in the callers buffer. 59 prom_pathname(char *pathname) 63 char *to = pathname; 74 if ((uintptr_t)pathname > (uint32_t)-1) { 75 opathname = pathname; 76 pathname = promplat_alloc(OBP_MAXPATHLEN); 77 if (pathname == NULL) { 80 (void) prom_strcpy(pathname, opathname); 81 to = pathname; [all...] |
| prom_devname.c | 33 prom_devname_from_pathname(register char *pathname, register char *buffer) 37 if ((pathname == (char *)0) || (*pathname == (char)0)) 40 p = prom_strrchr(pathname, '/');
|
| /onnv/onnv-gate/usr/src/head/ |
| pkgdev.h | 43 char *pathname; member in struct:pkgdev
|
| /onnv/onnv-gate/usr/src/lib/libtecla/common/ |
| pathutil.h | 39 * store pathnames. The pathname member of the object is initially 41 * if this turns out to be pessimistic, the pathname can be reallocated 47 } PathName; 49 PathName *_new_PathName(void); 50 PathName *_del_PathName(PathName *path); 52 char *_pn_clear_path(PathName *path); 53 char *_pn_append_to_path(PathName *path, const char *string, int slen, 55 char *_pn_prepend_to_path(PathName *path, const char *string, int slen, 57 char *_pn_resize_path(PathName *path, size_t length) [all...] |
| direader.h | 42 int _dr_open_dir(DirReader *dr, const char *pathname, char **errmsg);
|
| /onnv/onnv-gate/usr/src/uts/common/sys/usb/usba/ |
| usba_devdb.h | 38 char *pathname; member in struct:usba_configrec
|
| /onnv/onnv-gate/usr/src/uts/common/syscall/ |
| resolvepath.c | 33 #include <sys/pathname.h> 38 struct pathname lookpn; 39 struct pathname resolvepn;
|
| /onnv/onnv-gate/usr/src/cmd/ypcmd/ |
| ypxfrd.x | 40 typedef string pathname<1024>; 42 pathname map; 43 pathname domain;
|
| /onnv/onnv-gate/usr/src/cmd/abi/appcert/scripts/ |
| abi_index.pl | 84 my $pathname = ''; 93 if (/^Pathname:\s*/i) { 94 $pathname = $'; 114 next unless ($pathname =~ m,\.so,); 115 next unless ($pathname =~ m,/lib,); 116 next unless ($pathname =~ m,/lib[^/]*\.so\b,); 119 $pathname = trim($pathname); 121 filter($pathname, $link, $pkgs);
|
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| krbfileio.c | 17 krb5_create_secure_file(krb5_context context, const char *pathname) 31 fd = open(pathname, open_flag | O_BINARY, 0600);
|
| /onnv/onnv-gate/usr/src/cmd/mdb/common/kmdb/ |
| kmdb_ctf_open.c | 58 mdb_ctf_name2ctl(const char *pathname) 62 if ((v = mdb_nv_lookup(&mdb.m_dmodctl, strbasename(pathname))) == 70 mdb_ctf_open(const char *pathname, int *errp) 76 if ((kmc = mdb_ctf_name2ctl(pathname)) == NULL) {
|
| /onnv/onnv-gate/usr/src/pkgdefs/SUNWcakr.i/ |
| postinstall | 39 while read pathname 41 rm $pathname > /dev/null 2>&1
|
| /onnv/onnv-gate/usr/src/cmd/ptools/pldd/ |
| pldd.c | 151 char pathname[PATH_MAX]; local 173 if ((len = resolvepath(object_name, pathname, sizeof (pathname))) > 0) 174 pathname[len] = '\0'; 176 (void) strncpy(pathname, object_name, sizeof (pathname)); 178 (void) printf("%s\n", pathname);
|
| /onnv/onnv-gate/usr/src/cmd/srchtxt/ |
| srchtxt.c | 98 char pathname[128]; local 137 (void) strcpy(pathname, P_locale); 138 (void) strcpy(&pathname[L_locale - 1], locale); 139 (void) strcat(pathname, MESSAGES); 140 len = strlen(pathname); 162 cp = pathname; 181 if ((dirp = opendir(pathname)) == NULL) { 183 cmdname, pathname, syserr()); 190 if ((addr = attach(pathname, len, &fd, &size)) == -1) { 192 "%s: ERROR: failed to access message file '%s'\n", cmdname, pathname); [all...] |