/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | shm.c | 38 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/lib/libast/common/stdio/ |
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/cmd/dtrace/demo/user/ |
H A D | badopen.d | 30 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 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/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/sys5/ |
H A D | access.c | 34 access(char *path, int mode) argument 36 return (access_com(path, mode));
|
H A D | execve.c | 35 char path[256]; local 40 strcpy(path, "/usr/ucb"); 41 strcat(path, strrchr(file, '/')); 42 file = path; 46 strcpy(path, "/usr/bin"); 47 strcat(path, strrchr(file, '/')); 48 if (_syscall(SYS_faccessat, AT_FDCWD, path, F_OK, 0) == 0) 49 file = path; 52 strcpy(path, "/usr/bin"); 53 strcat(path, strrch [all...] |
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | delprinter.c | 100 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/libbc/libc/sys/4.2/ |
H A D | execve.c | 36 char path[256]; local 42 strcpy(path, "/usr/bin"); 43 strcat(path, strrchr(file, '/')); 44 file = path; 49 strcpy(path, "/usr/ucb"); 50 strcat(path, strrchr(file, '/')); 51 if (_syscall(SYS_faccessat, AT_FDCWD, path, F_OK, 0) == 0) 52 file = path; 55 strcpy(path, "/usr/bin"); 56 strcat(path, strrch [all...] |
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/libc/port/gen/ |
H A D | mkfifo.c | 39 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/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/sendmail/db/os/ |
H A D | os_unlink.c | 31 __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 D | lstat.c | 34 lstat(const char* path, struct stat* st) 36 return(stat(path, st));
|
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathnative.c | 27 * convert path to native fs representation in <buf,siz> 28 * length of converted path returned 41 pathnative(const char* path, char* buf, size_t siz) argument 43 return uwin_path(path, buf, siz); 53 pathnative(const char* path, char* buf, size_t siz) argument 61 cygwin_conv_to_win32_path(path, tmp); 66 cygwin_conv_to_win32_path(path, buf); 75 pathnative(const char* path, char* buf, size_t siz) argument 80 if (!_fullpath(buf, path, siz)) 86 else if ((n = strlen(path)) < si 98 pathnative(const char* path, char* buf, size_t siz) argument 111 pathnative(const char* path, char* buf, size_t siz) argument [all...] |
H A D | pathposix.c | 27 * convert native path to posix fs representation in <buf,siz> 28 * length of converted path returned 41 pathposix(const char* path, char* buf, size_t siz) argument 43 return uwin_unpath(path, buf, siz); 53 pathposix(const char* path, char* buf, size_t siz) argument 61 cygwin_conv_to_posix_path(path, tmp); 66 cygwin_conv_to_posix_path(path, buf); 75 pathposix(const char* path, char* buf, size_t siz) argument 80 if (!_posixpath(buf, path, siz)) 86 else if ((n = strlen(path)) < si 98 pathposix(const char* path, char *buf, size_t siz) argument 113 pathposix(const char* path, char* buf, size_t siz) argument [all...] |
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));
|
H A D | pathpath.c | 27 * return full path to p with mode access using $PATH 32 * full path returned in path buffer 33 * if path==0 then the space is malloc'd 39 pathpath(register char* path, const char* p, const char* a, int mode) argument 47 if (!path) 48 path = buf; 58 strcpy(path, p); 59 if (pathexists(path, mode)) 66 if (path ! [all...] |
/illumos-gate/usr/src/cmd/lp/lib/forms/ |
H A D | putform.c | 51 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...] |
/illumos-gate/usr/src/cmd/make/lib/vroot/ |
H A D | chdir.cc | 31 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);
|
/illumos-gate/usr/src/lib/libvolmgt/ |
H A D | volmgt.h | 45 * path - the name of the device in /dev. For example, 46 * /dev/rdiskette. If path is NULL, all "checkable" devices are 52 int volmgt_check(char *path); 60 * path - the name of the device in /dev. For example, 66 int volmgt_inuse(char *path); 88 * path - a string containing the /dev device name. For example, 98 char *volmgt_symname(char *path); 108 * path - a string containing the symbolic device name. For example, 122 * check to see if the given path is contained in 126 * path [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pisprocdir.c | 40 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 &&
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | which.c | 55 char *path = 0; local 62 && (path = getprinterfile(str, CONFIGFILE)) 63 && Access(path, F_OK) == 0 65 if (path) 66 Free (path); 84 char *path = 0; local 91 && (path = getclassfile(str)) 92 && Access(path, F_OK) == 0 94 if (path) 95 Free (path); [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | mkdir.c | 32 mkdirat(int fd, const char *path, mode_t mode) argument 34 return (syscall(SYS_mkdirat, fd, path, mode)); 39 mkdir(const char *path, mode_t mode) argument 42 return (syscall(SYS_mkdir, path, mode)); 44 return (mkdirat(AT_FDCWD, path, mode));
|
/illumos-gate/usr/src/cmd/lp/lib/class/ |
H A D | delclass.c | 78 char *path; local 80 if (!(path = getclassfile(name))) 82 if (rmfile(path) == -1) { 83 Free (path); 86 Free (path);
|