/freebsd-9.3-release/sys/sys/ |
H A D | sbuf.h | 36 struct sbuf; 42 struct sbuf { struct 54 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */ 64 struct sbuf *sbuf_new(struct sbuf *, char *, int, int); 67 void sbuf_clear(struct sbuf *); 68 int sbuf_setpos(struct sbuf *, ssize_t); 69 int sbuf_bcat(struct sbuf *, const void *, size_t); 70 int sbuf_bcpy(struct sbuf *, const void *, size_t); 71 int sbuf_cat(struct sbuf *, cons [all...] |
H A D | stack.h | 34 struct sbuf; 46 void stack_sbuf_print(struct sbuf *, struct stack *); 47 void stack_sbuf_print_ddb(struct sbuf *, struct stack *);
|
H A D | uuid.h | 57 struct sbuf; 63 int sbuf_printf_uuid(struct sbuf *, struct uuid *);
|
/freebsd-9.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-9.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-9.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-9.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 | 621 char ch, sbuf[100]; local 625 snprintf(sbuf, sizeof(sbuf), "%04x: ", count); 628 snprintf(sbuf + strlen(sbuf), 629 sizeof(sbuf) - strlen(sbuf), 632 snprintf(sbuf + strlen(sbuf), 633 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-9.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-9.3-release/sys/geom/ |
H A D | geom_int.h | 56 void g_conf_specific(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp); 57 void g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...);
|
H A D | geom_dump.c | 40 #include <sys/sbuf.h> 50 g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) 60 g_confdot_provider(struct sbuf *sb, struct g_provider *pp) 68 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) 87 g_confdot_class(struct sbuf *sb, struct g_class *mp) 99 struct sbuf *sb; 112 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) 131 g_conftxt_class(struct sbuf *sb, struct g_class *mp) 143 struct sbuf *sb; 157 g_conf_printf_escaped(struct sbuf *s [all...] |
/freebsd-9.3-release/contrib/nvi/clib/ |
H A D | mkstemp.c | 76 struct stat sbuf; local 95 if (stat(path, &sbuf)) 97 if (!S_ISDIR(sbuf.st_mode)) { 114 else if (stat(path, &sbuf))
|
/freebsd-9.3-release/lib/libsbuf/ |
H A D | Makefile | 3 LIB= sbuf
|
/freebsd-9.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,
|
H A D | ctl_scsi_all.c | 58 #include <sys/sbuf.h> 101 struct scsi_inquiry_data *inq_data, struct sbuf *sb) 148 struct scsi_inquiry_data *inq_data, struct sbuf *sb, 178 struct sbuf sb; 194 struct sbuf sb; 211 struct sbuf sb;
|
/freebsd-9.3-release/sys/fs/procfs/ |
H A D | procfs_note.c | 41 #include <sys/sbuf.h>
|
/freebsd-9.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-9.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-9.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-9.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-9.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-9.3-release/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 224 struct stat sbuf; local 265 if (lstat(pbuf, &sbuf) < 0) 267 else if (!S_ISREG(sbuf.st_mode)) 269 else if (fstat(fileno(hostf), &sbuf) < 0) 271 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid) 273 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))
|
/freebsd-9.3-release/sys/netgraph/atm/sscop/ |
H A D | ng_sscop.c | 46 #include <sys/sbuf.h> 379 struct sbuf sbuf; local 381 sbuf_new(&sbuf, arg, len, 0); 384 sbuf_printf(&sbuf, "upper hook: %s connected to %s:%s\n", 389 sbuf_printf(&sbuf, "upper hook: <not connected>\n"); 392 sbuf_printf(&sbuf, "lower hook: %s connected to %s:%s\n", 397 sbuf_printf(&sbuf, "lower hook: <not connected>\n"); 400 sbuf_printf(&sbuf, "manage hook: %s connected to %s:%s\n", 405 sbuf_printf(&sbuf, "manag [all...] |
/freebsd-9.3-release/lib/libc/stdio/ |
H A D | mktemp.c | 107 struct stat sbuf; local 148 rval = stat(path, &sbuf); 152 if (!S_ISDIR(sbuf.st_mode)) { 173 } else if (lstat(path, &sbuf))
|