| /freebsd/tests/sys/posixshm/ |
| H A D | memfd_test.c | 94 #define BUF_SIZE 1024 macro 100 char *addr, buf[BUF_SIZE]; in ATF_TC_BODY() 103 ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); in ATF_TC_BODY() 106 ATF_REQUIRE(write(fd, buf, BUF_SIZE) == BUF_SIZE); in ATF_TC_BODY() 109 addr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_PRIVATE, fd, 0); in ATF_TC_BODY() 111 ATF_REQUIRE(munmap(addr, BUF_SIZE) == 0); in ATF_TC_BODY() 115 ATF_REQUIRE(write(fd, buf, BUF_SIZE) == -1); in ATF_TC_BODY() 118 ATF_REQUIRE(mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED, in ATF_TC_BODY() 132 ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); in ATF_TC_BODY() 135 addr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, 0); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_helper.c | 931 char buf[BUF_SIZE]; in osm_dump_port_info() 940 dbg_get_capabilities_str(buf, BUF_SIZE, "\t\t\t\t", in osm_dump_port_info() 946 dbg_get_capabilities2_str(buf, BUF_SIZE, "\t\t\t\t", in osm_dump_port_info() 959 char buf[BUF_SIZE]; in osm_dump_port_info_v2() 968 dbg_get_capabilities_str(buf, BUF_SIZE, "\t\t\t\t", in osm_dump_port_info_v2() 974 dbg_get_capabilities2_str(buf, BUF_SIZE, "\t\t\t\t", in osm_dump_port_info_v2() 1010 char buf[BUF_SIZE]; in osm_dump_mlnx_ext_port_info() 1025 char buf[BUF_SIZE]; in osm_dump_mlnx_ext_port_info_v2() 1127 char buf[BUF_SIZE]; in osm_dump_portinfo_record() 1136 dbg_get_capabilities_str(buf, BUF_SIZE, "\t\t\t\t", in osm_dump_portinfo_record() [all …]
|
| H A D | osm_sm_mad_ctrl.c | 559 char buf[BUF_SIZE]; in log_rcv_cb_error() 563 char ipath[BUF_SIZE], rpath[BUF_SIZE]; in log_rcv_cb_error()
|
| /freebsd/crypto/openssl/fuzz/ |
| H A D | driver.c | 33 #define BUF_SIZE 65536 macro 40 uint8_t *buf = malloc(BUF_SIZE); in main() 41 size_t size = read(0, buf, BUF_SIZE); in main()
|
| /freebsd/crypto/openssl/test/quic-openssl-docker/hq-interop/ |
| H A D | quic-hq-interop-server.c | 58 #define BUF_SIZE 4096 macro 461 unsigned char buf[BUF_SIZE]; in process_new_stream() 462 char path[BUF_SIZE]; in process_new_stream() 475 memset(buf, 0, BUF_SIZE); in process_new_stream() 508 snprintf(path, BUF_SIZE, "%s/%s", fileprefix, reqname); in process_new_stream() 521 if (!BIO_read_ex(readbio, buf, BUF_SIZE, &bytes_read)) { in process_new_stream()
|
| /freebsd/contrib/elftoolchain/size/ |
| H A D | size.c | 47 #define BUF_SIZE 1024 macro 302 char buf[BUF_SIZE], *data, *name; in handle_core_note() 367 (void) snprintf(buf, BUF_SIZE, "%s/%d", in handle_core_note() 387 (void) snprintf(buf, BUF_SIZE, in handle_core_note() 417 (void) snprintf(buf, BUF_SIZE, "%s/%d", in handle_core_note() 485 char buf[BUF_SIZE]; in handle_phdr() 494 (void) snprintf(buf, BUF_SIZE, in handle_phdr() 504 (void) snprintf(buf, BUF_SIZE, "%s%d%s", name, in handle_phdr() 796 char buf[BUF_SIZE]; in berkeley_footer() 815 (void) snprintf(buf, BUF_SIZE, "%s (%s %s)", ar_name, msg, in berkeley_footer() [all …]
|
| /freebsd/sbin/pfctl/ |
| H A D | pfctl_radix.c | 53 #define BUF_SIZE 256 macro 57 static int pfr_next_token(char buf[BUF_SIZE], FILE *); 367 char buf[BUF_SIZE]; in pfr_buf_load() 390 pfr_next_token(char buf[BUF_SIZE], FILE *fp) in pfr_next_token() argument 414 if (i < BUF_SIZE) in pfr_next_token() 418 if (i >= BUF_SIZE) { in pfr_next_token()
|
| /freebsd/contrib/dma/ |
| H A D | crypto.c | 297 unsigned char digest[BUF_SIZE]; in smtp_auth_md5() 298 char buffer[BUF_SIZE], ascii_digest[33]; in smtp_auth_md5() 303 temp = calloc(BUF_SIZE, 1); in smtp_auth_md5() 331 snprintf(buffer, BUF_SIZE, "%s %s", login, ascii_digest); in smtp_auth_md5()
|
| H A D | dma.h | 51 #define BUF_SIZE 2048 macro 54 #define EHLO_RESPONSE_SIZE BUF_SIZE
|
| H A D | net.c | 131 char buff[BUF_SIZE]; in read_remote()
|
| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | emitter.h | 128 #define BUF_SIZE 256 in emitter_print_value() 137 char buf[BUF_SIZE]; in emitter_print_value() 166 str_written = malloc_snprintf(buf, BUF_SIZE, "\"%s\"", in emitter_print_value() 172 assert(str_written < BUF_SIZE); in emitter_print_value() 188 #undef BUF_SIZE 120 #define BUF_SIZE emitter_print_value() macro
|
| /freebsd/usr.sbin/ngctl/ |
| H A D | write.c | 47 #define BUF_SIZE 8192 macro 65 u_char buf[BUF_SIZE]; in WriteCmd()
|
| /freebsd/usr.sbin/nghook/ |
| H A D | main.c | 59 #define BUF_SIZE (64 * 1024) macro 200 char buf[BUF_SIZE]; in main() 231 char buf[BUF_SIZE]; in main()
|
| /freebsd/crypto/openssl/test/ |
| H A D | bio_enc_test.c | 22 #define BUF_SIZE (DATA_SIZE + MAX_IV) macro 42 static unsigned char inp[BUF_SIZE] = { 0 }; in do_bio_cipher() 43 unsigned char out[BUF_SIZE], ref[BUF_SIZE]; in do_bio_cipher()
|
| /freebsd/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_mcg.c | 905 #define BUF_SIZE 256 in mlx4_err_rule() macro 907 char buf[BUF_SIZE]; in mlx4_err_rule() 911 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 918 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 924 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 928 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 935 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 939 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 947 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 951 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() [all …]
|
| /freebsd/crypto/krb5/src/util/profile/ |
| H A D | prof_parse.c | 343 #define BUF_SIZE 2048 in parse_file() macro 347 bptr = malloc (BUF_SIZE); in parse_file() 352 if (fgets(bptr, BUF_SIZE, f) == NULL) in parse_file() 364 if (strlen(bptr) >= BUF_SIZE - 1) { in parse_file() 371 for (offset = 0; offset > -BUF_SIZE; offset--) { in parse_file()
|
| /freebsd/contrib/ofed/opensm/libvendor/ |
| H A D | osm_pkt_randomizer.c | 126 char buf[BUF_SIZE]; in __osm_pkt_randomizer_process_path() 127 char line[BUF_SIZE]; in __osm_pkt_randomizer_process_path()
|
| /freebsd/crypto/openssl/crypto/http/ |
| H A D | http_client.c | 1460 #undef BUF_SIZE in OSSL_HTTP_proxy_connect() 1461 #define BUF_SIZE (8 * 1024) in OSSL_HTTP_proxy_connect() macro 1480 if ((mbuf = OPENSSL_malloc(BUF_SIZE)) == NULL in OSSL_HTTP_proxy_connect() 1549 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect() 1596 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect() 1607 #undef BUF_SIZE in OSSL_HTTP_proxy_connect()
|
| /freebsd/crypto/openssl/demos/http3/ |
| H A D | ossl-nghttp3.c | 22 #define BUF_SIZE 4096 macro 30 uint8_t buf[BUF_SIZE];
|
| /freebsd/contrib/ofed/opensm/include/opensm/ |
| H A D | osm_log.h | 72 #define BUF_SIZE LOG_ENTRY_SIZE_MAX macro
|
| /freebsd/sys/contrib/zstd/programs/ |
| H A D | util.c | 1503 #define BUF_SIZE 80 in UTIL_countCores() macro 1504 char buff[BUF_SIZE]; in UTIL_countCores() 1518 if (fgets(buff, BUF_SIZE, cpuinfo) != NULL) { in UTIL_countCores()
|