/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | files_common.h | 79 const char *filename; member 101 const char *filename,
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 110 shp->st.filename = path_fullname(shp,stakptr(PATH_OFFSET)); in sh_source() 305 shp->st.filename = path_fullname(shp,name); in sh_main() 318 shp->st.filename = path_fullname(shp,sp); in sh_main() 378 nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE); in exfile() 608 if(shp->st.filename) in exfile() 609 free((void*)shp->st.filename); in exfile() 610 shp->st.filename = 0; in exfile()
|
/illumos-gate/usr/src/common/fs/ |
H A D | ufsops.c | 618 bufs_open(char *filename, int flags) in bufs_open() argument 624 dprintf("open: %s\n", filename); in bufs_open() 634 filep->fi_path = (char *)bkmem_alloc(strlen(filename) + 1); in bufs_open() 635 (void) strcpy(filep->fi_path, filename); in bufs_open() 642 inode = find(filep, (char *)filename); in bufs_open() 644 dprintf("open: cannot find %s\n", filename); in bufs_open() 649 printf("open: cannot open %s\n", filename); in bufs_open()
|
/illumos-gate/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 363 char *filename = NULL; in execute_cmd() local 722 filename = filelist[i]; in execute_cmd() 723 if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == in execute_cmd() 726 "can not open input file %s\n"), filename); in execute_cmd() 749 filename ? filename : "STDIN", in execute_cmd() 778 (void) fprintf(stdout, "(%s) = ", filename); in execute_cmd()
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_krb.c | 197 smb_ccache_init(char *dir, char *filename) in smb_ccache_init() argument 204 (void) snprintf(buf, MAXPATHLEN, "KRB5CCNAME=%s/%s", dir, filename); in smb_ccache_init()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | lib.h | 226 extern struct symbol_list *__sparse(char *filename); 227 extern struct symbol_list *sparse_keep_tokens(char *filename); 228 extern struct symbol_list *sparse(char *filename);
|
H A D | smatch.c | 259 char filename[PATH_MAX] = {}; in read_bin_filename() local 264 if (readlink(proc, filename, PATH_MAX) < 0) in read_bin_filename() 266 return alloc_string(filename); in read_bin_filename()
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | stdio.c | 149 fopen(const char *filename, const char *mode) in fopen() argument 187 fd = open(filename, O_RDONLY); in fopen() 193 (void) strlcpy(stream->_name, filename, in fopen()
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 59 static void process(char *filename, int fd); 197 process(char *filename, int fd) in process() argument 220 if ((modules.name = malloc(strlen(filename) + 1)) == NULL) { in process() 222 whoami, strlen(filename) + 1); in process() 225 (void) strcpy(modules.name, filename); in process()
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util.c | 501 static gchar filename[HAL_PATH_MAX]; in hal_util_grep_file() local 514 snprintf (filename, sizeof (filename), "%s/%s", directory, file); in hal_util_grep_file() 516 strncpy (filename, directory, sizeof (filename)); in hal_util_grep_file() 518 if (_grep_can_reuse && reuse && strcmp (oldfilename, filename) == 0) { in hal_util_grep_file() 524 f = fopen (filename, "r"); in hal_util_grep_file() 536 strncpy (oldfilename, filename, sizeof(oldfilename)); in hal_util_grep_file()
|
/illumos-gate/usr/src/boot/common/ |
H A D | load_elf.c | 90 __elfN(load_elf_header)(char *filename, elf_file_t ef) in __elfN() 99 if (filename == NULL) /* can't handle nameless */ in __elfN() 101 if ((ef->fd = open(filename, O_RDONLY)) == -1) in __elfN() 150 __elfN(loadfile)(char *filename, uint64_t dest, struct preloaded_file **result) in __elfN() 152 return (__elfN(loadfile_raw)(filename, dest, result, 0)); in __elfN() 156 __elfN(loadfile_raw)(char *filename, uint64_t dest, in __elfN() 168 err = __elfN(load_elf_header)(filename, &ef); in __elfN() 259 setenv("kernelname", filename, 1); in __elfN() 260 fp->f_name = strdup(filename); in __elfN() 273 printf("%s entry at 0x%jx\n", filename, in __elfN() [all …]
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | pcfs_glue.c | 143 pcfs_glue_open(const char *filename, int flags) in pcfs_glue_open() argument 145 return (BRD_OPEN(bfs_ops, (char *)filename, flags)); in pcfs_glue_open()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm.c | 168 bad_importfile(char *name, char *filename) in bad_importfile() argument 170 ilbadm_err(gettext("file %s cannot be opened for reading"), filename); in bad_importfile()
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | dst_internal.h | 126 int dst_s_build_filename( char *filename, const char *name, 130 FILE *dst_s_fopen (const char *filename, const char *mode, int perm);
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | crossref.c | 64 static char *filename; /* file name for warning messages */ variable 90 filename = srcfile; /* save the file name for warning messages */ in crossref() 438 filename, yylineno, text);
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/ |
H A D | psvcplugin.c | 755 char filename[PATH_MAX]; in init_daemon() local 765 (void) snprintf(filename, sizeof (filename), in init_daemon() 767 if ((fp = fopen(filename, "r")) == NULL) { in init_daemon() 1599 char filename[256]; in psvc_plugin_init() local 1624 (void) snprintf(filename, sizeof (filename), in psvc_plugin_init() 1626 if ((psvc_hdl.fp = fopen(filename, "r")) == NULL) { in psvc_plugin_init() 1627 init_err(FILE_OPEN_FAILED_MSG, funcname, filename); in psvc_plugin_init() 1633 init_err(INVALID_FILE_FORMAT1_MSG, funcname, filename); in psvc_plugin_init() 1638 init_err(INVALID_FILE_FORMAT1_MSG, funcname, filename); in psvc_plugin_init() 1678 filename); in psvc_plugin_init() [all …]
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | policy.c | 858 kmf_get_policy(char *filename, char *policy_name, KMF_POLICY_RECORD *plc) in kmf_get_policy() argument 866 if (filename == NULL || policy_name == NULL || plc == NULL) in kmf_get_policy() 877 doc = xmlCtxtReadFile(ctxt, filename, NULL, in kmf_get_policy() 1035 update_policyfile(xmlDocPtr doc, char *filename) in update_policyfile() argument 1048 if ((pfile = fopen(filename, "r+")) == NULL && errno == ENOENT) in update_policyfile() 1049 pfile = fopen(filename, "w+"); in update_policyfile() 1063 p = (char *)strrchr(filename, '/'); in update_policyfile() 1077 prefix_len = p - filename; in update_policyfile() 1078 (void) strncpy(tmpfilename, filename, prefix_len); in update_policyfile() 1121 if (rename(tmpfilename, filename) == -1) { in update_policyfile()
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 726 write_member_header(const char *filename, int fd, int is_elf, in write_member_header() argument 747 arwrite(filename, fd, buf, len); in write_member_header() 765 writesymtab(const char *filename, int fd, size_t nsyms, ARFILEP *symlist, in writesymtab() argument 785 write_member_header(filename, fd, 0, in writesymtab() 799 arwrite(filename, fd, buf, tblsize); in writesymtab() 801 arwrite(filename, fd, sym_strtbl.base, sym_strtbl.used); in writesymtab() 1623 make_tmpname(const char *filename) in make_tmpname() argument 1633 slash = strrchr(filename, '/'); in make_tmpname() 1635 prefix_cnt = slash - filename + 1; in make_tmpname() 1644 (void) strncpy(tmpname, filename, prefix_cnt); in make_tmpname()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cu.c | 163 static char filename[BUFSIZ] = "/dev/null"; variable 1002 (void) strcpy(filename, arg[2]); in _dopercen() 1284 (void) strcpy(filename, "/dev/null"); in _receive() 1308 if ( !EQUALS(filename, b_p) ) { in _receive() 1309 if ( !Divert || !EQUALS(filename, "/dev/null") ) { in _receive() 1311 (void) strcpy(filename, "/dev/null"); in _receive() 1314 (void) strcpy(filename, b_p); in _receive() 1317 if ( append && ((file=open(filename,O_WRONLY)) >= 0) ) in _receive() 1320 file = creat(filename, PUB_FILEMODE); in _receive() 1322 VERBOSE(gettext(P_Ct_DIVERT), filename); in _receive()
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_main.c | 474 dis_file(const char *filename) in dis_file() argument 485 if ((tgt = dis_tgt_create(filename)) == NULL) in dis_file() 489 (void) printf("disassembly for %s\n\n", filename); in dis_file() 607 die("%s: unsupported ELF machine 0x%x", filename, in dis_file() 630 filename, dis_strerror(dis_errno())); in dis_file()
|
/illumos-gate/usr/src/common/ficl/ |
H A D | extras.c | 46 char filename[BUFFER_SIZE]; in ficlPrimitiveLoad() local 47 ficlCountedString *counted = (ficlCountedString *)filename; in ficlPrimitiveLoad()
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | trace.c | 177 xlator_startfile(char const *filename) in xlator_startfile() argument 184 seterrline(0, filename, "", ""); in xlator_startfile() 187 db_set_current_file(filename); in xlator_startfile() 189 filename, lib); in xlator_startfile() 192 (void) snprintf(infile, sizeof (infile), "%s", filename); in xlator_startfile()
|
/illumos-gate/usr/src/cmd/sgs/error/common/ |
H A D | errortouch.c | 48 static int oktotouch(char *filename); 421 oktotouch(char *filename) in oktotouch() argument 437 for (src = &filename[strlen(filename)], --src; in oktotouch() 438 (src > filename) && (*src != '.'); --src) in oktotouch()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | debug_alloc.c | 363 check_leaks(char *filename) in check_leaks() argument 368 fp = fopen(filename, "a"); in check_leaks() 371 filename); in check_leaks()
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | bootprop.c | 74 set_default_filename(char *filename) in set_default_filename() argument 76 kernname = filename; in set_default_filename()
|