/third_party/ltp/include/ |
D | tst_safe_prw.h | 9 char len_strict, int fildes, void *buf, size_t nbyte, in safe_pread() argument 16 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread() 28 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \ argument 29 safe_pread(__FILE__, __LINE__, (len_strict), (fildes), \ 33 char len_strict, int fildes, const void *buf, size_t nbyte, in safe_pwrite() argument 39 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pwrite() 51 #define SAFE_PWRITE(len_strict, fildes, buf, nbyte, offset) \ argument 52 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 | 96 #define SAFE_READ(len_strict, fildes, buf, nbyte) \ argument 97 safe_read(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte)) 175 #define SAFE_WRITE(len_strict, fildes, buf, nbyte) \ argument 176 safe_write(__FILE__, __LINE__, NULL, (len_strict), (fildes), (buf), (nbyte))
|
/third_party/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), \
|
/third_party/ltp/lib/ |
D | safe_net.c | 207 ssize_t safe_send(const char *file, const int lineno, char len_strict, in safe_send() argument 214 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_send() 227 ssize_t safe_sendto(const char *file, const int lineno, char len_strict, in safe_sendto() argument 236 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_sendto()
|
D | safe_macros.c | 286 char len_strict, int fildes, void *buf, size_t nbyte) in safe_read() argument 292 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_read() 527 char len_strict, int fildes, const void *buf, size_t nbyte) in safe_write() argument 533 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_write()
|