Home
last modified time | relevance | path

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

12345678910>>...20

/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c193 touch(filename) in touch() argument
194 char *filename; in touch()
199 if (stat(filename, &stbuf)) {
208 perror(filename);
213 else if ((fd = creat(filename, 0666)) < 0) {
215 perror(filename);
220 if (stat(filename, &stbuf)) {
222 perror(filename);
242 nowrite = access(filename, R_OK|W_OK);
246 prog, filename);
[all …]
/illumos-gate/usr/src/cmd/asa/
H A Dasa.c42 static void disp_file(FILE *f, char *filename);
55 char *filename = NULL; in main() local
78 filename = NULL; in main()
81 f = get_next_file(need_a_newline, filename, argv, argc); in main()
91 disp_file(f, filename); in main()
96 f = get_next_file(need_a_newline, filename, argv, argc); in main()
146 disp_file(f, filename); in main()
151 f = get_next_file(need_a_newline, filename, in main()
178 disp_file(FILE *f, char *filename) in disp_file() argument
183 if (filename) { in disp_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()
86 write_struct(const char *filename, xdrproc_t structproc, void *list) in write_struct() argument
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()
119 read_struct(const char *filename, xdrproc_t structproc, void *list) in read_struct() argument
126 fd = open(filename, O_RDONLY, 0600); 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
123 if (chmod(filename, mode | S_IWUSR) == -1) { 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
64 fprintf (stderr, "%s: Read error.\n", filename); in check_multiboot()
81 fprintf (stderr, "%s: No Multiboot header.\n", filename); in check_multiboot()
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()
114 filename, (mbh->flags & 0x10000)? "on" : "off"); in check_multiboot()
125 filename, mbh->header_addr, mbh->load_addr); in check_multiboot()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Ddelete.c42 char *filename = NULL; in kc_delete() local
48 filename = get_string(optarg_av, &rv); in kc_delete()
49 if (filename == NULL) { in kc_delete()
82 if (filename == NULL) { in kc_delete()
83 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_delete()
84 if (filename == NULL) { in kc_delete()
99 } else if (strcmp(filename, KMF_DEFAULT_POLICY_FILE) == 0 && in kc_delete()
109 if (access(filename, W_OK) < 0) { in kc_delete()
113 filename, strerror(err)); in kc_delete()
118 kmfrv = kmf_delete_policy_from_db(policyname, filename); in kc_delete()
[all …]
H A Dexport.c41 char *filename = NULL; in kc_export() local
53 filename = get_string(optarg_av, &rv); in kc_export()
54 if (filename == NULL) { in kc_export()
93 if (filename == NULL) { in kc_export()
94 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_export()
95 if (filename == NULL) { in kc_export()
124 rv = load_policies(filename, &plclist); in kc_export()
149 policyname, filename); in kc_export()
154 if (filename != NULL) in kc_export()
155 free(filename); in kc_export()
H A Dimport.c42 char *filename = NULL; in kc_import() local
54 filename = get_string(optarg_av, &rv); in kc_import()
55 if (filename == NULL) { in kc_import()
95 if (filename == NULL) { in kc_import()
96 filename = strdup(KMF_DEFAULT_POLICY_FILE); in kc_import()
97 if (filename == NULL) { in kc_import()
117 if (strcmp(filename, KMF_DEFAULT_POLICY_FILE) == 0 && in kc_import()
142 rv = kmf_add_policy_to_db(&pnode->plc, filename, in kc_import()
156 if (filename != NULL) in kc_import()
157 free(filename); in kc_import()
/illumos-gate/usr/src/cmd/fwflash/common/
H A Dfwflash.c79 static int fwflash_update(char *device, char *filename, int flags);
80 static int fwflash_read_file(char *device, char *filename);
364 if ((tmpplug->filename = calloc(1, strlen(plugname) + 1)) in flash_load_plugins()
374 (void) strlcpy(tmpplug->filename, plugname, in flash_load_plugins()
444 tmpplug->filename); in flash_load_plugins()
467 if ((tmpelem->filename = calloc(1, in flash_load_plugins()
468 strlen(tmpplug->filename) + 1)) == NULL) { in flash_load_plugins()
472 strlen(tmpplug->filename) + 1, in flash_load_plugins()
473 tmpplug->filename); in flash_load_plugins()
477 (void) strlcpy(tmpelem->filename, plugname, in flash_load_plugins()
[all …]
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c212 print_static(SCNTAB *l_scns, char *filename) in print_static() argument
221 (void) printf("\n%s:\n", filename); in print_static()
285 GElf_Ehdr * p_ehdr, size_t reloc_size, size_t sym_size, char *filename, in print_rela() argument
320 "offset - %d - in %s\n", prog_name, filename, in print_rela()
390 GElf_Ehdr *p_ehdr, size_t reloc_size, size_t sym_size, char *filename, in print_rel() argument
425 "offset - %d - in %s\n", prog_name, filename, in print_rel()
726 check_range(int low, int hi, size_t bound, char *filename) in check_range() argument
731 prog_name, filename, low); in check_range()
737 prog_name, filename, hi); in check_range()
744 prog_name, filename, low, hi); in check_range()
[all …]
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dvroot.cc151 get_vroot_path(char **vroot, char **path, char **filename) in get_vroot_path() argument
160 if (filename != NULL) in get_vroot_path()
161 *filename= vroot_data.filename_start; in get_vroot_path()
166 translate_with_thunk(char *filename, int (*thunk) (char *), pathpt path_vector, pathpt vroot_vector… in translate_with_thunk() argument
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()
221 (void)strcpy(vroot_data.filename_start= p, filename); 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()
[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
244 sprintf(filename, "%s-%s", ptr+1, flag); in report_libdep()
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 char *filename; in report_dependency() local
[all …]
/illumos-gate/usr/src/lib/brand/solaris10/zone/
H A Ds10_boot.ksh246 filename=$ZONEROOT/lib/svc/method/net-physical
247 safe_backup $filename $filename.pre_p2v
248 safe_copy /usr/lib/brand/solaris10/s10_net_physical $filename
249 filename=$ZONEROOT/lib/svc/share/net_include.sh
250 safe_backup $filename $filename.pre_p2v
251 safe_copy /lib/svc/share/net_include.sh $filename
306 filename=$ZONEROOT/usr/sbin/add_drv
307 [ ! -f $filename.pre_p2v ] && safe_backup $filename $filename.pre_p2v
308 rm -f $filename
309 safe_copy $ZONEROOT/usr/bin/true $filename
[all …]
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnetpr.c269 job_data->filename = alloc_str(argv[optind]); in main()
270 syslog(LOG_DEBUG, "filename : %s", job_data->filename); in main()
278 if ((filesize = check_file(job_data->filename)) == -1) { in main()
280 job_data->filename ? in main()
281 job_data->filename : "Error NULL file"); 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()
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dboot_plat.c74 int openfile(char *filename);
89 char filename[MAXPATHLEN]; variable
112 set_client_bootargs(const char *filename, const char *bargs) in set_client_bootargs() argument
117 s = filename; in set_client_bootargs()
250 openfile(char *filename) in openfile() argument
270 if (*filename == '/') { in openfile()
271 (void) strcpy(fullpath, filename); in openfile()
276 fd = open_platform_file(filename, boot_open, NULL, fullpath); in openfile()
283 (void) strcpy(filename, fullpath); in openfile()
562 filename[0] = '\0'; in main()
[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 Dcntrl.c262 char filename[MAXFULLNAME], wrktype; in cntrl() local
327 (void) strcpy(filename, W_FILE1); in cntrl()
328 expfile(filename); in cntrl()
331 if ( (fp = fopen(filename, "r")) == NULL) { in cntrl()
336 filename, errno); in cntrl()
338 CDEBUG(1, "Failed: Can't Read %s\n", filename); in cntrl()
367 CDEBUG(1, "Denied: remote ulimit exceeded %s\n", filename); in cntrl()
390 (void) strcpy(filename, W_FILE2); in cntrl()
397 expfile(filename); in cntrl()
404 if (chkperm(W_FILE1, filename, strchr(W_OPTNS, 'd'))) { in cntrl()
[all …]
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/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/cmd/sgs/nm/common/
H A Dnm.c447 each_file(char *filename) argument
457 if (stat64(filename, &buf) == -1) {
459 perror(filename);
466 prog_name, filename);
470 if ((fd = open((filename), O_RDONLY)) == -1) {
472 prog_name, filename);
479 "%s: %s: %s\n", prog_name, filename, elf_errmsg(-1));
486 print_ar_files(fd, elf_file, filename);
495 (void) printf("\n\n%s:\n\n", filename);
499 filename);
[all …]
/illumos-gate/usr/src/cmd/unpack/
H A Dunpack.c59 static char filename[MAXPATHLEN]; variable
110 "%s: %s: read error: "), argv0, filename); in getdict()
132 "%s: %s: not in packed format\n"), argv0, filename); in getdict()
183 argv0, filename); in decode()
191 argv0, filename); in decode()
337 cp = filename; in main()
347 if ((infile = open(filename, O_RDONLY)) == -1) { in main()
350 argv0, filename); in main()
362 argv0, filename, acl_strerror(error)); in main()
365 max_name = pathconf(filename, _PC_NAME_MAX); in main()
[all …]
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlastcomm.c40 char *filename = NULL; in main() local
48 filename = optarg; in main()
65 if (filename) { in main()
66 return (lc_exacct(filename, argc, argv, optind)); in main()
78 if (filename == NULL) { in main()
94 if ((res = ea_open(&ef, filename, EXACCT_CREATOR, in main()
99 return (lc_pacct(filename, argc, argv, optind)); in main()
101 return (lc_exacct(filename, argc, argv, optind)); in main()
/illumos-gate/usr/src/cmd/tsol/setlabel/
H A Dsetlabel.c87 set_label(char *filename, char *label) in set_label() argument
95 perror(filename); in set_label()
98 rval = getlabel(filename, blabel); in set_label()
101 perror(filename); in set_label()
107 filename); in set_label()
114 rval = setlabel(filename, blabel); in set_label()
121 setlabel(char *filename, bslabel_t *label) in setlabel() argument
125 rval = setflabel(filename, label); in setlabel()
129 perror(filename); in setlabel()
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c415 lofi_map_file(int lfd, struct lofi_ioctl *li, const char *filename) in lofi_map_file() argument
420 (void) strlcpy(li->li_filename, filename, sizeof (li->li_filename)); in lofi_map_file()
426 die(gettext("could not map file %s"), filename); in lofi_map_file()
437 add_mapping(int lfd, const char *devicename, const char *filename, in add_mapping() argument
478 minor = lofi_map_file(lfd, &li, filename); in add_mapping()
493 (void) strlcpy(li.li_filename, filename, sizeof (li.li_filename)); in add_mapping()
500 die(gettext("could not map file %s to %s"), filename, in add_mapping()
511 delete_mapping(int lfd, const char *devicename, const char *filename, in delete_mapping() argument
521 (void) strlcpy(li.li_filename, filename, in delete_mapping()
525 die(gettext("could not unmap file %s"), filename); in delete_mapping()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dassert.c67 const char *filename,
72 sm_abort_defaulthandler(filename, lineno, msg) in sm_abort_defaulthandler() argument
73 const char *filename; in sm_abort_defaulthandler()
77 if (filename != NULL)
78 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s:%d: %s\n", filename,
167 sm_abort_at(filename, lineno, msg) in sm_abort_at() argument
168 const char *filename; in sm_abort_at()
173 (*SmAbortHandler)(filename, lineno, msg);

12345678910>>...20