Home
last modified time | relevance | path

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

/external/ltp/include/
Dtst_safe_prw.h22 char len_strict, int fildes, void *buf, size_t nbyte, in safe_pread() argument
27 rval = pread(fildes, buf, nbyte, offset); in safe_pread()
29 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread()
32 fildes, buf, nbyte, (long long)offset); in safe_pread()
37 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \ argument
39 (buf), (nbyte), (offset))
42 char len_strict, int fildes, const void *buf, size_t nbyte, in safe_pwrite() argument
47 rval = pwrite(fildes, buf, nbyte, offset); in safe_pwrite()
48 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pwrite()
51 fildes, buf, nbyte, (long long)offset); in safe_pwrite()
[all …]
Dsafe_macros_fn.h72 void *buf, size_t nbyte);
115 const void *buf, size_t nbyte);
Dtst_safe_macros.h102 #define SAFE_READ(len_strict, fildes, buf, nbyte) \ argument
103 safe_read(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
161 #define SAFE_WRITE(len_strict, fildes, buf, nbyte) \ argument
162 safe_write(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
/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/u-boot/drivers/spi/
Dsh_qspi.c205 u32 nbyte, chunk; in spi_xfer() local
222 nbyte = bitlen / 8; in spi_xfer()
232 writel(nbyte, spbmul0); in spi_xfer()
240 while (nbyte > 0) { in spi_xfer()
245 chunk = (nbyte >= 32) ? 32 : 1; in spi_xfer()
272 nbyte -= chunk; in spi_xfer()
/external/libxaac/decoder/
Dixheaacd_drc_freq_dec.c575 WORD32 ich, nbyte = 0; in ixheaacd_drc_excluded_channels() local
586 nbyte++; in ixheaacd_drc_excluded_channels()
595 nbyte++; in ixheaacd_drc_excluded_channels()
599 return nbyte; in ixheaacd_drc_excluded_channels()
604 WORD32 ich, idrc, nbyte = 1; in ixheaacd_drc_element_read() local
618 nbyte++; in ixheaacd_drc_element_read()
627 nbyte += ixheaacd_drc_excluded_channels(bs, MAX_AUDIO_CHANNELS, in ixheaacd_drc_element_read()
635 nbyte++; in ixheaacd_drc_element_read()
640 nbyte++; in ixheaacd_drc_element_read()
652 nbyte++; in ixheaacd_drc_element_read()
[all …]
/external/syzkaller/vendor/golang.org/x/text/unicode/norm/
Dcomposition.go101 nbyte uint8 // Number or bytes. member
136 rb.nbyte = 0
198 pos := uint8(rb.nbyte)
199 rb.nbyte += utf8.UTFMax
259 i += copy(rb.byte[rb.nbyte:], dcomp[i:i+int(info.size)])
268 src.copySlice(rb.byte[rb.nbyte:], i, i+int(info.size))
279 bn := rb.nbyte
281 rb.nbyte += utf8.UTFMax
/external/u-boot/fs/yaffs2/
Dyaffsfs.c1065 int yaffsfs_do_read(int handle, void *vbuf, unsigned int nbyte, in yaffsfs_do_read() argument
1096 } else if (nbyte > YAFFS_MAX_FILE_SIZE) { in yaffsfs_do_read()
1112 if (nbyte > maxRead) in yaffsfs_do_read()
1113 nbyte = maxRead; in yaffsfs_do_read()
1117 endPos = pos + nbyte; in yaffsfs_do_read()
1120 nbyte > YAFFS_MAX_FILE_SIZE || in yaffsfs_do_read()
1123 nbyte = 0; in yaffsfs_do_read()
1126 while (nbyte > 0) { in yaffsfs_do_read()
1129 if (nToRead > nbyte) in yaffsfs_do_read()
1130 nToRead = nbyte; in yaffsfs_do_read()
[all …]
Dyaffsfs.h90 int yaffs_read(int fd, void *buf, unsigned int nbyte) ;
91 int yaffs_write(int fd, const void *buf, unsigned int nbyte) ;
93 int yaffs_pread(int fd, void *buf, unsigned int nbyte, loff_t offset);
94 int yaffs_pwrite(int fd, const void *buf, unsigned int nbyte, loff_t offset);
/external/libxcam/tests/
Dtest-poll-thread.cpp82 size_t dump_to_file(const void *buf, size_t nbyte);
130 PollCB::dump_to_file (const void *buf, size_t nbyte) in dump_to_file() argument
134 return fwrite(buf, nbyte, 1, _file); in dump_to_file()
/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/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/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/ltp/lib/
Dsafe_macros.c247 char len_strict, int fildes, void *buf, size_t nbyte) in safe_read() argument
251 rval = read(fildes, buf, nbyte); in safe_read()
252 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_read()
255 file, lineno, fildes, buf, nbyte, rval); in safe_read()
444 char len_strict, int fildes, const void *buf, size_t nbyte) in safe_write() argument
448 rval = write(fildes, buf, nbyte); in safe_write()
449 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_write()
/external/ltp/include/old/
Dsafe_macros.h69 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
71 (buf), (nbyte))
107 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
109 (buf), (nbyte))
/external/iproute2/etc/iproute2/
Dematch_map3 2 nbyte
/external/libnl/include/
DMakefile.am38 netlink/route/cls/ematch/nbyte.h \
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def1001 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
1022 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
1029 /// ssize_t read(int fildes, void *buf, size_t nbyte);
1318 /// 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/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 …]