Searched defs:dirname (Results 1 - 25 of 75) sorted by relevance

123

/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddirname.c35 * Works similar to /bin/dirname
38 #pragma weak _dirname = dirname
45 dirname(char *s) function
H A Dscandir.c47 * Scan the directory dirname calling select to make a list of selected
74 scandir64(const char *dirname, struct dirent64 *(*namelist[]), argument
85 if ((dirp = opendir(dirname)) == NULL)
159 scandir(const char *dirname, struct dirent *(*namelist[]), argument
170 if ((dirp = opendir(dirname)) == NULL)
/illumos-gate/usr/src/lib/libast/common/comp/
H A Ddirname.c24 * dirname(3) implementation
33 extern char *dirname(register char *pathname) function
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dsetup_temporary_directory.c80 char *dirname; local
95 dirname = tempnam(a_tmpdir, a_suffix);
96 if (dirname == (char *)NULL) {
102 if (mkdir(dirname, 0755) != 0) {
106 echoDebug(DBG_SETUP_TEMPDIR, dirname);
108 *r_dirname = dirname;
/illumos-gate/usr/src/lib/libshell/common/data/
H A Dsolaris_cmdlist.h73 #undef dirname macro
103 ASTCMDLIST(dirname)
104 BINCMDLIST(dirname)
105 GNUCMDLIST(dirname)
H A Dbuiltins.c47 #undef dirname macro
130 CMDLIST(dirname)
/illumos-gate/usr/src/head/
H A Dpkgdev.h42 char *dirname; member in struct:pkgdev
/illumos-gate/usr/src/cmd/dtrace/test/cmd/scripts/
H A Ddtest.pl68 sub dirname { subroutine
273 $dir = dirname($file);
651 $dir = dirname($file);
/illumos-gate/usr/src/lib/libxcurses/src/libc/gen/
H A Dbase.c62 * - deal with degenerate dirname
111 * Finds the dirname of the given file. Spec1170 conformant.
114 dirname(char *arg) function
141 dirname(argv[cnt-argc]),
155 printf("%s\t%s\n", dirname(arg), basename(tmp));
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dscandir.c27 * Scan the directory dirname calling select to make a list of selected
38 scandir(char *dirname, struct direct *(*namelist[]), argument
48 if ((dirp = opendir(dirname)) == NULL)
H A Dexportent.c122 remexportent(FILE *f, char *dirname) argument
152 len = strlen(dirname);
155 if (strncmp(buf, dirname,
194 addexportent(FILE *f, char *dirname, char *options) argument
200 fprintf(f, "%s", dirname) > 0 &&
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dscandir.c45 * Scan the directory dirname calling select to make a list of selected
72 scandir64(char *dirname, struct direct64 *(*namelist[]), argument
83 if ((dirp = opendir(dirname)) == NULL)
139 scandir(char *dirname, struct direct *(*namelist[]), argument
150 if ((dirp = opendir(dirname)) == NULL)
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_iso9660.c143 iso9660_dir (char *dirname) argument
160 while (*dirname == '/') /* skip leading slashes */
161 dirname++;
162 /* pathlen = strcspn(dirname, "/\n\t "); */
164 dirname[pathlen]
165 && !isspace(dirname[pathlen]) && dirname[pathlen] != '/' ;
354 && !memcmp(name, dirname, pathlen))
356 if (dirname[pathlen] == '/' || !print_possibilities)
364 if (dirname[pathle
[all...]
H A Dfsys_vstafs.c118 vstafs_dir (char *dirname) argument
138 while (*dirname == '/') dirname++;
139 fn = dirname;
150 && (! *dirname || strcmp (dirname, d->name) <= 0))
158 if (! grub_strcmp (dirname, d->name))
168 *(dirname = fn) = ch;
181 while (*dirname && ! isspace (ch));
H A Dfsys_ffs.c183 ffs_dir (char *dirname) argument
202 if (!*dirname || isspace (*dirname))
219 while (*dirname == '/')
220 dirname++;
228 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++);
271 && (!*dirname || substring (dirname, dp->d_name) <= 0))
280 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0
286 *(dirname
[all...]
H A Dfsys_ufs2.c207 ufs2_dir (char *dirname) argument
227 if (!*dirname || isspace (*dirname))
244 while (*dirname == '/')
245 dirname++;
253 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++);
292 && (!*dirname || substring (dirname, dp->d_name) <= 0))
301 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0
307 *(dirname
[all...]
H A Dfsys_fat.c293 fat_dir (char *dirname) argument
320 if (!*dirname || isspace (*dirname))
333 while (*dirname == '/')
334 dirname++;
344 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++);
436 if (substring (dirname, filename) == 0)
463 if (substring (dirname, filename) <= 0)
473 if (substring (dirname, filename) == 0)
477 *(dirname
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/
H A Dckentry.c59 static int xdir(int maptyp, VFP_T *vfp, PKGserver server, char *dirname);
202 xdir(int maptyp, VFP_T *vfp, PKGserver server, char *dirname) argument
218 if ((dirfp = opendir(dirname)) == NULL) {
219 progerr(gettext("unable to open directory <%s>"), dirname);
222 len = strlen(dirname);
231 dirname, drp->d_name);
246 if (strncmp(mine.path, dirname, len) ||
/illumos-gate/usr/src/cmd/truss/
H A Dipc.c263 const char *dirname; local
316 dirname = path;
318 dirname = sp2 + 1;
320 if (strcmp(dirname, "self") == 0) {
322 } else if ((pid = strtol(dirname, &next, 10)) < 0 ||
323 *next != '\0') { /* dirname not a number */
329 dirname = ".";
332 dirname = path;
335 if (!Pisprocdir(Proc, dirname) || /* file not in a /proc directory */
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c41 static int tftp_dir_undi(char *dirname);
596 tftp_dir (char *dirname) argument
601 grub_printf ("tftp_dir (%s)\n", dirname);
605 return (tftp_dir_undi(dirname));
618 ch = nul_terminate (dirname);
622 dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0)
625 dirname[grub_strlen (dirname)] = ch;
818 tftp_dir_undi(char *dirname) argument
828 ch = nul_terminate(dirname);
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd1.c628 char dirname[BUFSIZ], cmd[BUFSIZ]; local
630 if (getfold(dirname) < 0) {
635 nstrcat(dirname, sizeof (dirname), "/");
636 nstrcat(dirname, sizeof (dirname), *arglist);
638 snprintf(cmd, sizeof (cmd), "%s %s", LS, dirname);
/illumos-gate/usr/src/cmd/bart/
H A Dbart.h144 char dirname[PATH_MAX]; member in struct:dir_component
/illumos-gate/usr/src/cmd/fs.d/ufs/roll_log/
H A Droll_log.c259 char dirname[] = RLG_TEMPLATE; local
275 (void) mktemp(dirname);
279 tmp_dir_list[i], dirname);
287 tmp_dir, dirname);
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c224 char *dirname = NULL, *filename = NULL, *ifs = NULL; local
231 if ((set == 0) && !dirname && !filename)
232 dirname = optarg;
237 if ((set == 0) && !dirname && !filename)
250 if (filename || dirname || set)
259 if ((ns >= 0) || dirname || (rw != -1) || set)
265 if (dirname || (rw != -1) || (ns == -1))
275 if ((ns >= 0) || dirname || (rw != -1) || set)
281 if (filename || dirname || set)
290 if (dirname || (r
[all...]
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c74 char *dirname; local
134 dirname = argv[0];
135 if (mkdirp(dirname, 0777) < 0) {
138 fprintf(stderr, gettext("install: mkdir: %s: %s\n"), dirname, strerror(errno));
142 if (stat(dirname, &stb) < 0) {
143 fprintf(stderr, gettext("install: stat: %s: %s\n"), dirname, strerror(errno));
147 fprintf(stderr, gettext("install: %s is not a directory\n"), dirname);
151 if (mflag && chmod(dirname, mode)) {
152 fprintf(stderr, gettext("install: chmod: %s: %s\n"), dirname, strerror(errno));
154 (void) unlink(dirname);
[all...]

Completed in 98 milliseconds

123