Searched refs:fp (Results 1 - 25 of 1266) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dfgetc.c31 fgetc(fp)
32 register FILE *fp;
34 return(getc(fp));
H A Dfileno.c28 fileno(fp)
29 register FILE *fp;
31 return (fp->_file);
H A Dfputc.c31 fputc(c, fp)
33 register FILE *fp;
35 return(putc(c, fp));
H A Dfeof.c32 feof(fp)
33 register FILE *fp;
35 return (__feof__(fp));
H A Dferror.c31 ferror(fp)
32 register FILE *fp;
34 return (__ferror__(fp));
H A Dgetc.c31 getc(fp)
32 register FILE *fp;
34 return (__getc__(fp));
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dwsetup.c32 ** fp -- the file pointer
40 sm_wsetup(fp)
41 register SM_FILE_T *fp;
48 if ((fp->f_flags & SMWR) == 0)
50 if ((fp->f_flags & SMRW) == 0)
55 if (fp->f_flags & SMRD)
58 if (HASUB(fp))
59 FREEUB(fp);
62 fp->f_flags &= ~(SMRD|SMFEOF);
63 fp
[all...]
H A Dungetc.c36 ** Expand the ungetc buffer `in place'. That is, adjust fp->f_p when
42 ** fp -- the file pointer
52 sm_submore_x(fp)
53 SM_FILE_T *fp;
58 if (fp->f_ub.smb_base == fp->f_ubuf)
62 fp->f_ub.smb_base = p;
63 fp->f_ub.smb_size = SM_IO_BUFSIZ;
64 p += SM_IO_BUFSIZ - sizeof(fp->f_ubuf);
65 for (i = sizeof(fp
[all...]
H A Dfpurge.c29 ** fp -- file pointer to purge
37 sm_io_purge(fp)
38 register SM_FILE_T *fp;
40 SM_REQUIRE_ISA(fp, SmFileMagic);
41 if (!fp->f_flags)
47 if (HASUB(fp))
48 FREEUB(fp);
49 fp->f_p = fp->f_bf.smb_base;
50 fp
[all...]
H A Dwbuf.c33 ** fp -- the file pointer
43 sm_wbuf(fp, timeout, c)
44 register SM_FILE_T *fp;
58 fp->f_w = fp->f_lbfsize;
59 if (cantwrite(fp))
77 n = fp->f_p - fp->f_bf.smb_base;
78 if (n >= fp->f_bf.smb_size)
80 if (sm_io_flush(fp, timeou
[all...]
H A Drefill.c50 ** fp -- the file pointer for the active file
51 ** fd -- raw file descriptor (from 'fp') to use for select()
60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \
89 fp->f_r = 0; \
90 fp->f_flags |= SMERR; \
110 ** fp -- file pointer to flush
119 sm_lflush(fp, timeout)
120 SM_FILE_T *fp;
124 if ((fp->f_flags & (SMLBF|SMWR)) == (SMLBF|SMWR))
125 return sm_flush(fp, timeou
[all...]
H A Drewind.c30 ** fp -- the flie pointer for rewind
38 sm_io_rewind(fp, timeout)
39 register SM_FILE_T *fp;
42 SM_REQUIRE_ISA(fp, SmFileMagic);
43 (void) sm_io_seek(fp, timeout, 0L, SM_IO_SEEK_SET);
44 (void) sm_io_clearerr(fp);
H A Dfpos.c63 ** fp -- the file pointer to get repositioned
72 sm_io_tell(fp, timeout)
73 register SM_FILE_T *fp;
79 SM_REQUIRE_ISA(fp, SmFileMagic);
80 if (fp->f_seek == NULL)
87 timeout = fp->f_timeout;
104 (void) sm_flush(fp, (int *) &timeout);
118 if (fp->f_flags & SMOFF)
119 pos = fp->f_lseekoff;
123 pos = (*fp
[all...]
H A Dfclose.c65 ** fp -- file pointer to be closed
73 ** file pointer 'fp' will no longer be valid.
77 sm_io_close(fp, timeout)
78 register SM_FILE_T *fp;
84 if (fp == NULL)
90 SM_REQUIRE_ISA(fp, SmFileMagic);
93 if (fp->sm_magic == NULL)
99 if (fp->f_close == NULL)
105 if (fp->f_dup_cnt > 0)
108 fp
[all...]
H A Dsmstdio.c29 ** stdio. fp->f_cookie is the FILE* of stdio. The cookie may be
31 ** When binding late (when fp->f_cookie==NULL) then the value of
32 ** fp->f_ival is used (0, 1 or 2) to map to stdio's stdin, stdout or
40 ** fp -- file pointer assign for this open
52 sm_stdioopen(fp, info, flags, rpool)
53 SM_FILE_T *fp;
100 fp->f_cookie = s;
108 ** fp - the file pointer to get the cookie assigned
115 setup(fp)
116 SM_FILE_T *fp;
334 SM_FILE_T *fp; local
[all...]
H A Dfseek.c68 ** fp -- the file pointer to be seek'd
79 sm_io_seek(fp, timeout, offset, whence)
80 register SM_FILE_T *fp;
93 SM_REQUIRE_ISA(fp, SmFileMagic);
100 if ((seekfn = fp->f_seek) == NULL)
107 timeout = fp->f_timeout;
147 sm_flush(fp, (int *) &timeout);
149 if (fp->f_flags & SMOFF)
150 curoff = fp->f_lseekoff;
153 curoff = (*seekfn)(fp, (off_
[all...]
/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/cmd/ipf/lib/common/
H A Dprintfr.c19 void printfr(fp, iocfunc)
20 struct frentry *fp;
31 type = fp->fr_type & ~FR_T_BUILTIN;
33 if ((fp->fr_type & FR_T_BUILTIN) != 0)
36 if (fp->fr_collect != 0)
37 printf("%u ", fp->fr_collect);
39 if (fp->fr_type == FR_T_CALLFUNC) {
41 } else if (fp->fr_func != NULL) {
43 if ((fp->fr_flags & FR_CALLNOW) != 0)
45 s = kvatoname(fp
[all...]
H A Dprintlog.c14 void printlog(fp)
15 frentry_t *fp;
20 if (fp->fr_flags & FR_LOGBODY)
22 if (fp->fr_flags & FR_LOGFIRST)
24 if (fp->fr_flags & FR_LOGORBLOCK)
26 if (fp->fr_loglevel != 0xffff) {
28 if (fp->fr_loglevel & LOG_FACMASK) {
29 s = fac_toname(fp->fr_loglevel);
34 u = pri_toname(fp->fr_loglevel);
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dfastfind.c164 register Find_t* fp; local
196 if (!(fp = (Find_t*)vmnewof(vm, 0, Find_t, 1, sizeof(Encode_t) - sizeof(Code_t))))
198 fp->vm = vm;
199 fp->id = lib;
200 fp->disc = disc;
201 fp->generate = 1;
224 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]);
225 if (!eaccess(fp->encode.file, R_OK|W_OK))
227 path = fp
700 findread(register Find_t* fp) argument
948 findwrite(register Find_t* fp, const char* path, size_t len, const char* type) argument
1054 finddone(register Find_t* fp) argument
1086 findsync(register Find_t* fp) argument
1279 findclose(register Find_t* fp) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.h32 #define SCTP_FADDR_RC_TIMER_RESTART(sctp, fp, intvl) \
33 if ((fp)->sf_rc_timer_mp == NULL) { \
34 (fp)->sf_rc_timer_mp = sctp_timer_alloc((sctp), \
37 if ((fp)->sf_rc_timer_mp != NULL) { \
38 ((sctpt_t *)((fp)->sf_rc_timer_mp->b_rptr))->sctpt_faddr = fp;\
39 dprint(3, ("faddr_rc_timer_restart: fp=%p %x:%x:%x:%x %d\n", \
40 (void *)(fp), SCTP_PRINTADDR((fp)->sf_faddr), \
42 sctp_timer((sctp), (fp)
[all...]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dinc.flg31 usr/src/lib/libc/sparc/fp
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_print.c59 fprint_sid(FILE *fp, i_ntsid_t *sid) argument
64 fprintf(fp, "(null)\n");
69 fprintf(fp, "(error)\n");
71 fprintf(fp, "%s\n", sidbuf);
75 fprint_ntace(FILE *fp, i_ntace_t *ace) argument
78 fprintf(fp, " (null)\n");
83 fprintf(fp, " ace_type=%d ace_flags=0x%x ace_rights=0x%x\n",
87 fprintf(fp, " ace_sid: ");
88 fprint_sid(fp, ace->ace_v2.ace_sid);
92 fprint_ntacl(FILE *fp, i_ntacl_ argument
108 smbfs_acl_print_sd(FILE *fp, i_ntsd_t *sd) argument
[all...]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_fio.c58 file_t *fp; local
65 if ((fp = ftab[fd]) != NULL) {
66 fp->f_count++;
68 return (fp);
71 fp = kmem_zalloc(sizeof (*fp), KM_SLEEP);
74 fp->f_vnode = vp;
75 fp->f_count = 1;
76 ftab[fd] = fp;
80 return (fp);
86 file_t *fp; local
[all...]
/illumos-gate/usr/src/lib/libcmd/common/
H A Dfmt.c74 #define isoption(fp,c) ((fp)->flags&(1L<<((c)-'a')))
75 #define setoption(fp,c) ((fp)->flags|=(1L<<((c)-'a')))
76 #define clroption(fp,c) ((fp)->flags&=~(1L<<((c)-'a')))
79 outline(Fmt_t* fp) argument
81 register char* cp = fp->outbuf;
86 if (!fp->outp)
88 while (fp
137 split(Fmt_t* fp, char* buf, int splice) argument
231 dofmt(Fmt_t* fp) argument
[all...]

Completed in 207 milliseconds

1234567891011>>