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

1234567891011>>

/illumos-gate/usr/src/cmd/bhyve/
H A Dacpi.c132 FILE *fp; member in struct:basl_fio
143 basl_fwrite_rsdp(FILE *fp) argument
145 EFPRINTF(fp, "/*\n");
146 EFPRINTF(fp, " * bhyve RSDP template\n");
147 EFPRINTF(fp, " */\n");
148 EFPRINTF(fp, "[0008]\t\tSignature : \"RSD PTR \"\n");
149 EFPRINTF(fp, "[0001]\t\tChecksum : 43\n");
150 EFPRINTF(fp, "[0006]\t\tOem ID : \"BHYVE \"\n");
151 EFPRINTF(fp, "[0001]\t\tRevision : 02\n");
152 EFPRINTF(fp, "[000
169 basl_fwrite_rsdt(FILE *fp) argument
205 basl_fwrite_xsdt(FILE *fp) argument
241 basl_fwrite_madt(FILE *fp) argument
337 basl_fwrite_fadt(FILE *fp) argument
554 basl_fwrite_hpet(FILE *fp) argument
599 basl_fwrite_mcfg(FILE *fp) argument
630 basl_fwrite_facs(FILE *fp) argument
733 basl_fwrite_dsdt(FILE *fp) argument
[all...]
/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...]
H A Dfflush.c32 ** SM_IO_FLUSH -- flush the buffer for a 'fp' to the "file"
35 ** all open files when fp==NULL any longer.
38 ** fp -- the file pointer buffer to flush
47 sm_io_flush(fp, timeout)
48 register SM_FILE_T *fp;
54 SM_REQUIRE_ISA(fp, SmFileMagic);
56 if ((fp->f_flags & (SMWR | SMRW)) == 0)
67 SM_CONVERT_TIME(fp, fd, timeout, &to);
70 return sm_flush(fp, (int *) &timeout);
76 ** Assumes that 'fp' ha
[all...]
H A Dclrerr.c27 ** fp -- the file pointer
35 sm_io_clearerr(fp)
36 SM_FILE_T *fp;
38 SM_REQUIRE_ISA(fp, SmFileMagic);
40 sm_clearerr(fp);
H A Dfeof.c26 ** Tests if the file for 'fp' has reached the end.
29 ** fp -- file pointer.
38 sm_io_eof(fp)
39 SM_FILE_T *fp;
41 SM_REQUIRE_ISA(fp, SmFileMagic);
43 return sm_eof(fp);
/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
204 u128_print(FILE *fp, const char *desc, const uint8_t *data) argument
249 print_smbios_21(smbios_21_entry_t *ep, FILE *fp) argument
281 print_smbios_30(smbios_30_entry_t *ep, FILE *fp) argument
300 print_smbios(smbios_hdl_t *shp, FILE *fp) argument
315 print_common(const smbios_info_t *ip, FILE *fp) argument
334 print_bios(smbios_hdl_t *shp, FILE *fp) argument
383 print_system(smbios_hdl_t *shp, FILE *fp) argument
399 fp, " Wake-Up Event: 0x%x", s.smbs_wakeup); local
406 print_bboard(smbios_hdl_t *shp, id_t id, FILE *fp) argument
419 fp, " Board Type: 0x%x", b.smbb_type); local
442 print_chassis(smbios_hdl_t *shp, id_t id, FILE *fp) argument
455 fp, " Chassis Type: 0x%x", c.smbc_type); local
458 fp, " Boot-Up State: 0x%x", c.smbc_bustate); local
461 fp, " Power Supply State: 0x%x", c.smbc_psstate); local
464 fp, " Thermal State: 0x%x", c.smbc_thstate); local
493 desc_printf(smbios_bboard_type_desc(type), fp, local
502 print_processor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
511 fp, " Family: %u", p.smbp_family); local
516 fp, " Type: %u", p.smbp_type); local
519 fp, " Socket Upgrade: %u", p.smbp_upgrade); local
526 fp, " Processor Status: %u", status); local
593 print_cache(smbios_hdl_t *shp, id_t id, FILE *fp) argument
620 fp, " Current SRAM Type: 0x%x", c.smba_ctype); local
623 fp, " Error Correction Type: %u", c.smba_etype); local
626 fp, " Logical Cache Type: %u", c.smba_ltype); local
629 fp, " Associativity: %u", c.smba_assoc); local
632 fp, " Mode: %u", c.smba_mode); local
635 fp, " Location: %u", c.smba_location); local
642 print_port(smbios_hdl_t *shp, id_t id, FILE *fp) argument
652 fp, " Internal Connector Type: %u", p.smbo_itype); local
655 fp, " External Connector Type: %u", p.smbo_etype); local
658 fp, " Port Type: %u", p.smbo_ptype); local
662 print_slot(smbios_hdl_t *shp, id_t id, FILE *fp) argument
674 fp, " Type: 0x%x", s.smbl_type); local
677 fp, " Width: 0x%x", s.smbl_width); local
680 fp, " Usage: 0x%x", s.smbl_usage); local
683 fp, " Length: 0x%x", s.smbl_length); local
731 print_obdevs_ext(smbios_hdl_t *shp, id_t id, FILE *fp) argument
757 print_obdevs(smbios_hdl_t *shp, id_t id, FILE *fp) argument
771 print_strtab(smbios_hdl_t *shp, id_t id, FILE *fp) argument
785 print_lang(smbios_hdl_t *shp, id_t id, FILE *fp) argument
801 print_evlog(smbios_hdl_t *shp, id_t id, FILE *fp) argument
813 fp, " Data Access Method: %u", ev.smbev_method); local
820 fp, " Log Header Format: %u", ev.smbev_format); local
850 print_bytes(const uint8_t *data, size_t size, FILE *fp) argument
888 print_memarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
895 fp, " Location: %u", ma.smbma_location); local
898 fp, " Use: %u", ma.smbma_use); local
901 fp, " ECC: %u", ma.smbma_ecc); local
910 print_memdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
942 fp, " Form Factor: %u", md.smbmd_form); local
953 fp, " Rank: %u", md.smbmd_rank); local
959 fp, " Memory Type: %u", md.smbmd_type); local
1003 fp, " Memory Technology: %u", md.smbmd_memtech); local
1065 print_memarrmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1079 print_memdevmap(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1097 print_hwsec(smbios_hdl_t *shp, FILE *fp) argument
1104 fp, " Power-On Password Status: %u", h.smbh_pwr_ps); local
1106 fp, " Keyboard Password Status: %u", h.smbh_kbd_ps); local
1108 fp, " Administrator Password Status: %u", h.smbh_adm_ps); local
1110 fp, " Front Panel Reset Status: %u", h.smbh_pan_ps); local
1114 print_vprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1126 fp, " Location: %u", vp.smbvp_location); local
1128 fp, " Status: %u", vp.smbvp_status); local
1177 print_cooldev(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1189 fp, " Device Type: %u", cd.smbcd_type); local
1191 fp, " Status: %u", cd.smbcd_status); local
1206 print_tprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1219 fp, " Location: %u", tp.smbtp_location); local
1221 fp, " Status: %u", tp.smbtp_status); local
1271 print_iprobe(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1283 fp, " Location: %u", ip.smbip_location); local
1285 fp, " Status: %u", ip.smbip_status); local
1335 print_boot(smbios_hdl_t *shp, FILE *fp) argument
1342 fp, " Boot Status Code: 0x%x", b.smbt_status); local
1351 print_ipmi(smbios_hdl_t *shp, FILE *fp) argument
1358 fp, " Type: %u", i.smbip_type); local
1374 print_powersup(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1395 fp, " Input Voltage Range Switching: %u", p.smbps_ivrs); local
1397 fp, " Status: %u", p.smbps_status); local
1399 fp, " Type: %u", p.smbps_pstype); local
1415 print_processor_info_riscv(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1443 fp, " Register Width: 0x%x", rv.smbpirv_xlen); local
1445 fp, " M-Mode Register Width: 0x%x", rv.smbpirv_mxlen); local
1447 fp, " S-Mode Register Width: 0x%x", rv.smbpirv_sxlen); local
1449 fp, " U-Mode Register Width: 0x%x", rv.smbpirv_uxlen); local
1453 print_processor_info(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1465 fp, " Processor Type: %u", p.smbpi_ptype); local
1480 print_battery(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1499 fp, " Battery Chemistry: 0x%x", bat.smbb_chem); local
1528 print_pointdev(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1538 fp, " Type: %u", pd.smbpd_type); local
1540 fp, " Interface: %u", pd.smbpd_iface); local
1545 print_extprocessor(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1566 print_extport(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1583 print_pciexrc(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1597 print_extmemarray(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1612 print_extmemdevice(smbios_hdl_t *shp, id_t id, FILE *fp) argument
1632 print_struct(smbios_hdl_t *shp, const smbios_struct_t *sp, void *fp) argument
1856 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...]
/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/lib/libc/port/locale/
H A Dfgetwc.c46 _fgetwc_unlocked_l(FILE *fp, locale_t loc) argument
54 if ((c = GETC(fp)) == EOF)
62 if ((statep = _getmbstate(fp)) == NULL) {
63 fp->_flag = _IOERR;
84 } while ((c = GETC(fp)) != EOF);
92 fp->_flag |= _IOERR;
98 _fgetwc_unlocked(FILE *fp) argument
100 return (_fgetwc_unlocked_l(fp, uselocale(NULL)));
110 fgetwc(FILE *fp) argument
116 FLOCKFILE(l, fp);
129 __fgetwc_xpg5(FILE *fp) argument
146 fgetwc_l(FILE *fp, locale_t loc) argument
[all...]

Completed in 79 milliseconds

1234567891011>>