Searched refs:sbuf (Results 26 - 50 of 605) sorted by relevance

1234567891011>>

/freebsd-current/usr.bin/w/
H A DMakefile5 LIBADD= kvm sbuf xo util
/freebsd-current/sys/fs/procfs/
H A Dprocfs_note.c39 #include <sys/sbuf.h>
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dkmod.h35 #include <sys/sbuf.h>
/freebsd-current/sys/cam/ctl/
H A Dctl_scsi_all.h42 struct scsi_inquiry_data *inq_data,struct sbuf *sb);
44 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
/freebsd-current/tests/sys/netgraph/
H A Dksocket.c41 char sbuf[] = "Hello, peer!", rbuf[sizeof(sbuf)]; local
43 ATF_REQUIRE(send(wr, sbuf, sizeof(sbuf), 0) == sizeof(sbuf));
44 ATF_REQUIRE(recv(rd, rbuf, sizeof(rbuf), 0) == sizeof(sbuf));
45 ATF_REQUIRE(strcmp(sbuf, rbuf) == 0);
/freebsd-current/sys/kern/
H A Dsubr_sbuf.c52 #include <sys/sbuf.h>
55 static MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers");
104 _assert_sbuf_integrity(const char *fun, struct sbuf *s)
108 ("%s called with a NULL sbuf pointer", fun));
110 ("%s called with uninitialized or corrupt sbuf", fun));
113 ("wrote past end of sbuf (%jd >= %jd)",
117 ("wrote past end of sbuf (%jd >= %jd)",
123 _assert_sbuf_state(const char *fun, struct sbuf *s, int state)
127 ("%s called with %sfinished or corrupt sbuf", fun,
163 * Extend an sbuf
[all...]
/freebsd-current/crypto/openssl/test/
H A Dsha_test.c20 unsigned char buf[EVP_MAX_MD_SIZE], *sbuf; local
24 sbuf = (*md)(in, in_len, buf);
25 if (!TEST_ptr(sbuf)
26 || !TEST_ptr_eq(sbuf, buf)
27 || !TEST_mem_eq(sbuf, length, out, length))
29 sbuf = (*md)(in, in_len, NULL);
30 if (!TEST_ptr(sbuf)
31 || !TEST_ptr_ne(sbuf, buf)
32 || !TEST_mem_eq(sbuf, length, out, length))
/freebsd-current/tools/regression/geom/MdLoad/
H A DMdLoad.c50 #include <sys/sbuf.h>
64 struct sbuf *sbuf; member in struct:simdisk_softc
103 sbuf_clear(sc->sbuf);
118 sbuf_clear(sc->sbuf);
121 sbuf_finish(sc->sbuf);
123 sc->sectorsize = strtoul(sbuf_data(sc->sbuf), &p, 0);
127 o = strtoull(sbuf_data(sc->sbuf), &p, 0);
133 sc->fwsectors = strtoul(sbuf_data(sc->sbuf), &p, 0);
137 sc->fwheads = strtoul(sbuf_data(sc->sbuf),
[all...]
/freebsd-current/contrib/wireguard-tools/
H A Dipc-uapi-unix.h22 struct stat sbuf; local
33 ret = stat(addr.sun_path, &sbuf);
37 if (!S_ISSOCK(sbuf.st_mode))
66 struct stat sbuf; local
74 if (stat(addr.sun_path, &sbuf) < 0)
76 if (!S_ISSOCK(sbuf.st_mode))
/freebsd-current/sys/dev/random/
H A Drandom_harvestq.c47 #include <sys/sbuf.h>
342 struct sbuf sbuf; local
347 sbuf_new_for_sysctl(&sbuf, NULL, 128, req);
349 sbuf_cat(&sbuf, (hc_source_mask & (1 << i)) ? "1" : "0");
350 error = sbuf_finish(&sbuf);
351 sbuf_delete(&sbuf);
395 struct sbuf sbuf; local
402 sbuf_new_for_sysctl(&sbuf, NUL
675 struct sbuf sbuf; local
[all...]
/freebsd-current/usr.sbin/ngctl/
H A Dmain.c620 char ch, sbuf[100]; local
624 snprintf(sbuf, sizeof(sbuf), "%04x: ", count);
627 snprintf(sbuf + strlen(sbuf),
628 sizeof(sbuf) - strlen(sbuf),
631 snprintf(sbuf + strlen(sbuf),
632 sizeof(sbuf)
[all...]
H A Dconfig.c61 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE]; local
62 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
97 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_003_pos.c33 struct stat sbuf; local
53 if (stat(dpath, &sbuf) == 0)
/freebsd-current/contrib/sendmail/libsmutil/
H A Dcf.c54 struct stat sbuf; local
69 if (cftype == SM_GET_SUBMIT_CF || stat(cf, &sbuf) == 0)
/freebsd-current/sys/sys/
H A Duuid.h57 struct sbuf;
66 int sbuf_printf_uuid(struct sbuf *, struct uuid *);
/freebsd-current/lib/libsbuf/
H A DMakefile4 LIB= sbuf
/freebsd-current/lib/lib80211/
H A DMakefile12 LIBADD= sbuf bsdxml
/freebsd-current/usr.bin/top/
H A DMakefile9 LIBADD= tinfow m kvm jail util sbuf
/freebsd-current/usr.bin/nc/
H A DMakefile13 LIBADD+= sbuf stats
/freebsd-current/usr.sbin/newsyslog/
H A DMakefile10 LIBADD= sbuf
/freebsd-current/sys/dev/qat/qat_common/
H A Dadf_fw_counters.c11 #include <sys/sbuf.h>
126 struct sbuf *sbuf = NULL; local
134 sbuf = sbuf_new(NULL, cbuf, ADF_FW_COUNTERS_BUF_SZ, SBUF_FIXEDLEN);
135 if (sbuf == NULL) {
142 sbuf_delete(sbuf);
147 sbuf_printf(sbuf,
150 sbuf,
152 sbuf_printf(sbuf,
160 sbuf_printf(sbuf, "
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkbusy.c86 struct stat sbuf; local
103 if (stat(argv[0], &sbuf) != 0) {
128 if (stat(dname, &sbuf) != 0 || !(sbuf.st_mode & S_IFDIR))
136 switch (sbuf.st_mode & S_IFMT) {
/freebsd-current/usr.sbin/rpcbind/
H A Dwarmstart.c108 struct stat sbuf; local
110 if (stat(filename, &sbuf) != 0) {
115 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) ||
116 (sbuf.st_mode & S_IRWXO)) {
/freebsd-current/crypto/heimdal/lib/roken/
H A Diruserok.c221 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))
/freebsd-current/sbin/pfctl/tests/
H A Dpfctl_test.c44 #include <sys/sbuf.h>
88 static struct sbuf *
91 struct sbuf *sb;
105 static struct sbuf *
109 struct sbuf *result;
129 struct sbuf *expected_output;
130 struct sbuf *real_output;

Completed in 162 milliseconds

1234567891011>>