/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
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 | 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))));
|
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 | truncate.c | 37 truncate(char *path, off_t length) argument 41 CHKNULL(path); 43 if (strcmp(path, "/etc/mtab") == 0 || strcmp(path, "/etc/fstab") == 0) { 47 if ((fd = open(path, O_WRONLY)) == -1) {
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
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 | access.c | 34 access(char *path, int mode) argument 36 return (access_com(path, mode));
|
H A D | mkfifo.c | 33 mkfifo(char *path, mode_t mode) argument 35 return (mknod(path, S_IFIFO | (mode & (S_IRWXU|S_IRWXG|S_IRWXO))));
|
H A D | mknod.c | 41 mknod(char *path, int mode, int dev) argument 48 return (mkdir(path, mode & 07777)); 50 return (_mknod(path, mode, dev));
|
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));
|
/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 ..");
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | eaccess.c | 42 eaccess(const char *path, int amode) argument 45 return (access(path, 010|amode));
|
/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));
|
H A D | _creat.c | 37 creat_com(char *path, int mode) argument 41 if (strcmp(path, "/etc/mtab") == 0 || 42 strcmp(path, "/etc/fstab") == 0) { 46 if (strcmp(path, "/var/adm/wtmp") == 0) { 52 if (strcmp(path, "/etc/utmp") == 0 || 53 strcmp(path, "/var/adm/utmp") == 0) { 59 return (_syscall(SYS_openat, AT_FDCWD, path, CREATFLAGS, mode));
|
/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/libc/port/sys/ |
H A D | umount.c | 42 umount(const char *path) argument 44 return (umount2(path, 0));
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | abspath.c | 34 * 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/fs.d/nfs/lib/ |
H A D | replica.h | 43 char *path; member in struct:replica
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | cvtpath.c | 34 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 D | pathstat.c | 33 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 D | fopen.c | 27 fopen(const char* path, const char* mode) argument 29 return sfopen(NiL, path, mode);
|
H A D | freopen.c | 27 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 D | getlabel.c | 52 getlabel(const char *path, bslabel_t *label) argument 54 return (syscall(SYS_labelsys, TSOL_GETLABEL, path, label));
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | rrmdir.c | 44 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);
|