Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 25 of 97) sorted by relevance

1234

/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c34 #define BUFSIZE (CHUNK * 4) macro
41 unsigned char buffer[BUFSIZE], fpattern[BUFSIZE], tmp[BUFSIZE]; in test_partially_valid_iovec()
53 for (i = 0; i < BUFSIZE; i++) in test_partially_valid_iovec()
56 memset(fpattern, 0xff, BUFSIZE); in test_partially_valid_iovec()
57 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZE / CHUNK); in test_partially_valid_iovec()
76 SAFE_READ(1, fd, tmp, BUFSIZE); in test_partially_valid_iovec()
77 if (memcmp(tmp, fpattern, BUFSIZE)) in test_partially_valid_iovec()
/external/nanopb-c/tests/fuzztest/
Dfuzztest.c174 #define BUFSIZE 4096 macro
189 stream = pb_ostream_from_buffer(buffer, BUFSIZE); in do_static_encode()
191 assert(stream.bytes_written <= BUFSIZE); in do_static_encode()
205 size_t max_size = BUFSIZE - 32 - *msglen; in do_protobuf_noise()
209 uint8_t *tmp = malloc_with_check(BUFSIZE); in do_protobuf_noise()
210 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
219 size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
276 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
277 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
291 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip()
[all …]
Dfuzzstub.c17 #define BUFSIZE 4096 macro
70 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
71 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
85 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip()
98 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip()
117 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
118 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
132 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip()
145 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
164 uint8_t *buffer = malloc_with_check(BUFSIZE); in run_iteration()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzztest.c174 #define BUFSIZE 4096 macro
189 stream = pb_ostream_from_buffer(buffer, BUFSIZE); in do_static_encode()
191 assert(stream.bytes_written <= BUFSIZE); in do_static_encode()
205 size_t max_size = BUFSIZE - 32 - *msglen; in do_protobuf_noise()
209 uint8_t *tmp = malloc_with_check(BUFSIZE); in do_protobuf_noise()
210 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
219 size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
276 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
277 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
291 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip()
[all …]
Dfuzzstub.c17 #define BUFSIZE 4096 macro
70 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
71 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
85 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip()
98 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip()
117 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
118 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
132 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip()
145 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
164 uint8_t *buffer = malloc_with_check(BUFSIZE); in run_iteration()
[all …]
/external/autotest/client/tests/aio_dio_bugs/src/
Daio-dio-extend-stat.c29 #define BUFSIZE 1024 macro
31 static unsigned char buf[BUFSIZE] __attribute((aligned (512)));
65 for (i = 0; i < BUFSIZE; ++i) in main()
68 buf[BUFSIZE-1] = '\n'; in main()
91 iocbs[i]->u.c.nbytes = BUFSIZE; in main()
92 iocbs[i]->u.c.offset = BUFSIZE*i; in main()
125 if (ioevents[i].obj->u.c.nbytes != BUFSIZE) in fun_read()
127 "receiced %ld\n", BUFSIZE, in fun_read()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat02.c23 #define BUFSIZE (4096) macro
33 { FNAME1, BUFSIZE, BUFSIZE },
35 { FNAME2, BUFSIZE, 1000 }
79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
D7-1.c19 #define BUFSIZE 8 macro
26 ptr = malloc(BUFSIZE); in main()
32 if (mlock(ptr, BUFSIZE) != 0) { in main()
42 result = munlock(ptr, BUFSIZE); in main()
/external/ltp/testcases/kernel/syscalls/ipc/libnewipc/
Dlibnewipc.c25 #define BUFSIZE 1024 macro
29 char buf[BUFSIZE]; in getipckey()
34 SAFE_GETCWD(buf, BUFSIZE); in getipckey()
52 char buf[BUFSIZE]; in get_used_queues()
60 while (fgets(buf, BUFSIZE, fp) != NULL) in get_used_queues()
/external/python/cpython2/Demo/sockets/
Dthroughput.py20 BUFSIZE = 1024 variable
53 data = conn.recv(BUFSIZE)
71 testdata = 'x' * (BUFSIZE-1) + '\n'
83 data = s.recv(BUFSIZE)
89 print 'Throughput:', round((BUFSIZE*count*0.001) / (t5-t1), 3),
Dudpecho.py12 BUFSIZE = 1024 variable
39 data, addr = s.recvfrom(BUFSIZE)
60 data, fromaddr = s.recvfrom(BUFSIZE)
/external/ltp/testcases/kernel/syscalls/ipc/lib/
Dlibipc.c174 #define BUFSIZE 512 macro
183 char buff[BUFSIZE]; in get_used_msgqueues()
190 for (used_queues = -4; fgets(buff, BUFSIZE, f); used_queues++) ; in get_used_msgqueues()
205 char buff[BUFSIZE]; in get_max_msgqueues()
213 if (!fgets(buff, BUFSIZE, f)) { in get_max_msgqueues()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
D5-1.c19 #define BUFSIZE 8 macro
26 ptr = malloc(BUFSIZE); in main()
32 result = mlock(ptr, BUFSIZE); in main()
D12-1.c27 #define BUFSIZE 8 macro
87 ptr = malloc(BUFSIZE); in main()
93 result = mlock(ptr, BUFSIZE); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/
D12-1.c28 #define BUFSIZE 8 macro
88 ptr = malloc(BUFSIZE); in main()
94 result = mlock(ptr, BUFSIZE); in main()
/external/selinux/policycoreutils/sestatus/
Dsestatus.c31 #define BUFSIZE 255 macro
41 char buf[BUFSIZE]; in cmp_cmdline()
42 char filename[BUFSIZE]; in cmp_cmdline()
44 memset(buf, '\0', BUFSIZE); in cmp_cmdline()
49 if (readlink(filename, buf, BUFSIZE) < 0) in cmp_cmdline()
52 if (buf[BUFSIZE - 1] != '\0') in cmp_cmdline()
53 buf[BUFSIZE - 1] = '\0'; in cmp_cmdline()
/external/python/cpython2/Tools/scripts/
Dtreesync.py155 BUFSIZE = 16*1024 variable
159 sd = sf.read(BUFSIZE)
160 md = mf.read(BUFSIZE)
171 buf = f.read(BUFSIZE)
184 buf = f.read(BUFSIZE)
/external/ImageMagick/Magick++/fuzz/
Dmain.cc2 #define BUFSIZE 4096 macro
78 fullPath[BUFSIZE], in wmain()
82 GetFullPathName(argv[0], BUFSIZE, fullPath, lppPart); in wmain()
/external/ltp/testcases/kernel/syscalls/getdents/
Dgetdents01.c81 #define BUFSIZE 512 macro
94 buf = malloc(BUFSIZE); in main()
113 rval = getdents64(fd, dirp64, BUFSIZE); in main()
115 rval = getdents(fd, dirp, BUFSIZE); in main()
/external/python/cpython2/Lib/multiprocessing/
Dconnection.py55 BUFSIZE = 8192 variable
213 obsize, ibsize = BUFSIZE, BUFSIZE
217 obsize, ibsize = 0, BUFSIZE
341 win32.PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE,
359 win32.PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE,
/external/clang/test/Lexer/
Ddigraph.c6 %:ifndef BUFSIZE
7 %:define BUFSIZE 512 macro
/external/ltp/testcases/kernel/controllers/io-throttle/
Drun_io_throttle_test.sh27 BUFSIZE=16m
37 phys_bw=`./iobw -direct 1 $BUFSIZE $DATASIZE | grep TOTAL | awk '{print $7}'`
96 ./iobw -direct $tasks $BUFSIZE $DATASIZE > /tmp/$MYGROUP.out &
/external/llvm-project/clang/test/Lexer/
Ddigraph.c13 %:ifndef BUFSIZE
14 %:define BUFSIZE 512 macro
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DClassParser.java61 private static final int BUFSIZE = 8192; field in ClassParser
78 … this.dataInputStream = new DataInputStream(new BufferedInputStream(inputStream, BUFSIZE)); in ClassParser()
131 BUFSIZE)); in parse()
134 file_name), BUFSIZE)); in parse()
/external/python/cpython3/Lib/test/libregrtest/
Dwin_utils.py13 BUFSIZE = 8192 variable
54 1, BUFSIZE, BUFSIZE, _winapi.NMPWAIT_WAIT_FOREVER, _winapi.NULL
121 overlapped, _ = _winapi.ReadFile(self.pipe, BUFSIZE, True)

1234