/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | dirname.c | 33 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 D | basename.c | 33 extern char *basename(register char *pathname) argument 36 for(first=last=pathname; *last; last++); 49 for(first=last++;first>pathname && *first!='/';first--);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pathname.h | 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 void pn_alloc_sz(struct pathname *, size_t); 71 extern int pn_get(char *, enum uio_seg, struct pathname *); 72 extern int pn_get_buf(char *, enum uio_seg, struct pathname *, 74 extern int pn_set(struct pathname *, char *); 75 extern int pn_insert(struct pathname *, struct pathname *, size_ [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | dirname.c | 28 * 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...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getcwd.c | 30 * getcwd() returns the pathname of the current working directory. 43 getcwd(char *pathname, size_t size) argument 52 if (pathname == NULL) { 53 if ((pathname = malloc(size)) == NULL) { 60 if (syscall(SYS_getcwd, pathname, size) == 0) 61 return (pathname); 64 free(pathname);
|
H A D | getwd.c | 39 getwd(char *pathname) argument 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");
|
H A D | 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 [all...] |
H A D | catopen.c | 93 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 219 replace_nls_option(char *s, char *name, char *pathname, char *locale, char *lang, char *territory, char *codeset) argument [all...] |
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | getwd.c | 39 getwd(char *pathname) argument 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");
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | compath.c | 34 * compath(pathname) 41 * WARNING: since pathname is altered by this function, it should 50 compath(char *pathname) argument 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) [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | inst_sync.c | 35 inst_sync(char *pathname, int flags) argument 37 return (syscall(SYS_inst_sync, pathname, flags));
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | 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) argument 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...] |
H A D | prom_devname.c | 33 prom_devname_from_pathname(register char *pathname, register char *buffer) argument 37 if ((pathname == (char *)0) || (*pathname == (char)0)) 40 p = prom_strrchr(pathname, '/');
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | 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 76 * Return an estimate of the the length of the longest pathname 84 int _pu_path_is_dir(const char *pathname); 89 int _pu_path_is_file(const char *pathname); 94 int _pu_path_is_exe(const char *pathname); 97 * Return non-zero if a file exists with the specified pathname. 99 int _pu_file_exists(const char *pathname); 109 * If the pathname buffer turns out to be too small, it will be extended
|
H A D | direader.h | 42 int _dr_open_dir(DirReader *dr, const char *pathname, char **errmsg);
|
/illumos-gate/usr/src/head/ |
H A D | pkgdev.h | 43 char *pathname; member in struct:pkgdev
|
/illumos-gate/usr/src/uts/common/sys/usb/usba/ |
H A D | usba_devdb.h | 38 char *pathname; member in struct:usba_configrec
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | resolvepath.c | 33 #include <sys/pathname.h> 38 struct pathname lookpn; 39 struct pathname resolvepn;
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypxfrd.x | 40 typedef string pathname<1024>; 42 pathname map; 43 pathname domain;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 17 krb5_create_secure_file(krb5_context context, const char *pathname) argument 31 fd = open(pathname, open_flag | O_BINARY, 0600);
|
/illumos-gate/usr/src/lib/libkmf/include/ |
H A D | kmfmapper.h | 51 char *pathname; member in struct:__anon3408 56 * The presently open mapper pathname and options. Can be based on the
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_ctf_open.c | 57 mdb_ctf_name2ctl(const char *pathname) argument 61 if ((v = mdb_nv_lookup(&mdb.m_dmodctl, strbasename(pathname))) == 69 mdb_ctf_open(const char *pathname, int *errp) argument 75 if ((kmc = mdb_ctf_name2ctl(pathname)) == NULL) {
|
/illumos-gate/usr/src/cmd/ptools/pldd/ |
H A D | 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);
|
/illumos-gate/usr/src/cmd/srchtxt/ |
H A D | 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...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | pathname.c | 45 #include <sys/pathname.h> 55 * name into a pathname structure where we operate on it. 56 * Each pathname structure can hold "pn_bufsize" characters 58 * allocating and freeing pathname structures, fetching 60 * a pathname, combining two pathnames (used in symbolic 62 * of a pathname. 66 * Allocate contents of pathname structure. Structure is typically 73 pn_alloc(struct pathname *pnp) 78 pn_alloc_sz(struct pathname *pnp, size_t sz) 86 * Free pathname resource [all...] |