/external/llvm/lib/Support/ |
Errno.cpp | 38 std::string StrError(int errnum) { 45 if (errnum) 49 str = strerror_r(errnum,buffer,MaxErrStrLen-1); 51 strerror_r(errnum,buffer,MaxErrStrLen-1); 54 if (errnum) 55 strerror_s(buffer, errnum); 60 if (errnum) 61 strncpy(buffer,strerror(errnum),MaxErrStrLen-1); 66 sprintf(buffer, "Error #%d", errnum);
|
/external/valgrind/main/none/tests/ |
pth_atfork1.c | 32 static void error (int status, int errnum, char* msg) 36 errnum ? ": " : "", 37 errnum ? strerror(errnum) : ""); 38 if (errnum) 39 exit(errnum);
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
assert.h | 54 /* void assert_perror (int errnum); 56 If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an 57 error message with the error text for ERRNUM and abort. 61 # define assert_perror(errnum) (__ASSERT_VOID_CAST (0)) 75 /* Likewise, but prints the error text for ERRNUM. */ 97 # define assert_perror(errnum) \ 98 (!(errnum) \ 100 : __assert_perror_fail ((errnum), __FILE__, __LINE__, __ASSERT_FUNCTION))
|
error.h | 29 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
|
/external/grub/stage2/ |
disk_io.c | 148 while (byte_len > 0 && !errnum) 161 errnum = ERR_NO_DISK; 172 errnum = ERR_GEOM; 215 errnum = ERR_GEOM; 225 errnum = ERR_READ; 251 errnum = ERR_READ; 289 return (!errnum); 303 errnum = ERR_OUTSIDE_PART; 339 errnum = ERR_WRITE; 354 errnum = ERR_WRITE [all...] |
boot.c | 71 if (!errnum) 72 errnum = ERR_EXEC_FORMAT; 85 errnum = ERR_BOOT_FEATURES; 112 errnum = ERR_BELOW_1MB; 119 errnum = ERR_EXEC_FORMAT; 163 errnum = ERR_EXEC_FORMAT; 166 errnum = ERR_BELOW_1MB; 214 errnum = ERR_BELOW_1MB; 276 errnum = ERR_WONT_FIT; 280 errnum = ERR_WONT_FIT [all...] |
cmdline.c | 92 errnum = ERR_UNRECOGNIZED; 105 errnum = 0; 140 errnum = ERR_NONE; 158 errnum = ERR_UNRECOGNIZED; 198 if (errnum) 200 errnum = ERR_NONE; 245 errnum = ERR_UNRECOGNIZED;
|
builtins.c | 227 return errnum; 308 errnum = ERR_BOOT_COMMAND; 342 if (errnum == ERR_NONE) 343 errnum = ERR_DEV_VALUES; 436 if (errnum == ERR_NONE) 437 errnum = ERR_EXEC_FORMAT; 448 errnum = ERR_EXEC_FORMAT; 464 errnum = ERR_NONE; 502 errnum = ERR_BAD_ARGUMENT; 827 errnum = ERR_FILE_NOT_FOUND [all...] |
fsys_ffs.c | 130 errnum = ERR_FSYS_CORRUPT; 149 while (len && !errnum) 175 if (errnum) 206 errnum = ERR_BAD_FILETYPE; 224 errnum = ERR_BAD_FILETYPE; 246 errnum = ERR_FILE_NOT_FOUND; 260 errnum = ERR_FSYS_CORRUPT;
|
fsys_ufs2.c | 155 errnum = ERR_FSYS_CORRUPT; 174 while (len && !errnum) 200 if (errnum) 231 errnum = ERR_BAD_FILETYPE; 249 errnum = ERR_BAD_FILETYPE; 267 errnum = ERR_FILE_NOT_FOUND; 281 errnum = ERR_FSYS_CORRUPT;
|
fsys_minix.c | 217 errnum = ERR_FSYS_CORRUPT; 229 errnum = ERR_FSYS_CORRUPT; 237 errnum = ERR_FSYS_CORRUPT; 284 if (errnum) 358 errnum = ERR_SYMLINK_LOOP; 374 errnum = ERR_FILELENGTH; 418 errnum = ERR_BAD_FILETYPE; 437 errnum = ERR_BAD_FILETYPE; 468 errnum = ERR_FILE_NOT_FOUND; 487 errnum = ERR_FSYS_CORRUPT [all...] |
fsys_fat.c | 260 errnum = ERR_FSYS_CORRUPT; 288 return errnum ? 0 : ret; 323 errnum = ERR_BAD_FILETYPE; 337 errnum = ERR_BAD_FILETYPE; 357 if (!errnum) 369 errnum = ERR_FILE_NOT_FOUND;
|
/external/bison/lib/ |
error.c | 66 extern void __error (int status, int errnum, const char *message, ...) 68 extern void __error_at_line (int status, int errnum, const char *file_name, 105 print_errno_message (int errnum) 112 s = __strerror_r (errnum, errbuf, sizeof errbuf); 114 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) 120 if (! s && ! (s = strerror (errnum))) 136 error_tail (int status, int errnum, const char *message, va_list args) 170 if (errnum) 171 print_errno_message (errnum); 186 If ERRNUM is nonzero, print its corresponding system error message [all...] |
error.h | 40 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
error.c | 70 extern void __error (int status, int errnum, const char *message, ...) 72 extern void __error_at_line (int status, int errnum, const char *file_name, 105 print_errno_message (int errnum) 112 s = __strerror_r (errnum, errbuf, sizeof errbuf); 114 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) 120 s = strerror (errnum); 136 error_tail (int status, int errnum, const char *message, va_list args) 209 if (errnum) 210 print_errno_message (errnum); 224 If ERRNUM is nonzero, print its corresponding system error message [all...] |
error.h | 39 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
|
/external/llvm/lib/Support/Unix/ |
Unix.h | 71 /// string and the Unix error number given by \p errnum. If errnum is -1, the 78 std::string* ErrMsg, const std::string& prefix, int errnum = -1) { 81 if (errnum == -1) 82 errnum = errno; 83 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
|
/external/elfutils/ |
config-compat-freebsd.h | 28 static inline void __attribute__((noreturn)) error(int status, int errnum, const char *fmt, ...) 33 fprintf(stderr, "error %d: %s\n", errnum, strerror(errno));
|
config-compat-darwin.h | 25 static inline void __attribute__((noreturn)) error(int status, int errnum, const char *fmt, ...) 30 fprintf(stderr, "error %d: %s\n", errnum, strerror(errno));
|
/bionic/libc/string/ |
strerror_r.c | 93 strerror_r(int errnum, char *strerrbuf, size_t buflen) 100 msg = __code_string_lookup( _sys_error_strings, errnum ); 110 int ret = __itoa(errnum, 1, strerrbuf, len, buflen);
|
/external/llvm/include/llvm/Support/ |
Errno.h | 28 /// Like the no-argument version above, but uses \p errnum instead of errno. 29 std::string StrError(int errnum);
|
/dalvik/libnativehelper/include/nativehelper/ |
JNIHelp.h | 73 int jniThrowIOException(C_JNIEnv* env, int errnum); 77 * value 'errnum'. The returned pointer may or may not be equal to 'buf'. 81 const char* jniStrError(int errnum, char* buf, size_t buflen); 143 inline int jniThrowIOException(JNIEnv* env, int errnum) { 144 return jniThrowIOException(&env->functions, errnum);
|
/external/zlib/contrib/iostream2/ |
zstream.h | 92 * given compressed file. errnum is set to zlib error number. If an 94 * errnum is set to Z_ERRNO and the application may consult errno 97 const char* error(int* errnum) { 98 return ::gzerror(m_fp, errnum); 225 * given compressed file. errnum is set to zlib error number. If an 227 * errnum is set to Z_ERRNO and the application may consult errno 230 const char* error(int* errnum) { 231 return ::gzerror(m_fp, errnum);
|
/dalvik/libnativehelper/ |
JNIHelp.cpp | 251 int jniThrowIOException(C_JNIEnv* env, int errnum) { 253 const char* message = jniStrError(errnum, buffer, sizeof(buffer)); 285 const char* jniStrError(int errnum, char* buf, size_t buflen) { 287 // char *strerror_r(int errnum, char *buf, size_t n); 288 char* ret = (char*) strerror_r(errnum, buf, buflen); 298 snprintf(buf, buflen, "errno %d", errnum);
|
/external/grub/netboot/ |
fsys_tftp.c | 352 errnum = ERR_WRITE; 394 errnum = ERR_READ; 401 errnum = ERR_READ; 444 errnum = ERR_WRITE; 451 errnum = ERR_FILE_NOT_FOUND; 471 errnum = ERR_READ;
|