Searched refs:filename (Results 251 - 275 of 452) sorted by relevance

<<111213141516171819

/illumos-gate/usr/src/common/fs/
H A Dufsops.c611 bufs_open(char *filename, int flags) argument
617 dprintf("open: %s\n", filename);
627 filep->fi_path = (char *)bkmem_alloc(strlen(filename) + 1);
628 (void) strcpy(filep->fi_path, filename);
635 inode = find(filep, (char *)filename);
637 dprintf("open: cannot find %s\n", filename);
642 printf("open: cannot open %s\n", filename);
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c363 char *filename = NULL; local
722 filename = filelist[i];
723 if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) ==
726 "can not open input file %s\n"), filename);
749 filename ? filename : "STDIN",
778 (void) fprintf(stdout, "(%s) = ", filename);
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslogd.c749 cycle_log(char *filename, int max_logs_preserve) argument
760 if (stat(filename, &st) == -1) {
772 (void) sprintf(file_1, "%s.%d", filename, i);
773 (void) sprintf(file_2, "%s.%d", filename, (i + 1));
784 (void) sprintf(file_1, "%s.0", filename);
785 if (rename(filename, file_1) == -1) {
790 filename, file_1, strerror(error));
/illumos-gate/usr/src/uts/common/os/
H A Dmodctl.c353 modctl_modload(int use_path, char *filename, int *rvp) argument
362 if (copyinstr(filename, filenamep, MOD_MAXPATH, 0)) {
1600 char *filename, *filenamep; local
1602 filename = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
1607 if (copyinstr(path, filename, MAXPATHLEN, 0) != 0) {
1611 filenamep = filename;
1617 kmem_free(filename, MAXPATHLEN);
1638 * bind door_upcall to filename
2652 modrload(const char *subdir, const char *filename, struct modctl **rmodp) argument
2665 * refuse / in filename t
2706 modload(const char *subdir, const char *filename) argument
2785 modloadonly(const char *subdir, const char *filename) argument
3073 mod_hold_loaded_mod(struct modctl *dep, char *filename, int *status) argument
3172 mod_find_by_filename(char *subdir, char *filename) argument
3283 allocate_modp(const char *filename, const char *modname) argument
4018 mod_hold_by_name_common(struct modctl *dep, const char *filename) argument
4095 mod_hold_by_name_requisite(struct modctl *dep, char *filename) argument
4101 mod_hold_by_name(const char *filename) argument
4183 mod_name_to_modid(char *filename) argument
[all...]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c184 * Execute an operation on filename relative to zoneid's zone root. If the
193 dlmgmt_zfop(const char *filename, zoneid_t zoneid, zfcb_t *zfcb, argument
264 zfarg.zfarg_filename = filename;
279 const char *filename = zfarg->zfarg_filename; local
300 if (stat(filename, &statbuf) == -1) {
307 if ((fd = open(filename, oflags, mode)) == -1)
310 if (chown(filename, UID_DLADM, GID_NETADM) == -1) {
365 dlmgmt_zfopen(const char *filename, const char *modestr, zoneid_t zoneid, argument
379 *err = dlmgmt_zfop(filename, zoneid, dlmgmt_zopen_cb, &zfoparg);
408 * Same as unlink(2), except that filename i
411 dlmgmt_zunlink(const char *filename, zoneid_t zoneid) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c725 write_member_header(const char *filename, int fd, int is_elf, argument
746 arwrite(filename, fd, buf, len);
764 writesymtab(const char *filename, int fd, size_t nsyms, ARFILEP *symlist, argument
784 write_member_header(filename, fd, 0,
798 arwrite(filename, fd, buf, tblsize);
800 arwrite(filename, fd, sym_strtbl.base, sym_strtbl.used);
1620 make_tmpname(const char *filename) { argument
1625 * If there is a path prefix in front of the filename, we
1629 slash = strrchr(filename, '/');
1631 prefix_cnt = slash - filename
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dcu.c88 * diversion syntax is "~[local]>:filename", and is terminaled
166 static char filename[BUFSIZ] = "/dev/null"; variable
188 OldStyle=NO, /* don't handle old '~>:filename' syntax */
1009 (void) strcpy(filename, arg[2]);
1010 recfork(); /* fork so child (receive) knows filename */
1179 /* ~%old toggles recognition of old-style '~>:filename' */
1291 (void) strcpy(filename, "/dev/null");
1311 /* terminate filename string */
1315 if ( !EQUALS(filename, b_p) ) {
1316 if ( !Divert || !EQUALS(filename, "/de
1329 VERBOSE(gettext(P_Ct_DIVERT), filename); local
[all...]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Ddelete.c576 char *dir, char *filename, KMF_BIGINT *serial, char *issuer,
612 if (filename != NULL) {
614 filename, strlen(filename));
688 delete_file_crl(void *kmfhandle, char *filename) argument
695 if (filename == NULL || strlen(filename) == 0)
702 if (filename) {
704 filename, strlen(filename));
575 delete_file_certs(KMF_HANDLE_T kmfhandle, char *dir, char *filename, KMF_BIGINT *serial, char *issuer, char *subject, KMF_CERT_VALIDITY find_criteria_flag) argument
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/
H A Dpsvcplugin.c752 char filename[PATH_MAX]; local
762 (void) snprintf(filename, sizeof (filename),
764 if ((fp = fopen(filename, "r")) == NULL) {
1596 char filename[256]; local
1621 (void) snprintf(filename, sizeof (filename),
1623 if ((psvc_hdl.fp = fopen(filename, "r")) == NULL) {
1624 init_err(FILE_OPEN_FAILED_MSG, funcname, filename);
1630 init_err(INVALID_FILE_FORMAT1_MSG, funcname, filename);
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.c321 char *filename = NULL; local
338 if (!(filename = gen_dbsuffix(db_ctx->db_name, db_ctx->tempdb
341 db_ctx->db_lf_name = filename; /* so it gets freed by clear_context */
347 if ((db_ctx->db_lf_file = open(filename, O_RDWR, 0666)) < 0) {
348 if ((db_ctx->db_lf_file = open(filename, O_RDONLY, 0666)) < 0) {
352 (void) snprintf(errbuf, sizeof(errbuf), gettext("Failed to open \"%s\": "), filename);
824 char *filename; local
833 filename = gen_dbsuffix(dbname, suffix);
834 if (filename == 0)
836 if ((fd = open(filename, O_RDW
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Doptions.c446 (char *filename, bool must_exist, bool check_prot, bool priv)
448 (filename, must_exist, check_prot, priv)
449 char *filename;
474 f = fopen(filename, "r");
482 option_error("Can't open options file %s: %m", filename);
495 option_source = strdup(filename);
501 while (getword(f, cmd, &newline, filename)) {
510 if (!getword(f, args[i], &newline, filename)) {
1153 getword(f, word, newlinep, filename)
1157 char *filename;
444 options_from_file(char *filename, bool must_exist, bool check_prot, bool priv) argument
[all...]
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c70 static int get_cached_n_to_m_file(char *filename, char ***cache);
127 char *filename,
138 if ((fp = fopen(filename, "a")) == NULL) {
141 filename);
149 (void) fprintf(stderr, gettext(ERR_NO_UPDATE), filename);
169 * get one entry at a time from list and append to <filename> file
187 filename);
218 char *filename)
226 if ((fp = fopen(filename, "a")) == NULL) {
229 filename);
124 append_to_file( char *driver_name, char *entry_list, char *filename, char list_separator, char *entry_separator, int quoted) argument
215 append_to_minor_perm( char *driver_name, char *entry_list, char *filename) argument
591 get_cached_n_to_m_file(char *filename, char ***cache) argument
2351 fill_n2m_array(char *filename, char **array, int *nelems) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Ddebug_alloc.c365 check_leaks(char *filename) argument
370 fp = fopen(filename, "a");
373 filename);
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_autohome.c254 char filename[MAXNAMELEN]; local
270 (void) snprintf(filename, MAXNAMELEN, "%s/%s", path,
273 if ((si->fp = fopen(filename, "r")) == NULL)
/illumos-gate/usr/src/lib/libdscfg/common/
H A Dcfg.h65 CFGFILE *cfg_open(char *filename);
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.c97 const char *filename,
113 if ((pctx->Pr = Pcreate(filename, argv, &err, 0, 0)) == NULL) {
117 "unreadable program '%s'\n"), filename);
121 "program '%s'\n"), filename);
125 "program '%s'\n"), filename);
129 "program '%s'\n"), filename);
133 "program '%s'\n"), filename);
137 Pcreate_error(err), filename);
146 gettext("can't stop-on-exit() program '%s'\n"), filename);
96 pctx_create( const char *filename, char *const *argv, void *arg, int verbose, pctx_errfn_t *errfn) argument
/illumos-gate/usr/src/cmd/format/
H A Dmenu_defect.c617 TOKEN filename; local
635 (void) strcpy(filename, str);
643 status = access(filename, 4);
660 if ((fptr = fopen(filename, "r")) == NULL) {
/illumos-gate/usr/src/uts/common/ctf/
H A Dctf_mod.c95 ctf_open(const char *filename, int *errp) argument
/illumos-gate/usr/src/cmd/newtask/
H A Dnewtask.c110 char *filename, *procname = NULL; local
306 filename = pw->pw_shell;
311 filename = targs[0];
314 if (execvp(filename, targs) == -1)
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Demac.c172 * void TFTP_RequestFile(char *filename)
177 TFTP_RequestFile(char *filename) argument
187 ePtr = strcpy(cPtr, filename);
526 * void TFTP_Download(unsigned address, char *filename)
533 TFTP_Download(unsigned address, char *filename) argument
564 TFTP_RequestFile(filename);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf.c90 __elfN(load_elf_header)(char *filename, elf_file_t ef) argument
99 if (filename == NULL) /* can't handle nameless */
101 if ((ef->fd = open(filename, O_RDONLY)) == -1)
150 __elfN(loadfile)(char *filename, u_int64_t dest, struct preloaded_file **result) argument
152 return (__elfN(loadfile_raw)(filename, dest, result, 0));
156 __elfN(loadfile_raw)(char *filename, u_int64_t dest, argument
168 err = __elfN(load_elf_header)(filename, &ef);
252 setenv("kernelname", filename, 1);
253 fp->f_name = strdup(filename);
262 printf("%s entry at 0x%jx\n", filename, (uintmax_
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c88 * Prepended to each chached filename is a character which contains
89 * one of the following status codes. When a given filename (minus
165 /* filename should be recorded in the cache. */
196 * A qsort() comparison function for comparing the cached filename
198 * this ignores the initial cache-status byte of each filename.
203 * A qsort() comparison function for comparing a filename
204 * against an element of an array of pointers to filename cache
242 * Clear the filename status codes that are recorded before each filename
420 * pc PathCache * The filename cach
891 const char *filename; /* The name of the file being looked at */ local
1220 const char *filename; /* The name of the file being looked at */ local
[all...]
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_bind.c1112 char filename[300]; local
1116 (void) snprintf(filename, sizeof (filename),
1118 fp = fopen(filename, "rF");
1146 char filename[300]; local
1150 (void) snprintf(filename, sizeof (filename), "%s/ypbind.pid", BINDING);
1151 fd = open(filename, O_RDONLY);
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_config.h629 char *filename,
645 char *filename,
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c131 filename, ext, fd, type, omode, euid);
151 filename, ext, fd, type, omode, euid);

Completed in 98 milliseconds

<<111213141516171819