Searched defs:path (Results 1 - 25 of 1108) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libast/common/comp/
H A Dgetwd.c32 getwd(char* path) argument
34 if (getcwd(path, PATH_MAX)) return(path);
35 strcpy(path, "getwd: error in . or ..");
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpath_valid.c40 * Description: Checks a string for being a valid path
42 * Arguments: path - path to validate
45 * B_FALSE means path was null, too long (>PATH_MAX),
49 path_valid(char *path) argument
51 if (path == NULL) {
53 } else if (strlen(path) > PATH_MAX) {
55 } else if (strlen(path) >= 1) {
58 /* path < 1 */
H A Drrmdir.c44 char path[PATH_MAX+13]; local
59 /* do not allow removal of all root files via blank path */
63 pkg_gt("warning: rrmdir(path==NULL): nothing deleted\n"));
68 * first generate path with slash-star at the end and attempt to remove
69 * all files first. If successful then remove with just the path only.
72 (void) snprintf(path, sizeof (path), "%s/", a_path);
74 "/bin/rm", "rm", "-rf", path, (char *)NULL);
/illumos-gate/usr/src/lib/libgen/common/
H A Deaccess.c42 eaccess(const char *path, int amode) argument
45 return (access(path, 010|amode));
/illumos-gate/usr/src/lib/libmail/common/
H A Dabspath.c34 * abspath - expand a path relative to some `.'
37 * string *abspath(char *path, char *dot, string *to)
40 * If "path" is relative, ie: does not start with `.', the
42 * returned in "to". Otherwise, the value of "path" is
49 abspath(char *path, char *dot, string *to) argument
51 if (*path == '/') {
52 to = s_append(to, path);
55 to = s_append(to, path);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdetach.c43 fdetach(const char *path) argument
46 return (umount(path));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dumount.c42 umount(const char *path) argument
44 return (umount2(path, 0));
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dreplica.h43 char *path; member in struct:replica
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcvtpath.c34 cvtpath(char *path, char *copy) argument
37 if (root || (basedir && (*path != '/'))) {
38 if (root && ((basedir == NULL) || (path[0] == '/') ||
46 if (basedir && (*path != '/')) {
54 (void) strcpy(copy, path + (*path == '/' ? 1 : 0));
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathstat.c33 pathstat(const char* path, struct stat* st) argument
39 if (!stat(path, st)) return(0);
41 return(lstat(path, st));
43 return(stat(path, st));
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfopen.c27 fopen(const char* path, const char* mode) argument
29 return sfopen(NiL, path, mode);
H A Dfreopen.c27 freopen(const char* path, const char* mode, Sfio_t* f) argument
29 STDIO_PTR(f, "freopen", Sfio_t*, (const char*, const char*, Sfio_t*), (path, mode, f))
31 return sfopen(f, path, mode);
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetlabel.c52 getlabel(const char *path, bslabel_t *label) argument
54 return (syscall(SYS_labelsys, TSOL_GETLABEL, path, label));
/illumos-gate/usr/src/cmd/lp/lib/class/
H A Ddelclass.c78 char *path; local
80 if (!(path = getclassfile(name)))
82 if (rmfile(path) == -1) {
83 Free (path);
86 Free (path);
/illumos-gate/usr/src/cmd/lp/lib/forms/
H A Ddelform.c88 register char *path; local
90 #define RMFILE(X) if (!(path = getformfile(name, X))) \
92 if (rmfile(path) == -1) { \
93 Free (path); \
96 Free (path)
105 if (!(path = getformfile(name, (char *)0)))
107 if (Rmdir(path) == -1) {
108 Free (path);
111 Free (path);
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Ddirs.c41 char * path,
45 mkdir_lpdir (path, mode)
46 char *path;
55 ret = Mkdir(path, mode);
57 ret = chown_lppath(path);
40 mkdir_lpdir( char * path, int mode ) argument
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_fdio.c44 mdb_fdio_create_path(const char *path[], const char *fname, argument
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dbackup.c40 backup(char *path, int mode) argument
57 (void) fprintf(fp, "%s%s", path, mode ? "\n" :
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dprocrun.c37 procrun(const char* path, char** argv, int flags) argument
46 return pathpath(buf, path, NiL, PATH_REGULAR|PATH_EXECUTE) ? 0 : -1;
48 return procclose(procopen(path, argv, NiL, NiL, flags|PROC_FOREGROUND|PROC_GID|PROC_UID));
/illumos-gate/usr/src/lib/libast/common/preroot/
H A Drealopen.c25 * disable preroot and open path relative to the real root
34 realopen(const char* path, int mode, int perm) argument
38 if (*path != '/' || !ispreroot(NiL)) return(-1);
39 strcopy(strcopy(buf, PR_REAL), path);
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dchdir.cc31 static int chdir_thunk(char *path) argument
33 vroot_result= chdir(path);
37 int chdir_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot) argument
39 translate_with_thunk(path, chdir_thunk, vroot_path, vroot_vroot, rw_read);
H A Dchroot.cc29 extern int chroot(const char *path);
34 static int chroot_thunk(char *path) argument
36 vroot_result= chroot(path);
40 int chroot_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot) argument
42 translate_with_thunk(path, chroot_thunk, vroot_path, vroot_vroot, rw_read);
H A Drmdir.cc29 extern int rmdir(const char *path);
34 static int rmdir_thunk(char *path) argument
36 vroot_result= rmdir(path);
40 int rmdir_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot) argument
42 translate_with_thunk(path, rmdir_thunk, vroot_path, vroot_vroot, rw_read);
H A Dunlink.cc29 extern int unlink(const char *path);
34 static int unlink_thunk(char *path) argument
36 vroot_result= unlink(path);
40 int unlink_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot) argument
42 translate_with_thunk(path, unlink_thunk, vroot_path, vroot_vroot, rw_read);
/illumos-gate/usr/src/lib/libproc/common/
H A DPisprocdir.c40 char path[PATH_MAX]; local
45 (void) snprintf(path, sizeof (path), "%s/%d/root%s",
48 (void) snprintf(path, sizeof (path), "%s/%d/cwd/%s",
56 return (stat(path, &statb) == 0 &&
57 statvfs(path, &statvfsb) == 0 &&

Completed in 71 milliseconds

1234567891011>>