Home
last modified time | relevance | path

Searched refs:sbuf_data (Results 1 – 25 of 139) sorted by relevance

123456

/freebsd-13.1/lib/libsbuf/tests/
H A Dsbuf_string_test.c95 check_buffers_equal(sbuf_data(sb), test_buffer_tmp, in ATF_TC_BODY()
132 check_buffers_equal(sbuf_data(sb), test_buffer, (size_t)test_sbuf_len); in ATF_TC_BODY()
168 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string_tmp, in ATF_TC_BODY()
169 "sbuf (\"%s\") != test string (\"%s\")", sbuf_data(sb), in ATF_TC_BODY()
204 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
205 "sbuf (\"%s\") != test string (\"%s\")", sbuf_data(sb), in ATF_TC_BODY()
236 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
237 "sbuf (\"%s\") != test string (\"%s\")", sbuf_data(sb), in ATF_TC_BODY()
270 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
271 "sbuf (\"%s\") != test string (\"%s\") (trimmed)", sbuf_data(sb), in ATF_TC_BODY()
H A Dsbuf_stdio_test.c140 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string_tmp, in ATF_TC_BODY()
141 "sbuf (\"%s\") != test string (\"%s\")", sbuf_data(sb), in ATF_TC_BODY()
200 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string_tmp, in ATF_TC_BODY()
201 "sbuf (\"%s\") != test string (\"%s\")", sbuf_data(sb), in ATF_TC_BODY()
H A Dsbuf_core_test.c81 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), "", in ATF_TC_BODY()
82 "sbuf (\"%s\") was not empty", sbuf_data(sb)); in ATF_TC_BODY()
240 ATF_REQUIRE_MSG(strncmp(sbuf_data(sb), test_string, buf_len) == 0, in ATF_TC_BODY()
241 "sbuf (\"%s\") != test string (\"%s\") for [0,%zd]", sbuf_data(sb), in ATF_TC_BODY()
/freebsd-13.1/tools/regression/geom/MdLoad/
H A DMdLoad.c125 sc->sectorsize = strtoul(sbuf_data(sc->sbuf), &p, 0); in endElement()
129 o = strtoull(sbuf_data(sc->sbuf), &p, 0); in endElement()
135 sc->fwsectors = strtoul(sbuf_data(sc->sbuf), &p, 0); in endElement()
139 sc->fwheads = strtoul(sbuf_data(sc->sbuf), &p, 0); in endElement()
143 sc->fwcylinders = strtoul(sbuf_data(sc->sbuf), &p, 0); in endElement()
147 sc->sp->offset= strtoull(sbuf_data(sc->sbuf), &p, 0); in endElement()
151 j = strtoul(sbuf_data(sc->sbuf), NULL, 16); in endElement()
155 p = sbuf_data(sc->sbuf); in endElement()
179 printf("<%s>[[%s]]\n", name, sbuf_data(sc->sbuf)); in endElement()
/freebsd-13.1/tools/regression/geom/ConfCmp/
H A DConfCmp.c144 sbuf_cat(mt->cur->key, sbuf_data(np->cont)); in EndElement()
212 printf("\"%s\" -- \"%s\" -- \"%s\"", np->name, sbuf_data(np->cont), sbuf_data(np->key)); in print_node()
247 if (strcmp(sbuf_data(np1->key), sbuf_data(np2->key)) > 0) { in sort_node()
302 i = refcmp(sbuf_data(n1->cont), sbuf_data(n2->cont)); in compare_node()
304 i = strcmp(sbuf_data(n1->cont), sbuf_data(n2->cont)); in compare_node()
/freebsd-13.1/sbin/pfctl/tests/
H A Dpfctl_test.c164 printf("---\n%s---\n", sbuf_data(real_output)); in run_pfctl_test()
167 "pfctl returned non-zero! Output:\n %s", sbuf_data(real_output)); in run_pfctl_test()
169 ATF_CHECK_STREQ(sbuf_data(expected_output), sbuf_data(real_output)); in run_pfctl_test()
/freebsd-13.1/sys/cam/ctl/
H A Dctl_scsi_all.c165 return(sbuf_data(&sb)); in ctl_scsi_sense_string()
182 printf("%s", sbuf_data(&sb)); in ctl_scsi_sense_print()
202 fprintf(ofile, "%s", sbuf_data(&sb)); in ctl_scsi_sense_print()
/freebsd-13.1/sys/dev/xen/xenstore/
H A Dxenstore.c1287 error = xs_single(t, XS_DIRECTORY, sbuf_data(path), &len, in xs_directory()
1320 error = xs_single(t, XS_READ, sbuf_data(path), len, &ret); in xs_read()
1338 iovec[0].iov_base = (void *)(uintptr_t) sbuf_data(path); in xs_write()
1356 ret = xs_single(t, XS_MKDIR, sbuf_data(path), NULL, NULL); in xs_mkdir()
1369 ret = xs_single(t, XS_RM, sbuf_data(path), NULL, NULL); in xs_rm()
1389 root_path = sbuf_data(root_path_sbuf); in xs_rm_tree()
1390 cur_path = sbuf_data(cur_path_sbuf); in xs_rm_tree()
1422 cur_path = sbuf_data(cur_path_sbuf); in xs_rm_tree()
1530 error = xs_write(t, dir, node, sbuf_data(sb)); in xs_vprintf()
/freebsd-13.1/usr.bin/ident/
H A Dident.c178 c = sbuf_data(id)[sbuf_len(id) - 2]; in scan()
180 printf(" %s\n", sbuf_data(id)); in scan()
/freebsd-13.1/sys/compat/linux/
H A Dlinux_sysctl.c183 sysctl_string = sbuf_data(sb); in linux_sysctl()
184 linux_msg(td, "%s", sbuf_data(sb)); in linux_sysctl()
/freebsd-13.1/usr.bin/apply/
H A Dapply.c199 (void)printf("%s\n", sbuf_data(cmdbuf)); in main()
201 if (exec_shell(sbuf_data(cmdbuf), shell, name)) in main()
/freebsd-13.1/sys/xen/xenbus/
H A Dxenbusb_back.c154 error = xs_directory(XST_NIL, xbs->xbs_node, sbuf_data(vm_path), in xenbusb_back_enumerate_type()
166 xenbusb_add_device(dev, type, sbuf_data(id)); in xenbusb_back_enumerate_type()
/freebsd-13.1/contrib/lib9p/sbuf/
H A Dsbuf.h52 char *sbuf_data(struct sbuf *s);
H A Dsbuf.c109 sbuf_data(struct sbuf *s) in sbuf_data() function
/freebsd-13.1/lib/libsbuf/
H A DSymbol.map20 sbuf_data;
/freebsd-13.1/sys/fs/procfs/
H A Dprocfs_osrel.c56 pp = sbuf_data(sb); in procfs_doosrel()
/freebsd-13.1/usr.sbin/extattr/
H A Drmextattr.c230 sbuf_data(attrvalue), len); in main()
234 sbuf_data(attrvalue), len); in main()
/freebsd-13.1/sys/geom/
H A Dgeom_ctl.c104 printf("gctl %p error \"%s\"\n", req, sbuf_data(req->serror)); in gctl_error()
239 printf(" error:\t\"%s\"\n", sbuf_data(req->serror)); in gctl_dump()
495 copyout(sbuf_data(req->serror), req->error, in g_ctl_ioctl_ctl()
/freebsd-13.1/sys/sys/
H A Dsbuf.h102 char *sbuf_data(struct sbuf *);
/freebsd-13.1/usr.bin/procstat/
H A Dprocstat_cs.c113 xo_emit("{:cpu_set/%s}", sbuf_data(cpusetbuf)); in procstat_cs()
/freebsd-13.1/sys/dev/proto/
H A Dproto_bus_pci.c77 device_set_desc_copy(dev, sbuf_data(sb)); in proto_pci_probe()
H A Dproto_bus_isa.c85 device_set_desc_copy(dev, sbuf_data(sb)); in proto_isa_probe()
/freebsd-13.1/sys/dev/sound/pcm/
H A Dsndstat.c173 err = uiomove(sbuf_data(&pf->sbuf) + pf->in_offset, len, buf); in sndstat_read()
388 sbuf_bcat(s, sbuf_data(&pf->sbuf), in sndstat_prepare()
/freebsd-13.1/sys/geom/vinum/
H A Dgeom_vinum_drive.c330 error = g_write_data(cp, GV_CFG_OFFSET, sbuf_data(sb), in gv_save_config()
342 sbuf_data(sb), GV_CFG_LEN); in gv_save_config()
/freebsd-13.1/usr.sbin/config/
H A Dmain.c336 "partial line = %s", sbuf_data(line_buf)); in get_line_buf()
338 return sbuf_data(line_buf); in get_line_buf()
585 fprintf(fo, "%s", sbuf_data(sb)); in configfile()

123456