/freebsd-10.3-release/sys/sys/ |
H A D | sbuf.h | 28 * $FreeBSD: releng/10.3/sys/sys/sbuf.h 284435 2015-06-16 02:31:11Z ken $ 36 struct sbuf; 42 struct sbuf { struct 54 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */ 72 struct sbuf *sbuf_new(struct sbuf *, char *, int, int); 75 void sbuf_clear(struct sbuf *); 76 int sbuf_setpos(struct sbuf *, ssize_t); 77 int sbuf_bcat(struct sbuf *, const void *, size_t); 78 int sbuf_bcpy(struct sbuf *, cons [all...] |
H A D | stack.h | 34 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 D | uuid.h | 57 struct sbuf; 66 int sbuf_printf_uuid(struct sbuf *, struct uuid *);
|
/freebsd-10.3-release/usr.sbin/sesutil/ |
H A D | eltsub.h | 37 struct sbuf *stat2sbuf(int, u_char *);
|
/freebsd-10.3-release/tools/regression/netinet6/inet6_rth/ |
H A D | test_subr.c | 61 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-10.3-release/usr.sbin/bhyve/ |
H A D | bootrom.c | 52 struct stat sbuf; local 66 if (fstat(fd, &sbuf) < 0) { 76 if (sbuf.st_size > MAX_BOOTROM_SIZE || sbuf.st_size < PAGE_SIZE) { 77 fprintf(stderr, "Invalid bootrom size %ld\n", sbuf.st_size); 81 if (sbuf.st_size & PAGE_MASK) { 83 "page size\n", sbuf.st_size); 87 ptr = vm_create_devmem(ctx, VM_BOOTROM, "bootrom", sbuf.st_size); 93 gpa = (1ULL << 32) - sbuf.st_size; 94 if (vm_mmap_memseg(ctx, gpa, VM_BOOTROM, 0, sbuf [all...] |
/freebsd-10.3-release/usr.sbin/nghook/ |
H A D | main.c | 255 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-10.3-release/contrib/ntp/libntp/ |
H A D | findconfig.c | 21 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-10.3-release/usr.sbin/ngctl/ |
H A D | status.c | 62 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 D | main.c | 623 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...] |
H A D | config.c | 63 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE]; local 64 struct ng_mesg *const resp = (struct ng_mesg *) sbuf; 99 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
|
/freebsd-10.3-release/lib/libmt/ |
H A D | mtlib.h | 69 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,
|
/freebsd-10.3-release/usr.sbin/faithd/ |
H A D | ftp.c | 58 static char sbuf[MSS]; variable 618 n = snprintf(sbuf, sizeof(sbuf), 620 if (n < 0 || n >= sizeof(sbuf)) 623 write(src, sbuf, n); 675 n = snprintf(sbuf, sizeof(sbuf), 682 if (n < 0 || n >= sizeof(sbuf)) 685 write(dst, sbuf, n); 689 n = snprintf(sbuf, sizeo [all...] |
/freebsd-10.3-release/sys/geom/ |
H A D | geom_int.h | 59 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, ...);
|
H A D | geom_dump.c | 40 #include <sys/sbuf.h> 51 g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) 61 g_confdot_provider(struct sbuf *sb, struct g_provider *pp) 69 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) 88 g_confdot_class(struct sbuf *sb, struct g_class *mp) 100 struct sbuf *sb; 113 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) 132 g_conftxt_class(struct sbuf *sb, struct g_class *mp) 144 struct sbuf *sb; 158 g_conf_printf_escaped(struct sbuf *s [all...] |
/freebsd-10.3-release/lib/libsbuf/ |
H A D | Makefile | 3 LIB= sbuf
|
/freebsd-10.3-release/sys/cam/ctl/ |
H A D | ctl_scsi_all.h | 43 struct scsi_inquiry_data *inq_data,struct sbuf *sb); 45 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
|
/freebsd-10.3-release/sys/fs/procfs/ |
H A D | procfs_note.c | 41 #include <sys/sbuf.h>
|
/freebsd-10.3-release/usr.bin/makewhatis/ |
H A D | makewhatis.c | 77 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...] |
/freebsd-10.3-release/tools/regression/geom/MdLoad/ |
H A D | MdLoad.c | 52 #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-10.3-release/sys/kern/ |
H A D | subr_sbuf.c | 51 #include <sys/sbuf.h> 54 static MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers"); 96 _assert_sbuf_integrity(const char *fun, struct sbuf *s) 100 ("%s called with a NULL sbuf pointer", fun)); 102 ("%s called with uninitialized or corrupt sbuf", fun)); 104 ("wrote past end of sbuf (%jd >= %jd)", 109 _assert_sbuf_state(const char *fun, struct sbuf *s, int state) 113 ("%s called with %sfinished or corrupt sbuf", fun, 149 * Extend an sbuf. 152 sbuf_extend(struct sbuf * [all...] |
/freebsd-10.3-release/contrib/sendmail/libsmutil/ |
H A D | cf.c | 54 struct stat sbuf; local 66 if (cftype == SM_GET_SUBMIT_CF || stat(cf, &sbuf) == 0)
|
/freebsd-10.3-release/sys/ofed/include/linux/ |
H A D | kmod.h | 36 #include <sys/sbuf.h>
|
/freebsd-10.3-release/usr.sbin/rpcbind/ |
H A D | warmstart.c | 109 struct stat sbuf; local 111 if (stat(filename, &sbuf) != 0) { 116 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) || 117 (sbuf.st_mode & S_IRWXO)) {
|
/freebsd-10.3-release/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 221 struct stat sbuf; local 262 if (lstat(pbuf, &sbuf) < 0) 264 else if (!S_ISREG(sbuf.st_mode)) 266 else if (fstat(fileno(hostf), &sbuf) < 0) 268 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid) 270 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))
|