/illumos-gate/usr/src/lib/libc/port/gen/ |
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 | 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 | 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...] |
/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/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/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/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/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/psm/promif/ieee1275/common/ |
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, '/');
|
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...] |
/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/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 | basename.c | 26 * namebase pathname [suffix] 28 * print the namebase of a pathname 62 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument 66 for(first=last=pathname; *last; last++); 79 for(first=last++;first>pathname && *first!='/';first--);
|
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/head/ |
H A D | pkgdev.h | 43 char *pathname; member in struct:pkgdev
|
/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) {
|
H A D | kmdb_dl.c | 46 dl_name2ctl(const char *pathname) argument 50 if ((v = mdb_nv_lookup(&mdb.m_dmodctl, strbasename(pathname))) == 59 dlmopen(Lmid_t lmid, const char *pathname, int mode) argument 63 if ((kmc = dl_name2ctl(pathname)) == NULL) {
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | direader.c | 81 static int _dr_path_is_dir(const char *pathname); 289 * Return 1 if the specified pathname refers to a directory. 292 * pathname const char * The path to test. 295 * 1 - pathname[] refers to a directory. 297 static int _dr_path_is_dir(const char *pathname) argument 303 if(stat(pathname, &statbuf) < 0)
|
/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/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/mdb/intel/modules/sata/ |
H A D | sata.c | 136 char pathname[MAXPATHLEN]; local 171 (uintptr_t)dmsg.dip, pathname, 172 sizeof (pathname)); 173 mdb_printf("[%s]", pathname);
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | stdio.c | 50 ** info -- pathname of the file to be opened 388 ** SM_STDFDOPEN -- open file by primitive 'fd' rather than pathname 462 ** pathname -- path of file to open 474 sm_io_fopen(char *pathname, int flags, ...) argument 476 sm_io_fopen(pathname, flags, va_alist) 477 char *pathname; 513 fp->f_file = open(pathname, flags, mode);
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 131 smbfs_unmount(char *pathname, int umnt_flag) argument 136 mntp = mnttab_find(pathname); 138 pathname = mntp->mnt_mountp; 143 rc = umount2(pathname, umnt_flag); 147 pr_err(gettext("%s: %s\n"), pathname, strerror(errno));
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | lookup.c | 69 * starting at current directory (root for us), lookup the pathname. 81 lookup(char *pathname, struct nfs_file *cur_file, bool_t needroothandle) argument 90 error = stpn_get(pathname, &pnp); 134 * Process the next component of the pathname. 256 * front of the remaining pathname. 308 * Skip to next component of the pathname.
|