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

1234567891011>>

/freebsd-11-stable/sys/sys/
H A Dsbuf.h28 * $FreeBSD: stable/11/sys/sys/sbuf.h 369620 2021-04-16 19:42:33Z rscheff $
36 struct sbuf;
42 struct sbuf { struct
55 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */
73 struct sbuf *sbuf_new(struct sbuf *, char *, int, int);
76 int sbuf_get_flags(struct sbuf *);
77 void sbuf_clear_flags(struct sbuf *, int);
78 void sbuf_set_flags(struct sbuf *, int);
79 void sbuf_clear(struct sbuf *);
[all...]
H A Dstack.h34 struct sbuf;
46 void stack_sbuf_print(struct sbuf *, const struct stack *);
47 void stack_sbuf_print_ddb(struct sbuf *, const struct stack *);
H A Duuid.h57 struct sbuf;
66 int sbuf_printf_uuid(struct sbuf *, struct uuid *);
/freebsd-11-stable/tools/regression/netinet6/inet6_rth/
H A Dtest_subr.c61 char sbuf[LINESIZE]; local
63 memset((void *)sbuf, 0, LINESIZE);
69 len = snprintf(sbuf, LINESIZE, "ok");
73 len = snprintf(sbuf, LINESIZE, "not ok");
78 snprintf(sbuf + len, LINESIZE - len, " %d - %s (%s)",
80 printf(sbuf);
94 char sbuf[LINESIZE]; local
96 memset((void *)sbuf, 0, LINESIZE);
102 len = snprintf(sbuf, LINESIZE, "ok");
106 len = snprintf(sbuf, LINESIZ
128 char sbuf[LINESIZE]; local
[all...]
/freebsd-11-stable/lib/libsbuf/tests/
H A DMakefile7 LIBADD+= sbuf util
/freebsd-11-stable/usr.sbin/bhyve/
H A Dbootrom.c54 struct stat sbuf; local
68 if (fstat(fd, &sbuf) < 0) {
78 if (sbuf.st_size > MAX_BOOTROM_SIZE || sbuf.st_size < PAGE_SIZE) {
79 fprintf(stderr, "Invalid bootrom size %ld\n", sbuf.st_size);
83 if (sbuf.st_size & PAGE_MASK) {
85 "page size\n", sbuf.st_size);
89 ptr = vm_create_devmem(ctx, VM_BOOTROM, "bootrom", sbuf.st_size);
95 gpa = (1ULL << 32) - sbuf.st_size;
96 if (vm_mmap_memseg(ctx, gpa, VM_BOOTROM, 0, sbuf
[all...]
/freebsd-11-stable/usr.sbin/nghook/
H A Dmain.c255 char ch, sbuf[100]; local
259 snprintf(sbuf, sizeof(sbuf), "%04x: ", count);
262 snprintf(sbuf + strlen(sbuf),
263 sizeof(sbuf) - strlen(sbuf),
266 snprintf(sbuf + strlen(sbuf),
267 sizeof(sbuf)
[all...]
/freebsd-11-stable/tools/regression/geom/MdLoad/
H A DMakefile4 LIBADD= sbuf bsdxml
H A DMdLoad.c52 #include <sys/sbuf.h>
66 struct sbuf *sbuf; member in struct:simdisk_softc
105 sbuf_clear(sc->sbuf);
120 sbuf_clear(sc->sbuf);
123 sbuf_finish(sc->sbuf);
125 sc->sectorsize = strtoul(sbuf_data(sc->sbuf), &p, 0);
129 o = strtoull(sbuf_data(sc->sbuf), &p, 0);
135 sc->fwsectors = strtoul(sbuf_data(sc->sbuf), &p, 0);
139 sc->fwheads = strtoul(sbuf_data(sc->sbuf),
[all...]
/freebsd-11-stable/usr.bin/apply/
H A DMakefile8 LIBADD= sbuf
/freebsd-11-stable/usr.bin/gcore/
H A DMakefile6 LIBADD= sbuf util
/freebsd-11-stable/usr.bin/ident/
H A DMakefile7 LIBADD= sbuf
/freebsd-11-stable/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-11-stable/usr.sbin/ngctl/
H A Dstatus.c62 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE]; local
63 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
89 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
H A Dmain.c623 char ch, sbuf[100]; local
627 snprintf(sbuf, sizeof(sbuf), "%04x: ", count);
630 snprintf(sbuf + strlen(sbuf),
631 sizeof(sbuf) - strlen(sbuf),
634 snprintf(sbuf + strlen(sbuf),
635 sizeof(sbuf)
[all...]
/freebsd-11-stable/lib/libmt/
H A Dmtlib.h69 struct sbuf *cur_sb[32];
92 void mt_status_tree_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
93 int indent, void (*sbuf_func)(struct sbuf *sb,
104 void mt_entry_sbuf(struct sbuf *sb, struct mt_status_entry *entry, char *fmt);
107 void mt_param_parent_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
109 void mt_param_entry_sbuf(struct sbuf *sb, struct mt_status_entry *entry,
H A DMakefile9 LIBADD= sbuf bsdxml
/freebsd-11-stable/sys/geom/
H A Dgeom_int.h59 void g_conf_specific(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp);
60 void g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...);
/freebsd-11-stable/sys/cam/ctl/
H A Dctl_scsi_all.h43 struct scsi_inquiry_data *inq_data,struct sbuf *sb);
45 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
/freebsd-11-stable/lib/lib80211/
H A DMakefile12 LIBADD= sbuf bsdxml
/freebsd-11-stable/sys/fs/procfs/
H A Dprocfs_note.c41 #include <sys/sbuf.h>
/freebsd-11-stable/usr.bin/w/
H A DMakefile7 LIBADD= kvm sbuf xo util
/freebsd-11-stable/usr.sbin/zonectl/
H A DMakefile6 LIBADD= cam sbuf util
/freebsd-11-stable/sys/kern/
H A Dsubr_sbuf.c53 #include <sys/sbuf.h>
56 static MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers");
100 _assert_sbuf_integrity(const char *fun, struct sbuf *s)
104 ("%s called with a NULL sbuf pointer", fun));
106 ("%s called with uninitialized or corrupt sbuf", fun));
109 ("wrote past end of sbuf (%jd >= %jd)",
113 ("wrote past end of sbuf (%jd >= %jd)",
119 _assert_sbuf_state(const char *fun, struct sbuf *s, int state)
123 ("%s called with %sfinished or corrupt sbuf", fun,
159 * Extend an sbuf
[all...]
/freebsd-11-stable/usr.bin/makewhatis/
H A Dmakewhatis.c77 struct sbuf { struct
84 * Removes the last amount characters from the sbuf.
86 #define sbuf_retract(sbuf, amount) \
87 ((sbuf)->end -= (amount))
89 * Returns the length of the sbuf content.
91 #define sbuf_length(sbuf) \
92 ((sbuf)->end - (sbuf)->content)
114 static struct sbuf *whatis_proto;
115 static struct sbuf *whatis_fina
197 sbuf_clear(struct sbuf *sbuf) argument
208 struct sbuf *sbuf = (struct sbuf *) malloc(sizeof(struct sbuf)); local
219 sbuf_need(struct sbuf *sbuf, int nchars) argument
243 sbuf_append(struct sbuf *sbuf, const char *text, int length) argument
256 sbuf_append_str(struct sbuf *sbuf, char *text) argument
265 sbuf_append_edited(struct sbuf *sbuf, char *text, edited_copy copy) argument
278 sbuf_strip(struct sbuf *sbuf, const char *set) argument
288 sbuf_content(struct sbuf *sbuf) argument
[all...]

Completed in 214 milliseconds

1234567891011>>