/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | creat.c | 29 int creat(path, mode) 30 char *path; 34 return(creat_com(path, mode));
|
H A D | unlink.c | 31 unlink(const char *path) argument 33 if (strcmp(path, "/etc/utmp") == 0 || 34 strcmp(path, "/var/adm/utmp") == 0) 35 path = "/var/adm/utmpx"; 36 else if (strcmp(path, "/var/adm/wtmp") == 0) 37 path = "/var/adm/wtmpx"; 39 return (_syscall(SYS_unlinkat, AT_FDCWD, path, 0));
|
H A D | open.c | 33 open(char *path, int flags, int mode) argument 35 return (bc_open(path, flags, mode)); 40 bc_open(char *path, int flags, int mode) argument 42 if ((path == (char*)0) || (path == (char*) -1)) { 46 return (open_com(path, flags, mode));
|
H A D | stat.c | 34 int stat(path, buf) 35 char *path; 38 return(bc_stat(path, buf)); 41 int bc_stat(path, buf) 42 char *path; 45 if (path == (char*)0) { 53 return(stat_com(0, path, buf)); 57 int lstat(path, buf) 58 char *path; 61 return(bc_lstat(path, bu [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_abs.c | 22 * Return if a path is an absolute path. 27 __os_abspath(path) 28 const char *path; 30 return (path[0] == '/');
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | getwd.c | 32 getwd(char* path) argument 34 if (getcwd(path, PATH_MAX)) return(path); 35 strcpy(path, "getwd: error in . or ..");
|
H A D | unlink.c | 33 unlink(const char* path) 35 return(remove(path));
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.cleanpath.d | 33 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/libbc/libc/sys/4.2/ |
H A D | stat.c | 32 int stat(path, buf) 33 char *path; 36 return(bc_stat(path, buf)); 40 int bc_stat(path, buf) 41 char *path; 44 if ((path == (char*)-1) || (path == (char*)0)) { 52 return(stat_com(0, path, buf)); 56 int lstat(path, buf) 57 char *path; [all...] |
H A D | unlink.c | 32 unlink(const char *path) argument 34 CHKNULL(path); 36 if (strcmp(path, "/etc/utmp") == 0 || 37 strcmp(path, "/var/adm/utmp") == 0) 38 path = "/var/adm/utmpx"; 39 else if (strcmp(path, "/var/adm/wtmp") == 0) 40 path = "/var/adm/wtmpx"; 42 return (_syscall(SYS_unlinkat, AT_FDCWD, path, 0));
|
H A D | open.c | 36 open(char *path, int flags, int mode) argument 38 return (bc_open(path, flags, mode)); 42 bc_open(char *path, int flags, int mode) argument 44 CHKNULL(path); 49 return (open_com(path, flags, mode));
|
H A D | access.c | 35 access(char *path, int mode) argument 37 CHKNULL(path); 39 return (access_com(path, mode));
|
H A D | creat.c | 36 creat(char *path, int mode) argument 38 CHKNULL(path); 40 return (creat_com(path, mode));
|
H A D | mkfifo.c | 34 mkfifo(char *path, mode_t mode) argument 36 CHKNULL(path); 37 return (mknod(path, S_IFIFO | (mode & (S_IRWXU|S_IRWXG|S_IRWXO))));
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | umount.c | 42 umount(const char *path) argument 44 return (umount2(path, 0));
|
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathrepl.c | 27 * 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 D | pathaccess.c | 27 * 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/libbc/libc/sys/common/ |
H A D | _access.c | 33 access_com(char *path, int mode) argument 35 if (strcmp(path, "/etc/mtab") == 0 || 36 strcmp(path, "/etc/fstab") == 0) { 43 if (strcmp(path, "/etc/utmp") == 0 || 44 strcmp(path, "/var/adm/utmp") == 0) 45 path = "/var/adm/utmpx"; 46 else if (strcmp(path, "/var/adm/wtmp") == 0) 47 path = "/var/adm/wtmpx"; 49 return (_syscall(SYS_faccessat, AT_FDCWD, path, mode, 0));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fdetach.c | 43 fdetach(const char *path) argument 46 return (umount(path));
|
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | fopen.c | 27 fopen(const char* path, const char* mode) argument 29 return sfopen(NiL, path, mode);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ckvolseq.c | 49 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 D | dirs.c | 41 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 D | chroot.cc | 29 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 D | rmdir.cc | 29 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 D | unlink.cc | 29 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);
|