| /netvirt/usr/src/lib/libc/port/gen/ |
| 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...] |
| gettxt.c | 88 char pathname[PATH_MAX]; /* full pathname to message file */ local 169 if (snprintf(pathname, sizeof (pathname), 171 sizeof (pathname)) { 176 if ((fd = open(pathname, O_RDONLY)) == -1 ||
|
| gtxt.c | 109 char pathname[PATH_MAX]; local 153 if (snprintf(pathname, sizeof (pathname), 155 db->saved_locale, db->db_name) >= sizeof (pathname)) { 163 if ((fd = open(pathname, O_RDONLY)) != -1 &&
|
| /netvirt/usr/src/uts/common/sys/ |
| pathname.h | 38 #pragma ident "@(#)pathname.h 1.24 05/06/08 SMI" 50 * Pathname structure. 58 * to the underlying storage; routines which manipulate the pathname 63 typedef struct pathname { struct 65 char *pn_path; /* remaining pathname */ 72 extern void pn_alloc(struct pathname *); 73 extern int pn_get(char *, enum uio_seg, struct pathname *); 74 extern int pn_get_buf(char *, enum uio_seg, struct pathname *, 76 extern int pn_set(struct pathname *, char *); 77 extern int pn_insert(struct pathname *, struct pathname *, size_t) [all...] |
| /netvirt/usr/src/uts/common/sys/usb/usba/ |
| usba_devdb.h | 40 char *pathname; member in struct:usba_configrec
|
| /netvirt/usr/src/cmd/ptools/pldd/ |
| pldd.c | 145 char pathname[PATH_MAX]; local 167 if ((len = resolvepath(object_name, pathname, sizeof (pathname))) > 0) 168 pathname[len] = '\0'; 170 (void) strncpy(pathname, object_name, sizeof (pathname)); 172 (void) printf("%s\n", pathname);
|
| /netvirt/usr/src/head/ |
| pkgdev.h | 43 char *pathname; member in struct:pkgdev
|
| /netvirt/usr/src/stand/lib/fs/nfs/ |
| pathname.h | 30 #pragma ident "@(#)pathname.h 1.11 05/06/08 SMI" /* from SunOS4.1 2.12 */ 37 * Pathname structure. 39 * pathname from system call into this structure and reduce 41 * link is encountered the new pathname to be translated 45 struct pathname { struct 47 char *pn_path; /* remaining pathname */ 62 extern int pn_alloc(); /* allocat buffer for pathname */ 65 extern int pn_getchar(); /* get next pathname char */ 67 extern int pn_set(); /* set pathname to string */ 69 extern int pn_getcomponent(); /* get next component of pathname */ [all...] |
| /netvirt/usr/src/uts/common/fs/smbsrv/ |
| smb_net.c | 37 #include <sys/pathname.h> 90 char *pathname = kmem_alloc(MAXPATHLEN, KM_SLEEP); local 92 pathname); 94 err = devfs_lookupname(pathname, NULLVPP, 98 kmem_free(pathname, MAXPATHLEN);
|
| /netvirt/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| ftpcmd.y | 221 %type <String> STRING password pathname pathstring username method 574 | RETR check_login SP pathname CRLF 585 | STOR check_login SP pathname CRLF 594 | APPE check_login SP pathname CRLF 635 | LIST check_login SP pathname CRLF 653 | STAT check_login SP pathname CRLF 669 | DELE check_login SP pathname CRLF 678 | RNTO check_login SP pathname CRLF 709 | CWD check_login SP pathname CRLF 753 | MKD check_login SP pathname CRL 1575 pathname: pathstring label [all...] |
| /netvirt/usr/src/cmd/ptools/ptime/ |
| ptime.c | 113 char pathname[100]; local 124 (void) sprintf(pathname, "/proc/%d/usage", (int)pid); 125 if ((fd = open(pathname, O_RDONLY)) < 0)
|
| /netvirt/usr/src/lib/libadm/inc/ |
| devtab.h | 106 * cdevice A pathname to the inode describing the device as 108 * bdevice A pathname to the inode describing the device as 110 * pathname A pathname to the device (not char or blk special) 119 char *cdevice; /* Character device pathname */ 120 char *bdevice; /* Block device pathname */ 121 char *pathname; /* Vanilla pathname */ member in struct:devtabent 170 * name Member name (a device alias or pathname) 187 * _devtabpath() Get the pathname of the device table fil [all...] |
| /netvirt/usr/src/cmd/acctadm/ |
| aconf.c | 99 void *pathname; local 104 (pathname = malloc(MAXPATHLEN)) == NULL) 110 (void) memset(pathname, 0, MAXPATHLEN); 114 if (acctctl(AC_PROC | AC_FILE_GET, pathname, MAXPATHLEN) == -1) { 121 (void) strlcpy(acp->ac_proc_file, pathname, MAXPATHLEN); 136 (void) memset(pathname, 0, MAXPATHLEN); 140 if (acctctl(AC_FLOW | AC_FILE_GET, pathname, MAXPATHLEN) == -1) { 147 (void) strlcpy(acp->ac_flow_file, pathname, MAXPATHLEN); 162 (void) memset(pathname, 0, MAXPATHLEN); 166 if (acctctl(AC_TASK | AC_FILE_GET, pathname, MAXPATHLEN) == -1) [all...] |
| /netvirt/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...] |
| /netvirt/usr/src/lib/brand/lx/lx_brand/common/ |
| file.c | 163 char *pathname = (char *)p; local 166 if ((lstat64(pathname, &statbuf) == 0) && S_ISDIR(statbuf.st_mode)) 169 return (unlink(pathname) ? -errno : 0);
|
| /netvirt/usr/src/lib/libpcp/common/ |
| pcp_utils.c | 82 char *pathname = strdup(dev_path); local 85 if (NULL == pathname) 88 devname = basename(pathname); 120 free(pathname); 136 char *pathname = strdup(dev_path); local 140 if (NULL == pathname) 143 devname = basename(pathname); 172 free(pathname); 178 * pathname (which might not even exist in the filesystem), and in either case 198 * Not a service name, check if it's a valid pathname [all...] |
| /netvirt/usr/src/lib/libproc/common/ |
| Psyscall.c | 82 char pathname[PATH_MAX]; local 125 (void) snprintf(pathname, sizeof (pathname), "%s/%d/lwp/agent/", 127 fname = pathname + strlen(pathname); 137 if ((fd = open(pathname, O_RDONLY)) < 0 || 143 if ((fd = open(pathname, O_WRONLY)) < 0 ||
|
| /netvirt/usr/src/lib/libresolv2/common/dst/ |
| support.c | 428 char pathname[PATH_MAX]; local 429 size_t plen = sizeof(pathname); 432 strcpy(pathname, dst_path); 433 plen -= strlen(pathname); 436 pathname[0] = '\0'; 439 strncpy(&pathname[PATH_MAX - plen], filename, plen-1); 443 fp = fopen(pathname, mode); 445 chmod(pathname, perm);
|
| /netvirt/usr/src/lib/libsmedia/library/common/ |
| l_misc.c | 58 #define PATHNAME "/usr/lib/smedia/sparcv9" 60 #define PATHNAME "/usr/lib/smedia/amd64" 63 #define PATHNAME "/usr/lib/smedia" 209 char *pathname; local 220 if ((pathname = malloc(PATH_MAX)) == NULL) { 225 dirp = opendir(PATHNAME); 227 (void) fprintf(stderr, gettext("Couldnot open %s\n"), PATHNAME); 228 free(pathname); 237 if (snprintf(pathname, PATH_MAX, "%s/%s", 238 PATHNAME, dp->d_name) >= PATH_MAX) [all...] |
| /netvirt/usr/src/uts/sun4/io/fpc/ |
| fpc-impl.c | 95 char pathname[MAXPATHLEN]; local 97 (void) ddi_pathname(dip, pathname); 99 kmem_zalloc(strlen(pathname)+1, KM_SLEEP); 100 (void) strcpy(node_data[this_node].name, pathname);
|
| /netvirt/usr/src/uts/sun4u/excalibur/os/ |
| excalibur.c | 53 char *pathname; member in struct:xcalfan_info 136 err = ldi_open_by_name(xcalfans[i].pathname, 142 xcalfans[i].pathname); 284 xcalfans[i].val8, xcalfans[i].pathname); 288 xcalfans[i].val8, xcalfans[i].pathname);
|
| /netvirt/usr/src/cmd/audio/utilities/ |
| AudioFile.cc | 76 // Constructor with pathname and optional mode arg 122 const char *path) // pathname or 0 222 char *pathname; local 238 // 2) if name is a relative pathname, and 'path' is not NULL: 271 pathname = new char[strlen(prefix) + flen + 2]; 272 (void) sprintf(pathname, "%s/%s", prefix, filename); 273 err = tryopen(pathname, openmode); 274 delete pathname; 291 const char *pathname, 299 if (pathname != GetName() [all...] |
| /netvirt/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
| defs.h | 124 char pathname[LINESIZE]; member in struct:linkbuf
|
| /netvirt/usr/src/cmd/fs.d/cachefs/cfsd/ |
| cfsd_subr.c | 265 char pathname[MAXPATHLEN]; local 470 strlcpy(pathname, cache_object_p->i_cachedir, 471 sizeof (pathname)); 472 strlcat(pathname, "/", sizeof (pathname)); 473 len = strlen(pathname); 482 pathname[len] = '\0'; 483 strlcat(pathname, entp->d_name, sizeof (pathname)); 486 xx = lstat64(pathname, &sinfo) [all...] |