Searched refs:fp (Results 51 - 75 of 1284) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c35 ** fp -- the file pointer to write to
47 #define COPY(n) (void)memcpy((void *)fp->f_p, (void *)p, (size_t)(n))
58 sm_fvwrite(fp, timeout, uio)
59 register SM_FILE_T *fp;
76 if (cantwrite(fp))
82 SM_CONVERT_TIME(fp, fd, timeout, &to);
88 if (fp->f_flags & SMNBF)
95 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
104 SM_IO_WR_TIMEOUT(fp, f
[all...]
H A Dfopen.c116 register SM_FILE_T *fp; local
137 fp = sm_fp(type, ioflags, NULL);
150 if ((*fp->f_open)(fp, info, flags, rpool) < 0)
152 fp->f_flags = 0; /* release */
153 fp->sm_magic = NULL; /* release */
163 sm_rpool_attach_x(rpool, sm_io_fclose, fp);
166 return fp;
172 ** fp -- file pointer to duplicate
185 sm_io_dup(fp)
[all...]
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 Dfget.c32 ** fp -- the file to read from
47 sm_io_fgets(fp, timeout, buf, n)
48 register SM_FILE_T *fp;
57 SM_REQUIRE_ISA(fp, SmFileMagic);
66 if ((len = fp->f_r) <= 0)
74 if (sm_refill(fp, timeout) != 0)
81 len = fp->f_r;
83 p = fp->f_p;
98 fp->f_r -= len;
99 fp
[all...]
H A Dstrio.c84 ** fp -- the file pointer
94 sm_strread(fp, buf, n)
95 SM_FILE_T *fp;
99 register SM_STR_OBJ_T *s = fp->f_cookie;
117 ** fp -- the file pointer
127 sm_strwrite(fp, buf, n)
128 SM_FILE_T *fp;
132 register SM_STR_OBJ_T *s = fp->f_cookie;
156 ** fp -- the file pointer
166 sm_strseek(fp, offse
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dfc-fabric35 if [ -s /etc/cfg/fp/fabric_WWN_map ]
38 -f /etc/cfg/fp/fabric_WWN_map
40 if [ -s /etc/cfg/fp/fabric_WWN_map.old ]
43 -f /etc/cfg/fp/fabric_WWN_map.old
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_frame.c80 mdb_frame_reset(mdb_frame_t *fp) argument
84 while ((cp = mdb_list_next(&fp->f_cmds)) != NULL) {
85 mdb_list_delete(&fp->f_cmds, cp);
88 fp->f_cp = NULL;
89 fp->f_pcmd = NULL;
91 while (mdb_iob_stack_size(&fp->f_ostk) != 0) {
93 mdb.m_out = mdb_iob_stack_pop(&fp->f_ostk);
96 mdb_wcb_purge(&fp->f_wcbs);
97 mdb_recycle(&fp->f_mblks);
101 mdb_frame_push(mdb_frame_t *fp) argument
130 mdb_frame_pop(mdb_frame_t *fp, int err) argument
[all...]
/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);
H A Dfputws.c39 _fputws_impl(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp, argument
57 FLOCKFILE(lk, fp);
58 if (orient && GET_NO_MODE(fp))
59 _setorientation(fp, _WC_MODE);
68 fp->_flag |= _IOERR;
78 if (fputs(buf, fp) < nbytes) {
89 fputws(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp) argument
91 return (_fputws_impl(ws, fp, 0));
95 __fputws_xpg5(const wchar_t *ws, FILE *fp) argument
97 return (_fputws_impl(ws, fp,
[all...]
/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/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/boot/lib/libstand/
H A Dufs.c127 #define DIP(fp, field) \
128 ((fp)->f_fs->fs_magic == FS_UFS1_MAGIC ? \
129 (fp)->f_di.di1.field : (fp)->f_di.di2.field)
145 struct file *fp = (struct file *)f->f_fsdata; local
146 struct fs *fs = fp->f_fs;
169 if (fp->f_fs->fs_magic == FS_UFS1_MAGIC)
170 fp->f_di.di1 = ((struct ufs1_dinode *)buf)
173 fp->f_di.di2 = ((struct ufs2_dinode *)buf)
183 fp
202 struct file *fp = (struct file *)f->f_fsdata; local
307 struct file *fp = (struct file *)f->f_fsdata; local
385 struct file *fp = (struct file *)f->f_fsdata; local
447 struct file *fp = (struct file *)f->f_fsdata; local
496 struct file *fp; local
695 struct file *fp = (struct file *)f->f_fsdata; local
724 struct file *fp = (struct file *)f->f_fsdata; local
766 struct file *fp = (struct file *)f->f_fsdata; local
797 struct file *fp = (struct file *)f->f_fsdata; local
821 struct file *fp = (struct file *)f->f_fsdata; local
834 struct file *fp = (struct file *)f->f_fsdata; local
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dmailst.c51 register FILE *fp, *fi; local
69 if ((fp = popen(cmd, "w")) == NULL)
71 (void) fprintf(fp, "To: %s\nSubject: %s\n\n%s\n", user, subj, str);
75 fputs(gettext("\n\t===== stderr was =====\n"), fp);
76 if (xfappend(fi, fp) != SUCCESS)
77 fputs(gettext("\n\t===== well, i tried =====\n"), fp);
79 fputc('\n', fp);
85 fputs(gettext("\n\t===== stdin was empty =====\n"), fp);
88 " denied read permission =====\n"), fp);
95 "\n\t===== stdin was unreadable =====\n"), fp);
[all...]
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/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/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/lib/libast/common/disc/
H A Dsfkeyprintf.c140 register Fmt_t* fp = (Fmt_t*)dp; local
155 fp->level++;
156 if (fp->fmt.t_str && fp->fmt.n_str > 0 && (v = fmtbuf(fp->fmt.n_str + 1)))
158 memcpy(v, fp->fmt.t_str, fp->fmt.n_str);
159 v[fp->fmt.n_str] = 0;
188 if (i == ':' && fp->fmt.fmt == 's' && strlen(a) > 4 && !isalnum(*(a + 4)))
204 t = fp
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dif.c70 if_dump2(FILE *fp) argument
92 (void) fprintf(fp, "interface %s:\n",
95 (void) fprintf(fp, "\tflags ");
100 (void) fprintf(fp, "%c%s", c, p->t_name);
107 (void) fprintf(fp, " 0");
109 (void) fprintf(fp, "\n\tpackets received %d\n",
111 (void) fprintf(fp, "\tpackets sent %d\n", ifp->int_opackets);
112 (void) fprintf(fp, "\ttransitions %d\n", ifp->int_transitions);
116 (void) fprintf(fp, "\tlocal %s\n",
119 (void) fprintf(fp, "\tremot
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_pr.c61 __db_prinit(fp)
62 FILE *fp;
65 set_fp = fp == NULL ? stdout : fp;
81 FILE *fp, *save_fp; local
89 if ((fp = fopen(name, "w")) == NULL)
92 set_fp = fp;
94 fp = __db_prinit(NULL);
101 fprintf(fp, "%s\n", DB_LINE);
105 (void)fclose(fp);
140 FILE *fp; local
188 FILE *fp; local
268 FILE *fp; local
383 FILE *fp; local
592 FILE *fp; local
685 FILE *fp; local
763 FILE *fp; local
[all...]
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsftable.c60 Fmtpos_t* fp; /* position array of arguments */ local
67 fp = NIL(Fmtpos_t*);
68 else if(!(fp = sffmtpos(f,form,args,ft,-1)) )
139 if(fp && fp[n].ft.fmt == 0)
140 { fp[n].ft.fmt = LEFTP;
141 fp[n].ft.form = (char*)form;
194 if(fp && fp[n].ft.fmt == 0)
195 { fp[
[all...]
/illumos-gate/usr/src/common/ctf/
H A Dctf_labels.c32 extract_label_info(ctf_file_t *fp, const ctf_lblent_t **ctl, uint_t *num_labels) argument
39 if (fp->ctf_version < CTF_VERSION_2)
40 return (ctf_set_errno(fp, ECTF_NOTSUP));
42 h = (const ctf_header_t *)fp->ctf_data.cts_data;
45 *ctl = (const ctf_lblent_t *)(fp->ctf_buf + h->cth_lbloff);
55 ctf_label_topmost(ctf_file_t *fp) argument
61 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR)
65 (void) ctf_set_errno(fp, ECTF_NOLABELDATA);
69 if ((s = ctf_strraw(fp, (ctlp + num_labels - 1)->ctl_label)) == NULL)
70 (void) ctf_set_errno(fp, ECTF_CORRUP
80 ctf_label_iter(ctf_file_t *fp, ctf_label_f *func, void *arg) argument
138 ctf_label_info(ctf_file_t *fp, const char *lname, ctf_lblinfo_t *linfo) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_timer.c394 sctp_faddr_t *fp; local
436 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) {
438 pp_max_retr = MIN(sctp_pp_early_abort, fp->sf_max_retr);
440 pp_max_retr = fp->sf_max_retr;
452 if (fp->sf_state == SCTP_FADDRS_UNREACH) {
453 sctp_get_dest(sctp, fp);
454 if (fp
588 sctp_rexmit_timer(sctp_t *sctp, sctp_faddr_t *fp) argument
727 sctp_update_rtt(sctp_t *sctp, sctp_faddr_t *fp, clock_t delta) argument
776 sctp_faddr_t *fp; local
795 sctp_faddr_t *fp; local
[all...]
H A Dsctp_common.c63 sctp_set_saddr(sctp_t *sctp, sctp_faddr_t *fp) argument
65 boolean_t v6 = !fp->sf_isv4;
68 fp->sf_saddr = sctp_get_valid_addr(sctp, v6, &addr_set);
76 fp->sf_state = SCTP_FADDRS_UNREACH;
80 * Call this function to get information about a peer addr fp.
86 sctp_get_dest(sctp_t *sctp, sctp_faddr_t *fp) argument
104 fp->sf_saddr = ipv6_all_zeros;
111 if (fp->sf_state == SCTP_FADDRS_UNREACH) {
112 fp->sf_state = SCTP_FADDRS_UNCONFIRMED;
119 fp
230 sctp_faddr_t *fp; local
284 sctp_make_mp(sctp_t *sctp, sctp_faddr_t *fp, int trailer) argument
556 sctp_faddr_t *fp; local
567 sctp_lookup_faddr_nosctp(sctp_faddr_t *fp, in6_addr_t *addr) argument
582 sctp_set_faddr_current(sctp_t *sctp, sctp_faddr_t *fp) argument
613 sctp_faddr_t *fp; local
621 sctp_faddr_alive(sctp_t *sctp, sctp_faddr_t *fp) argument
667 sctp_faddr_t *fp; local
686 sctp_faddr_dead(sctp_t *sctp, sctp_faddr_t *fp, int newstate) argument
803 sctp_unlink_faddr(sctp_t *sctp, sctp_faddr_t *fp) argument
849 sctp_faddr_t *fp, *fpn; local
1039 sctp_v4_label(sctp_t *sctp, sctp_faddr_t *fp) argument
1049 sctp_v6_label(sctp_t *sctp, sctp_faddr_t *fp) argument
1069 sctp_faddr_t *fp; local
1266 sctp_faddr_t *fp; local
1511 sctp_faddr_t *fp, *fphead = NULL; local
1733 sctp_faddr_t *fp; local
1778 sctp_init_faddr(sctp_t *sctp, sctp_faddr_t *fp, in6_addr_t *addr, mblk_t *timer_mp) argument
1833 sctp_faddr_t *fp = buf; local
1848 sctp_faddr_t *fp = buf; local
[all...]
H A Dsctp_heartbeat.c50 sctp_faddr_t *fp; local
65 fp = sctp_lookup_faddr(sctp, &addr);
67 if (fp == NULL) {
88 smp = sctp_make_mp(sctp, fp, len);
106 sctp_set_iplen(sctp, smp, fp->sf_ixa);
107 (void) conn_ip_output(smp, fp->sf_ixa);
118 sctp_send_heartbeat(sctp_t *sctp, sctp_faddr_t *fp) argument
130 SCTP_PRINTADDR(fp->sf_faddr), SCTP_PRINTADDR(fp->sf_saddr)));
135 sizeof (fp
205 sctp_faddr_t *fp; local
278 sctp_faddr_t *fp; local
[all...]

Completed in 98 milliseconds

1234567891011>>