Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/external/ltp/testcases/kernel/syscalls/statx/
Dstatx01.c58 struct statx buff; in test_normal_file() local
60 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff)); in test_normal_file()
68 if (geteuid() == buff.stx_uid) in test_normal_file()
69 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file()
72 buff.stx_uid, geteuid()); in test_normal_file()
74 if (getegid() == buff.stx_gid) in test_normal_file()
75 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file()
78 buff.stx_gid, getegid()); in test_normal_file()
80 if (buff.stx_size == SIZE) in test_normal_file()
82 "stx_size(%"PRIu64") is correct", buff.stx_size); in test_normal_file()
[all …]
/external/lua/src/
Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) argument
31 #define luaZ_buffer(buff) ((buff)->buffer) argument
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) argument
33 #define luaZ_bufflen(buff) ((buff)->n) argument
35 #define luaZ_buffremove(buff,i) ((buff)->n -= (i)) argument
36 #define luaZ_resetbuffer(buff) ((buff)->n = 0) argument
39 #define luaZ_resizebuffer(L, buff, size) \ argument
40 ((buff)->buffer = luaM_reallocvchar(L, (buff)->buffer, \
41 (buff)->buffsize, size), \
42 (buff)->buffsize = size)
[all …]
Dlobject.c259 char buff[L_MAXLENNUM + 1]; in l_str2d() local
263 strcpy(buff, s); /* copy string to buffer */ in l_str2d()
264 buff[pdot - s] = lua_getlocaledecpoint(); /* correct decimal point */ in l_str2d()
265 endptr = l_str2dloc(buff, result, mode); /* try again */ in l_str2d()
267 endptr = s + (endptr - buff); /* make relative to 's' */ in l_str2d()
323 int luaO_utf8esc (char *buff, unsigned long x) { in luaO_utf8esc() argument
327 buff[UTF8BUFFSZ - 1] = cast_char(x); in luaO_utf8esc()
331 buff[UTF8BUFFSZ - (n++)] = cast_char(0x80 | (x & 0x3f)); in luaO_utf8esc()
335 buff[UTF8BUFFSZ - n] = cast_char((~mfb << 1) | x); /* add first byte */ in luaO_utf8esc()
355 static int tostringbuff (TValue *obj, char *buff) { in tostringbuff() argument
[all …]
/external/tagsoup/src/org/ccil/cowan/tagsoup/
DPYXScanner.java35 char[] buff = null; in scan() local
39 if (buff == null || buff.length < size) { in scan()
40 buff = new char[size]; in scan()
42 s.getChars(0, size, buff, 0); in scan()
43 switch (buff[0]) { in scan()
46 h.stagc(buff, 0, 0); in scan()
49 h.gi(buff, 1, size - 1); in scan()
54 h.stagc(buff, 0, 0); in scan()
57 h.etag(buff, 1, size - 1); in scan()
61 h.stagc(buff, 0, 0); in scan()
[all …]
DPYXWriter.java37 public void adup(char[] buff, int offset, int length) throws SAXException { in adup() argument
42 public void aname(char[] buff, int offset, int length) throws SAXException { in aname() argument
44 theWriter.write(buff, offset, length); in aname()
46 attrName = new String(buff, offset, length); in aname()
49 public void aval(char[] buff, int offset, int length) throws SAXException { in aval() argument
50 theWriter.write(buff, offset, length); in aval()
55 public void cmnt(char [] buff, int offset, int length) throws SAXException { in cmnt() argument
61 public void entity(char[] buff, int offset, int length) throws SAXException { } in entity() argument
65 public void eof(char[] buff, int offset, int length) throws SAXException { in eof() argument
69 public void etag(char[] buff, int offset, int length) throws SAXException { in etag() argument
[all …]
DScanHandler.java29 public void adup(char[] buff, int offset, int length) throws SAXException; in adup() argument
35 public void aname(char[] buff, int offset, int length) throws SAXException; in aname() argument
41 public void aval(char[] buff, int offset, int length) throws SAXException; in aval() argument
46 public void cdsect(char[] buff, int offset, int length) throws SAXException; in cdsect() argument
52 public void decl(char[] buff, int offset, int length) throws SAXException; in decl() argument
58 public void entity(char[] buff, int offset, int length) throws SAXException; in entity() argument
64 public void eof(char[] buff, int offset, int length) throws SAXException; in eof() argument
70 public void etag(char[] buff, int offset, int length) throws SAXException; in etag() argument
76 public void gi(char[] buff, int offset, int length) throws SAXException; in gi() argument
82 public void pcdata(char[] buff, int offset, int length) throws SAXException; in pcdata() argument
[all …]
/external/webrtc/media/engine/
Dunhandled_packets_buffer_unittest.cc34 UnhandledPacketsBuffer buff; in TEST() local
35 buff.AddPacket(2, kPacketTimeUs, Create(3)); in TEST()
39 buff.BackfillPackets(ssrcs, [&packets](uint32_t ssrc, int64_t packet_time_us, in TEST()
47 UnhandledPacketsBuffer buff; in TEST() local
48 buff.AddPacket(2, kPacketTimeUs, Create(3)); in TEST()
52 buff.BackfillPackets(ssrcs, [&packets](uint32_t ssrc, int64_t packet_time_us, in TEST()
61 UnhandledPacketsBuffer buff; in TEST() local
62 buff.AddPacket(2, kPacketTimeUs, Create(3)); in TEST()
63 buff.AddPacket(3, kPacketTimeUs, Create(4)); in TEST()
67 buff.BackfillPackets(ssrcs, [&packets](uint32_t ssrc, int64_t packet_time_us, in TEST()
[all …]
/external/llvm-project/llvm/test/Transforms/LoadStoreVectorizer/X86/
Dpreserve-order64.ll10 ; (load into buff.val and store to buff.p) preserve their order.
17 ; CHECK: %buff.val = load i8
19 define void @preserve_order_64(%struct.buffer_t* noalias %buff) #0 {
21 %tmp1 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i64 0, i32 1
22 %buff.p = load i8*, i8** %tmp1
23 %buff.val = load i8, i8* %buff.p
24 store i8 0, i8* %buff.p, align 8
25 %tmp0 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i64 0, i32 0
26 %buff.int = load i64, i64* %tmp0, align 16
34 ; CHECK: %buff.val = load i8
[all …]
/external/llvm/test/Transforms/LoadStoreVectorizer/X86/
Dpreserve-order64.ll9 ; (load into buff.val and store to buff.p) preserve their order.
16 ; CHECK: %buff.val = load i8
18 define void @preserve_order_64(%struct.buffer_t* noalias %buff) #0 {
20 %tmp1 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i64 0, i32 1
21 %buff.p = load i8*, i8** %tmp1, align 8
22 %buff.val = load i8, i8* %buff.p, align 8
23 store i8 0, i8* %buff.p, align 8
24 %tmp0 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i64 0, i32 0
25 %buff.int = load i64, i64* %tmp0, align 8
33 ; CHECK: %buff.val = load i8
[all …]
Dpreserve-order32.ll8 ; (load into buff.val and store to buff.p) preserve their order.
15 ; CHECK: %buff.val = load i8
17 define void @preserve_order_32(%struct.buffer_t* noalias %buff) #0 {
19 %tmp1 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i32 0, i32 1
20 %buff.p = load i8*, i8** %tmp1, align 8
21 %buff.val = load i8, i8* %buff.p, align 8
22 store i8 0, i8* %buff.p, align 8
23 %tmp0 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i32 0, i32 0
24 %buff.int = load i32, i32* %tmp0, align 8
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_printf.cc33 static int AppendChar(char **buff, const char *buff_end, char c) { in AppendChar() argument
34 if (*buff < buff_end) { in AppendChar()
35 **buff = c; in AppendChar()
36 (*buff)++; in AppendChar()
44 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value, in AppendNumber() argument
56 result += AppendChar(buff, buff_end, '-'); in AppendNumber()
74 result += AppendChar(buff, buff_end, c); in AppendNumber()
76 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-'); in AppendNumber()
79 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit in AppendNumber()
85 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, u8 base, in AppendUnsigned() argument
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_printf.cpp30 static int AppendChar(char **buff, const char *buff_end, char c) { in AppendChar() argument
31 if (*buff < buff_end) { in AppendChar()
32 **buff = c; in AppendChar()
33 (*buff)++; in AppendChar()
41 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value, in AppendNumber() argument
53 result += AppendChar(buff, buff_end, '-'); in AppendNumber()
71 result += AppendChar(buff, buff_end, c); in AppendNumber()
73 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-'); in AppendNumber()
77 result += AppendChar(buff, buff_end, digit); in AppendNumber()
82 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, u8 base, in AppendUnsigned() argument
[all …]
Dsanitizer_file.cpp104 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
106 *buff = nullptr; in ReadFileToBuffer()
116 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
117 *buff = (char*)MmapOrDie(size, __func__); in ReadFileToBuffer()
121 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
129 if (!ReadFromFile(fd, *buff + *read_len, size - *read_len, &just_read, in ReadFileToBuffer()
131 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
149 InternalMmapVectorNoCtor<char> *buff, uptr max_len, in ReadFileToVector() argument
151 buff->clear(); in ReadFileToVector()
160 if (read_len >= buff->size()) in ReadFileToVector()
[all …]
/external/ltp/testcases/kernel/io/disktest/
Ddump.c42 char buff[10]; in format_str() local
56 sprintf(buff, "%08lX", (long)TotalBytes); in format_str()
57 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
63 sprintf(buff, "%02X ", *(ibuff + i)); in format_str()
64 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
75 sprintf(buff, "%c", in format_str()
77 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
86 char buff[10]; in format_raw() local
99 sprintf(buff, "%08lX ", (long)TotalBytes); in format_raw()
100 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_raw()
[all …]
/external/f2fs-tools/tools/sg_write_buffer/
Dsg_lib.c153 char buff[CMD_NAME_LEN]; in sg_print_command() local
155 sg_get_command_name(command, 0, CMD_NAME_LEN, buff); in sg_print_command()
156 buff[CMD_NAME_LEN - 1] = '\0'; in sg_print_command()
158 pr2ws("%s [", buff); in sg_print_command()
169 sg_get_scsi_status_str(int scsi_status, int buff_len, char * buff) in sg_get_scsi_status_str() argument
174 if ((NULL == buff) || (buff_len < 1)) in sg_get_scsi_status_str()
177 buff[0] = '\0'; in sg_get_scsi_status_str()
198 scnpr(buff, buff_len, "Unknown status [0x%x]", scsi_status); in sg_get_scsi_status_str()
200 scnpr(buff, buff_len, "%s", ccp); in sg_get_scsi_status_str()
206 char buff[128]; in sg_print_scsi_status() local
[all …]
/external/deqp-deps/glslang/Test/
D310.inheritMemory.frag5 float buff[10];
14 float buff[10];
18 void non_ro_fun(float[10] buff) { }
28 non_ro_fun(s.buff);
29 non_ro_funf(s.buff[3]);
32 non_ro_fun(non_ro_buffer.buff);
33 non_ro_fun(non_ro_buffer.s.buff);
34 non_ro_funf(non_ro_buffer.buff[3]);
35 non_ro_funf(non_ro_buffer.s.buff[3]);
39 non_ro_fun(ro_buffer.s_ro.buff);
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/
D310.inheritMemory.frag5 float buff[10];
14 float buff[10];
18 void non_ro_fun(float[10] buff) { }
28 non_ro_fun(s.buff);
29 non_ro_funf(s.buff[3]);
32 non_ro_fun(non_ro_buffer.buff);
33 non_ro_fun(non_ro_buffer.s.buff);
34 non_ro_funf(non_ro_buffer.buff[3]);
35 non_ro_funf(non_ro_buffer.s.buff[3]);
39 non_ro_fun(ro_buffer.s_ro.buff);
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/util/
DUriEncoderTest.java32 ByteBuffer buff = ByteBuffer.allocate(10); in testDecode() local
33 buff.put((byte) 0x34); in testDecode()
34 buff.put((byte) 0x35); in testDecode()
35 buff.flip(); in testDecode()
36 assertEquals("45", UriEncoder.decode(buff)); in testDecode()
40 ByteBuffer buff = ByteBuffer.allocate(10); in testFailDecode() local
41 buff.put((byte) 0x34); in testFailDecode()
42 buff.put((byte) 0xC1); in testFailDecode()
43 buff.flip(); in testFailDecode()
45 UriEncoder.decode(buff); in testFailDecode()
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
D310.inheritMemory.frag.out6 0:18 'buff' ( in 10-element array of mediump float)
12 0:20 's' ( in structure{ global 10-element array of mediump float buff})
17 0:28 buff: direct index for structure ( global 10-element array of mediump float)
18 0:28 's' ( temp structure{ global 10-element array of mediump float buff})
23 0:29 buff: direct index for structure ( global 10-element array of mediump float)
24 0:29 's' ( temp structure{ global 10-element array of mediump float buff})
30 0:30 's' ( temp structure{ global 10-element array of mediump float buff})
32 0:32 buff: direct index for structure (layout( column_major std430 offset=0) buffer 10-eleme…
33 … mediump float buff, layout( column_major std430 offset=40) buffer structure{layout( std430) globa…
37 0:33 buff: direct index for structure (layout( std430) global 10-element array of mediump fl…
[all …]
/external/deqp-deps/glslang/Test/baseResults/
D310.inheritMemory.frag.out6 0:18 'buff' ( in 10-element array of mediump float)
12 0:20 's' ( in structure{ global 10-element array of mediump float buff})
17 0:28 buff: direct index for structure ( global 10-element array of mediump float)
18 0:28 's' ( temp structure{ global 10-element array of mediump float buff})
23 0:29 buff: direct index for structure ( global 10-element array of mediump float)
24 0:29 's' ( temp structure{ global 10-element array of mediump float buff})
30 0:30 's' ( temp structure{ global 10-element array of mediump float buff})
32 0:32 buff: direct index for structure (layout( column_major std430 offset=0) buffer 10-eleme…
33 … mediump float buff, layout( column_major std430 offset=40) buffer structure{layout( std430) globa…
37 0:33 buff: direct index for structure (layout( std430) global 10-element array of mediump fl…
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c16 char buff[128] = {}; in test_tailcall_1() local
56 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
66 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
87 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
112 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
122 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
132 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1()
154 char buff[128] = {}; in test_tailcall_2() local
193 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_2()
203 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_2()
[all …]
/external/ImageMagick/coders/
Dmeta.c1186 *buff, in ReadMETAImage() local
1231 buff=AcquireImage((ImageInfo *) NULL,exception); in ReadMETAImage()
1232 if (buff == (Image *) NULL) in ReadMETAImage()
1237 buff=DestroyImage(buff); in ReadMETAImage()
1241 AttachBlob(buff->blob,blob,length); in ReadMETAImage()
1244 length=(size_t) parse8BIM(image, buff); in ReadMETAImage()
1247 blob=(unsigned char *) DetachBlob(buff->blob); in ReadMETAImage()
1249 buff=DestroyImage(buff); in ReadMETAImage()
1253 (void) WriteBlobByte(buff,0x0); in ReadMETAImage()
1257 length=(size_t) parse8BIMW(image, buff); in ReadMETAImage()
[all …]
/external/python/cpython2/Python/
Ddynload_beos.c190 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
197 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
201 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
205 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
218 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
226 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
231 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
236 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
244 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/
Dwcrtomb.c12 char buff[10]; in main() local
13 size_t res = wcrtomb(buff, L'a', &state); in main()
15 assert(buff[0] == 'a'); in main()
17 res = wcrtomb(buff, L'\0', &state); in main()
19 assert(buff[0] == '\0'); in main()
24 res = wcrtomb(buff, L'a', NULL); in main()
26 assert(buff[0] == 'a'); in main()
28 res = wcrtomb(buff, L'\0', NULL); in main()
30 assert(buff[0] == '\0'); in main()
/external/webrtc/modules/audio_processing/test/
Dfake_recording_device_unittest.cc37 ChannelBuffer<float>* buff) { in WritesDataIntoChannelBuffer() argument
38 EXPECT_EQ(data.size(), buff->num_channels()); in WritesDataIntoChannelBuffer()
39 EXPECT_EQ(data[0].size(), buff->num_frames()); in WritesDataIntoChannelBuffer()
40 for (size_t c = 0; c < buff->num_channels(); ++c) { in WritesDataIntoChannelBuffer()
41 for (size_t f = 0; f < buff->num_frames(); ++f) { in WritesDataIntoChannelBuffer()
42 buff->channels()[c][f] = data[c][f]; in WritesDataIntoChannelBuffer()
49 auto buff = in CreateChannelBufferWithData() local
51 WritesDataIntoChannelBuffer(data, buff.get()); in CreateChannelBufferWithData()
52 return buff; in CreateChannelBufferWithData()
119 auto buff = CreateChannelBufferWithData(kTestMultiChannelSamples); in TEST() local
[all …]

12345678910>>...18