Searched refs:fp (Results 1 - 25 of 1267) 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/cmd/smbios/
H A Dsmbios.c90 oprintf(FILE *fp, const char *format, ...) argument
95 (void) vfprintf(fp, format, ap);
101 desc_printf(const char *d, FILE *fp, const char *format, ...) argument
106 (void) vfprintf(fp, format, ap);
110 (void) fprintf(fp, " (%s)\n", d);
112 (void) fprintf(fp, "\n");
116 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits, argument
121 oprintf(fp, " %s: 0x%x\n", s, flags);
131 desc_printf(flag_desc(f), fp, "\t%s", n); local
133 desc_printf(flag_desc(f), fp, "\t0 local
138 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
153 desc_printf(flag_desc(f), fp, "\\t%s", n); local
155 desc_printf(flag_desc(f), fp, "\\t0x%llx", f); local
160 id_printf(FILE *fp, const char *s, id_t id) argument
175 jedec_print(FILE *fp, const char *desc, uint_t id) argument
194 u128_print(FILE *fp, const char *desc, const uint8_t *data) argument
239 print_smbios_21(smbios_21_entry_t *ep, FILE *fp) argument
271 print_smbios_30(smbios_30_entry_t *ep, FILE *fp) argument
290 print_smbios(smbios_hdl_t *shp, FILE *fp) argument
305 print_common(const smbios_info_t *ip, FILE *fp) argument
324 print_bios(smbios_hdl_t *shp, FILE *fp) argument
373 print_system(smbios_hdl_t *shp, FILE *fp) argument
389 fp, " Wake-Up Event: 0x%x", s.smbs_wakeup); local
396 print_bboard(smbios_hdl_t *shp, id_t id, FILE *fp) argument
409 fp, " Board Type: 0x%x", b.smbb_type); local
432 print_chassis(smbios_hdl_t *shp, id_t id, FILE *fp) argument
445 fp, " Chassis Type: 0x%x", c.smbc_type); local
448 fp, " Boot-Up State: 0x%x", c.smbc_bustate); local
451 fp, " Power Supply State: 0x%x", c.smbc_psstate); local
454 fp, " Thermal State: 0x%x", c.smbc_thstate); local
483 desc_printf(smbios_bboard_type_desc(type), fp, local
492 print_processor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
501 fp, " Family: %u", p.smbp_family); local
506 fp, " Type: %u", p.smbp_type); local
509 fp, " Socket Upgrade: %u", p.smbp_upgrade); local
516 fp, " Processor Status: %u", status); local
583 print_cache(smbios_hdl_t *shp, id_t id, FILE *fp) argument
610 fp, " Current SRAM Type: 0x%x", c.smba_ctype); local
613 fp, " Error Correction Type: %u", c.smba_etype); local
616 fp, " Logical Cache Type: %u", c.smba_ltype); local
619 fp, " Associativity: %u", c.smba_assoc); local
622 fp, " Mode: %u", c.smba_mode); local
625 fp, " Location: %u", c.smba_location); local
632 print_port(smbios_hdl_t *shp, id_t id, FILE *fp) argument
642 fp, " Internal Connector Type: %u", p.smbo_itype); local
645 fp, " External Connector Type: %u", p.smbo_etype); local
648 fp, " Port Type: %u", p.smbo_ptype); local
652 print_slot(smbios_hdl_t *shp, id_t id, FILE *fp) argument
664 fp, " Type: 0x%x", s.smbl_type); local
667 fp, " Width: 0x%x", s.smbl_width); local
670 fp, " Usage: 0x%x", s.smbl_usage); local
673 fp, " Length: 0x%x", s.smbl_length); local
721 print_obdevs_ext(smbios_hdl_t *shp, id_t id, FILE *fp) argument
747 print_obdevs(smbios_hdl_t *shp, id_t id, FILE *fp) argument
761 print_strtab(smbios_hdl_t *shp, id_t id, FILE *fp) argument
775 print_lang(smbios_hdl_t *shp, id_t id, FILE *fp) argument
791 print_evlog(smbios_hdl_t *shp, id_t id, FILE *fp) argument
803 fp, " Data Access Method: %u", ev.smbev_method); local
810 fp, " Log Header Format: %u", ev.smbev_format); local
840 print_bytes(const uint8_t *data, size_t size, FILE *fp) argument
878 print_memarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
885 fp, " Location: %u", ma.smbma_location); local
888 fp, " Use: %u", ma.smbma_use); local
891 fp, " ECC: %u", ma.smbma_ecc); local
900 print_memdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
932 fp, " Form Factor: %u", md.smbmd_form); local
943 fp, " Rank: %u", md.smbmd_rank); local
949 fp, " Memory Type: %u", md.smbmd_type); local
993 fp, " Memory Technology: %u", md.smbmd_memtech); local
1055 print_memarrmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1069 print_memdevmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1087 print_hwsec(smbios_hdl_t *shp, FILE *fp) argument
1094 fp, " Power-On Password Status: %u", h.smbh_pwr_ps); local
1096 fp, " Keyboard Password Status: %u", h.smbh_kbd_ps); local
1098 fp, " Administrator Password Status: %u", h.smbh_adm_ps); local
1100 fp, " Front Panel Reset Status: %u", h.smbh_pan_ps); local
1104 print_vprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1116 fp, " Location: %u", vp.smbvp_location); local
1118 fp, " Status: %u", vp.smbvp_status); local
1167 print_cooldev(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1179 fp, " Device Type: %u", cd.smbcd_type); local
1181 fp, " Status: %u", cd.smbcd_status); local
1196 print_tprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1209 fp, " Location: %u", tp.smbtp_location); local
1211 fp, " Status: %u", tp.smbtp_status); local
1261 print_iprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1273 fp, " Location: %u", ip.smbip_location); local
1275 fp, " Status: %u", ip.smbip_status); local
1325 print_boot(smbios_hdl_t *shp, FILE *fp) argument
1332 fp, " Boot Status Code: 0x%x", b.smbt_status); local
1341 print_ipmi(smbios_hdl_t *shp, FILE *fp) argument
1348 fp, " Type: %u", i.smbip_type); local
1364 print_powersup(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1385 fp, " Input Voltage Range Switching: %u", p.smbps_ivrs); local
1387 fp, " Status: %u", p.smbps_status); local
1389 fp, " Type: %u", p.smbps_pstype); local
1405 print_processor_info_riscv(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1433 fp, " Register Width: 0x%x", rv.smbpirv_xlen); local
1435 fp, " M-Mode Register Width: 0x%x", rv.smbpirv_mxlen); local
1437 fp, " S-Mode Register Width: 0x%x", rv.smbpirv_sxlen); local
1439 fp, " U-Mode Register Width: 0x%x", rv.smbpirv_uxlen); local
1443 print_processor_info(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1455 fp, " Processor Type: %u", p.smbpi_ptype); local
1470 print_battery(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1489 fp, " Battery Chemistry: 0x%x", bat.smbb_chem); local
1518 print_pointdev(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1528 fp, " Type: %u", pd.smbpd_type); local
1530 fp, " Interface: %u", pd.smbpd_iface); local
1535 print_extprocessor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1556 print_extport(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1573 print_pciexrc(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1587 print_extmemarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1602 print_extmemdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1622 print_struct(smbios_hdl_t *shp, const smbios_struct_t *sp, void *fp) argument
1846 usage(FILE *fp) argument
[all...]
/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...]

Completed in 187 milliseconds

1234567891011>>