Searched defs:path (Results 151 - 175 of 1135) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/lp/lib/forms/
H A Dputform.c51 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 Dmconnect.c57 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 Dgetpentry.c61 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 Dprintwheels.c118 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 Dsecure.c52 *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 Dfksmbd_shr.c41 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 Dlftw.c33 * 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 Dnullfs.c71 int null_open (const char *path, struct open_file *f) argument
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dls.c64 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 Dmlsetup.c477 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 DMP_GetMultipathLusPlugin.c35 * 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 Dsmb_reparse.c39 * 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 Dlibdiskstatus.c67 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 Diod_cl.c92 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 Ddireader.c147 * 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 Dbase.c68 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 DPexecname.c49 * 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 DPfdinfo.c90 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 Dpr_stat.c69 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 Dtlm_hardlink.c93 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 Dmkfifo.c54 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 Dmodload.c58 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 Dminfree.c44 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 Dautod_lookup.c47 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 Dunused.c90 Dbg_unused_path(Lm_list *lml, const char *path, uint_t orig, uint_t dup, argument
117 dbg_print(lml, fmt, path, obj);

Completed in 2509 milliseconds

1234567891011>>