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

123456

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetwd.c39 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 Dgetcwd.c30 * 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 Disaexec.c50 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 Dinst_sync.c35 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 Dgetwd.c39 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 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--);
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcompath.c34 * 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 Dkrbfileio.c17 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 Dprom_devname.c33 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 Dprom_path.c51 * 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 Dusba_devdb.h38 char *pathname; member in struct:usba_configrec
/illumos-gate/usr/src/uts/common/sys/
H A Dpathname.h55 * 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 Dbasename.c26 * 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 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...]
/illumos-gate/usr/src/head/
H A Dpkgdev.h43 char *pathname; member in struct:pkgdev
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_ctf_open.c57 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 Dkmdb_dl.c46 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 Ddireader.c81 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 Dkmfmapper.h51 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 Dpldd.c151 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 Dsata.c136 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 Dstdio.c50 ** 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 Dumount.c131 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 Dlookup.c69 * 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.

Completed in 234 milliseconds

123456