/freebsd/tests/sys/posixshm/ |
H A D | memfd_test.c | 92 #define BUF_SIZE 1024 macro 98 char *addr, buf[BUF_SIZE]; in ATF_TC_BODY() 101 ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); in ATF_TC_BODY() 104 ATF_REQUIRE(write(fd, buf, BUF_SIZE) == BUF_SIZE); in ATF_TC_BODY() 107 addr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_PRIVATE, fd, 0); in ATF_TC_BODY() 109 ATF_REQUIRE(munmap(addr, BUF_SIZE) == 0); in ATF_TC_BODY() 113 ATF_REQUIRE(write(fd, buf, BUF_SIZE) == -1); in ATF_TC_BODY() 116 ATF_REQUIRE(mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED, in ATF_TC_BODY() 130 ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0); in ATF_TC_BODY() 133 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/contrib/dialog/ |
H A D | textbox.c | 294 read_high(obj, BUF_SIZE); in get_line() 354 if (fpos < BUF_SIZE / 2 + obj->fd_bytes_read) { in back_lines() 359 lseek_cur(obj, -(BUF_SIZE / 2 + obj->fd_bytes_read)); in back_lines() 360 val_to_tabize = BUF_SIZE / 2; in back_lines() 362 read_high(obj, BUF_SIZE); in back_lines() 388 if (fpos < BUF_SIZE / 2 + obj->fd_bytes_read) { in back_lines() 393 lseek_cur(obj, -(BUF_SIZE / 2 + obj->fd_bytes_read)); in back_lines() 394 val_to_tabize = BUF_SIZE / 2; in back_lines() 396 read_high(obj, BUF_SIZE); in back_lines() 651 read_high(obj, BUF_SIZE); in perform_search() [all …]
|
H A D | dialog.h | 184 #define BUF_SIZE (10L*1024) macro
|
/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/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/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/sbin/pfctl/ |
H A D | pfctl_radix.c | 52 #define BUF_SIZE 256 macro 56 static int pfr_next_token(char buf[BUF_SIZE], FILE *); 443 char buf[BUF_SIZE]; in pfr_buf_load() 466 pfr_next_token(char buf[BUF_SIZE], FILE *fp) in pfr_next_token() argument 490 if (i < BUF_SIZE) in pfr_next_token() 494 if (i >= BUF_SIZE) { in pfr_next_token()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | emitter.h | 120 #define BUF_SIZE 256 in emitter_print_value() macro 129 char buf[BUF_SIZE]; in emitter_print_value() 155 str_written = malloc_snprintf(buf, BUF_SIZE, "\"%s\"", in emitter_print_value() 161 assert(str_written < BUF_SIZE); in emitter_print_value() 177 #undef BUF_SIZE in emitter_print_value()
|
/freebsd/usr.sbin/ngctl/ |
H A D | write.c | 46 #define BUF_SIZE 8192 macro 64 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/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/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 | 1311 #undef BUF_SIZE in OSSL_HTTP_proxy_connect() 1312 #define BUF_SIZE (8 * 1024) in OSSL_HTTP_proxy_connect() macro 1313 char *mbuf = OPENSSL_malloc(BUF_SIZE); in OSSL_HTTP_proxy_connect() 1392 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect() 1437 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect() 1448 #undef BUF_SIZE in OSSL_HTTP_proxy_connect()
|
/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 | 1257 #define BUF_SIZE 80 in UTIL_countCores() macro 1258 char buff[BUF_SIZE]; in UTIL_countCores() 1272 if (fgets(buff, BUF_SIZE, cpuinfo) != NULL) { in UTIL_countCores()
|