Searched refs:path (Results 1 - 25 of 1464) sorted by path

1234567891011>>

/freebsd-9.3-release/bin/cat/
H A Dcat.c77 static int udom_open(const char *path, int flags);
165 char *path; local
169 while ((path = argv[i]) != NULL || i == 0) {
170 if (path == NULL || strcmp(path, "-") == 0) {
174 filename = path;
175 fd = open(path, O_RDONLY);
178 fd = udom_open(path, O_RDONLY);
182 warn("%s", path);
197 if (path
302 udom_open(const char *path, int flags) argument
[all...]
/freebsd-9.3-release/bin/getfacl/
H A Dgetfacl.c178 print_acl(char *path, acl_type_t type, int hflag, int iflag, int nflag, argument
187 error = lstat(path, &sb);
189 error = stat(path, &sb);
191 warn("%s: stat() failed", path);
196 ret = lpathconf(path, _PC_ACL_NFS4);
198 ret = pathconf(path, _PC_ACL_NFS4);
202 path);
207 warn("%s: pathconf(..., _PC_ACL_NFS4) failed", path);
217 printf("# file: %s\n# owner: %s\n# group: %s\n", path,
221 acl = acl_get_link_np(path, typ
[all...]
/freebsd-9.3-release/bin/ln/
H A Dln.c228 char path[PATH_MAX]; local
255 snprintf(path, sizeof(path), "%s/%s", target, p) >=
256 (ssize_t)sizeof(path)) {
261 target = path;
276 * absolute path of the source, by appending `source'
/freebsd-9.3-release/bin/ls/
H A Dprint.c579 char path[MAXPATHLEN + 1]; local
586 if ((lnklen = readlink(name, path, sizeof(path) - 1)) == -1) {
590 path[lnklen] = '\0';
592 (void)printname(path);
/freebsd-9.3-release/bin/mkdir/
H A Dmkdir.c139 build(char *path, mode_t omode) argument
146 p = path;
179 if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
181 if (stat(path, &sb) < 0) {
182 warn("%s", path);
190 warn("%s", path);
197 warn("%s", path);
202 printf("%s\n", path);
/freebsd-9.3-release/bin/mv/
H A Dmv.c88 char path[PATH_MAX]; local
141 if (strlen(argv[argc - 1]) > sizeof(path) - 1)
143 (void)strcpy(path, argv[argc - 1]);
144 baselen = strlen(path);
145 endp = &path[baselen];
166 if (do_move(*argv, path))
233 char path[PATH_MAX]; local
245 if (realpath(from, path) == NULL) {
246 warn("cannot resolve %s: %s", from, path);
249 if (!statfs(path,
[all...]
/freebsd-9.3-release/bin/pax/
H A Doptions.c975 mkpath(char *path) argument
981 slash = path;
990 if (stat(path, &sb)) {
991 if (errno != ENOENT || mkdir(path, 0777)) {
992 paxwarn(1, "%s", path);
996 syswarn(1, ENOTDIR, "%s", path);
/freebsd-9.3-release/bin/ps/
H A Dps.c986 unsigned char *path; local
1055 path = malloc((maxlvl + 7) / 8);
1056 memset(path, '\0', (maxlvl + 7) / 8);
1066 path[n / 8] & 1 << (n % 8) ? '|' : ' ';
1079 path[n / 8] |= 1 << (n % 8);
1081 path[n / 8] &= ~(1 << (n % 8));
1088 free(path);
/freebsd-9.3-release/bin/rcp/
H A Drcp.c443 char *last, *vect[1], path[PATH_MAX]; local
455 (void)snprintf(path, sizeof(path), "T%ld 0 %ld 0\n",
458 (void)write(rem, path, strlen(path));
464 (void)snprintf(path, sizeof(path),
466 (void)write(rem, path, strlen(path));
476 if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path)) {
501 char ch, *cp, *np, *targ, *vect[1], buf[BUFSIZ], path[PATH_MAX]; local
[all...]
/freebsd-9.3-release/bin/realpath/
H A Drealpath.c47 const char *path; local
63 path = *argv != NULL ? *argv++ : ".";
66 if ((p = realpath(path, buf)) == NULL) {
68 warn("%s", path);
72 } while ((path = *argv++) != NULL);
80 (void)fprintf(stderr, "usage: realpath [-q] [path ...]\n");
/freebsd-9.3-release/bin/rm/
H A Drm.c482 check(const char *path, const char *name, struct stat *sp) argument
489 (void)fprintf(stderr, "remove %s? ", path);
508 path);
514 path);
/freebsd-9.3-release/bin/rmdir/
H A Drmdir.c95 rm_path(char *path) argument
99 p = path + strlen(path);
100 while (--p > path && *p == '/')
103 while ((p = strrchr(path, '/')) != NULL) {
105 while (--p >= path && *p == '/')
108 if (p == path)
111 if (rmdir(path) < 0) {
112 warn("%s", path);
116 printf("%s\n", path);
[all...]
/freebsd-9.3-release/bin/sh/
H A Dcd.c85 const char *path; local
130 (path = bltinlookup("CDPATH", 1)) == NULL)
131 path = nullstr;
132 while ((p = padvance(&path, dest)) != NULL) {
193 * Check each component of the path. If we find a symlink or
255 * Get the next component of the path name pointed to by cdcomppath.
H A Deval.c763 const char *path = pathval(); local
851 * Modify the command lookup path, if a PATH= assignment
856 path = sp->text + sizeof(PATH) - 1;
889 find_command(argv[0], &cmdentry, cmd_flags, path);
916 path = _PATH_STDPATH;
961 vforkexecshell(jp, argv, environment(), path,
1107 shellexec(argv, envp, path, cmdentry.u.index);
1213 const char *path; local
1217 path = bltinlookup("PATH", 1);
1224 path
[all...]
H A Dexec.c51 * This ensures that a full path search will not have to be done for them
115 shellexec(char **argv, char **envp, const char *path, int idx) argument
125 while ((cmdname = padvance(&path, argv[0])) != NULL) {
176 * Do a path search. The variable path (passed by reference) should be
177 * set to the start of the path before the first call; padvance will update
179 * the possible path expansions in sequence. If an option (indicated by
180 * a percent sign) appears in the path entry then the global variable
188 padvance(const char **path, const char *name) argument
194 if (*path
277 const char *path; local
318 find_command(const char *name, struct cmdentry *entry, int act, const char *path) argument
667 typecmd_impl(int argc, char **argv, int cmd, const char *path) argument
[all...]
H A Djobs.c890 vforkexecshell(struct job *jp, char **argv, char **envp, const char *path, int idx, int pip[2]) argument
919 shellexec(argv, envp, path, idx);
H A Dmain.c277 * Take commands from a file. To be compatible we should do a path
286 const char *path = pathval(); local
293 while ((fullname = padvance(&path, basename)) != NULL) {
/freebsd-9.3-release/cddl/compat/opensolaris/misc/
H A Ddeviceid.c57 char path[MAXPATHLEN]; local
60 if (g_get_name(devid.devid, path, sizeof(path)) == -1)
65 if (strlcpy((*retlist)[0].devname, path,
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Bin/
H A Ddnlcsnoop.d58 /* store path */
59 self->path = stringof(args[0]->v_path);
62 this->len = strlen(self->path);
85 self->path, self->join, self->name);
88 self->path = 0;
H A Dpathopens.d61 this->path = curthread->t_procp->p_user.u_cdir->v_path;
71 this->len = strlen(this->path);
72 self->join = *(char *)(this->path + this->len - 1) == '/' ? "" : "/";
H A Dsh_wasted.d62 this->path = copyinstr(arg1);
63 this->cmd = basename(this->path);
69 @types_cmd[basename(copyinstr(arg0)), this->path] = sum(this->elapsed);
76 @types_wasted[basename(copyinstr(arg0)), this->path] =
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Kernel/
H A Ddnlcsnoop.d58 /* store path */
59 self->path = stringof(args[0]->v_path);
62 this->len = strlen(self->path);
85 self->path, self->join, self->name);
88 self->path = 0;
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Proc/
H A Dpathopens.d61 this->path = curthread->t_procp->p_user.u_cdir->v_path;
71 this->len = strlen(this->path);
72 self->join = *(char *)(this->path + this->len - 1) == '/' ? "" : "/";
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Shell/
H A Dsh_wasted.d62 this->path = copyinstr(arg1);
63 this->cmd = basename(this->path);
69 @types_cmd[basename(copyinstr(arg0)), this->path] = sum(this->elapsed);
76 @types_wasted[basename(copyinstr(arg0)), this->path] =
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Dtst.cputime.ksh74 echo expected one argument: '<'dtrace-path'>'

Completed in 148 milliseconds

1234567891011>>