Searched defs:fname (Results 1 - 25 of 97) sorted by relevance

1234

/osnet-11/usr/src/lib/libc/port/sys/
H A Daccess.c32 faccessat(int fd, const char *fname, int amode, int flag) argument
34 return (syscall(SYS_faccessat, fd, fname, amode, flag));
39 access(const char *fname, int amode) argument
41 return (faccessat(AT_FDCWD, fname, amode, 0));
/osnet-11/usr/src/lib/libuutil/common/
H A Duu_open.c50 char *fname = uu_zalloc(PATH_MAX); local
52 if (fname == NULL)
56 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime());
58 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
65 (void) unlink(fname);
67 uu_free(fname);
/osnet-11/usr/src/lib/libc/port/gen/
H A Disaexec.c44 const char *fname; local
97 fname = execname + (str - pathname);
99 fname = execname;
115 (void) strcat(pathname + len, fname);
H A Dexecvp.c111 char fname[PATH_MAX+2]; local
155 cp = execat(cp, name, fname);
162 if (*fname == '-') {
163 size_t size = strlen(fname) + 1;
164 if ((size + 2) > sizeof (fname)) {
168 (void) memmove(fname + 2, fname, size);
169 fname[0] = '.';
170 fname[1] = '/';
172 (void) execv(fname, arg
[all...]
/osnet-11/usr/src/cmd/sendmail/db/log/
H A Dlog_rec.c326 FNAME *fname; local
340 if (__log_lid_to_fname(logp, ndx, &fname) != 0) {
345 name = R_ADDR(logp, fname->name_off);
359 fname->ufid, name, fname->s_type, ndx)) != 0)
H A Dlog.c372 char *fname; local
377 number, &fname, &fd, DB_RDONLY | DB_SEQUENTIAL)) != 0) {
378 __os_freestr(fname);
392 "Ignoring log file: %s: %s", fname, strerror(ret));
401 fname, (u_long)persist.magic, (u_long)DB_LOGMAGIC);
408 fname, (u_long)persist.version);
423 err: __os_freestr(fname);
/osnet-11/usr/src/lib/libproc/common/
H A DPidle.c109 Pgrab_file(const char *fname, int *perr) argument
120 if ((fd = open64(fname, O_RDONLY)) < 0) {
167 if (*fname == '/') {
168 (void) strncpy(fp->file_pname, fname, sizeof (fp->file_pname));
180 sizeof (fp->file_pname) - sz, "/%s", fname);
H A Dproc_get_info.c54 char fname[PATH_MAX]; local
60 (void) snprintf(fname, sizeof (fname), "%s/%d/cred",
62 if ((fd = open(fname, O_RDONLY)) >= 0) {
76 char fname[PATH_MAX]; local
81 (void) snprintf(fname, sizeof (fname), "%s/%d/priv",
83 if ((fd = open(fname, O_RDONLY)) >= 0) {
105 char fname[PATH_MAX]; local
111 (void) snprintf(fname, sizeo
138 char fname[PATH_MAX]; local
155 char fname[PATH_MAX]; local
178 char fname[PATH_MAX]; local
[all...]
H A DPsyscall.c83 char *fname; local
127 fname = pathname + strlen(pathname);
136 (void) strcpy(fname, "lwpstatus");
142 (void) strcpy(fname, "lwpctl");
H A DPlwpregs.c68 char fname[PATH_MAX]; local
71 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%d/%s",
74 if ((fd = open(fname, O_RDONLY)) >= 0) {
133 char fname[PATH_MAX]; local
170 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%d/lwpctl",
173 if ((fd = open(fname, O_WRONLY)) >= 0) {
H A DPservice.c169 char fname[PATH_MAX]; local
197 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%d/xregs",
200 if (stat(fname, &statb) != 0)
274 char fname[PATH_MAX]; local
296 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%d/cxregs",
299 if (stat(fname, &statb) != 0)
/osnet-11/usr/src/lib/efcode/packages/
H A Dpopulate.c101 char *fname; local
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dhist.c49 char *fname; local
191 if(!(fname=pathtmp(NIL(char*),0,0,NIL(int*))))
193 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0)
194 errormsg(SH_DICT,ERROR_system(1),e_create,fname);
228 fdo = pad_create(fname);
230 unlink(fname);
231 strcat(fname, ".bak");
232 unlink(fname);
242 com[1] = fname;
246 fdo = sh_chkopen(fname);
[all...]
/osnet-11/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c258 * associated with 'fname' and returns NULL when an error has occured
272 sysattr_list(char *cmd, int fd, char *fname) argument
284 cmd, fname);
/osnet-11/usr/src/lib/efcode/engine/
H A Dinterface.c179 run_fcode_from_file(fcode_env_t *env, char *fname, int aout_flag) argument
184 push_a_string(env, fname);
H A Dlog.c254 open_error_log(char *fname, int errflags) argument
256 if ((error_log_fp = fopen(fname, "a")) == NULL) {
257 log_perror(MSG_FATAL, fname);
260 error_log_name = STRDUP(fname);
325 char *fname; local
329 fname = pop_a_string(env, NULL);
330 if (fname != NULL) {
331 if ((fp = fopen(fname, "a")) == NULL) {
332 log_perror(MSG_ERROR, "Can't open '%s'\n", fname);
340 error_log_name = STRDUP(fname);
[all...]
/osnet-11/usr/src/lib/efcode/fcdriver/
H A Dload_node.c186 char *search, *fname; local
198 fname = search_path(lib_name, search, fn);
200 return (fname);
212 char *fname; local
214 if ((fname = find_lib_file(env, "lfc_", name, ".so", load_lib_file))
216 debug_msg(DEBUG_FIND_FCODE, "Loading Library: %s\n", fname);
217 FREE(fname);
218 } else if ((fname = search_for_fcode_file(env, name)) != NULL) {
219 debug_msg(DEBUG_FIND_FCODE, "Loading Fcode: %s\n", fname);
220 run_fcode_from_file(env, fname,
[all...]
H A Dget_req.c164 char *buf, *fname; local
169 if ((fname = pop_a_string(env, NULL)) == NULL) {
170 log_message(MSG_DEBUG, "fname?\n");
177 if ((fd = fopen(fname, "w")) == NULL) {
179 fname);
182 log_message(MSG_INFO, "Fcode %p,%x to file '%s'\n", buf, len, fname);
217 static char fname[] = "get-fcode-from-filesystem"; local
224 debug_msg(DEBUG_FIND_FCODE, "%s: %s -> %s found\n", fname,
228 fname, path);
233 fname, fc_nam
[all...]
/osnet-11/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c18 char fname[PATH_MAX]; local
20 (void) snprintf(fname, sizeof (fname), "%s/%s", path,
22 (void) unlink(fname);
23 (void) snprintf(fname, sizeof (fname), "%s/%s", path,
25 (void) unlink(fname);
26 (void) snprintf(fname, sizeof (fname), "%s/%s", path,
28 (void) unlink(fname);
[all...]
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_kpasswd.c505 smb_krb5_kt_find(smb_krb5_pn_id_t id, const char *fqdn, char *fname) argument
515 if (!fqdn || !fname)
530 (void) snprintf(ktname, MAXPATHLEN, "FILE:%s", fname);
H A Dsmbns_netbios.c77 char fname[MAXPATHLEN]; local
81 (void) snprintf(fname, MAXPATHLEN, "%s/%s",
83 (void) unlink(fname);
483 char fname[MAXPATHLEN]; local
492 (void) snprintf(fname, MAXPATHLEN, "%s/%s",
495 if ((fp = fopen(fname, "w")) == NULL)
/osnet-11/usr/src/lib/libpkg/common/
H A Dncgrpw.c80 cache_alloc(char *fname, int len, size_t struct_size) argument
90 pkg_gt(ERR_MALLOC), fname,
93 (void) fprintf(stderr, pkg_gt(ERR_MALLOC), fname, len,
97 (void) fprintf(stderr, pkg_gt(ERR_MALLOC), fname,
/osnet-11/usr/src/lib/libdladm/common/
H A Dflowprop.c101 char fname[MAXFLOWNAMELEN], zonename[ZONENAME_MAX]; local
109 inputzoneid = dladm_extra_names(flow, fname, zonename);
114 (void) dladm_read_flowconf(handle, fname, &onloan);
119 status = i_dladm_set_prop_temp(handle, fname, prop_name,
131 status = i_dladm_set_flowprop_db(handle, fname, prop_name,
268 char fname[MAXFLOWNAMELEN], zonename[ZONENAME_MAX]; local
274 inputzoneid = dladm_extra_names(flow, fname, zonename);
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_program.c404 char *fname; local
412 fname = alloca(strlen(prp->pr_name) + 1 + i);
413 dt_header_fmt_func(fname, prp->pr_name);
416 infop->dthi_pfname, fname) < 0)
442 infop->dthi_pfname, fname, infop->dthi_pfname, fname) < 0)
455 char *mname, *fname; local
466 fname = alloca(strlen(prp->pr_name) + 1 + i);
467 dt_header_fmt_func(fname, prp->pr_name);
487 infop->dthi_pfname, fname) <
580 dtrace_program_header(dtrace_hdl_t *dtp, FILE *out, const char *fname) argument
[all...]
/osnet-11/usr/src/lib/libexacct/demo/
H A Dexdump.c514 char *fname; local
530 fname = argv[optind++];
534 if (ea_open(&ef, fname, NULL,
536 (void) fprintf(stderr, "exdump: cannot open %s\n", fname);

Completed in 47 milliseconds

1234