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

1234567891011>>

/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_abs.c22 * Return if a path is an absolute path.
27 __os_abspath(path)
28 const char *path;
30 return (path[0] == '/');
H A Dos_unlink.c31 __os_unlink(path)
32 const char *path;
37 __db_jump.j_unlink(path) : unlink(path);
/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 ..");
H A Dunlink.c33 unlink(const char* path)
35 return(remove(path));
H A Dlstat.c34 lstat(const char* path, struct stat* st)
36 return(stat(path, st));
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.cleanpath.d33 path[i++] = "/foo/bar/baz";
34 path[i++] = "/foo/bar///baz/";
35 path[i++] = "/foo/bar/baz/";
36 path[i++] = "/foo/bar/baz//";
37 path[i++] = "/foo/bar/baz/.";
38 path[i++] = "/foo/bar/baz/./";
39 path[i++] = "/foo/bar/../../baz/.//";
40 path[i++] = "foo/bar/./././././baz/";
41 path[i++] = "/foo/bar/baz/../../../../../../";
42 path[
[all...]
/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/lib/libast/common/path/
H A Dpathrepl.c27 * in place replace of first occurrence of /match/ with /replace/ in path
28 * end of path returned
34 pathrepl(register char* path, const char* match, register const char* replace) argument
43 return(path + strlen(path));
46 while (*path && *path++ != '/');
47 if (!*path) break;
48 if (*path == *m)
50 t = path;
[all...]
H A Dpathaccess.c27 * return path to file a/b with access mode using : separated dirs
30 * if (mode&PATH_REGULAR) then path must not be a directory
31 * if (mode&PATH_ABSOLUTE) then path must be rooted
32 * path returned in path buffer
38 pathaccess(register char* path, register const char* dirs, const char* a, const char* b, register int mode) argument
46 dirs = pathcat(path, dirs, sep, a, b);
47 pathcanon(path, 0);
48 if ((!sib || *path == '/') && pathexists(path, mod
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdetach.c43 fdetach(const char *path) argument
46 return (umount(path));
H A Dmkfifo.c39 mkfifoat(int fd, const char *path, mode_t mode) argument
43 return (mknodat(fd, path, mode, 0));
48 mkfifo(const char *path, mode_t mode) argument
52 return (mknod(path, mode, 0));
/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/libpkg/common/
H A Dckvolseq.c49 char ftype, path[PATH_MAX]; local
59 (void) snprintf(path, sizeof (path), "%s/pkginfo", dir);
60 if (cverify(0, &ftype, path, &cinfo, 1)) {
61 logerr(pkg_gt(ERR_BADPKGINFO), path); local
65 (void) snprintf(path, sizeof (path), "%s/pkgmap", dir);
66 if (access(path, 0)) {
67 logerr(pkg_gt(ERR_NOPKGMAP), path); local
75 (void) snprintf(path, sizeo
[all...]
/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/make/lib/vroot/
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/libc/port/rt/
H A Dshm.c38 shm_open(const char *path, int oflag, mode_t mode) argument
44 if (__pos4obj_check(path) == -1)
48 if (__pos4obj_lock(path, SHM_LOCK_TYPE) < 0)
51 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
54 (void) __pos4obj_unlock(path, SHM_LOCK_TYPE);
60 (void) __pos4obj_unlock(path, SHM_LOCK_TYPE);
66 if (__pos4obj_unlock(path, SHM_LOCK_TYPE) < 0) {
75 shm_unlink(const char *path) argument
80 if (__pos4obj_check(path) < 0)
83 if (__pos4obj_lock(path, SHM_LOCK_TYP
[all...]
/illumos-gate/usr/src/cmd/dtrace/demo/user/
H A Dbadopen.d30 self->path = copyinstr(arg0);
34 /self->path != NULL && arg1 == -1/
36 printf("open for '%s' failed", self->path);
/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/libgen/common/
H A Deaccess.c42 eaccess(const char *path, int amode) argument
45 return (access(path, 010|amode));
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Ddelprinter.c100 register char *path; local
105 #define RMFILE(X) if (!(path = getprinterfile(name, X))) \
107 if (rmfile(path) == -1) { \
108 Free (path); \
111 Free (path)
123 if (!(path = makepath(Lp_A_Interfaces, name, (char *)0)))
125 if (rmfile(path) == -1) {
126 Free (path);
129 Free (path);
135 if (!(path
[all...]
/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/cmd/lp/lib/forms/
H A Dputform.c51 register char * path; local
72 if (!(path = getformfile(name, (char *)0)))
74 if (Stat(path, &statbuf) == 0) {
76 Free (path);
80 } else if (errno != ENOENT || mkdir_lpdir(path, MODE_DIR) == -1) {
81 Free (path);
84 Free (path);
91 if (!(path = getformfile(name, DESCRIBE)))
93 if ((fd = open_locked(path, "w", MODE_READ)) < 0) {
94 Free (path);
[all...]

Completed in 96 milliseconds

1234567891011>>