Searched refs:fp (Results 1 - 25 of 1284) 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/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...]
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c60 oprintf(FILE *fp, const char *format, ...) argument
65 (void) vfprintf(fp, format, ap);
71 desc_printf(const char *d, FILE *fp, const char *format, ...) argument
76 (void) vfprintf(fp, format, ap);
80 (void) fprintf(fp, " (%s)\n", d);
82 (void) fprintf(fp, "\n");
86 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits, argument
91 oprintf(fp, " %s: 0x%x\n", s, flags);
101 desc_printf(flag_desc(f), fp, "\t%s", n); local
103 desc_printf(flag_desc(f), fp, "\t0 local
108 flag64_printf(FILE *fp, const char *s, uint64_t flags, size_t bits, const char *(*flag_name)(uint64_t), const char *(*flag_desc)(uint64_t)) argument
123 desc_printf(flag_desc(f), fp, "\\t%s", n); local
125 desc_printf(flag_desc(f), fp, "\\t0x%llx", f); local
130 id_printf(FILE *fp, const char *s, id_t id) argument
178 print_smbios(smbios_hdl_t *shp, FILE *fp) argument
213 print_common(const smbios_info_t *ip, FILE *fp) argument
232 print_bios(smbios_hdl_t *shp, FILE *fp) argument
275 print_system(smbios_hdl_t *shp, FILE *fp) argument
291 fp, " Wake-Up Event: 0x%x", s.smbs_wakeup); local
298 print_bboard(smbios_hdl_t *shp, id_t id, FILE *fp) argument
311 fp, " Board Type: 0x%x", b.smbb_type); local
334 print_chassis(smbios_hdl_t *shp, id_t id, FILE *fp) argument
347 fp, " Chassis Type: 0x%x", c.smbc_type); local
350 fp, " Boot-Up State: 0x%x", c.smbc_bustate); local
353 fp, " Power Supply State: 0x%x", c.smbc_psstate); local
356 fp, " Thermal State: 0x%x", c.smbc_thstate); local
385 desc_printf(smbios_bboard_type_desc(type), fp, local
394 print_processor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
403 fp, " Family: %u", p.smbp_family); local
407 fp, " Family Ext: %u", p.smbp_family2); local
412 fp, " Type: %u", p.smbp_type); local
415 fp, " Socket Upgrade: %u", p.smbp_upgrade); local
422 fp, " Processor Status: %u", status); local
504 print_cache(smbios_hdl_t *shp, id_t id, FILE *fp) argument
528 fp, " Current SRAM Type: 0x%x", c.smba_ctype); local
531 fp, " Error Correction Type: %u", c.smba_etype); local
534 fp, " Logical Cache Type: %u", c.smba_ltype); local
537 fp, " Associativity: %u", c.smba_assoc); local
540 fp, " Mode: %u", c.smba_mode); local
543 fp, " Location: %u", c.smba_location); local
550 print_port(smbios_hdl_t *shp, id_t id, FILE *fp) argument
560 fp, " Internal Connector Type: %u", p.smbo_itype); local
563 fp, " External Connector Type: %u", p.smbo_etype); local
566 fp, " Port Type: %u", p.smbo_ptype); local
570 print_slot(smbios_hdl_t *shp, id_t id, FILE *fp) argument
582 fp, " Type: 0x%x", s.smbl_type); local
585 fp, " Width: 0x%x", s.smbl_width); local
588 fp, " Usage: 0x%x", s.smbl_usage); local
591 fp, " Length: 0x%x", s.smbl_length); local
610 print_obdevs_ext(smbios_hdl_t *shp, id_t id, FILE *fp) argument
636 print_obdevs(smbios_hdl_t *shp, id_t id, FILE *fp) argument
650 print_strtab(smbios_hdl_t *shp, id_t id, FILE *fp) argument
664 print_lang(smbios_hdl_t *shp, id_t id, FILE *fp) argument
680 print_evlog(smbios_hdl_t *shp, id_t id, FILE *fp) argument
692 fp, " Data Access Method: %u", ev.smbev_method); local
699 fp, " Log Header Format: %u", ev.smbev_format); local
729 print_bytes(const uint8_t *data, size_t size, FILE *fp) argument
767 print_memarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
774 fp, " Location: %u", ma.smbma_location); local
777 fp, " Use: %u", ma.smbma_use); local
780 fp, " ECC: %u", ma.smbma_ecc); local
789 print_memdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
821 fp, " Form Factor: %u", md.smbmd_form); local
832 fp, " Rank: %u", md.smbmd_rank); local
838 fp, " Memory Type: %u", md.smbmd_type); local
879 print_memarrmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
893 print_memdevmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
911 print_hwsec(smbios_hdl_t *shp, FILE *fp) argument
918 fp, " Power-On Password Status: %u", h.smbh_pwr_ps); local
920 fp, " Keyboard Password Status: %u", h.smbh_kbd_ps); local
922 fp, " Administrator Password Status: %u", h.smbh_adm_ps); local
924 fp, " Front Panel Reset Status: %u", h.smbh_pan_ps); local
928 print_boot(smbios_hdl_t *shp, FILE *fp) argument
935 fp, " Boot Status Code: 0x%x", b.smbt_status); local
944 print_ipmi(smbios_hdl_t *shp, FILE *fp) argument
951 fp, " Type: %u", i.smbip_type); local
967 print_extprocessor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
988 print_extport(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1005 print_pciexrc(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1019 print_extmemarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1034 print_extmemdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1054 print_struct(smbios_hdl_t *shp, const smbios_struct_t *sp, void *fp) argument
1246 usage(FILE *fp) argument
[all...]

Completed in 210 milliseconds

1234567891011>>