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

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dunlink.c32 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 Daccess.c35 access(char *path, int mode) argument
37 CHKNULL(path);
39 return (access_com(path, mode));
H A Dcreat.c36 creat(char *path, int mode) argument
38 CHKNULL(path);
40 return (creat_com(path, mode));
H A Dmkfifo.c34 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 Dopen.c36 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 Dtruncate.c37 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 Dunlink.c31 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 Daccess.c34 access(char *path, int mode) argument
36 return (access_com(path, mode));
H A Dmkfifo.c33 mkfifo(char *path, mode_t mode) argument
35 return (mknod(path, S_IFIFO | (mode & (S_IRWXU|S_IRWXG|S_IRWXO))));
H A Dmknod.c41 mknod(char *path, int mode, int dev) argument
48 return (mkdir(path, mode & 07777));
50 return (_mknod(path, mode, dev));
/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/libbc/libc/sys/common/
H A D_access.c33 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.c37 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 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));

Completed in 265 milliseconds

1234567891011>>