/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest5.c | 57 #include <errno.h> 93 tst_resm(TFAIL, "valloc() buf1 failed: %s", strerror(errno)); in runtest() 98 tst_resm(TFAIL, "valloc buf2 failed: %s", strerror(errno)); in runtest() 104 strerror(errno)); in runtest() 112 strerror(errno)); in runtest() 124 strerror(errno)); in runtest() 128 tst_resm(TFAIL, "writev failed: %s", strerror(errno)); in runtest() 133 strerror(errno)); in runtest() 137 tst_resm(TFAIL, "readv failed: %s", strerror(errno)); in runtest() 219 filename, strerror(errno)); in main() [all...] |
/third_party/ltp/utils/sctp/func_tests/ |
H A D | test_1_to_1_addrs.c | 68 #include <errno.h> 177 if (error != -1 || errno != EBADF) in main() 179 "descriptor error:%d, errno:%d", error, errno); in main() 189 filename, strerror(errno)); in main() 192 err_no = errno; in main() 197 "error:%d, errno:%d", error, err_no); in main() 205 if (error != -1 || errno != EOPNOTSUPP) in main() 207 "different protocol error:%d, errno:%d", error, errno); in main() [all...] |
H A D | test_getname.c | 49 #include <errno.h> 103 tst_brkm(TBROK, tst_exit, "getsockname: %s", strerror(errno)); in main() 111 if ((-1 != error) || (ENOTCONN != errno)) in main() 113 "socket error:%d, errno:%d", error, errno); in main() 137 "socket: %s", strerror(errno)); in main() 147 "socket: %s", strerror(errno)); in main() 162 "socket: %s", strerror(errno)); in main() 173 "socket: %s", strerror(errno)); in main() 210 if (error != -1 || errno ! in main() [all...] |
H A D | test_1_to_1_recvfrom.c | 53 #include <errno.h> 124 if (count != -1 || errno != EBADF) in main() 126 "descriptor count:%d, errno:%d", count, errno); in main() 135 filename, strerror(errno)); in main() 139 err_no = errno; in main() 144 "count:%d, errno:%d", count, err_no); in main() 151 if (count != -1 || errno != EFAULT) in main() 153 "pointer count:%d, errno:%d", count, errno); in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
H A D | 2-3.c | 39 #include <errno.h> 119 } while ((ret != 0) && (errno == EINTR)); in clnp2() 121 UNRESOLVED(errno, "Sem post failed in cleanup handler 2"); in clnp2() 126 } while ((ret != 0) && (errno == EINTR)); in clnp2() 128 UNRESOLVED(errno, "Sem wait failed in cleanup handler 2"); in clnp2() 174 } while ((ret != 0) && (errno == EINTR)); in threaded() 176 UNRESOLVED(errno, "Sem post failed in cleanup handler 2"); in threaded() 280 UNRESOLVED(errno, "Unable to init sem A"); in main() 285 UNRESOLVED(errno, "Unable to init sem B"); in main() 369 } while ((ret != 0) && (errno in main() [all...] |
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_filesystem_test.c | 31 errno = 0; in show_prompt() 42 errno = 0; in child() 44 return errno; in child() 182 errno == EPERM) in main() 184 else if (errno == ENODEV) in main() 187 printf("BUG: %s\n", strerror(errno)); in main() 191 errno == ENOMEM) in main() 193 else if (errno == ENODEV) in main() 196 printf("BUG: %s\n", strerror(errno)); in main() 200 errno in main() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | libsmbclient.c | 54 int ret = AVERROR(errno); in libsmbc_connect() 55 av_log(h, AV_LOG_ERROR, "Cannot create context: %s.\n", strerror(errno)); in libsmbc_connect() 59 int ret = AVERROR(errno); in libsmbc_connect() 60 av_log(h, AV_LOG_ERROR, "Cannot initialize context: %s.\n", strerror(errno)); in libsmbc_connect() 74 int ret = AVERROR(errno); in libsmbc_connect() 75 av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno)); in libsmbc_connect() 120 ret = AVERROR(errno); in libsmbc_open() 121 av_log(h, AV_LOG_ERROR, "File open failed: %s\n", strerror(errno)); in libsmbc_open() 126 av_log(h, AV_LOG_WARNING, "Cannot stat file: %s\n", strerror(errno)); in libsmbc_open() 150 int err = errno; in libsmbc_seek() [all...] |
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | LPdir_vms.c | 42 #include <errno.h> 90 errno = EINVAL; in LP_find_file() 94 errno = 0; in LP_find_file() 100 errno = ENOENT; in LP_find_file() 108 errno = EINVAL; in LP_find_file() 115 errno = ENAMETOOLONG; in LP_find_file() 121 errno = ENOMEM; in LP_find_file() 154 errno = 0; in LP_find_file() 155 vaxc$errno = status; in LP_find_file() 160 errno in LP_find_file() [all...] |
/third_party/openssl/crypto/ |
H A D | LPdir_vms.c | 42 #include <errno.h> 90 errno = EINVAL; in LP_find_file() 94 errno = 0; in LP_find_file() 100 errno = ENOENT; in LP_find_file() 108 errno = EINVAL; in LP_find_file() 115 errno = ENAMETOOLONG; in LP_find_file() 121 errno = ENOMEM; in LP_find_file() 154 errno = 0; in LP_find_file() 155 vaxc$errno = status; in LP_find_file() 160 errno in LP_find_file() [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | attrib.c | 41 #include <errno.h> 128 errno = EINVAL; in GenNAttrIno() 131 errno = 0; in GenNAttrIno() 157 errno = EINVAL; in ntfs_get_attribute_value() 169 errno = EOPNOTSUPP; in ntfs_get_attribute_value() 183 errno = 0; in ntfs_get_attribute_value() 191 errno = 0; in ntfs_get_attribute_value() 200 errno = EINVAL; in ntfs_get_attribute_value() 271 errno = EIO; in ntfs_get_attribute_value() 274 errno in ntfs_get_attribute_value() [all...] |
H A D | device.c | 39 #include <errno.h> 112 * error return NULL with errno set to the error code returned by ntfs_malloc(). 120 errno = EINVAL; in ntfs_device_alloc() 127 int eo = errno; in ntfs_device_alloc() 129 errno = eo; in ntfs_device_alloc() 147 * Return 0 on success or -1 on error with errno set to the error code. The 155 errno = EINVAL; in ntfs_device_free() 159 errno = EBUSY; in ntfs_device_free() 201 * On error and nothing has been read, return -1 with errno set appropriately 213 errno in ntfs_pread() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | inotify_init1.c | 26 errno = 0; in inotify_init1_0100() 29 EXPECT_EQ("inotify_init1_0100", errno, 0); in inotify_init1_0100() 40 errno = 0; in inotify_init1_0200() 43 EXPECT_EQ("inotify_init1_0200", errno, 0); in inotify_init1_0200() 54 errno = 0; in inotify_init1_0300() 57 EXPECT_EQ("inotify_init1_0300", errno, 0); in inotify_init1_0300() 68 errno = 0; in inotify_init1_0400() 71 EXPECT_EQ("inotify_init1_0400", errno, EINVAL); in inotify_init1_0400()
|
/third_party/musl/libc-test/src/regression/ |
H A D | sigaltstack.c | 10 #include <errno.h> 13 #define T(f) ((f)==0 || (t_error(#f " failed: %s\n", strerror(errno)),0)) 47 errno = 0; in main() 49 if (sigaltstack(&ss, 0) != -1 || errno != ENOMEM) in main() 51 "got %s\n", strerror(errno)); in main() 52 errno = 0; in main() 55 if (sigaltstack(&ss, 0) != -1 || errno != EINVAL) in main() 57 "got %s\n", strerror(errno)); in main() 58 errno = 0; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
H A D | 2-1.c | 25 #include <errno.h> 39 strerror(errno), in main() 40 errno); in main() 47 strerror(errno), in main() 48 errno); in main() 58 strerror(errno), in main() 59 errno); in main() 67 strerror(errno), in main() 68 errno); in main()
|
/third_party/musl/libc-test/src/functional/ |
H A D | time.c | 6 #include <errno.h> 53 errno = 0; in sec2tm() 55 if (errno != 0) in sec2tm() 56 t_error("%s: gmtime((time_t)%lld) should not set errno, got %s\n", in sec2tm() 57 m, (long long)t, strerror(errno)); in sec2tm() 58 errno = 0; in sec2tm() 60 if (errno != 0) in sec2tm() 61 t_error("%s: mktime(%s) should not set errno, got %s\n", in sec2tm() 62 m, tm_str(*tm), strerror(errno)); in sec2tm() 74 errno in tm2sec() [all...] |
/third_party/musl/src/passwd/ |
H A D | nscd_query.c | 6 #include <errno.h> 35 int errno_save = errno; in __nscd_query() 44 if (errno == EAFNOSUPPORT) { in __nscd_query() 47 errno = errno_save; in __nscd_query() 65 * errno must be left unchanged in this case. */ in __nscd_query() 66 if (errno == EACCES || errno == ECONNREFUSED || errno == ENOENT) { in __nscd_query() 67 errno = errno_save; in __nscd_query() 91 errno in __nscd_query() [all...] |
/third_party/musl/porting/liteos_a/user/src/passwd/ |
H A D | nscd_query.c | 6 #include <errno.h> 35 int errno_save = errno; in __nscd_query() 44 if (errno == EAFNOSUPPORT) { in __nscd_query() 47 errno = errno_save; in __nscd_query() 65 * errno must be left unchanged in this case. */ in __nscd_query() 66 if (errno == EACCES || errno == ECONNREFUSED || errno == ENOENT) { in __nscd_query() 67 errno = errno_save; in __nscd_query() 91 errno in __nscd_query() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/ipc/ |
H A D | semtimedop.c | 16 #include <errno.h> 65 errno = 0; in semtimedop_0100() 71 if (errno != EAGAIN) { in semtimedop_0100() 72 t_error("%s failed: errno = %d\n", __func__, errno); in semtimedop_0100() 96 errno = 0; in semtimedop_0200() 102 if (errno == 0) { in semtimedop_0200() 103 t_error("%s failed: errno = %d\n", __func__, errno); in semtimedop_0200() 114 errno in semtimedop_time64_0200() [all...] |
/third_party/ntfs-3g/src/ |
H A D | ntfs-3g.c | 47 #include <errno.h> 152 (!ops ? -errno \ 326 * 0 if not allowed or some error occurred (errno tells why) 405 * 0 if not allowed or some error occurred (errno tells why) 458 errno = ENOMEM; in get_parent_dir() 480 * Returns 0 on success or -errno on error. 546 * <0 Error occurred, return -errno; 558 return -errno; in ntfs_fuse_parse_path() 567 return -errno; in ntfs_fuse_parse_path() 580 *err = -errno; in set_fuse_error() [all...] |
/third_party/ltp/testcases/misc/math/float/ |
H A D | thread_code.c | 52 errno = 0; in read_file() 55 if (errno == ETIMEDOUT || errno == EINTR || errno == 0) { in read_file() 57 path, strerror(errno)); in read_file() 68 errno = ENOENT; in read_file() 73 if (errno == EINTR || errno == 0) { in read_file() 74 printf("Error malloc'ing: %s\n", strerror(errno)); in read_file() 84 if (errno in read_file() [all...] |
/third_party/libfuse/lib/ |
H A D | mount_util.c | 20 #include <errno.h> 62 if (errno == ENOENT) in mtab_needs_update() 76 err = (res == -1) ? errno : 0; in mtab_needs_update() 100 fprintf(stderr, "%s: sigprocmask: %s\n", progname, strerror(errno)); in add_mount() 106 fprintf(stderr, "%s: fork: %s\n", progname, strerror(errno)); in add_mount() 115 fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno)); in add_mount() 123 progname, strerror(errno)); in add_mount() 128 fprintf(stderr, "%s: waitpid: %s\n", progname, strerror(errno)); in add_mount() 159 fprintf(stderr, "%s: sigprocmask: %s\n", progname, strerror(errno)); in exec_umount() 165 fprintf(stderr, "%s: fork: %s\n", progname, strerror(errno)); in exec_umount() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | output.cc | 17 #include <errno.h> 26 ClearErrnoGuard() : old_value(errno) { errno = 0; } in ClearErrnoGuard() 28 if (!errno) errno = old_value; in ~ClearErrnoGuard() 44 // Reset errno to zero in case the libc implementation doesn't set errno in Write() 53 if (errno == EINTR) { in Write() 55 } else if (errno) { in Write() 56 error_ = errno; in Write() [all...] |
/third_party/ltp/testcases/kernel/pty/ |
H A D | hangup01.c | 27 #include <errno.h> 66 if (kill(childpid, 0) == 0 || errno == ESRCH) { in cleanup() 146 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ; in parent() 162 printf("ptsname[child] failed: %s\n", strerror(errno)); in child() 166 printf("open[1] failed: %s\n", strerror(errno)); in child() 170 printf("write failed: %s\n", strerror(errno)); in child() 174 printf("close[1] failed: %s\n", strerror(errno)); in child() 178 printf("open[2] failed: %s\n", strerror(errno)); in child() 182 printf("write[2] failed: %s\n", strerror(errno)); in child() 186 printf("close[2] failed: %s\n", strerror(errno)); in child() [all...] |
/third_party/ltp/testcases/network/tcp_cmds/sendfile/ |
H A D | testsf_s.c | 11 #include <errno.h> 52 tst_brkm(TBROK, NULL, "socket error = %d", errno); in main() 77 tst_resm(TBROK, "bind error = %d", errno); in main() 84 tst_resm(TBROK, "listen error = %d", errno); in main() 96 tst_resm(TBROK, "accept error = %d", errno); in main() 97 if (errno == EINTR) in main() 107 tst_resm(TBROK, "fork error = %d", errno); in main() 122 tst_resm(TBROK, "socket read error = %d", errno); in main() 146 tst_resm(TBROK, "file open error = %d", errno); in main() 151 errno in main() [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | linux-syscalls.c | 27 #include <errno.h> 158 if (errno == EINVAL) in uv__sendmmsg() 159 errno = ENOSYS; in uv__sendmmsg() 165 return errno = ENOSYS, -1; in uv__sendmmsg() 184 if (errno == EINVAL) in uv__recvmmsg() 185 errno = ENOSYS; in uv__recvmmsg() 191 return errno = ENOSYS, -1; in uv__recvmmsg() 198 return errno = ENOSYS, -1; in uv__preadv() 207 return errno = ENOSYS, -1; in uv__pwritev() 216 return errno in uv__dup3() [all...] |