Home
last modified time | relevance | path

Searched refs:buff (Results 126 - 150 of 953) sorted by relevance

12345678910>>...39

/test/xts/hats/kernel/syscalls/fileio/getcwd/
H A DGetcwdApiTest.cpp62 char buff[BUFFER_SIZE] = {0}; in HWTEST_F() local
63 char* path = getcwd(buff, sizeof(buff)); in HWTEST_F()
65 EXPECT_EQ(strlen(path), strlen(buff)); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dsetvbuf.c26 char buff[1024] = {0}; in setvbuf_0100() local
32 int result = setvbuf(fptr, buff, _IOFBF, 1024); in setvbuf_0100()
46 char buff[1024] = {0}; in setvbuf_0200() local
52 int result = setvbuf(fptr, buff, -1, 1024); in setvbuf_0200()
H A Dfgetpos.c32 char buff[] = "hello world"; in fgetpos_0100() local
38 fputs(buff, fp); in fgetpos_0100()
56 char buff[] = "hello world"; in fgetpos_0200() local
62 fputs(buff, fptr); in fgetpos_0200()
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/stream/
H A DFileInputStream.cpp22 int32_t FileInputStream::read(void *buff, int32_t numBytes) { in read() argument
23 return ::read(mFH, buff, numBytes); in read()
26 int32_t FileInputStream::peek(void *buff, int32_t numBytes) { in peek() argument
27 int32_t numRead = ::read(mFH, buff, numBytes); in peek()
H A DMemInputStream.h29 MemInputStream(unsigned char *buff, int32_t len) : mBuffer(buff), mBufferLen(len), mPos(0) {} in MemInputStream() argument
32 virtual int32_t read(void *buff, int32_t numBytes);
34 virtual int32_t peek(void *buff, int32_t numBytes);
H A DMemInputStream.cpp23 int32_t MemInputStream::read(void *buff, int32_t numBytes) { in read() argument
27 peek(buff, numBytes); in read()
32 int32_t MemInputStream::peek(void *buff, int32_t numBytes) { in peek() argument
35 memcpy(buff, mBuffer + mPos, numBytes); in peek()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
H A Dmlme_linux.c144 u8 *buff, *p, i; in rtw_report_sec_ie() local
149 buff = NULL; in rtw_report_sec_ie()
153 buff = rtw_zmalloc(IW_CUSTOM_MAX); in rtw_report_sec_ie()
154 if (NULL == buff) { in rtw_report_sec_ie()
159 p = buff; in rtw_report_sec_ie()
174 wrqu.data.length = p - buff; in rtw_report_sec_ie()
178 kfree(buff); in rtw_report_sec_ie()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_batch_ops.c27 char buff[16] = { 0 }; in map_batch_update() local
35 snprintf(buff, 16, "192.168.1.%d", i + 1); in map_batch_update()
36 inet_pton(AF_INET, buff, &keys[i].ipv4); in map_batch_update()
47 char buff[16] = { 0 }; in map_batch_verify() local
53 inet_ntop(AF_INET, &keys[i].ipv4, buff, 32); in map_batch_verify()
54 CHECK(sscanf(buff, "192.168.1.%d", &lower_byte) == EOF, in map_batch_verify()
57 "error: i %d key %s value %d\n", i, buff, values[i]); in map_batch_verify()
/third_party/ffmpeg/libavformat/
H A Drtpenc_aac.c27 void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size) in ff_rtp_send_aac() argument
38 buff += 7; in ff_rtp_send_aac()
69 memcpy(s->buf_ptr, buff, size); in ff_rtp_send_aac()
80 memcpy(p + 4, buff, len); in ff_rtp_send_aac()
83 buff += len; in ff_rtp_send_aac()
H A Drtpenc_latm.c25 void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size) in ff_rtp_send_latm() argument
39 buff += 7; in ff_rtp_send_latm()
54 memcpy(s->buf + header_size, buff, len); in ff_rtp_send_latm()
57 ff_rtp_send_data(s1, buff + offset, len, !size); in ff_rtp_send_latm()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
H A Dcpuset_list_compute.c66 char buff[MAX_STRING_SIZE]; in main() local
86 bitmask_displaylist(buff, MAX_STRING_SIZE, mask1); in main()
87 printf("%s\n", buff); in main()
99 bitmask_displaylist(buff, MAX_STRING_SIZE, mask3); in main()
100 printf("%s\n", buff); in main()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg02.c28 static unsigned char buff[25]; variable
29 static const int bufflen = ARRAY_SIZE(buff);
43 .iov_base = buff, in verify_recvmsg()
44 .iov_len = sizeof(buff), in verify_recvmsg()
78 if ((R == bufflen) && !memcmp(msg, buff, R)) in verify_recvmsg()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Dtemplate.hpp93 T* buff; member in Nested
98 T* buff; member in NestedBase
136 T* buff; member in ReplacedWithDestructor
142 T* buff; member in ReplacedWithoutDestructor
166 T* buff; member in ReplacedWithDestructorDeclaredAfter
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dtracelog.c25 char *buff; variable
115 free(buff); in exit_tracelog()
151 ret = getline(&buff, &buff_len, trace_pipe_fd); in do_tracelog()
158 jsonw_string(json_wtr, buff); in do_tracelog()
160 printf("%s", buff); in do_tracelog()
164 free(buff); in do_tracelog()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dtracelog.c25 char *buff; variable
115 free(buff); in exit_tracelog()
151 ret = getline(&buff, &buff_len, trace_pipe_fd); in do_tracelog()
158 jsonw_string(json_wtr, buff); in do_tracelog()
160 printf("%s", buff); in do_tracelog()
164 free(buff); in do_tracelog()
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx06.c101 struct statx buff; in test_statx() local
114 TEST(statx(AT_FDCWD, TEST_FILE, 0, STATX_BASIC_STATS | STATX_BTIME, &buff)); in test_statx()
117 "statx(AT_FDCWD, %s, 0, STATX_BASIC_STATS | STATX_BTIME, &buff)", in test_statx()
123 timestamp_to_timespec(&buff.stx_btime, &statx_time); in test_statx()
126 timestamp_to_timespec(&buff.stx_mtime, &statx_time); in test_statx()
129 timestamp_to_timespec(&buff.stx_atime, &statx_time); in test_statx()
132 timestamp_to_timespec(&buff.stx_ctime, &statx_time); in test_statx()
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dgmtime_r_sup.c495 char buff[gBufferSize]; in gmtime_r_0100() local
496 int cnt = sprintf(buff, in gmtime_r_0100()
510 EXPECT_STREQ("gmtime_r_0100", gResultData[i].result, buff); in gmtime_r_0100()
538 char buff[gBufferSize]; in gmtime64_r_0100() local
539 int cnt = sprintf(buff, in gmtime64_r_0100()
553 EXPECT_STREQ("gmtime64_r_0100", gResultData[i].result, buff); in gmtime64_r_0100()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_tag.c94 char buff[256]; in tag_from_fdinfo() local
98 snprintf(buff, sizeof(buff), "/proc/%d/fdinfo/%d", getpid(), in tag_from_fdinfo()
100 fp = fopen(buff, "r"); in tag_from_fdinfo()
103 while (fgets(buff, sizeof(buff), fp)) { in tag_from_fdinfo()
104 if (strncmp(buff, "prog_tag:\t", prefix_len)) in tag_from_fdinfo()
106 ret = hex2bin(tag, buff + prefix_len, len); in tag_from_fdinfo()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_tag.c94 char buff[256]; in tag_from_fdinfo() local
98 snprintf(buff, sizeof(buff), "/proc/%d/fdinfo/%d", getpid(), in tag_from_fdinfo()
100 fp = fopen(buff, "r"); in tag_from_fdinfo()
103 while (fgets(buff, sizeof(buff), fp)) { in tag_from_fdinfo()
104 if (strncmp(buff, "prog_tag:\t", prefix_len)) in tag_from_fdinfo()
106 ret = hex2bin(tag, buff + prefix_len, len); in tag_from_fdinfo()
/third_party/node/deps/v8/third_party/zlib/contrib/minizip/
H A Dmztools.c18 #define WRITE_8(buff, n) do { \
19 *((unsigned char*)(buff)) = (unsigned char) ((n) & 0xff); \
21 #define WRITE_16(buff, n) do { \
22 WRITE_8((unsigned char*)(buff), n); \
23 WRITE_8(((unsigned char*)(buff)) + 1, (n) >> 8); \
25 #define WRITE_32(buff, n) do { \
26 WRITE_16((unsigned char*)(buff), (n) & 0xffff); \
27 WRITE_16((unsigned char*)(buff) + 2, (n) >> 16); \
/third_party/skia/third_party/externals/zlib/contrib/minizip/
H A Dmztools.c18 #define WRITE_8(buff, n) do { \
19 *((unsigned char*)(buff)) = (unsigned char) ((n) & 0xff); \
21 #define WRITE_16(buff, n) do { \
22 WRITE_8((unsigned char*)(buff), n); \
23 WRITE_8(((unsigned char*)(buff)) + 1, (n) >> 8); \
25 #define WRITE_32(buff, n) do { \
26 WRITE_16((unsigned char*)(buff), (n) & 0xffff); \
27 WRITE_16((unsigned char*)(buff) + 2, (n) >> 16); \
/third_party/zlib/contrib/minizip/
H A Dmztools.c18 #define WRITE_8(buff, n) do { \
19 *((unsigned char*)(buff)) = (unsigned char) ((n) & 0xff); \
21 #define WRITE_16(buff, n) do { \
22 WRITE_8((unsigned char*)(buff), n); \
23 WRITE_8(((unsigned char*)(buff)) + 1, (n) >> 8); \
25 #define WRITE_32(buff, n) do { \
26 WRITE_16((unsigned char*)(buff), (n) & 0xffff); \
27 WRITE_16((unsigned char*)(buff) + 2, (n) >> 16); \
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-tle62x0.c40 unsigned char *buff = st->tx_buff; in tle62x0_write() local
43 buff[0] = CMD_SET; in tle62x0_write()
46 buff[1] = gpio_state >> 8; in tle62x0_write()
47 buff[2] = gpio_state; in tle62x0_write()
49 buff[1] = gpio_state; in tle62x0_write()
52 dev_dbg(&st->us->dev, "buff %3ph\n", buff); in tle62x0_write()
54 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write()
101 unsigned char *buff = st->rx_buff; in tle62x0_status_show() local
116 fault |= ((unsigned long)buff[pt in tle62x0_status_show()
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-tle62x0.c40 unsigned char *buff = st->tx_buff; in tle62x0_write() local
43 buff[0] = CMD_SET; in tle62x0_write()
46 buff[1] = gpio_state >> 8; in tle62x0_write()
47 buff[2] = gpio_state; in tle62x0_write()
49 buff[1] = gpio_state; in tle62x0_write()
52 dev_dbg(&st->us->dev, "buff %3ph\n", buff); in tle62x0_write()
54 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write()
101 unsigned char *buff = st->rx_buff; in tle62x0_status_show() local
116 fault |= ((unsigned long)buff[pt in tle62x0_status_show()
[all...]
/kernel/linux/linux-6.6/kernel/trace/rv/
H A Drv_reactors.c190 char buff[MAX_RV_REACTOR_NAME_SIZE + 2]; in monitor_reactors_write() local
202 memset(buff, 0, sizeof(buff)); in monitor_reactors_write()
204 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in monitor_reactors_write()
208 ptr = strim(buff); in monitor_reactors_write()
378 char *buff; in reacting_on_read_data() local
380 buff = rv_reacting_on() ? "1\n" : "0\n"; in reacting_on_read_data()
382 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) in reacting_on_read_data()
[all...]

Completed in 10 milliseconds

12345678910>>...39