Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 - 14 of 14) sorted by relevance

/third_party/ltp/include/
H A Dtst_safe_prw.h9 char len_strict, int fildes, void *buf, size_t nbyte, in safe_pread()
14 rval = pread(fildes, buf, nbyte, offset); in safe_pread()
16 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread()
19 fildes, buf, nbyte, (long long)offset); in safe_pread()
23 fildes, buf, nbyte, (long long)offset, rval); in safe_pread()
28 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \
30 (buf), (nbyte), (offset))
33 char len_strict, int fildes, const void *buf, size_t nbyte, in safe_pwrite()
38 rval = pwrite(fildes, buf, nbyte, offset); in safe_pwrite()
39 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pwrite()
8 safe_pread(const char *file, const int lineno, char len_strict, int fildes, void *buf, size_t nbyte, off_t offset) safe_pread() argument
32 safe_pwrite(const char *file, const int lineno, char len_strict, int fildes, const void *buf, size_t nbyte, off_t offset) safe_pwrite() argument
[all...]
H A Dtst_safe_file_at.h18 #define SAFE_FILE_READAT(dirfd, path, buf, nbyte) \
20 (dirfd), (path), (buf), (nbyte))
46 char *const buf, const size_t nbyte)
H A Dsafe_macros_fn.h84 void *buf, size_t nbyte);
127 int fildes, const void *buf, size_t nbyte);
H A Dtst_safe_macros.h101 #define SAFE_READ(len_strict, fildes, buf, nbyte) \
102 safe_read(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
180 #define SAFE_WRITE(len_strict, fildes, buf, nbyte) \
181 safe_write(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
/third_party/node/deps/openssl/openssl/crypto/pem/
H A Dpvkfmt.c53 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument
55 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn()
58 *in += nbyte; in read_lebn()
251 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length() local
261 return 44 + 3 * nbyte; in ossl_blob_length()
267 return 64 + 2 * nbyte; in ossl_blob_length()
271 return 4 + nbyte; in ossl_blob_length()
277 return 4 + 2 * nbyte + 5 * hnbyte; in ossl_blob_length()
381 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_b2i_DSA_after_header() local
386 if (!read_lebn(&p, nbyte, in ossl_b2i_DSA_after_header()
448 unsigned int nbyte = (bitlen + 7) >> 3; ossl_b2i_RSA_after_header() local
626 int nbyte, hnbyte, bitlen; check_bitlen_rsa() local
666 int nbyte, hnbyte; write_rsa() local
717 int nbyte; write_dsa() local
[all...]
/third_party/openssl/crypto/pem/
H A Dpvkfmt.c53 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument
55 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn()
58 *in += nbyte; in read_lebn()
251 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length() local
261 return 44 + 3 * nbyte; in ossl_blob_length()
267 return 64 + 2 * nbyte; in ossl_blob_length()
271 return 4 + nbyte; in ossl_blob_length()
277 return 4 + 2 * nbyte + 5 * hnbyte; in ossl_blob_length()
381 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_b2i_DSA_after_header() local
386 if (!read_lebn(&p, nbyte, in ossl_b2i_DSA_after_header()
448 unsigned int nbyte = (bitlen + 7) >> 3; ossl_b2i_RSA_after_header() local
626 int nbyte, hnbyte, bitlen; check_bitlen_rsa() local
666 int nbyte, hnbyte; write_rsa() local
717 int nbyte; write_dsa() local
[all...]
/third_party/musl/porting/liteos_a_newlib/kernel/src/
H A Dfs.c47 ssize_t _read(int fd, void *buf, size_t nbyte) in _read() argument
49 return read(fd, buf, nbyte); in _read()
52 ssize_t _write(int fd, const void *buf, size_t nbyte) in _write() argument
54 return write(fd, buf, nbyte); in _write()
94 ssize_t _read(int fd, void *buf, size_t nbyte) in _read() argument
99 ssize_t _write(int fd, const void *buf, size_t nbyte) in _write() argument
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
H A 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()
/third_party/ltp/lib/
H A Dtst_safe_file_at.c62 char *const buf, const size_t nbyte) in safe_file_readat()
70 rval = safe_read(file, lineno, NULL, 0, fd, buf, nbyte - 1); in safe_file_readat()
77 if (rval >= (ssize_t)nbyte - 1) { in safe_file_readat()
80 nbyte, dirfd, tst_decode_fd(dirfd), path); in safe_file_readat()
60 safe_file_readat(const char *const file, const int lineno, const int dirfd, const char *const path, char *const buf, const size_t nbyte) safe_file_readat() argument
H A Dsafe_macros.c290 char len_strict, int fildes, void *buf, size_t nbyte) in safe_read()
294 rval = read(fildes, buf, nbyte); in safe_read()
296 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_read()
299 nbyte, rval); in safe_read()
303 buf, nbyte, rval); in safe_read()
532 size_t nbyte) in safe_write()
536 size_t len = nbyte; in safe_write()
546 nbyte-len, iter); in safe_write()
549 fildes, buf, nbyte); in safe_write()
556 if ((size_t)rval != nbyte) in safe_write()
289 safe_read(const char *file, const int lineno, void (*cleanup_fn) (void), char len_strict, int fildes, void *buf, size_t nbyte) safe_read() argument
530 safe_write(const char *file, const int lineno, void (cleanup_fn) (void), enum safe_write_opts len_strict, int fildes, const void *buf, size_t nbyte) safe_write() argument
[all...]
/third_party/ltp/include/old/
H A Dsafe_macros.h69 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \
71 (buf), (nbyte))
107 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \
109 (buf), (nbyte))
/third_party/exfatprogs/mkfs/
H A Dmkfs.c237 int nbyte; in write_fat_entry() local
240 nbyte = pwrite(fd, (__u8 *) &clu, sizeof(__le32), fat_entry_offset); in write_fat_entry()
241 if (nbyte != sizeof(int)) { in write_fat_entry()
/third_party/backends/backend/
H A Dniash.c277 int nbyte = pixels * BYTES_PER_PIXEL_COLOR; in _rgb2gray() local
281 for (x = 0; x < nbyte; ++x) in _rgb2gray()
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dscsimain.c5115 static int getnbyte(unsigned char *pnt, int nbyte) in getnbyte() argument
5120 for (i = 0; i < nbyte; i++) in getnbyte()

Completed in 18 milliseconds