Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 21 of 21) sorted by relevance

/external/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c33 int nbyte; in main() local
99 if ((nbyte = write(s, rbuf, strlen(rbuf))) <= 0) { in main()
106 nbyte, rbuf); in main()
111 while ((nbyte = read(s, rbuf, PATH_MAX)) > 0) { in main()
112 nlen += nbyte; in main()
113 if (write(fd, rbuf, nbyte) != nbyte) { in main()
/external/ltp/lib/
Dsafe_macros.c241 char len_strict, int fildes, void *buf, size_t nbyte) in safe_read() argument
245 rval = read(fildes, buf, nbyte); in safe_read()
246 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_read()
249 file, lineno, fildes, buf, nbyte, rval); in safe_read()
256 char len_strict, int fildes, void *buf, size_t nbyte, in safe_pread() argument
261 rval = pread(fildes, buf, nbyte, offset); in safe_pread()
262 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread()
265 file, lineno, fildes, buf, nbyte, offset, rval); in safe_pread()
447 char len_strict, int fildes, const void *buf, size_t nbyte) in safe_write() argument
451 rval = write(fildes, buf, nbyte); in safe_write()
[all …]
/external/ltp/include/old/
Dsafe_macros.h66 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
68 (buf), (nbyte))
70 #define SAFE_PREAD(cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ argument
72 (buf), (nbyte), (offset))
108 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
110 (buf), (nbyte))
112 #define SAFE_PWRITE(cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ argument
114 (buf), (nbyte), (offset))
/external/ltp/include/
Dtst_safe_macros.h81 #define SAFE_READ(len_strict, fildes, buf, nbyte) \ argument
82 safe_read(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
84 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \ argument
86 (buf), (nbyte), (offset))
138 #define SAFE_WRITE(len_strict, fildes, buf, nbyte) \ argument
139 safe_write(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
141 #define SAFE_PWRITE(len_strict, fildes, buf, nbyte, offset) \ argument
143 (buf), (nbyte), (offset))
Dsafe_macros_fn.h72 void *buf, size_t nbyte);
76 int fildes, void *buf, size_t nbyte, off_t offset);
119 const void *buf, size_t nbyte);
123 const void *buf, size_t nbyte, off_t offset);
/external/fmtlib/test/
Dposix-mock.h72 ssize_t read(int fildes, void *buf, size_t nbyte);
73 ssize_t write(int fildes, const void *buf, size_t nbyte);
Dposix-mock-test.cc158 test::ssize_t test::read(int fildes, void *buf, test::size_t nbyte) { in read() argument
159 read_nbyte = nbyte; in read()
161 return ::FMT_POSIX(read(fildes, buf, nbyte)); in read()
164 test::ssize_t test::write(int fildes, const void *buf, test::size_t nbyte) { in write() argument
165 write_nbyte = nbyte; in write()
167 return ::FMT_POSIX(write(fildes, buf, nbyte)); in write()
/external/libnl/lib/route/cls/ematch/
Dnbyte.c71 static const char *layer_txt(struct tcf_em_nbyte *nbyte) in layer_txt() argument
73 switch (nbyte->layer) { in layer_txt()
/external/ltp/testcases/kernel/syscalls/epoll2/examples/
Depoll-test.c222 int eph_read(struct eph_conn *conn, char *buf, int nbyte) in eph_read() argument
226 while ((n = read(conn->sfd, buf, nbyte)) < 0) { in eph_read()
241 int eph_write(struct eph_conn *conn, char const *buf, int nbyte) in eph_write() argument
245 while ((n = write(conn->sfd, buf, nbyte)) < 0) { in eph_write()
314 static int eph_write_data(struct eph_conn *conn, char const *buf, int nbyte) in eph_write_data() argument
318 for (wbytes = 0; wbytes < nbyte;) { in eph_write_data()
319 if ((wcurr = eph_write(conn, buf + wbytes, nbyte - wbytes)) < 0) in eph_write_data()
/external/libbrillo/brillo/streams/
Dfile_stream.h41 virtual ssize_t Read(void* buf, size_t nbyte) = 0;
42 virtual ssize_t Write(const void* buf, size_t nbyte) = 0;
Dfile_stream.cc41 ssize_t Read(void* buf, size_t nbyte) override { in Read() argument
42 return HANDLE_EINTR(read(fd_, buf, nbyte)); in Read()
45 ssize_t Write(const void* buf, size_t nbyte) override { in Write() argument
46 return HANDLE_EINTR(write(fd_, buf, nbyte)); in Write()
/external/iproute2/etc/iproute2/
Dematch_map3 2 nbyte
/external/fio/os/
Dos-windows.h109 ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
110 ssize_t pwrite(int fildes, const void *buf, size_t nbyte,
/external/fio/os/windows/
Dposix.c686 ssize_t pwrite(int fildes, const void *buf, size_t nbyte, in pwrite() argument
690 ssize_t len = _write(fildes, buf, nbyte); in pwrite()
695 ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset) in pread() argument
698 ssize_t len = read(fildes, buf, nbyte); in pread()
/external/libnl/include/
DMakefile.am38 netlink/route/cls/ematch/nbyte.h \
/external/mmc-utils/
Dmmc_cmds.c1465 #define DO_IO(func, fd, buf, nbyte) \ argument
1469 r = func(fd, buf + ret, nbyte - ret); \
1476 } while (r != 0 && (size_t)ret != nbyte); \
/external/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def807 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
822 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
829 /// ssize_t read(int fildes, void *buf, size_t nbyte);
1115 /// ssize_t write(int fildes, const void *buf, size_t nbyte);
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c5118 static int getnbyte(unsigned char *pnt, int nbyte) in getnbyte() argument
5123 for (i = 0; i < nbyte; i++) in getnbyte()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-solaris.c7050 vki_size_t, nbyte, vki_off_t, offset);
7070 vki_size_t, nbyte, vki_off_t, offset);
/external/valgrind/memcheck/tests/solaris/
Dscalar.stderr.exp2651 Syscall param pread(nbyte) contains uninitialised byte(s)
2670 Syscall param pwrite(nbyte) contains uninitialised byte(s)
/external/v8/tools/profviz/
Dgnuplot-4.6.3-emscripten.js1485 function _pwrite(fildes, buf, nbyte, offset) { argument
1498 } else if (nbyte < 0 || offset < 0) {
1504 for (var i = 0; i < nbyte; i++) {
1510 }function _write(fildes, buf, nbyte) { argument
1515 return _send(fildes, buf, nbyte, 0);
1522 } else if (nbyte < 0) {
1528 for (var i = 0; i < nbyte; i++) {
1543 var bytesWritten = _pwrite(fildes, buf, nbyte, stream.position);
2076 function _pread(fildes, buf, nbyte, offset) { argument
2089 } else if (nbyte < 0 || offset < 0) {
[all …]