/illumos-gate/usr/src/man/man3ofmt/ |
H A D | Makefile | 18 MANSECT= 3ofmt 20 MANFILES= ofmt.3ofmt 23 ofmt_open.3ofmt \ 24 ofmt_print.3ofmt \ 30 ofmt_close.3ofmt := LINKSRC = ofmt.3ofmt 31 ofmt_open.3ofmt := LINKSRC = ofmt.3ofmt 32 ofmt_print.3ofmt := LINKSRC = ofmt.3ofmt 33 ofmt_print_header.3ofmt := LINKSRC = ofmt.3ofmt 34 ofmt_set_fs.3ofmt := LINKSRC = ofmt.3ofmt 35 ofmt_strerror.3ofmt := LINKSRC = ofmt.3ofmt [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library.man3ofmt.inc | 16 file path=usr/share/man/man3ofmt/ofmt.3ofmt 17 link path=usr/share/man/man3ofmt/ofmt_close.3ofmt target=ofmt.3ofmt 18 link path=usr/share/man/man3ofmt/ofmt_open.3ofmt target=ofmt.3ofmt 19 link path=usr/share/man/man3ofmt/ofmt_print.3ofmt target=ofmt.3ofmt 20 link path=usr/share/man/man3ofmt/ofmt_print_header.3ofmt target=ofmt.3ofmt 21 link path=usr/share/man/man3ofmt/ofmt_set_fs.3ofmt target=ofmt.3ofmt 22 link path=usr/share/man/man3ofmt/ofmt_strerror.3ofmt target=ofmt.3ofmt 23 link path=usr/share/man/man3ofmt/ofmt_update_winsize.3ofmt target=ofmt.3ofmt
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | main.cc | 78 format_type ofmt = F_SUN; // output format type in main() local 107 (void) parse_format((char *)"pcm", ohdr, ofmt, o_offset); in main() 110 (void) parse_format((char *)"ulaw", ohdr, ofmt, o_offset); in main() 152 if (parse_format(out_fmt, ohdr, ofmt, o_offset) == -1) in main() 261 ofmt = ifmt; in main() 264 if (parse_format(out_fmt, ohdr, ofmt, o_offset) in main() 280 ofp = create_output_file(outfile, ohdr, ofmt, in main() 287 ofmt = ifmt; in main() 290 if (parse_format(out_fmt, ohdr, ofmt, o_offset) in main() 326 fmt, ofmt, i_offset, o_offset)) { in main() [all …]
|
H A D | file.cc | 221 format_type ofmt, in create_output_file() argument 236 if (ofmt == F_RAW) { in create_output_file() 244 } else if (ofmt == F_SUN) { in create_output_file() 257 if (ofmt == F_RAW) { in create_output_file() 272 } else if (ofmt == F_SUN) { in create_output_file()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 481 char *ofmt, *nfmt, *torg; in check_format() local 501 ofmt = malloc(osz); in check_format() 502 if (ofmt == NULL) in check_format() 514 free(ofmt); in check_format() 521 free(ofmt); in check_format() 531 free(ofmt); in check_format() 541 free(ofmt); in check_format() 556 ofmt[off] != 'n' || in check_format() 558 free(ofmt); in check_format() 567 free(ofmt); in check_format() [all …]
|
/illumos-gate/usr/src/lib/libofmt/common/ |
H A D | ofmt.c | 202 *ofmt = NULL; in ofmt_open() 240 *ofmt = os; in ofmt_open() 290 ofmt_update_winsize(*ofmt); in ofmt_open() 296 *ofmt = NULL; in ofmt_open() 311 ofmt_close(ofmt_handle_t ofmt) in ofmt_close() argument 313 ofmt_state_t *os = ofmt; in ofmt_close() 438 ofmt_state_t *os = ofmt; in ofmt_print() 527 ofmt_state_t *os = ofmt; in ofmt_print_header() 545 ofmt_state_t *os = ofmt; in ofmt_update_winsize() 562 ofmt_state_t *os = ofmt; in ofmt_strerror() [all …]
|
H A D | ofmt.h | 226 ofmt_handle_t ofmt,
|
/illumos-gate/usr/src/cmd/pptadm/ |
H A D | pptadm.c | 114 ofmt_handle_t ofmt; in list() local 153 oferr = ofmt_open(fields_str, fields, ofmtflags, 0, &ofmt); in list() 155 ofmt_check(oferr, parsable, ofmt, die, warn); in list() 178 ofmt_print(ofmt, props); in list() 188 ofmt_close(ofmt); in list()
|
/illumos-gate/usr/src/cmd/connstat/ |
H A D | connstat_main.c | 171 ofmt_handle_t ofmt; in main() local 298 oferr = ofmt_open(fields, proto->csp_getfields(), ofmtflags, 0, &ofmt); in main() 300 (void) ofmt_strerror(ofmt, oferr, oferrbuf, sizeof (oferrbuf)); in main() 303 ofmt_set_fs(ofmt, ','); in main() 305 show_stats(proto, ofmt, flags, &filter, timestamp_fmt, interval, count); in main() 307 ofmt_close(ofmt); in main() 473 show_stats(connstat_proto_t *proto, ofmt_handle_t ofmt, uint_t flags, in show_stats() argument 482 state.cws_ofmt = ofmt; in show_stats() 495 ofmt_print_header(ofmt); in show_stats()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/ |
H A D | nwamadm.c | 789 ofmt_handle_t ofmt = arg; in list_ncu_cb() local 797 ofmt_print(ofmt, &pent); in list_ncu_cb() 804 ofmt_handle_t ofmt = arg; in list_ncp_cb() local 813 ofmt_print(ofmt, &pent); in list_ncp_cb() 826 ofmt_handle_t ofmt = arg; in list_loc_cb() local 834 ofmt_print(ofmt, &pent); in list_loc_cb() 841 ofmt_handle_t ofmt = arg; in list_enm_cb() local 849 ofmt_print(ofmt, &pent); in list_enm_cb() 865 ofmt_handle_t ofmt; in list_func() local 900 (void) list_ncp_cb(ncph, ofmt); in list_func() [all …]
|
/illumos-gate/usr/src/lib/libofmt/ |
H A D | Makefile.com | 20 OBJECTS= ofmt.o 28 SRCS= $(SRCDIR)/ofmt.c
|
H A D | Makefile | 20 HDRS= ofmt.h 24 MSGFILES= common/ofmt.c
|
/illumos-gate/usr/src/cmd/vrrpadm/ |
H A D | vrrpadm.c | 417 do_show_router(const char *vn, ofmt_handle_t ofmt) in do_show_router() argument 425 ofmt_print(ofmt, vq); in do_show_router() 438 ofmt_handle_t ofmt; in do_show() local 493 0, &ofmt)) != OFMT_SUCCESS) { in do_show() 500 (void) ofmt_strerror(ofmt, oferr, buf, sizeof (buf)); in do_show() 502 ofmt_close(ofmt); in do_show() 511 err = do_show_router(argv[optind], ofmt); in do_show() 547 (void) do_show_router(router, ofmt); in do_show() 554 ofmt_close(ofmt); in do_show()
|
/illumos-gate/usr/src/cmd/ccidadm/ |
H A D | ccidadm.c | 241 ccidadm_list_ofmt_cb(ofmt_arg_t *ofmt, char *buf, uint_t buflen) in ccidadm_list_ofmt_cb() argument 243 ccid_list_ofmt_arg_t *cloa = ofmt->ofmt_cbarg; in ccidadm_list_ofmt_cb() 245 switch (ofmt->ofmt_id) { in ccidadm_list_ofmt_cb() 279 ofmt_handle_t ofmt = arg; in ccidadm_list_slot() local 296 ofmt_print(ofmt, &cloa); in ccidadm_list_slot() 311 ofmt_handle_t ofmt; in ccidadm_do_list() local 317 if (ofmt_open(NULL, ccidadm_list_fields, 0, 0, &ofmt) != OFMT_SUCCESS) { in ccidadm_do_list() 321 ccidadm_iter(B_FALSE, B_FALSE, ccidadm_list_slot, ofmt); in ccidadm_do_list() 322 ofmt_close(ofmt); in ccidadm_do_list()
|
/illumos-gate/usr/src/cmd/dlstat/ |
H A D | dlstat.c | 713 ofmt_handle_t ofmt; in do_show_history() local 780 &ofmt); in do_show_history() 785 &ofmt); in do_show_history() 789 state.hs_ofmt = ofmt; in do_show_history() 812 ofmt_close(ofmt); in do_show_history() 1643 ofmt_handle_t ofmt; in do_show() local 1814 ofmt_close(ofmt); in do_show() 1844 ofmt_handle_t ofmt; in do_show_phys() local 1993 ofmt_close(ofmt); in do_show_phys() 2204 ofmt_close(ofmt); in do_show_link() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
H A D | ipadm.c | 897 ofmt_handle_t ofmt; in do_show_ifprop() local 976 ofmt_close(ofmt); in do_show_ifprop() 1081 ofmt_handle_t ofmt; in do_show_prop() local 1143 ofmt_close(ofmt); in do_show_prop() 2034 ofmt_handle_t ofmt; in do_show_addr() local 2084 state.sa_ofmt = ofmt; in do_show_addr() 2094 ofmt_close(ofmt); in do_show_addr() 2200 ofmt_handle_t ofmt; in do_show_if() local 2230 state.si_ofmt = ofmt; in do_show_if() 2334 ofmt_handle_t ofmt; in do_show_addrprop() local [all …]
|
/illumos-gate/usr/src/cmd/flowstat/ |
H A D | flowstat.c | 577 ofmt_handle_t ofmt; in main() local 723 oferr = ofmt_open(fields_str, flow_s_fields, ofmtflags, 0, &ofmt); in main() 724 ofmt_check(oferr, state.fs_parsable, ofmt, die, warn); in main() 725 state.fs_ofmt = ofmt; in main() 751 ofmt_close(ofmt); in main() 924 ofmt_handle_t ofmt; in do_show_history() local 984 0, &ofmt); in do_show_history() 989 0, &ofmt); in do_show_history() 992 ofmt_check(oferr, state.us_parsable, ofmt, die, warn); in do_show_history() 993 state.us_ofmt = ofmt; in do_show_history() [all …]
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 1880 &ofmt); in do_show_usage() 1885 &ofmt); in do_show_usage() 1912 ofmt_close(ofmt); in do_show_usage() 3657 ofmt_close(ofmt); in do_show_link() 3829 ofmt_close(ofmt); in do_show_aggr() 4664 ofmt_close(ofmt); in do_show_phys() 4743 ofmt_close(ofmt); in do_show_vlan() 5373 ofmt_close(ofmt); in do_show_vnic_common() 5747 ofmt_close(ofmt); in do_show_simnet() 5786 ofmt_close(ofmt); in link_stats() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/ |
H A D | ipmpstat.c | 162 static ofmt_handle_t ofmt; variable 260 ofmterr = ofmt_open(ofields, fields, ofmtflags, IPMPSTAT_NCOL, &ofmt); in main() 266 (void) ofmt_strerror(ofmt, ofmterr, errbuf, sizeof (errbuf)); in main() 291 probe_output(ih, ofmt); in main() 299 (*walker)(ih, cbfunc, ofmt); in main() 302 ofmt_close(ofmt); in main() 898 probe_output(ipmp_handle_t ih, ofmt_handle_t ofmt) in probe_output() argument 902 ipmpstat_probe_state_t ps = { ih, ofmt }; in probe_output() 1059 ofmt_output(const ofmt_handle_t ofmt, ipmp_handle_t ih, void *arg) in ofmt_output() argument 1065 ofmt_print(ofmt, &sfunc_arg); in ofmt_output() [all …]
|
/illumos-gate/usr/src/cmd/flowadm/ |
H A D | flowadm.c | 600 ofmt_handle_t ofmt; in do_show_flow() local 647 oferr = ofmt_open(fields_str, flow_fields, ofmtflags, 0, &ofmt); in do_show_flow() 648 ofmt_check(oferr, state.fs_parsable, ofmt, die, warn); in do_show_flow() 649 state.fs_ofmt = ofmt; in do_show_flow() 665 ofmt_close(ofmt); in do_show_flow() 1138 ofmt_handle_t ofmt; in do_show_flowprop() local 1191 oferr = ofmt_open(fields_str, flowprop_fields, ofmtflags, 0, &ofmt); in do_show_flowprop() 1192 ofmt_check(oferr, state.fs_parsable, ofmt, die, warn); in do_show_flowprop() 1193 state.fs_ofmt = ofmt; in do_show_flowprop() 1211 ofmt_close(ofmt); in do_show_flowprop()
|
/illumos-gate/usr/src/cmd/pcidb/ |
H A D | pcidb.c | 749 ofmt_handle_t ofmt; in main() local 851 oferr = ofmt_open(fields, ofmt_fields, flags, 0, &ofmt); in main() 852 ofmt_check(oferr, parse, ofmt, pcidb_ofmt_errx, warnx); in main() 860 walk.pw_ofmt = ofmt; in main() 885 ofmt_close(ofmt); in main()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_loader.c | 227 ofmt_handle_t ofmt; in print_nodes() local 236 oferr = ofmt_open(NULL, menu_template, ofmtflags, 0, &ofmt); in print_nodes() 241 (void) ofmt_strerror(ofmt, oferr, buf, sizeof (buf)); in print_nodes() 248 ofmt_print(ofmt, entry); in print_nodes() 250 ofmt_close(ofmt); in print_nodes()
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm_cfgspace.c | 5042 ofmt_handle_t ofmt) in pcieadm_cfgspace() argument 5062 walk.pcw_ofmt = ofmt; in pcieadm_cfgspace() 5332 ofmt_handle_t ofmt = NULL; in pcieadm_show_cfgspace() local 5435 &ofmt); in pcieadm_show_cfgspace() 5436 ofmt_check(oferr, parse, ofmt, pcieadm_ofmt_errx, warnx); in pcieadm_show_cfgspace() 5464 nfilts, filts, flags, ofmt); in pcieadm_show_cfgspace() 5471 ofmt_close(ofmt); in pcieadm_show_cfgspace()
|
/illumos-gate/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm.c | 986 const ofmt_field_t *ofmt = nvmeadm_list_nsid_ofmt; in optparse_list() local 992 ofmt = nvmeadm_list_ctrl_ofmt; in optparse_list() 1023 oferr = ofmt_open(fields, ofmt, oflags, 0, in optparse_list()
|
/illumos-gate/exception_lists/ |
H A D | packaging | 225 usr/include/ofmt.h
|