Home
last modified time | relevance | path

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

12345678910>>...17

/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c57 char fname[PATH_MAX]; in proc_get_cred() local
63 (void) snprintf(fname, sizeof (fname), "%s/%d/cred", in proc_get_cred()
76 char fname[PATH_MAX]; in proc_get_secflags() local
83 (void) snprintf(fname, sizeof (fname), "%s/%d/secflags", in proc_get_secflags()
106 char fname[PATH_MAX]; in proc_get_priv() local
111 (void) snprintf(fname, sizeof (fname), "%s/%d/priv", in proc_get_priv()
141 (void) snprintf(fname, sizeof (fname), "%s/%d/ldt", in proc_get_ldt()
172 (void) snprintf(fname, sizeof (fname), "%s/%d/psinfo", in proc_get_psinfo()
189 (void) snprintf(fname, sizeof (fname), "%s/%d/status", in proc_get_status()
212 (void) snprintf(fname, sizeof (fname), "%s/%d/auxv", in proc_get_auxv()
[all …]
/illumos-gate/usr/src/cmd/gcore/
H A Dgcore.c53 fname[size - 1] = '\0'; in convert_path()
58 bcopy(path, fname, len); in convert_path()
60 fname += len; in convert_path()
113 *fname = '%'; in convert_path()
123 fname += len; in convert_path()
129 (void) strncpy(fname, path, size); in convert_path()
156 char fname[MAXPATHLEN]; in main() local
248 convert_path(path, fname, sizeof (fname), P); in main()
250 gcore(P, fname, content, &err); in main()
256 convert_path(path, fname, sizeof (fname), P); in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/ldd/common/
H A Dldd.c361 cname, fname); in main()
371 cname, fname); in main()
432 cname, fname); in elf_check()
456 cname, fname); in elf_check()
466 cname, fname); in elf_check()
529 fname); in elf_check()
546 fname); in elf_check()
557 return (run(nfile, cname, fname, (const char *)fname, class)); in elf_check()
585 fname); in run()
593 fname); in run()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c90 if (stat(fname, &stbuf) < 0) { in getmapent_files()
107 fname, key); in getmapent_files()
227 if (stat(fname, &stbuf) < 0) { in getmapkeys_files()
323 while ((line = get_line(fp, fname, linebuf, in loadmaster_files()
449 (void) strcpy(fname, "/etc/"); in file_open()
450 (void) strcat(fname, map); in file_open()
452 (void) strcpy(fname, map); in file_open()
455 fp = fopen(fname, "r"); in file_open()
554 if (((args[0] = strdup(fname)) == NULL) || in read_execout()
582 execv(fname, &args[0]); in read_execout()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deftread.c92 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()
125 "this program supports up to %d.%d", fname, in eftread_fopen()
136 out(O_DIE|O_SYS, "%s: fread", fname); in eftread_fopen()
138 out(O_DIE|O_SYS, "%s: fseek", fname); in eftread_fopen()
154 fname, hdr.dictlen); in eftread_fopen()
182 out(O_DIE|O_SYS, "fread on %s", fname); in eftread_fopen()
186 out(O_ERR, "%s: bad checksum (%x != %x)", 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
/illumos-gate/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") {
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 ",
116 warn "$fname:$firstline: $1 isn't a file\n";
[all …]
/illumos-gate/usr/src/cmd/split/
H A Dsplit.c69 char *fname = NULL; in main() local
251 fname[i++] = 'a'; in main()
255 fname[i] = '\0'; in main()
273 free(fname); in main()
278 free(fname); in main()
285 free(fname); in main()
294 free(fname); in main()
316 free(fname); in main()
321 free(fname); in main()
328 free(fname); in main()
[all …]
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c43 static char *fname; variable
119 pname, fname, eh->e_type); in patch64()
124 fname); in patch64()
149 pname, fname); in patch64()
172 "header\n", pname, fname); in patch64()
209 pname, fname); in patch64()
243 "section\n", pname, fname); in patch64()
269 fname = argv[1]; in main()
272 pname, fname, strerror(errno)); in main()
285 pname, fname); in main()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dlogging.c288 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()
317 if (fname != NULL) { in log_for_service()
319 logdbg("opened log %s", fname); in log_for_service()
[all …]
/illumos-gate/usr/src/cmd/sed/
H A Dmain.c80 char *fname; member
242 fname = script->s; in cu_fgets()
251 fname = string_ident; in cu_fgets()
332 if (files->fname == NULL) { in mf_fgets()
337 fname = "stdin"; in mf_fgets()
398 fname = files->fname; in mf_fgets()
405 err(1, "%s", fname); in mf_fgets()
424 err(1, "%s", fname); in mf_fgets()
452 warn("%s", fname); in mf_fgets()
467 err(1, "%s", fname); in mf_fgets()
[all …]
/illumos-gate/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()
/illumos-gate/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()
243 if (rename(oldfname, fname)) in ndmp_log_open_file()
246 oldfname, fname, strerror(errno)); in ndmp_log_open_file()
251 fname = mk_pathname(LOG_FNAME, lpath, 0); 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()
608 fp = fopen(fname, "w"); in initdumptimes()
615 fp = fopen(fname, "r"); in initdumptimes()
659 if (!ddates_pathname(fname)) { in putdumptime()
664 rfp = fopen(fname, "r"); in putdumptime()
731 (void) rename(bakfname, fname); in putdumptime()
749 if (!fname || !*fname || !path || !*path) in append_dumptime()
755 fname, path, level, ddate); in append_dumptime()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dloadsave.c438 (void) snprintf((char *)fname, sizeof (fname), in load_token_data()
553 (void) snprintf((char *)fname, sizeof (fname), in save_token_data()
638 (void) snprintf((char *)fname, sizeof (fname), in save_token_object()
697 (void) snprintf((char *)fname, sizeof (fname), in save_public_token_object()
817 (void) snprintf((char *)fname, sizeof (fname), in save_private_token_object()
894 (void) snprintf((char *)fname, sizeof (fname), in load_public_token_objects()
975 (void) snprintf((char *)fname, sizeof (fname), in load_private_token_objects()
1117 (void) memset((char *)fname, 0x0, sizeof (fname)); in reload_token_object()
1119 (void) snprintf((char *)fname, sizeof (fname), in reload_token_object()
1122 (void) strncat((char *)fname, (char *)obj->name, sizeof (fname)); in reload_token_object()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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);
/illumos-gate/usr/src/cmd/syseventadm/
H A Dsyseventadm.c312 char fname[MAXPATHLEN+1]; in add_cmd() local
344 (void) strcat(fname, "/"); in add_cmd()
352 (void) strcat(fname, ","); in add_cmd()
402 fp = fopen(fname, "a"); in add_cmd()
434 char fname[MAXPATHLEN+1]; in list_remove_cmd() local
517 list_file(char *fname) in list_file() argument
524 fp = fopen(fname, "r"); in list_file()
551 remove_file(char *fname) in remove_file() argument
561 fp = fopen(fname, "r"); in remove_file()
628 if (unlink(fname) == -1) { in remove_file()
[all …]
/illumos-gate/usr/src/cmd/news/
H A Dnews.c180 char fname[MAXNAMLEN]; in read_dir() local
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()
288 printf ("%s ", fname); in print_item()
355 char fname[50], *cp; in late_news() local
369 strcpy (fname, cp); in late_news()
370 strcat (fname, "/"); in late_news()
371 strcat (fname, ".news_time"); in late_news()
[all …]
/illumos-gate/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()
138 error(fname, "no section data"); in process()
150 error(fname, "no segment data"); in process()
199 error(fname, "no segment data"); in process()
233 extern char *fname; in process_phdr()
244 (void) printf("%s: ", fname); in process_phdr()
[all …]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_cron.c147 if (stat(fname, &st)) in audit_cron_getinfo()
160 if (strstr(fname, "crontabs") != NULL) { in audit_cron_getinfo()
188 r = chmod(fname, 0200); 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
240 (void) strcpy(anc_name, fname); in audit_cron_make_anc_name()
291 char *anc_file, *fname; in audit_cron_session() local
305 fname = name; in audit_cron_session()
312 fname); in audit_cron_session()
313 fname = full_path; in audit_cron_session()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/test/zfs-tests/cmd/dos_ro/
H A Ddos_ro.c32 dosattr_set_ro(int fildes, const char *fname) in dosattr_set_ro() argument
43 if (fname == NULL) { in dosattr_set_ro()
46 err = setattrat(fildes, XATTR_VIEW_READWRITE, fname, nvl); in dosattr_set_ro()
53 fname, err); in dosattr_set_ro()
73 char *fname; in main() local
90 fname = argv[optind]; in main()
92 fd = open(fname, O_CREAT | O_RDWR, 0644); in main()
94 perror(fname); in main()
/illumos-gate/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()

12345678910>>...17