Searched refs:fname (Results 1 - 25 of 417) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dremove.c35 remove(fname)
36 register char *fname;
38 return (unlink(fname));
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.h40 void eftwrite(const char *fname);
H A Deftread.h39 FILE *eftread_fopen(const char *fname, char *idbuf, size_t idbufsz);
H A Dalloc.c70 alloc_malloc(size_t nbytes, const char *fname, int line) argument
75 outfl(O_DIE, fname, line, "malloc: out of memory");
92 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument
97 out(O_DIE, fname, line, "realloc: out of memory");
108 alloc_strdup(const char *ptr, const char *fname, int line) argument
113 outfl(O_DIE, fname, line, "strdup: out of memory");
125 alloc_free(void *ptr, const char *fname, int line) argument
H A Dalloc.h40 void *alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line);
41 void *alloc_malloc(size_t nbytes, const char *fname, int line);
42 void alloc_free(void *ptr, const char *fname, int line);
43 char *alloc_strdup(const char *ptr, const char *fname, int line);
/illumos-gate/usr/src/lib/libc/port/sys/
H A Daccess.c33 faccessat(int fd, const char *fname, int amode, int flag) argument
35 return (syscall(SYS_faccessat, fd, fname, amode, flag));
40 access(const char *fname, int amode) argument
43 return (syscall(SYS_access, fname, amode));
45 return (faccessat(AT_FDCWD, fname, amode, 0));
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_open.c50 char *fname = uu_zalloc(PATH_MAX); local
52 if (fname == NULL)
56 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime());
58 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
65 (void) unlink(fname);
67 uu_free(fname);
/illumos-gate/usr/src/cmd/mail/
H A Dislocal.c41 char fname[MAXPATHLEN]; local
46 (void) snprintf(fname, sizeof (fname), "%s%s", maildir, user);
47 if (stat(fname, &statb) == 0) {
/illumos-gate/usr/src/cmd/isaexec/
H A Disaexec.c41 const char *fname; local
62 fname = strrchr(execname, '/');
63 fname = (fname != NULL) ? (fname+1) : execname;
70 argv[0], fname);
77 argv[0], fname);
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c56 char fname[PATH_MAX]; local
62 (void) snprintf(fname, sizeof (fname), "%s/%d/cred",
64 if ((fd = open(fname, O_RDONLY)) >= 0) {
75 char fname[PATH_MAX]; local
82 (void) snprintf(fname, sizeof (fname), "%s/%d/secflags",
84 if ((fd = open(fname, O_RDONLY)) >= 0) {
105 char fname[PATH_MAX]; local
110 (void) snprintf(fname, sizeo
134 char fname[PATH_MAX]; local
167 char fname[PATH_MAX]; local
184 char fname[PATH_MAX]; local
207 char fname[PATH_MAX]; local
[all...]
/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);
H A Dwrite_audio.c42 open_audio(char *fname) argument
49 ext = (char *)(strrchr(fname, '.'));
56 fname);
63 return (open_au_read_stream(fname));
65 return (open_wav_read_stream(fname));
67 return (open_file_read_stream(fname));
69 return (open_aur_read_stream(fname));
/illumos-gate/usr/src/cmd/gcore/
H A Dgcore.c43 convert_path(const char *path, char *fname, size_t size, argument
53 fname[size - 1] = '\0';
58 bcopy(path, fname, len);
60 fname += len;
67 len = snprintf(fname, size, "%d", (int)pip->pr_pid);
70 len = snprintf(fname, size, "%d", (int)pip->pr_uid);
73 len = snprintf(fname, size, "%d", (int)pip->pr_gid);
76 len = snprintf(fname, size, "%s", pip->pr_fname);
85 len = snprintf(fname, size, "%s", &exec[1]);
90 len = snprintf(fname, siz
133 gcore(struct ps_prochandle *P, const char *fname, core_content_t content, int *errp) argument
156 char fname[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dexecvp.c110 char fname[PATH_MAX+2]; local
150 cp = execat(cp, name, fname);
157 if (*fname == '-') {
158 size_t size = strlen(fname) + 1;
159 if ((size + 2) > sizeof (fname)) {
163 (void) memmove(fname + 2, fname, size);
164 fname[0] = '.';
165 fname[1] = '/';
167 (void) execv(fname, arg
[all...]
/illumos-gate/usr/src/cmd/sgs/ldd/common/
H A Dldd.c344 char *fname = argv[optind]; local
350 if ((var = open(fname, O_RDONLY)) == -1) {
353 fname, strerror(err));
366 cname, fname);
371 cname, fname);
375 if (elf_check(nfile, fname, cname, elf, fflag) != NULL)
382 if (aout_check(nfile, fname, cname, var, fflag) != NULL)
395 elf_check(int nfile, char *fname, char *cname, Elf *elf, int fflag) argument
407 cname, fname, elf_errmsg(-1));
416 (void) fprintf(stderr, MSG_INTL(MSG_ELF_MACHTYPE), cname, fname,
580 aout_check(int nfile, char *fname, char *cname, int fd, int fflag) argument
631 run(int nfile, char *cname, char *fname, const char *ename, int class) argument
766 (void) printf(MSG_ORIG(MSG_STR_FMT3), fname); local
[all...]
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c43 static char *fname; variable
68 pname, fname, eh->e_type);
73 fname);
82 "hdrs\n", pname, fname, eh->e_phnum);
98 pname, fname);
129 "PT_LOAD wasn't 1st PT_LOAD\n", pname, fname);
134 pname, fname);
146 (void) printf(" %s: ELF64 MB header patched\n", fname);
155 "section\n", pname, fname);
180 fname
[all...]
/illumos-gate/usr/src/cmd/soelim/
H A Dsoelim.c60 char fname[BUFSIZ]; local
92 cp = fname;
111 if (cp == fname) {
116 if (process(fname) < 0)
118 printf(".so %s\n", fname);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/
H A Ddb.c50 kdb2_dbopen(fname, flags, mode, type, openinfo)
51 const char *fname;
65 return (__bt_open(fname, flags & USE_OPEN_FLAGS,
68 return (__hash_open(fname, flags & USE_OPEN_FLAGS,
71 return (__rec_open(fname, flags & USE_OPEN_FLAGS,
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dser_princ.c71 char *fname;
84 !(kret = krb5_unparse_name(kcontext, principal, &fname))) {
85 *sizep += (3*sizeof(krb5_int32)) + strlen(fname);
87 krb5_xfree_wrap(fname, strlen(fname) + 1);
104 char *fname;
116 if (!(kret = krb5_unparse_name(kcontext, principal, &fname))) {
119 (void) krb5_ser_pack_int32((krb5_int32) strlen(fname),
121 (void) krb5_ser_pack_bytes((krb5_octet *) fname,
122 strlen(fname),
70 char *fname; local
102 char *fname; local
[all...]
/illumos-gate/usr/src/boot/lib/libz/
H A Dzopen.c11 FILE *zopen(const char *fname, const char *mode);
39 zopen(const char *fname, const char *mode) argument
41 gzFile gz = gzopen(fname, mode);
/illumos-gate/usr/src/lib/libnsl/saf/
H A Dcheckver.c51 check_version(int ver, char *fname) argument
58 if ((fp = fopen(fname, "rF")) == NULL)
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dmain.c58 char *fname; variable
109 extern char *fname;
186 fname = argv[optind];
188 error(fname, "cannot open");
194 /* error(fname, "cannot open"); */
196 "size: %s: %s\n", fname, elf_errmsg(-1));
212 tool_name, fname);
220 fname = arhdr->ar_name;
225 tool_name, archive, fname);
/illumos-gate/usr/src/cmd/split/
H A Dsplit.c69 char *fname = NULL; local
240 if ((fname = (char *)malloc(strlen(output_file_name) +
248 fname[i] = output_file_name[i];
251 fname[i++] = 'a';
254 fname[i - 1] = 'a' - 1;
255 fname[i] = '\0';
273 free(fname);
278 free(fname);
282 next_file_name(fname);
283 if ((out_file = fopen(fname, "
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Daccess.c61 caccess(char *fname, int fmode, vnode_t *startvp) argument
93 if (error = lookupnameatcred(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp,
120 faccessat(int fd, char *fname, int fmode, int flag) argument
128 if (fname == NULL)
130 if ((error = fgetstartvp(fd, fname, &startvp)) != 0)
140 error = caccess(fname, fmode, startvp);
149 access(char *fname, int fmode) argument
151 return (faccessat(AT_FDCWD, fname, fmode, 0));
/illumos-gate/usr/src/boot/sys/boot/common/
H A Ddevopen.c36 devopen(struct open_file *f, const char *fname, const char **file) argument
41 result = archsw.arch_getdev((void **)&dev, fname, file);

Completed in 114 milliseconds

1234567891011>>