/osnet-11/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--);
|
/osnet-11/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 | 46 char *pathname; local 81 * Allocate a full pathname buffer. The sum of the lengths of the 85 if ((pathname = malloc(len)) == NULL) { 94 (void) strcpy(pathname, execname); 95 if ((str = strrchr(pathname, '/')) != NULL) { 97 fname = execname + (str - pathname); 100 *pathname = '\0'; 102 len = strlen(pathname); 113 (void) strcpy(pathname + len, str); 114 (void) strcat(pathname [all...] |
H A D | gettxt.c | 84 char pathname[PATH_MAX]; /* full pathname to message file */ local 165 if (snprintf(pathname, sizeof (pathname), 167 sizeof (pathname)) { 172 if ((fd = open(pathname, O_RDONLY)) == -1 ||
|
H A D | gtxt.c | 106 char pathname[PATH_MAX]; local 150 if (snprintf(pathname, sizeof (pathname), 152 db->saved_locale, db->db_name) >= sizeof (pathname)) { 160 if ((fd = open(pathname, O_RDONLY)) != -1 &&
|
/osnet-11/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));
|
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | basename.c | 26 * namebase pathname [suffix] 28 * print the namebase of a pathname 50 "pathname is printed on a separate line on the standard output.]" 52 "pathname, with \asuffix\a removed if it exists, is printed on a " 69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) argument 73 for(first=last=pathname; *last; last++); 86 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...] |
/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | pathtools.c | 38 pathname4 pathname; local 44 bzero(&pathname, sizeof (pathname4)); 45 if (!xdr_pathname4(&xdrs, &pathname)) 48 for (i = 0; i < pathname.pathname4_len; i++) { 49 path = utf8_to_str(&pathname.pathname4_val[i], &len, NULL); 56 xdr_free(xdr_pathname4, (char *)&pathname); 65 pathname4 pathname; local 69 (void) make_pathname4(path, &pathname); 70 size = xdr_sizeof(xdr_pathname4, &pathname); 75 if (!xdr_pathname4(&xdrs, &pathname)) [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 56 krb5_create_secure_file(krb5_context context, const char *pathname) argument 63 fd = THREEPARAMOPEN(pathname, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
|
/osnet-11/usr/src/lib/libkmf/include/ |
H A D | kmfmapper.h | 51 char *pathname; member in struct:__anon1836 56 * The presently open mapper pathname and options. Can be based on the
|
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/ |
H A D | hostfs.c | 42 char pathname[len1 + 1 + len2 + 1 + 13]; local 43 strcpy (pathname, path); 46 if (len1 > 0 && pathname[len1 - 1] != '/') 47 strcat (pathname, "/"); 49 strcat (pathname, name); 52 if (stat (pathname, &st))
|
/osnet-11/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);
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | 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 ||
|
/osnet-11/usr/src/lib/libsmedia/library/common/ |
H A D | l_misc.c | 201 char *pathname; local 212 if ((pathname = malloc(PATH_MAX)) == NULL) { 220 free(pathname); 229 if (snprintf(pathname, PATH_MAX, "%s/%s", 234 handle = dlopen(pathname, RTLD_LAZY); 270 free(pathname);
|
/osnet-11/usr/src/lib/libkmf/libkmf/common/ |
H A D | mapping.c | 65 char *pathname = NULL; local 80 pathname = malloc(len); 81 if (pathname == NULL) 83 (void) memset(pathname, 0, len); 85 (void) snprintf(pathname, len, "%s%s" MAPPER_NAME_TEMPLATE, 88 return (pathname); 105 * sources are never mixed. We always need a mapper name or a mapper pathname 156 } else if (map->pathname != NULL) { 157 tmppath = strdup(map->pathname); 172 * Either a name or a full pathname mus [all...] |
/osnet-11/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 80 char *pathname = strdup(dev_path); local 83 if (NULL == pathname) 86 devname = basename(pathname); 118 free(pathname); 134 char *pathname = strdup(dev_path); local 138 if (NULL == pathname) 141 devname = basename(pathname); 170 free(pathname); 176 * pathname (which might not even exist in the filesystem), and in either case 196 * Not a service name, check if it's a valid pathname [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/commands/ |
H A D | ls.c | 119 char *pathname; local 122 pathname = grub_xasprintf ("%s%s", dirname, filename); 124 pathname = grub_xasprintf ("%s/%s", dirname, filename); 126 if (!pathname) 132 file = grub_file_open (pathname); 136 grub_free (pathname); 172 grub_free (pathname);
|
H A D | test.c | 50 auto void get_fileinfo (char *pathname); 63 char *filename, *pathname; local 101 pathname = grub_strchr (path, ')'); 102 if (! pathname) 103 pathname = path; 105 pathname++; 108 while (*pathname && pathname[grub_strlen (pathname) - 1] == '/') 109 pathname[grub_strle [all...] |
/osnet-11/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 307 char pathname[PATH_MAX]; local 309 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) 313 strcpy(pathname, dst_path); 314 strcat(pathname, filename); 316 strcpy(pathname, filename); 318 fp = fopen(pathname, mode); 320 chmod(pathname, perm);
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/util/ |
H A D | util.c | 52 * Open a file at path `pathname'; depending on the flags passed in through 58 open_file(const char *pathname, unsigned int dsvc_flags, int *fdp) argument 73 *fdp = open(pathname, open_flags, 0644);
|
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_cluster.c | 325 * parse the disk group name from the a device pathname on a non-SunCluster. 331 cfg_l_dgname(const char *pathname, char *buffer, size_t buflen) argument 344 if (strncmp(pathname, dev, ll) != 0) { 345 /* not a device pathname */ 350 start = pathname + ll; 432 * determine which cluster resource group the pathname belongs to, if any 441 cfg_dgname(const char *pathname, char *buffer, size_t buflen) argument 452 if (pathname == NULL || *pathname == '\0') { 466 if (stat(pathname, [all...] |
/osnet-11/usr/src/lib/libfstyp/common/ |
H A D | libfstyp.c | 70 char *pathname; /* absolute module pathname */ member in struct:fstyp_module 362 char *pathname; local 374 /* allocate pathname buffer */ 375 if ((pathname = calloc(1, h->name_max)) == NULL) { 380 (void) snprintf(pathname, h->name_max, "%s/fstyp.so.%d", mdir, 382 if (stat(pathname, &sb) < 0) { 387 free(pathname); 391 mp->pathname = pathname; [all...] |