Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/titanic_41/usr/src/cmd/gcore/
H A Dgcore.c43 convert_path(const char *path, char *fname, size_t size, in convert_path() argument
53 fname[size - 1] = '\0'; in convert_path()
58 bcopy(path, fname, len); in convert_path()
60 fname += len; in convert_path()
67 len = snprintf(fname, size, "%d", (int)pip->pr_pid); in convert_path()
70 len = snprintf(fname, size, "%d", (int)pip->pr_uid); in convert_path()
73 len = snprintf(fname, size, "%d", (int)pip->pr_gid); in convert_path()
76 len = snprintf(fname, size, "%s", pip->pr_fname); in convert_path()
85 len = snprintf(fname, size, "%s", &exec[1]); in convert_path()
90 len = snprintf(fname, size, "%s", uts.nodename); in convert_path()
[all …]
/titanic_41/usr/src/lib/libproc/common/
H A Dproc_get_info.c54 char fname[PATH_MAX]; in proc_get_cred() local
60 (void) snprintf(fname, sizeof (fname), "%s/%d/cred", in proc_get_cred()
62 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_cred()
76 char fname[PATH_MAX]; in proc_get_priv() local
81 (void) snprintf(fname, sizeof (fname), "%s/%d/priv", in proc_get_priv()
83 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_priv()
105 char fname[PATH_MAX]; in proc_get_ldt() local
111 (void) snprintf(fname, sizeof (fname), "%s/%d/ldt", in proc_get_ldt()
113 if ((fd = open(fname, O_RDONLY)) < 0) in proc_get_ldt()
138 char fname[PATH_MAX]; in proc_get_psinfo() local
[all …]
/titanic_41/usr/src/cmd/sgs/ldd/common/
H A Dldd.c344 char *fname = argv[optind]; in main() local
350 if ((var = open(fname, O_RDONLY)) == -1) { in main()
353 fname, strerror(err)); in main()
366 cname, fname); in main()
371 cname, fname); in main()
375 if (elf_check(nfile, fname, cname, elf, fflag) != NULL) in main()
382 if (aout_check(nfile, fname, cname, var, fflag) != NULL) in main()
395 elf_check(int nfile, char *fname, char *cname, Elf *elf, int fflag) in elf_check() argument
407 cname, fname, elf_errmsg(-1)); in elf_check()
416 (void) fprintf(stderr, MSG_INTL(MSG_ELF_MACHTYPE), cname, fname, in elf_check()
[all …]
/titanic_41/usr/src/tools/mbh_patch/
H A Dmbh_patch.c43 static char *fname; variable
68 pname, fname, eh->e_type); in patch64()
73 fname); in patch64()
82 "hdrs\n", pname, fname, eh->e_phnum); in patch64()
98 pname, fname); in patch64()
129 "PT_LOAD wasn't 1st PT_LOAD\n", pname, fname); in patch64()
134 pname, fname); in patch64()
146 (void) printf(" %s: ELF64 MB header patched\n", fname); in patch64()
155 "section\n", pname, fname); in patch64()
180 fname = argv[1]; in main()
[all …]
/titanic_41/usr/src/cmd/fs.d/autofs/
H A Dns_files.c51 static int read_execout(char *key, char **lp, char *fname, char *line,
53 static int call_read_execout(char *key, char **lp, char *fname, char *line,
88 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */ local
93 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) {
98 if (stat(fname, &stbuf) < 0) {
116 fname, key);
119 rc = call_read_execout(key, &lp, fname, ml->linebuf, LINESZ);
142 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
222 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */ local
231 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) {
[all …]
/titanic_41/usr/src/tools/scripts/
H A Dvalidate_flg.pl62 my ($fname, $incpath) = @_;
66 $dname = $fname;
69 $isincflg = $fname =~ /inc.flg$/;
72 $newpath = "$incpath, from $fname:";
74 $newpath = "from $fname:";
77 if (open INC, "<$fname") {
98 warn "$fname:$firstline: $1 isn't a file\n" if ! -f $expfile;
103 warn "$fname:$firstline: $dir isn't a directory\n";
105 warn "$fname:$firstline: $dir is unnecessary\n";
107 warn "$fname:$firstline: $dir has no SCCS objects ",
[all …]
/titanic_41/usr/src/cmd/fm/eversholt/common/
H A Deftread.c76 eftread_fopen(const char *fname, char *idbuf, size_t idbufsz) in eftread_fopen() argument
87 if ((ptr = strrchr(fname, '.')) == NULL || strcmp(ptr, ".eft") != 0) { in eftread_fopen()
88 out(O_ERR, "%s: not a valid EFT (bad extension)", fname); in eftread_fopen()
92 if ((fp = fopen(fname, "r")) == NULL) { in eftread_fopen()
93 out(O_ERR|O_SYS, "%s", fname); in eftread_fopen()
99 out(O_ERR, "%s: not a valid EFT (too short)", fname); in eftread_fopen()
113 fname, hdr.magic, hdr.major, hdr.minor, in eftread_fopen()
118 out(O_ERR, "%s: not a valid EFT (bad magic)", fname); in eftread_fopen()
125 "this program supports up to %d.%d", fname, in eftread_fopen()
136 out(O_DIE|O_SYS, "%s: fread", fname); in eftread_fopen()
[all …]
H A Dalloc.c70 alloc_malloc(size_t nbytes, const char *fname, int line) in alloc_malloc() argument
75 outfl(O_DIE, fname, line, "malloc: out of memory"); in alloc_malloc()
92 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) in alloc_realloc() argument
97 out(O_DIE, fname, line, "realloc: out of memory"); in alloc_realloc()
108 alloc_strdup(const char *ptr, const char *fname, int line) in alloc_strdup() argument
113 outfl(O_DIE, fname, line, "strdup: out of memory"); in alloc_strdup()
125 alloc_free(void *ptr, const char *fname, int line) in alloc_free() argument
/titanic_41/usr/src/cmd/split/
H A Dsplit.c69 char *fname = NULL; in main() local
240 if ((fname = (char *)malloc(strlen(output_file_name) + in main()
248 fname[i] = output_file_name[i]; in main()
251 fname[i++] = 'a'; in main()
254 fname[i - 1] = 'a' - 1; in main()
255 fname[i] = '\0'; in main()
273 free(fname); in main()
278 free(fname); in main()
282 next_file_name(fname); in main()
283 if ((out_file = fopen(fname, "w")) == NULL) { in main()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dlogging.c282 log_for_service(const char *fname, int dbglvl) in log_for_service() argument
288 if (fname != NULL && in log_for_service()
289 (*fname == '\0' || strcasecmp(fname, "syslog") == 0)) in log_for_service()
290 fname = NULL; in log_for_service()
291 if (fname == NULL && curfname == NULL) in log_for_service()
296 if (fname == curfname || in log_for_service()
297 (fname != NULL && strcmp(fname, curfname) == 0)) { in log_for_service()
298 curfname = fname; in log_for_service()
305 if (fname != NULL) { in log_for_service()
306 curlogfd = open(fname, O_WRONLY|O_APPEND|O_CREAT, 0600); in log_for_service()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dexecvp.c110 char fname[PATH_MAX+2]; in execvp() local
150 cp = execat(cp, name, fname); in execvp()
157 if (*fname == '-') { in execvp()
158 size_t size = strlen(fname) + 1; in execvp()
159 if ((size + 2) > sizeof (fname)) { in execvp()
163 (void) memmove(fname + 2, fname, size); in execvp()
164 fname[0] = '.'; in execvp()
165 fname[1] = '/'; in execvp()
167 (void) execv(fname, argv); in execvp()
171 newargs[1] = fname; in execvp()
/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_log.c100 mk_pathname(char *fname, char *path, int idx) in mk_pathname() argument
111 (void) snprintf(name, NAME_MAX, fname, idx); in mk_pathname()
125 openlogfile(char *fname, char *mode) in openlogfile() argument
127 assert(fname != NULL && *fname != '\0' && in openlogfile()
130 if ((logfp = fopen(fname, mode)) == NULL) { in openlogfile()
197 char *fname, *mode, *lpath; in ndmp_log_open_file() local
235 fname = mk_pathname(LOG_FNAME, lpath, i); in ndmp_log_open_file()
236 (void) strncpy(oldfname, fname, PATH_MAX); in ndmp_log_open_file()
242 fname = mk_pathname(LOG_FNAME, lpath, i + 1); in ndmp_log_open_file()
243 if (rename(oldfname, fname)) in ndmp_log_open_file()
[all …]
H A Dndmpd_dtime.c586 char fname[PATH_MAX]; in initdumptimes() local
593 if (!ddates_pathname(fname)) in initdumptimes()
596 fp = fopen(fname, "r"); in initdumptimes()
599 NDMP_LOG(LOG_ERR, "Cannot read %s: %m.", fname); in initdumptimes()
606 "No file `%s', making an empty one", fname); in initdumptimes()
608 fp = fopen(fname, "w"); in initdumptimes()
610 NDMP_LOG(LOG_ERR, "Cannot create %s: %m.", fname); in initdumptimes()
615 fp = fopen(fname, "r"); in initdumptimes()
618 "Cannot read %s after creating it. %m.", fname); in initdumptimes()
644 char fname[PATH_MAX], bakfname[PATH_MAX]; in putdumptime() local
[all …]
/titanic_41/usr/src/cmd/sed/
H A Dmain.c79 char *fname; member
103 const char *fname; /* File name. */ variable
241 fname = script->s; in cu_fgets()
250 fname = string_ident; in cu_fgets()
329 if (files->fname == NULL) { in mf_fgets()
334 fname = "stdin"; in mf_fgets()
360 if ((link(fname, oldfname) != 0) && in mf_fgets()
361 (rename(fname, oldfname) != 0)) { in mf_fgets()
377 if (rename(tmpfname, fname) != 0) { in mf_fgets()
395 fname = files->fname; in mf_fgets()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dser_princ.c70 char *fname; in krb5_principal_size() local
83 !(kret = krb5_unparse_name(kcontext, principal, &fname))) { in krb5_principal_size()
84 *sizep += (3*sizeof(krb5_int32)) + strlen(fname); in krb5_principal_size()
86 krb5_xfree_wrap(fname, strlen(fname) + 1); in krb5_principal_size()
102 char *fname; in krb5_principal_externalize() local
114 if (!(kret = krb5_unparse_name(kcontext, principal, &fname))) { in krb5_principal_externalize()
117 (void) krb5_ser_pack_int32((krb5_int32) strlen(fname), in krb5_principal_externalize()
119 (void) krb5_ser_pack_bytes((krb5_octet *) fname, in krb5_principal_externalize()
120 strlen(fname), &bp, &remain); in krb5_principal_externalize()
126 krb5_xfree_wrap(fname, strlen(fname) + 1); in krb5_principal_externalize()
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dloadsave.c430 CK_BYTE fname[MAXPATHLEN]; in load_token_data() local
438 (void) snprintf((char *)fname, sizeof (fname), in load_token_data()
445 fp = fopen((char *)fname, "r"); in load_token_data()
464 fp = fopen((char *)fname, "r"); in load_token_data()
467 fname, (char *)strerror(errno)); in load_token_data()
546 CK_BYTE fname[MAXPATHLEN]; in save_token_data() local
553 (void) snprintf((char *)fname, sizeof (fname), in save_token_data()
560 fp = fopen((char *)fname, "w"); in save_token_data()
624 CK_BYTE fname[MAXPATHLEN]; in save_token_object() local
638 (void) snprintf((char *)fname, sizeof (fname), in save_token_object()
[all …]
/titanic_41/usr/src/cmd/isaexec/
H A Disaexec.c41 const char *fname; in main() local
62 fname = strrchr(execname, '/'); in main()
63 fname = (fname != NULL) ? (fname+1) : execname; in main()
70 argv[0], fname); in main()
77 argv[0], fname); in main()
/titanic_41/usr/src/cmd/cdrw/
H A Dbstream.h74 bstreamhandle open_iso_read_stream(char *fname);
75 bstreamhandle open_au_read_stream(char *fname);
76 bstreamhandle open_wav_read_stream(char *fname);
77 bstreamhandle open_aur_read_stream(char *fname);
78 bstreamhandle open_au_write_stream(char *fname);
79 bstreamhandle open_wav_write_stream(char *fname);
80 bstreamhandle open_aur_write_stream(char *fname);
81 bstreamhandle open_file_write_stream(char *fname);
/titanic_41/usr/src/cmd/syseventadm/
H A Dsyseventadm.c312 char fname[MAXPATHLEN+1]; in add_cmd() local
342 (void) strcpy(fname, root_dir); in add_cmd()
343 (void) strcat(fname, SYSEVENT_CONFIG_DIR); in add_cmd()
344 (void) strcat(fname, "/"); in add_cmd()
347 (void) strcat(fname, arg_vendor); in add_cmd()
352 (void) strcat(fname, ","); in add_cmd()
353 (void) strcat(fname, arg_publisher); in add_cmd()
358 (void) strcat(fname, ","); in add_cmd()
359 (void) strcat(fname, arg_class); in add_cmd()
361 (void) strcat(fname, SYSEVENT_CONF_SUFFIX); in add_cmd()
[all …]
/titanic_41/usr/src/cmd/news/
H A Dnews.c180 char fname[MAXNAMLEN]; in read_dir() local
193 strncpy (fname, nf->d_name, (unsigned) strlen(nf->d_name) + 1); in read_dir()
194 if (nf->d_ino != (ino_t)0 && stat (fname, &sbuf) >= 0 in read_dir()
262 char fname[MAXNAMLEN+1]; in print_item() local
270 strncpy (fname, f, MAXNAMLEN); in print_item()
271 fname[MAXNAMLEN] = '\0'; in print_item()
272 if ((fd = fopen (fname, "r")) == NULL) in print_item()
273 printf ("Cannot open %s/%s\n", NEWS, fname); in print_item()
288 printf ("%s ", fname); in print_item()
355 char fname[50], *cp; in late_news() local
[all …]
/titanic_41/usr/src/lib/libuutil/common/
H A Duu_open.c50 char *fname = uu_zalloc(PATH_MAX); in uu_open_tmp() local
52 if (fname == NULL) in uu_open_tmp()
56 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime()); in uu_open_tmp()
58 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600); in uu_open_tmp()
65 (void) unlink(fname); in uu_open_tmp()
67 uu_free(fname); in uu_open_tmp()
/titanic_41/usr/src/cmd/sgs/size/common/
H A Dprocess.c75 extern char *fname; in process()
115 error(fname, "invalid file type"); in process()
124 (void) printf("%s[%s]: ", archive, fname); in process()
126 (void) printf("%s: ", fname); in process()
129 error(fname, "no string table"); in process()
135 error(fname, "can't get number of sections"); in process()
138 error(fname, "no section data"); in process()
146 error(fname, "could not get section header"); in process()
150 error(fname, "no segment data"); in process()
199 error(fname, "no segment data"); in process()
[all …]
/titanic_41/usr/src/lib/libbsm/common/
H A Daudit_cron.c89 audit_cron_getinfo(char *fname, char *fname_aux, struct auditinfo_addr *info) in audit_cron_getinfo() argument
147 if (stat(fname, &st)) in audit_cron_getinfo()
160 if (strstr(fname, "crontabs") != NULL) { in audit_cron_getinfo()
161 if (getpwnam_r(basename(fname), &pwd, pwd_buff, in audit_cron_getinfo()
183 audit_cron_setinfo(char *fname, struct auditinfo_addr *info) in audit_cron_setinfo() argument
188 r = chmod(fname, 0200); in audit_cron_setinfo()
192 if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1) in audit_cron_setinfo()
226 (void) unlink(fname); in audit_cron_setinfo()
232 audit_cron_make_anc_name(char *fname) in audit_cron_make_anc_name() argument
236 anc_name = (char *)malloc(strlen(fname) + strlen(AU_SUFFIX) + 1); in audit_cron_make_anc_name()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Daccess.c61 caccess(char *fname, int fmode, vnode_t *startvp) in caccess() argument
93 if (error = lookupnameatcred(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp, in caccess()
120 faccessat(int fd, char *fname, int fmode, int flag) in faccessat() argument
128 if (fname == NULL) in faccessat()
130 if ((error = fgetstartvp(fd, fname, &startvp)) != 0) in faccessat()
140 error = caccess(fname, fmode, startvp); in faccessat()
149 access(char *fname, int fmode) in access() argument
151 return (faccessat(AT_FDCWD, fname, fmode, 0)); in access()
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_print.c51 char *fname, in meta_print_name() argument
69 return (meta_trans_print(sp, namep, nlpp, fname, fp, in meta_print_name()
73 return (meta_mirror_print(sp, namep, nlpp, fname, fp, in meta_print_name()
77 return (meta_raid_print(sp, namep, nlpp, fname, fp, in meta_print_name()
81 return (meta_stripe_print(sp, namep, nlpp, fname, fp, in meta_print_name()
85 return (meta_sp_print(sp, namep, nlpp, fname, fp, in meta_print_name()
100 char *fname, in meta_print_all() argument
114 if (meta_trans_print(sp, NULL, nlpp, fname, fp, options, in meta_print_all()
119 if (meta_logs_print(sp, lognlp, nlpp, fname, fp, options, ep) != 0) { in meta_print_all()
124 if (meta_mirror_print(sp, NULL, nlpp, fname, fp, options, ep) != 0) { in meta_print_all()
[all …]

12345678910>>...17