HomeSort by relevance Sort by last modified time
    Searched refs:read_buf (Results 1 - 25 of 107) sorted by null

1 2 3 4 5

  /external/syslinux/core/legacynet/
idle.c 25 static __lowmem t_PXENV_UDP_READ read_buf; local
27 memset(&read_buf, 0, sizeof read_buf);
29 read_buf.src_ip = 0; /* Any destination */
30 read_buf.dest_ip = IPInfo.myip;
31 read_buf.s_port = 0; /* Any source port */
32 read_buf.d_port = htons(9); /* Discard port (not used...) */
33 read_buf.buffer_size = sizeof junk_pkt;
34 read_buf.buffer = FAR_PTR(junk_pkt);
36 pxe_call(PXENV_UDP_READ, &read_buf);
    [all...]
  /external/ltp/testcases/kernel/syscalls/llseek/
llseek03.c 107 static char read_buf[BUFSIZ]; local
113 SAFE_READ(cleanup, 1, fd, read_buf, 4);
127 memset(read_buf, 0, sizeof(read_buf));
130 SAFE_READ(cleanup, 1, fd, read_buf, 3);
132 if (strcmp(read_buf, "fgh"))
146 static char read_buf[BUFSIZ]; local
163 memset(read_buf, 0, sizeof(read_buf));
165 nread = SAFE_READ(cleanup, 0, fd, read_buf, file_size)
    [all...]
  /external/ltp/testcases/kernel/syscalls/lseek/
