Searched refs:pathname (Results 1 - 25 of 370) sorted by relevance

1234567891011>>

/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/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 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/lib/libc/port/gen/
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 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 Disaexec.c52 char *pathname; local
87 * Allocate a full pathname buffer. The sum of the lengths of the
91 if ((pathname = malloc(len)) == NULL) {
100 (void) strcpy(pathname, execname);
101 if ((str = strrchr(pathname, '/')) != NULL) {
103 fname = execname + (str - pathname);
106 *pathname = '\0';
108 len = strlen(pathname);
119 (void) strcpy(pathname + len, str);
120 (void) strcat(pathname
[all...]
H A Dcatopen.c93 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 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/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/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/psm/promif/ieee1275/common/
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...]
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, '/');
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.h39 * 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 Ddireader.h42 int _dr_open_dir(DirReader *dr, const char *pathname, char **errmsg);
/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/head/
H A Dpkgdev.h41 char *pathname; member in struct:pkgdev
/illumos-gate/usr/src/uts/common/syscall/
H A Dresolvepath.c33 #include <sys/pathname.h>
38 struct pathname lookpn;
39 struct pathname resolvepn;
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypxfrd.x40 typedef string pathname<1024>;
42 pathname map;
43 pathname domain;
/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/lib/libkmf/include/
H A Dkmfmapper.h51 char *pathname; member in struct:__anon3532
56 * The presently open mapper pathname and options. Can be based on the
/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) {
/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/srchtxt/
H A Dsrchtxt.c96 char pathname[128]; local
135 (void) strcpy(pathname, P_locale);
136 (void) strcpy(&pathname[L_locale - 1], locale);
137 (void) strcat(pathname, MESSAGES);
138 len = strlen(pathname);
160 cp = pathname;
179 if ((dirp = opendir(pathname)) == NULL) {
181 cmdname, pathname, syserr());
188 if ((addr = attach(pathname, len, &fd, &size)) == -1) {
190 "%s: ERROR: failed to access message file '%s'\n", cmdname, pathname);
[all...]
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c45 #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...]

Completed in 81 milliseconds

1234567891011>>