Searched defs:fp (Results 1 - 25 of 1010) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_vsscan.c54 static FILE *fp = NULL; local
60 if (fp == NULL && (fp = tmpfile()) == NULL)
63 (void) rewind(fp);
66 (void) fputs(buf, fp);
69 (void) rewind(fp);
71 return (mks_vfscanf(fp, fmt, vp));
/illumos-gate/usr/src/lib/libpkg/common/
H A Dppkgmap.c43 ppkgmap(struct cfent *ept, FILE *fp) argument
49 if (fprintf(fp, "%d ", ept->volno) < 0)
54 if (fprintf(fp, "%c %s", ept->ftype, ept->path) < 0)
57 if (fprintf(fp, "%c %s %s", ept->ftype, ept->pkg_class,
63 if (fprintf(fp, "=%s", ept->ainfo.local) < 0)
69 if (fprintf(fp, " ?") < 0)
72 if (fprintf(fp, " %ld", ept->ainfo.major) < 0)
76 if (fprintf(fp, " ?") < 0)
79 if (fprintf(fp, " %ld", ept->ainfo.minor) < 0)
85 if (fprintf(fp, ((ep
[all...]
/illumos-gate/usr/src/lib/libc/port/unwind/
H A Dunwind.c52 * _t_cancel(fp):calls cleanup handlers if there are any in
53 * frame (fp), and calls _ex_unwind() to call
58 * _thrp_unwind: first arg = current fp;
64 * fp, then it will be invalid. For a caller of _thrp_unwind()
65 * it looks as if it is calling _t_cancel(fp).
72 _t_cancel(void *fp) argument
88 if (fp == NULL) {
93 if ((head = self->ul_clnup_hdr) != NULL && fp == head->fp) {
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kclose.c67 file_t *fp; local
69 fp = (tiptr->flags & MADE_FP) ? tiptr->fp : NULL;
73 if (fp != NULL)
74 (void) closef(fp);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfwide.c38 fwide(FILE *fp, int mode) argument
43 FLOCKFILE(lk, fp);
45 m = _getorientation(fp);
47 _setorientation(fp, (mode > 0) ? _WC_MODE : _BYTE_MODE);
/illumos-gate/usr/src/cmd/mailx/
H A Dlock.c47 lock(FILE *fp, char *mode, int blk) argument
54 return fcntl(fileno(fp), blk ? F_SETLKW : F_SETLK, &l);
H A Dhostname.c67 char *fp; local
70 if (fp = xgetenv("CLUSTER")) {
71 nstrcpy(host, sizeof (host), fp);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfprintf.c28 ** fp -- file pointer to be printed to
40 sm_io_fprintf(SM_FILE_T *fp, int timeout, const char *fmt, ...) argument
42 sm_io_fprintf(fp, timeout, fmt, va_alist)
43 SM_FILE_T *fp;
52 SM_REQUIRE_ISA(fp, SmFileMagic);
54 ret = sm_io_vfprintf(fp, timeout, fmt, ap);
H A Dfscanf.c28 ** fp -- the file pointer to obtain the data from
40 sm_io_fscanf(SM_FILE_T *fp, int timeout, char const *fmt, ...) argument
42 sm_io_fscanf(fp, timeout, fmt, va_alist)
43 SM_FILE_T *fp;
52 SM_REQUIRE_ISA(fp, SmFileMagic);
54 ret = sm_vfscanf(fp, timeout, fmt, ap);
H A Dfwalk.c40 register SM_FILE_T *fp; local
48 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
50 if (fp->f_flags != 0)
53 fptimeout = fp->f_timeout;
58 ret |= (*function)(fp, &fptimeout);
H A Dt-smstdio.c25 SM_FILE_T *fp; local
36 fp = sm_io_stdioopen(stream, "w");
37 SM_TEST(fp != NULL);
39 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s", testmsg);
40 sm_io_close(fp, SM_TIME_DEFAULT);
55 fp = sm_io_stdioopen(stream, "r");
56 SM_TEST(fp != NULL);
58 n = sm_io_read(fp, SM_TIME_DEFAULT, buf, sizeof(buf));
/illumos-gate/usr/src/cmd/acct/
H A Dutmp2wtmp.c48 FILE *fp; local
50 fp = fopen(WTMPX_FILE, "a+");
51 if (fp == NULL) {
60 fwrite(utmpx, sizeof (*utmpx), 1, fp);
63 fclose(fp);
/illumos-gate/usr/src/cmd/bnu/
H A Dgwd.c47 FILE *fp; local
55 fp = popen(cmd, "r");
58 fp = popen(cmd, "r");
61 if (fp == NULL)
64 if (fgets(wkdir, MAXFULLNAME, fp) == NULL) {
65 (void) pclose(fp);
70 (void) pclose(fp);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dptext.c38 ptext(FILE *fp, char *fmt, ...) argument
49 (void) puttext(fp, buffer, 0, 70);
50 (void) putc('\n', fp);
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dbackup.c43 static FILE *fp; local
47 if ((fp = fopen(savlog, "w")) == NULL) {
54 if (fp == NULL)
57 (void) fprintf(fp, "%s%s", path, mode ? "\n" :
/illumos-gate/usr/src/cmd/zic/
H A Dscheck.c15 register const char *fp; local
27 fp = format;
29 while ((*tp++ = c = *fp++) != '\0') {
32 if (*fp == '%') {
33 *tp++ = *fp++;
37 if (*fp == '*')
38 ++fp;
39 while (is_digit(*fp))
40 *tp++ = *fp++;
41 if (*fp
[all...]
/illumos-gate/usr/src/common/ctf/
H A Dctf_error.c97 ctf_errno(ctf_file_t *fp) argument
99 return (fp->ctf_errno);
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/ustack/
H A Dtst.helper.c54 uint8_t *fp = malloc(sizeof (instr)); local
59 *((int *)&instr[4]) = (uintptr_t)baz - (uintptr_t)&fp[8];
65 bcopy(instr, fp, sizeof (instr));
67 (*(int (*)(void))fp)();
69 free(fp);
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/
H A Dtst.helper.c53 uint32_t *fp = malloc(sizeof (instr)); local
58 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2;
64 bcopy(instr, fp, sizeof (instr));
66 (*(int (*)(void))fp)();
68 free(fp);
/illumos-gate/usr/src/cmd/sgs/tsort/common/
H A Dzfopen.c44 FILE *fp; /* file pointer */ local
46 if ((fp = fopen(path, type)) == NULL) {
69 return (fp);
/illumos-gate/usr/src/cmd/ttymon/
H A Dadmutil.c48 find_label(FILE *fp, char *ttylabel) argument
54 while (fgets(buf, BUFSIZ, fp)) {
64 if (!feof(fp)) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dfdsync.c54 file_t *fp; local
58 if ((fp = getf(fd)) != NULL) {
67 if (error = VOP_FSYNC(fp->f_vnode, syncflag, fp->f_cred, NULL))
/illumos-gate/usr/src/lib/libadm/common/
H A Dputhelp.c42 puthelp(FILE *fp, char *defmesg, char *help) argument
71 (void) puttext(fp, help, ckindent, ckwidth);
72 (void) fputc('\n', fp);
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dmimetype.c51 mimetype(Mime_t* mp, Sfio_t* fp, const char* file, struct stat* st) argument
68 return magictype(mp->magic, fp, file, st);
/illumos-gate/usr/src/cmd/fs.d/
H A Ddeffs.c51 FILE *fp; local
59 if ((fp = fopen(REMOTE, "r")) != NULL) {
60 if (fgets(buf, sizeof (buf), fp) != NULL)
62 fclose(fp);

Completed in 105 milliseconds

1234567891011>>