lseek09.c 97 char read_buf[BUFSIZ]; /* data read from temp. file */ local
133 memset(read_buf, 0, sizeof(read_buf));
134 if (read(fildes, &read_buf, (file_size - 3)) < 0) {
144 if (strcmp(read_buf, "defg")) {
lseek06.c 95 char read_buf[1]; /* data read from temp. file */ local
130 if (read(fildes, &read_buf, sizeof(read_buf)) < 0) {
138 if (read_buf[0] != 'e') {
lseek08.c 95 char read_buf[1]; /* data read from temp. file */ local
131 read_buf[0] = '\0';
132 if (read(fildes, &read_buf, sizeof(read_buf)) > 0) {
lseek07.c 98 char read_buf[BUFSIZ]; /* data read from temp. file */ local
164 if (read(fildes, &read_buf, (offset +
173 if ((strncmp(read_buf, write_buf1,
179 if ((strncmp(&read_buf[offset], write_buf2,
  /external/ltp/testcases/kernel/syscalls/pread/
pread03.c 90 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
117 TEST(pread(fd1, read_buf[0], nbytes, offset));
187 read_buf[count] = malloc(K1);
189 if (read_buf[count] == NULL) {
208 free(read_buf[count]);
pread01.c 92 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
117 nread = pread(fildes, read_buf[2], K1, K2);
135 nread = pread(fildes, read_buf[3], K1, K3);
149 if ((nread = read(fildes, read_buf[0], K1)) != K1) {
158 nread = pread(fildes, read_buf[1], K1, K1);
254 * init_buffers - allocates both write_buf and read_buf arrays.
268 read_buf[count] = malloc(K1);
270 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) {
312 if (memcmp(write_buf[count], read_buf[count], K1) != 0) {
339 free(read_buf[count])
    [all...]
pread02.c 84 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
145 TEST(pread(fildes, read_buf[0], nbytes, offset));
264 read_buf[count] = malloc(K1);
266 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) {
289 free(read_buf[count]);
  /external/libese/third_party/NXPNFC_P61_JCOP_Kit/src/
Ala.cpp 1074 UINT8 read_buf[1024]; local
    [all...]
  /external/ltp/testcases/kernel/syscalls/msync/
msync01.c 92 char read_buf[BUF_SIZE]; /* buffer to hold data read from file */ local
119 nread = read(fildes, read_buf, sizeof(read_buf));
129 if (read_buf[count] != 1)
  /external/ltp/testcases/kernel/syscalls/pwrite/
pwrite01.c 272 char *read_buf; /* buffer to hold read data */ local
275 read_buf = malloc(K1);
276 if (read_buf == NULL) {
291 nread = read(fildes, read_buf, K1);
298 if (memcmp(write_buf[count], read_buf, K1) != 0) {
310 free(read_buf);
  /external/ltp/testcases/kernel/syscalls/poll/
poll01.c 68 char read_buf[BUF_SIZE]; local
92 SAFE_READ(cleanup, 1, fildes[0], read_buf, sizeof(write_buf));
  /system/extras/tests/directiotest/
directiotest.c 176 void *read_buf = NULL, *write_buf = NULL; local
212 read_buf = pagealign_alloc(test_size);
214 if (!read_buf || !write_buf) {
246 if (do_read(fd, read_buf, cur_blk * blk_size, test_size) !=
252 if (memcmp(write_buf, read_buf, test_size)) {
258 dump_hex(read_buf, test_size);
267 if (read_buf)
268 pagealign_free(read_buf, test_size);
  /hardware/interfaces/bluetooth/1.0/default/test/
async_fd_watcher_unittest.cc 285 char read_buf[1] = {0};
286 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf)));
287 ASSERT_TRUE(n == sizeof(read_buf));
288 ASSERT_TRUE(read_buf[0] == '1');
293 char read_buf[1] = {0};
294 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf)));
295 ASSERT_TRUE(n == sizeof(read_buf));
296 ASSERT_TRUE(read_buf[0] == '2')
    [all...]
  /external/ltp/testcases/kernel/syscalls/epoll_wait/
epoll_wait01.c 120 char read_buf[write_size]; local
122 SAFE_READ(cleanup, 1, fds[0], read_buf, sizeof(read_buf));
162 char read_buf[sizeof(write_buf)]; local
196 SAFE_READ(cleanup, 1, fds[0], read_buf, sizeof(write_buf));
202 char read_buf[sizeof(write_buf)]; local
236 SAFE_READ(cleanup, 1, fds[0], read_buf, sizeof(write_buf));
  /system/extras/simpleperf/
UnixSocket_test.cpp 57 std::vector<char> read_buf; local
59 while (read_buf.size() < size) {
62 n = std::min(n, size - read_buf.size());
63 read_buf.insert(read_buf.end(), p, p + n);
68 Message* msg = reinterpret_cast<Message*>(read_buf.data());
71 msg = reinterpret_cast<Message*>(read_buf.data());
  /external/libmojo/mojo/edk/embedder/
platform_channel_pair_posix_unittest.cc 189 char read_buf[kNumHandlesToSend]; local
190 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get());
192 EXPECT_EQ(std::string(j + 1, c), std::string(read_buf, bytes_read));
252 char read_buf[100]; local
253 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get());
255 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read));
  /external/libese/third_party/NXPNFC_P61_JCOP_Kit/inc/
Ala.h 222 tJBL_STATUS Check_Certificate_Tag(UINT8 *read_buf, UINT16 *offset1);
224 tJBL_STATUS Check_SerialNo_Tag(UINT8 *read_buf, UINT16 *offset1);
226 tJBL_STATUS Check_LSRootID_Tag(UINT8 *read_buf, UINT16 *offset1);
228 tJBL_STATUS Check_CertHoldID_Tag(UINT8 *read_buf, UINT16 *offset1);
230 tJBL_STATUS Check_Date_Tag(UINT8 *read_buf, UINT16 *offset1);
232 tJBL_STATUS Check_45_Tag(UINT8 *read_buf, UINT16 *offset1, UINT8 *tag45Len);
235 *pTranscv_Info, UINT8 *read_buf, UINT16 *offset1, UINT8 *tag45Len);
238 Ala_TranscieveInfo_t *pTranscv_Info, UINT8 *read_buf, UINT16 *offset);
271 tJBL_STATUS ALA_ReadScript(Ala_ImageInfo_t *Os_info, UINT8 *read_buf);
281 UINT8 Numof_lengthbytes(UINT8 *read_buf, INT32 *wLen)
    [all...]
  /system/core/trusty/storage/proxy/
rpmb.c 53 static uint8_t read_buf[4096]; variable
147 req->read_size > sizeof(read_buf)) {
158 mmc_ioc_cmd_set_data((*cmd), read_buf);
174 print_buf("response: ", read_buf, req->read_size);
185 return ipc_respond(msg, read_buf, req->read_size);
  /external/ltp/testcases/kernel/syscalls/epoll_ctl/
epoll_ctl01.c 90 char read_buf[sizeof(write_buf)]; local
130 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf));
  /hardware/qcom/audio/legacy/alsa_sound/
AudioUsbALSA.cpp 100 char *read_buf, *str_start, *channel_start, *ratesStr, *ratesStrForVal, local
120 read_buf = (char *)malloc(BUFFSIZE);
121 memset(read_buf, 0x0, BUFFSIZE);
122 err = read(fd, read_buf, BUFFSIZE);
123 str_start = strstr(read_buf, type);
127 free(read_buf);
135 free(read_buf);
142 free(read_buf);
157 free(read_buf);
165 free(read_buf);
    [all...]
  /external/ltp/testcases/kernel/syscalls/open/
open12.c 144 char read_buf; local
171 SAFE_READ(cleanup, 1, TEST_RETURN, &read_buf, 1);
  /external/libchrome/sandbox/linux/seccomp-bpf-helpers/
baseline_policy_unittest.cc 65 char read_buf[kTestTransferSize + 1] = {0}; local
66 transfered = HANDLE_EINTR(read(read_end.get(), read_buf, sizeof(read_buf)));
68 BPF_ASSERT_EQ(0, memcmp(kTestString, read_buf, kTestTransferSize));
  /hardware/qcom/audio/hal/audio_extn/
usb.c 287 char *read_buf = NULL; local
326 read_buf = (char *)calloc(1, USB_BUFF_SIZE + 1);
328 if (!read_buf) {
329 ALOGE("Failed to create read_buf");
334 if(read(fd, read_buf, USB_BUFF_SIZE) < 0) {
338 str_start = strstr(read_buf, ((type == USB_PLAYBACK) ?
347 str_end = strstr(read_buf, ((type == USB_PLAYBACK) ?
453 if (read_buf) free(read_buf);
    [all...]

Completed in 751 milliseconds

1 2 3 4 5