Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c197 touch(filename) in touch() argument
198 char *filename; in touch()
212 perror(filename);
219 perror(filename);
226 perror(filename);
265 perror(filename);
273 char *filename; in oldtouch()
289 perror(filename);
295 perror(filename);
306 char *filename; in readwrite()
[all …]
/illumos-gate/usr/src/cmd/asa/
H A Dasa.c45 static void disp_file(FILE *f, char *filename);
58 char *filename = NULL; in main() local
81 filename = NULL; in main()
94 disp_file(f, filename); in main()
149 disp_file(f, filename); in main()
181 disp_file(FILE *f, char *filename) in disp_file() argument
186 if (filename) { in disp_file()
207 filename = NULL; in get_next_file()
214 filename = argv[i]; in get_next_file()
224 filename = NULL; in get_next_file()
[all …]
/illumos-gate/usr/src/cmd/rpcbind/
H A Dwarmstart.c56 open_tmp_file(const char *filename) in open_tmp_file() argument
69 if (unlink(filename) == -1) { in open_tmp_file()
73 fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600); in open_tmp_file()
91 fp = open_tmp_file(filename); in write_struct()
97 fp = open_tmp_file(filename); in write_struct()
100 "cannot open file = %s for writing", filename); in write_struct()
109 syslog(LOG_ERR, "rpcbind: xdr_%s: failed", filename); in write_struct()
126 fd = open(filename, O_RDONLY, 0600); in read_struct()
150 "reading\n", filename); in read_struct()
159 if (lstat(filename, &sbuf_lstat) != 0) { in read_struct()
[all …]
/illumos-gate/usr/src/tools/ctf/ctfstrip/
H A Dctfstrip.c68 check_file(const char *filename, mode_t *mode) in check_file() argument
74 fd = open(filename, O_RDONLY); in check_file()
76 warn("Unable to open %s", filename); in check_file()
81 warn("stat(2) failed on %s", filename); in check_file()
87 warnx("%s is not a regular file", filename); in check_file()
93 warnx("%s is not an ELF file", filename); in check_file()
99 warn("Error reading %s", filename); in check_file()
105 warnx("%s is not an ELF file", filename); in check_file()
116 fix_file(const char *filename, mode_t mode) in fix_file() argument
129 cmd[4] = filename; in fix_file()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmbchk.c56 check_multiboot (const char *filename, FILE *fp) in check_multiboot() argument
87 filename, i); in check_multiboot()
94 filename, mbh->checksum); in check_multiboot()
103 filename, mbh->flags); in check_multiboot()
110 filename, (mbh->flags & 0x1)? "on" : "off"); in check_multiboot()
112 filename, (mbh->flags & 0x2)? "on" : "off"); in check_multiboot()
125 filename, mbh->header_addr, mbh->load_addr); in check_multiboot()
134 filename, mbh->load_addr, mbh->load_end_addr); in check_multiboot()
152 filename, mbh->load_addr, mbh->entry_addr); in check_multiboot()
173 filename, mbh->load_addr); in check_multiboot()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Ddelete.c44 char *filename = NULL; in kc_delete() local
50 filename = get_string(optarg_av, &rv); in kc_delete()
51 if (filename == NULL) { in kc_delete()
84 if (filename == NULL) { in kc_delete()
85 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_delete()
86 if (filename == NULL) { in kc_delete()
111 if (access(filename, W_OK) < 0) { in kc_delete()
115 filename, strerror(err)); in kc_delete()
120 kmfrv = kmf_delete_policy_from_db(policyname, filename); in kc_delete()
125 if (filename != NULL) in kc_delete()
[all …]
H A Dexport.c43 char *filename = NULL; in kc_export() local
55 filename = get_string(optarg_av, &rv); in kc_export()
56 if (filename == NULL) { in kc_export()
95 if (filename == NULL) { in kc_export()
96 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_export()
97 if (filename == NULL) { in kc_export()
126 rv = load_policies(filename, &plclist); in kc_export()
151 policyname, filename); in kc_export()
156 if (filename != NULL) in kc_export()
157 free(filename); in kc_export()
H A Dimport.c44 char *filename = NULL; in kc_import() local
56 filename = get_string(optarg_av, &rv); in kc_import()
57 if (filename == NULL) { in kc_import()
97 if (filename == NULL) { in kc_import()
98 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_import()
99 if (filename == NULL) { in kc_import()
119 if (strcmp(filename, KMF_DEFAULT_POLICY_FILE) == 0 && in kc_import()
144 rv = kmf_add_policy_to_db(&pnode->plc, filename, in kc_import()
158 if (filename != NULL) in kc_import()
159 free(filename); in kc_import()
/illumos-gate/usr/src/cmd/fwflash/common/
H A Dfwflash.c579 free(filename); in fwflash_load_verifier()
598 free(filename); in fwflash_load_verifier()
615 bzero(filename, strlen(filename) + 1); in fwflash_load_verifier()
628 free(filename); in fwflash_load_verifier()
634 if ((vrfy->filename = calloc(1, strlen(filename) + 1)) in fwflash_load_verifier()
639 free(filename); in fwflash_load_verifier()
644 (void) strlcpy(vrfy->filename, filename, strlen(filename) + 1); in fwflash_load_verifier()
651 free(filename); in fwflash_load_verifier()
685 free(filename); in fwflash_load_verifier()
969 filename); in fwflash_update()
[all …]
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c731 prog_name, filename, low); in check_range()
737 prog_name, filename, hi); in check_range()
882 filename, reloc_symtab); in dump_reloc_table()
1550 n_range, 1, filename); in dump_section()
1680 prog_name, filename); in dump_section_table()
1734 num_scns, filename); in dump_section_table()
1943 each_file(char *filename) in each_file() argument
1964 filename); in each_file()
1989 filename); in each_file()
1992 &elf_head, filename); in each_file()
[all …]
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dvroot.cc160 if (filename != NULL) in get_vroot_path()
161 *filename= vroot_data.filename_start; in get_vroot_path()
198 int flen = strlen(filename); in translate_with_thunk()
207 (void)strcpy(vroot_data.full_path, filename); in translate_with_thunk()
212 if (filename[0] != '/') goto use_name; in translate_with_thunk()
223 (void)strcpy(vroot_data.full_path, filename); in translate_with_thunk()
227 if (filename[0] == '/') goto use_name; in translate_with_thunk()
274 if (filename[0] != '/') { in translate_with_thunk()
284 if (strchr(filename, '/') == NULL) { in translate_with_thunk()
314 if (filename[0] != '/') { in translate_with_thunk()
[all …]
H A Dreport.cc205 report_dep(char *iflag, char *filename) in report_dep() argument
219 strcpy(sfile, filename); in report_dep()
236 char filename[MAXPATHLEN]; in report_libdep() local
246 report_dep(lib, filename); in report_libdep()
256 char filename[MAXPATHLEN]; in report_search_path() local
269 sprintf(filename, "%s-CPP", ptr+1); in report_search_path()
277 report_dep(newiflag, filename); in report_search_path()
279 report_dep(iflag, filename); in report_search_path()
286 register char *filename; in report_dependency() local
297 if (strlen(filename) == 0) { in report_dependency()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dgnamef.c40 gnamef(p, filename) in gnamef() argument
41 register char *filename; in gnamef()
54 (void) strncpy(filename, dp->d_name, MAXBASENAME);
55 filename[MAXBASENAME] = '\0';
69 gdirf(p, filename, dir) in gdirf() argument
70 register char *filename; in gdirf()
77 if(gnamef(p, filename) == FALSE)
79 (void) sprintf(statname, "%s/%s", dir, filename);
H A Dsystat.c49 char filename[MAXFULLNAME], line[S_SIZE]; local
57 STATNAME(filename, name);
59 fp = fopen(filename, "r");
113 fp = fopen(filename, "w");
116 errent(Ct_OPEN, filename, errno, __FILE__, __LINE__);
119 (void) chmod(filename, PUB_FILEMODE);
141 char filename[MAXFULLNAME], line[S_SIZE]; local
144 STATNAME(filename, name);
145 fp = fopen(filename, "r");
153 (void) unlink(filename);
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnetpr.c280 job_data->filename ? in main()
287 job_data->filename ? in main()
288 job_data->filename : "Noname"); in main()
294 job_data->filename ? in main()
295 job_data->filename : "Noname"); in main()
299 perror(job_data->filename); in main()
302 job_data->filename ? in main()
321 job_data->filename ? in main()
324 job_data->filename ? in main()
334 job_data->filename ? in main()
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dboot_plat.c74 int openfile(char *filename);
89 char filename[MAXPATHLEN]; variable
117 s = filename; in set_client_bootargs()
250 openfile(char *filename) in openfile() argument
270 if (*filename == '/') { in openfile()
283 (void) strcpy(filename, fullpath); in openfile()
562 filename[0] = '\0'; in main()
568 init_bootargs(filename, sizeof (filename), bargs, sizeof (bargs)); in main()
577 if (strcmp(filename, "kmdb") == 0 || strcmp(filename, "kadb") == 0) { in main()
593 dprintf("filename: 0x%p %s\n", (void *)filename, filename); in main()
[all …]
/illumos-gate/usr/src/cmd/ast/libshell/common/scripts/
H A Dcrawlsrccomments.sh500 case "$filename" in
541 case "$filename" in
604 typeset filename="$2"
610 records[${filename}]=(
611 typeset filename="$filename"
622 records[${filename}].hashsum["md5"]="$(sum -x md5 < "$filename")"
623 records[${filename}].hashsum["sha1"]="$(sum -x sha1 < "$filename")"
634 …enumerate_comments_cpp "${filename}" "records[${filename}].comments" ${max_num_comments} ${max_fil…
635 records[${filename}].comments_parsed=true
639 records[${filename}].comments_parsed=true
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c45 char *filename = NULL; in main() local
88 filename = optarg; in main()
105 fid = open(filename, O_RDWR | O_CREAT | O_TRUNC, in main()
108 fprintf(stderr, "open %s error=%d\n", filename, errno); in main()
115 fprintf(stderr, "ftrunc %s error=%d\n", filename, errno); in main()
123 fprintf(stderr, "mmap %s error=%d\n", filename, errno); in main()
140 perror(filename); in main()
163 perror(filename); in main()
186 perror(filename); in main()
200 fprintf(stderr, "msync %s error=%d\n", filename, errno); in main()
[all …]
/illumos-gate/usr/src/lib/brand/solaris10/zone/
H A Ds10_boot.ksh267 filename=$ZONEROOT/lib/svc/method/net-physical
268 safe_backup $filename $filename.pre_p2v
271 safe_backup $filename $filename.pre_p2v
328 filename=$ZONEROOT/usr/sbin/add_drv
329 [ ! -f $filename.pre_p2v ] && safe_backup $filename $filename.pre_p2v
330 rm -f $filename
331 safe_copy $ZONEROOT/usr/bin/true $filename
333 filename=$ZONEROOT/usr/sbin/rem_drv
334 [ ! -f $filename.pre_p2v ] && safe_backup $filename $filename.pre_p2v
335 rm -f $filename
[all …]
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c447 each_file(char *filename) argument
459 perror(filename);
466 prog_name, filename);
472 prog_name, filename);
499 filename);
512 filename);
545 set_A_header(filename);
591 prog_name, filename);
600 prog_name, filename);
631 &shdr, filename);
[all …]
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlastcomm.c42 char *filename = NULL; in main() local
50 filename = optarg; in main()
67 if (filename) { in main()
68 return (lc_exacct(filename, argc, argv, optind)); in main()
80 if (filename == NULL) { in main()
96 if ((res = ea_open(&ef, filename, EXACCT_CREATOR, in main()
101 return (lc_pacct(filename, argc, argv, optind)); in main()
103 return (lc_exacct(filename, argc, argv, optind)); in main()
/illumos-gate/usr/src/cmd/tsol/setlabel/
H A Dsetlabel.c89 set_label(char *filename, char *label) in set_label() argument
97 perror(filename); in set_label()
100 rval = getlabel(filename, blabel); in set_label()
103 perror(filename); in set_label()
109 filename); in set_label()
116 rval = setlabel(filename, blabel); in set_label()
123 setlabel(char *filename, bslabel_t *label) in setlabel() argument
127 rval = setflabel(filename, label); in setlabel()
131 perror(filename); in setlabel()
/illumos-gate/usr/src/cmd/unpack/
H A Dunpack.c185 argv0, filename); in decode()
193 argv0, filename); in decode()
339 cp = filename; in main()
352 argv0, filename); in main()
388 argv0, filename); in main()
422 argv[k], filename, in main()
507 argv0, filename); in expand()
521 argv0, filename); in expand()
533 argv0, filename); in expand()
548 argv0, filename); in expand()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dassert.c69 const char *filename,
74 sm_abort_defaulthandler(filename, lineno, msg) in sm_abort_defaulthandler() argument
75 const char *filename; in sm_abort_defaulthandler()
79 if (filename != NULL)
80 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s:%d: %s\n", filename,
169 sm_abort_at(filename, lineno, msg) in sm_abort_at() argument
170 const char *filename; in sm_abort_at()
175 (*SmAbortHandler)(filename, lineno, msg);
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c1388 filename); in lofi_uncompress()
1412 x = strdup(filename); in lofi_uncompress()
1415 x = strdup(filename); in lofi_uncompress()
1512 filename); in lofi_compress()
1572 x = strdup(filename); in lofi_compress()
1575 x = strdup(filename); in lofi_compress()
1832 filename); in check_file_validity()
1835 filename, DEV_BSIZE); in check_file_validity()
1858 CRYOFF, filename); in check_file_is_encrypted()
1921 const char *filename = NULL; in main() local
[all …]

12345678910>>...20