/external/ltp/include/ |
D | tst_safe_prw.h | 22 char len_strict, int fildes, void *buf, size_t nbyte, in safe_pread() argument 29 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread() 37 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \ argument 38 safe_pread(__FILE__, __LINE__, (len_strict), (fildes), \ 42 char len_strict, int fildes, const void *buf, size_t nbyte, in safe_pwrite() argument 48 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pwrite() 56 #define SAFE_PWRITE(len_strict, fildes, buf, nbyte, offset) \ argument 57 safe_pwrite(__FILE__, __LINE__, (len_strict), (fildes), \
|
D | safe_net_fn.h | 40 ssize_t safe_send(const char *file, const int lineno, char len_strict, 43 ssize_t safe_sendto(const char *file, const int lineno, char len_strict,
|
D | safe_macros_fn.h | 71 void (*cleanup_fn)(void), char len_strict, int fildes, 114 void (cleanup_fn)(void), char len_strict, int fildes,
|
D | tst_safe_macros.h | 103 #define SAFE_READ(len_strict, fildes, buf, nbyte) \ argument 104 safe_read(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte)) 162 #define SAFE_WRITE(len_strict, fildes, buf, nbyte) \ argument 163 safe_write(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
|
/external/ltp/lib/ |
D | safe_net.c | 192 ssize_t safe_send(const char *file, const int lineno, char len_strict, in safe_send() argument 199 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_send() 208 ssize_t safe_sendto(const char *file, const int lineno, char len_strict, in safe_sendto() argument 217 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_sendto()
|
D | safe_macros.c | 247 char len_strict, int fildes, void *buf, size_t nbyte) in safe_read() argument 252 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_read() 444 char len_strict, int fildes, const void *buf, size_t nbyte) in safe_write() argument 449 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_write()
|
/external/ltp/include/old/ |
D | safe_macros.h | 69 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument 70 safe_read(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \ 107 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument 108 safe_write(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
|