/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/lp/lib/msgs/ |
H A D | mconnect.c | 57 MESG * mconnect ( char * path, int id1, int id2 ) argument 60 char *path; 72 ** invoked as mconnect(path, 0, 0) 74 ** Open <path>, if isastream() is true for the returned file 78 if (path) 82 ** <path> identifies a pipe. 84 ** and from thinking the <path> is a non-streams pipe. 88 Again: if (stat(path, &stbuf) == -1) 97 if ((fd = Open(path, O_RDWR, 0)) == -1) 98 if ((fd = Open(path, O_WRONL [all...] |
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | getpentry.c | 61 register char * path; local 98 path = getprinterfile(name, CONFIGFILE); 99 if (!path) { 105 if ((fd = open_locked(path, "r", 0)) < 0) { 106 Free(path); 121 Free(path);
|
H A D | printwheels.c | 118 register char *path; local 137 if (!(path = makepath(Lp_A_PrintWheels, name, (char *)0))) 139 if (Stat(path, &statbuf) == 0) { 141 Free (path); 145 } else if (errno != ENOENT || mkdir_lpdir(path, MODE_DIR) == -1) { 146 Free (path); 149 Free (path); 212 register char *path; local 216 if (!(path = makepath(Lp_A_PrintWheels, name, (char *)0))) 218 if (Rmdir(path)) { [all...] |
/illumos-gate/usr/src/cmd/lp/lib/secure/ |
H A D | secure.c | 52 *path; local 60 path = Strdup(file); 62 path = makepath(Lp_Requests, file, (char *)0); 63 if (!path) 66 if ((fd = open_locked(path, "r", MODE_NOREAD)) < 0) { 67 Free (path); 70 Free (path); 149 char *path; local 156 path = Strdup(file); 158 path [all...] |
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | fksmbd_shr.c | 41 new_share(char *name, char *path, char *comment, int flags) argument 47 (void) strlcpy(si.shr_path, path, MAXPATHLEN); 59 * name path comment 69 char *name, *path, *comment; local 85 path = p; 97 new_share(name, path, comment, 0);
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | lftw.c | 33 * int ftw (path, fn, depth) char *path; int (*fn)(); int depth; 35 * Given a path name, ftw starts from the file given by that path 40 * The first contains the path name of the object, the second 112 const char *path, 121 rc = (lf_xftw(path, fn, depth, lstat64)); 130 const char *path, 135 lf_xftw(char *path, int (*fn)(), int depth, int (*statfn)()) 150 if ((*statfn)(path, 111 lf_lftw( const char *path, int (*fn)(const char *, const struct stat64 *, int), int depth) argument 129 lf_xftw( const char *path, int (*fn)(const char *, const struct stat64 *, int), int depth, int (*statfn)(const char *, struct stat64 *)) argument [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | nullfs.c | 71 int null_open (const char *path, struct open_file *f) argument
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | ls.c | 64 char *buf, *path; local 89 path = ""; 91 path = argv[1]; 94 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { 98 (int)sb.st_size, path); 101 typestr[sb.st_mode >> 12], path); 106 fd = ls_getdir(&path); 112 pager_output(path); 121 buf = malloc(strlen(path) + strlen(d->d_name) + 2); 122 sprintf(buf, "%s/%s", path, 159 char *path; local [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mlsetup.c | 477 mach_modpath(char *path, const char *filename) argument 480 * Construct the directory path from the filename. 489 (void) strcpy(path, SYSTEM_BOOT_PATH "/kernel "); 490 path += len + 1; 513 (void) strncpy(path, filename, p - filename);
|
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | MP_GetMultipathLusPlugin.c | 35 * Checks whether there is online path or not. 36 * - no path found returns -1. 37 * - online/standby path found returns 1. 38 * - path exists but no online/standby path found returns 0. 42 di_path_t path; local 45 if ((path = di_path_client_next_path(node, DI_PATH_NIL)) 48 " - No path found"); 53 /* ignore the path that is neither online nor standby. */ 54 if (((state = di_path_state(path)) [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_reparse.c | 39 * Checks the status of the object specified by 'path' 45 smb_reparse_stat(const char *path, uint32_t *stat) argument 51 if (lstat(path, &statbuf) != 0) { 65 if (readlink(path, symbuf, MAXREPARSELEN) == -1) 78 * If the reparse point specified by the path already exists 87 smb_reparse_svcadd(const char *path, const char *svctype, const char *svcdata) argument 92 if ((rc = smb_reparse_init(path, &nvl)) != 0) 100 rc = smb_reparse_set(path, nvl); 112 smb_reparse_svcdel(const char *path, const char *svctype) argument 117 if ((rc = smb_reparse_init(path, 148 smb_reparse_svcget(const char *path, const char *svctype, char **svcdata) argument 197 smb_reparse_init(const char *path, nvlist_t **nvl) argument 237 smb_reparse_set(const char *path, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | libdiskstatus.c | 67 disk_status_open(const char *path, int *error) argument 78 if ((dsp->ds_fd = open(path, O_RDWR)) < 0) { 84 if ((dsp->ds_path = strdup(path)) == NULL) {
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | iod_cl.c | 92 char *path; local 96 path = smb_iod_door_path(); 97 fd = open(path, O_RDONLY, 0);
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | direader.c | 147 * path const char * The directory to be opened. 156 int _dr_open_dir(DirReader *dr, const char *path, char **errmsg) argument 164 * Is the path a directory? 166 if(!_dr_path_is_dir(path)) { 168 _err_record_msg(dr->err, "Can't open directory: ", path, END_ERR_MSG); 176 dir = opendir(path); 179 _err_record_msg(dr->err, "Can't open directory: ", path, END_ERR_MSG); 190 int name_max = pathconf(path, _PC_NAME_MAX); 292 * pathname const char * The path to test.
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 68 register char *cp, *path; local 77 path = arg+2; 79 path = arg; 81 if (path[1]=='\0'&&M_FSDELIM(*path)) /* "/", or drive analog */ 84 cp = strchr(path, '\0'); 87 while (cp != path && M_FSDELIM(*cp)) 90 for (;cp>path && !M_FSDELIM(*cp); cp--) 94 if (type==DIRNAME && path!=arg) { 95 *path [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pexecname.c | 49 * Once we've computed a cwd and a relative path, we use try_exec() to 50 * form an absolute path, call resolvepath() on it, and then let the 54 try_exec(struct ps_prochandle *P, const char *cwd, const char *path, char *buf, argument 59 if (path[0] != '/') 60 (void) snprintf(buf, PATH_MAX, "%s/%s", cwd, path); 62 (void) strcpy(buf, path); 87 char path[PATH_MAX]; local 91 char *p = path, *q; 128 * is in a zone, try again with the zone path instead of our cwd. 131 Pread_string(P, path, sizeo [all...] |
H A D | Pfdinfo.c | 90 char path[PATH_MAX]; local 96 * Try to get the path information first. 99 "%s/%d/path", procfs_path, (int)P->pid); 136 /* attempt to determine the path to it */ 144 (void) snprintf(path, sizeof (path), 145 "%s/%d/path/%d", procfs_path, (int)P->pid, 147 len = readlink(path, info->pr_path,
|
H A D | pr_stat.c | 69 pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 81 return (stat(path, buf)); 95 adp++; /* move to path argument */ 98 adp->arg_object = (void *)path; 101 adp->arg_size = strlen(path) + 1; 144 pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 156 return (lstat(path, buf)); 170 adp++; /* move to path argument */ 173 adp->arg_object = (void *)path; 176 adp->arg_size = strlen(path) 294 pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 373 pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument [all...] |
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_hardlink.c | 93 if (hl->path) { 95 hl->path); 96 if (remove(hl->path)) { 106 if (hl->path) 107 free(hl->path); 115 * Return 0 if a list node has the same inode, and initialize offset and path 121 unsigned long long *offset, char **path) 143 if (path) 144 *path = hl->path; 120 hardlink_q_get(struct hardlink_q *hl_q, unsigned long inode, unsigned long long *offset, char **path) argument 158 hardlink_q_add(struct hardlink_q *hl_q, unsigned long inode, unsigned long long offset, char *path, int is_tmp_file) argument [all...] |
/illumos-gate/usr/src/cmd/mkfifo/ |
H A D | mkfifo.c | 54 newmode(char *modestr, mode_t basemode, mode_t umask, char *file, char *path); 59 char *path; local 97 path = argv[i]; 98 if (mkfifo(path, mode) < 0) {
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | modload.c | 58 char path[1024]; local 88 if (getcwd(path, 1023 - strlen(modpath)) == NULL) 90 (void) strcat(path, "/"); 91 (void) strcat(path, modpath); 93 (void) strcpy(path, modpath); 98 if (modctl(MODLOAD, use_path, path, &id) != 0) {
|
/illumos-gate/usr/src/cmd/dumpadm/ |
H A D | minfree.c | 44 char path[MAXPATHLEN]; local 47 (void) snprintf(path, sizeof (path), "%s/minfree", dir); 49 if ((fd = open(path, oflags, S_IRUSR | S_IWUSR)) >= 0)
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_lookup.c | 47 char *path, 42 do_lookup1( char *mapname, char *key, char *subdir, char *mapopts, char *path, uint_t isdirect, uid_t uid, autofs_action_t *action, struct linka *linkp) argument
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | unused.c | 90 Dbg_unused_path(Lm_list *lml, const char *path, uint_t orig, uint_t dup, argument 117 dbg_print(lml, fmt, path, obj);
|