Searched refs:sbuf (Results 1 - 25 of 604) sorted by relevance

1234567891011>>

/freebsd-current/contrib/lib9p/sbuf/
H A Dsbuf.h37 struct sbuf struct
45 struct sbuf *sbuf_new_auto(void);
46 int sbuf_cat(struct sbuf *s, const char *str);
47 int sbuf_printf(struct sbuf *s, const char *fmt, ...);
48 int sbuf_vprintf(struct sbuf *s, const char *fmt, va_list args);
49 int sbuf_done(struct sbuf *s);
50 void sbuf_delete(struct sbuf *s);
51 int sbuf_finish(struct sbuf *s);
52 char *sbuf_data(struct sbuf *s);
H A Dsbuf.c37 #include "sbuf.h"
41 struct sbuf *
44 struct sbuf *s;
46 s = malloc(sizeof(struct sbuf));
55 sbuf_cat(struct sbuf *s, const char *str)
73 sbuf_printf(struct sbuf *s, const char *fmt, ...)
86 sbuf_vprintf(struct sbuf *s, const char *fmt, va_list args)
109 sbuf_data(struct sbuf *s)
115 sbuf_finish(struct sbuf *s)
123 sbuf_delete(struct sbuf *
[all...]
/freebsd-current/sys/x86/include/
H A Dvmware_guestrpc.h31 struct sbuf;
33 int vmware_guestrpc_cmd(struct sbuf *sbufp);
35 int vmware_guestrpc_get_guestinfo(const char *keyword, struct sbuf *sbufp);
/freebsd-current/sys/sys/
H A Dsbuf.h36 struct sbuf;
42 struct sbuf { struct
57 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */
77 struct sbuf *sbuf_new(struct sbuf *, char *, int, int);
80 int sbuf_get_flags(struct sbuf *);
81 void sbuf_clear_flags(struct sbuf *, int);
82 void sbuf_set_flags(struct sbuf *, int);
83 void sbuf_clear(struct sbuf *);
84 int sbuf_setpos(struct sbuf *, ssize_
[all...]
H A Ddevctl.h19 struct sbuf;
20 void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src);
H A Dstack.h38 struct sbuf;
56 void stack_sbuf_print(struct sbuf *, const struct stack *);
57 void stack_sbuf_print_ddb(struct sbuf *, const struct stack *);
58 int stack_sbuf_print_flags(struct sbuf *, const struct stack *,
/freebsd-current/sys/cam/ctl/
H A Dctl_nvme_all.h12 void ctl_nvme_command_string(struct ctl_nvmeio *ctnio, struct sbuf *sb);
13 void ctl_nvme_status_string(struct ctl_nvmeio *ctnio, struct sbuf *sb);
/freebsd-current/tools/regression/netinet6/inet6_rth/
H A Dtest_subr.c58 char sbuf[LINESIZE]; local
60 memset((void *)sbuf, 0, LINESIZE);
66 len = snprintf(sbuf, LINESIZE, "ok");
70 len = snprintf(sbuf, LINESIZE, "not ok");
75 snprintf(sbuf + len, LINESIZE - len, " %d - %s (%s)",
77 printf(sbuf);
91 char sbuf[LINESIZE]; local
93 memset((void *)sbuf, 0, LINESIZE);
99 len = snprintf(sbuf, LINESIZE, "ok");
103 len = snprintf(sbuf, LINESIZ
125 char sbuf[LINESIZE]; local
[all...]
/freebsd-current/sbin/pfctl/tests/
H A DMakefile7 LIBADD+= sbuf
/freebsd-current/tests/sys/netinet/
H A Dudp_io.c67 char sbuf[] = "Hello, peer!", rbuf[sizeof(sbuf)]; local
69 .iov_base = sbuf,
70 .iov_len = sizeof(sbuf),
81 ATF_REQUIRE(sendmsg(s[1], &msg, 0) == sizeof(sbuf));
82 n = (arc4random() % (sizeof(sbuf) - 1)) + 1;
87 ATF_REQUIRE(strncmp(sbuf, rbuf, n) == 0);
102 char sbuf[] = "Hello, peer!", rbuf[sizeof(sbuf)]; local
104 .iov_base = sbuf,
[all...]
/freebsd-current/lib/libsbuf/tests/
H A DMakefile6 LIBADD+= sbuf util
/freebsd-current/sys/cam/nvme/
H A Dnvme_all.h41 struct sbuf;
42 void nvme_print_ident(const struct nvme_controller_data *, const struct nvme_namespace_data *, struct sbuf *);
44 const struct nvme_namespace_data *, struct sbuf *);
47 void nvme_cmd_sbuf(const struct nvme_command *, struct sbuf *sb);
48 int nvme_command_sbuf(struct ccb_nvmeio *nvmeio, struct sbuf *sb);
/freebsd-current/usr.sbin/nghook/
H A Dmain.c253 char ch, sbuf[100]; local
257 snprintf(sbuf, sizeof(sbuf), "%04x: ", count);
260 snprintf(sbuf + strlen(sbuf),
261 sizeof(sbuf) - strlen(sbuf),
264 snprintf(sbuf + strlen(sbuf),
265 sizeof(sbuf)
[all...]
/freebsd-current/sys/cam/
H A Dcam_xpt_periph.h48 struct sbuf *sb,
53 struct sbuf *sb,
56 void xpt_denounce_periph_sbuf(struct cam_periph *periph, struct sbuf *sb);
/freebsd-current/sys/geom/
H A Dgeom_int.h47 void g_conf_specific(struct sbuf *sb, struct g_geom **gps);
48 void g_conf_cat_escaped(struct sbuf *sb, const char *buf);
49 void g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...);
/freebsd-current/lib/libmt/
H A DMakefile7 LIBADD= sbuf bsdxml
H A Dmtlib.h67 struct sbuf *cur_sb[32];
90 void mt_status_tree_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
91 int indent, void (*sbuf_func)(struct sbuf *sb,
102 void mt_entry_sbuf(struct sbuf *sb, struct mt_status_entry *entry, char *fmt);
105 void mt_param_parent_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
107 void mt_param_entry_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
/freebsd-current/usr.bin/ctlstat/
H A DMakefile7 LIBADD= sbuf bsdxml
/freebsd-current/tools/regression/geom/MdLoad/
H A DMakefile3 LIBADD= sbuf bsdxml
/freebsd-current/usr.bin/apply/
H A DMakefile6 LIBADD= sbuf
/freebsd-current/contrib/ntp/libntp/
H A Dfindconfig.c21 struct stat sbuf; local
26 if (stat(result, &sbuf) == 0) {
27 if (S_ISDIR(sbuf.st_mode)) {
32 if (stat(result, &sbuf) == 0) {
43 if (stat(result, &sbuf) == 0) {
49 if (stat(result, &sbuf) == 0) {
/freebsd-current/usr.sbin/ngctl/
H A Dstatus.c60 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE]; local
61 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
87 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
/freebsd-current/usr.bin/locale/
H A DMakefile6 LIBADD+= sbuf
/freebsd-current/usr.sbin/zonectl/
H A DMakefile5 LIBADD= cam sbuf util
/freebsd-current/usr.bin/gcore/
H A DMakefile4 LIBADD= sbuf util

Completed in 314 milliseconds

1234567891011>>