Searched refs:errno (Results 176 - 200 of 387) sorted by relevance

1234567891011>>

/fuchsia/zircon/system/utest/fs/
H A Dtest-threading.cpp6 #include <errno.h>
98 } else if (errno == EEXIST) {
107 } else if (errno == ENOENT) {
122 } else if (errno == EEXIST) {
131 } else if (errno == ENOENT) {
149 } else if (errno == ENOENT) {
176 } else if (errno == ENOTEMPTY || errno == EEXIST) {
233 } else if (errno == EEXIST) {
H A Dtest-unlink.cpp6 #include <errno.h>
114 ASSERT_EQ(errno, ENOENT);
121 ASSERT_EQ(errno, ENOENT);
128 ASSERT_EQ(errno, ENOTEMPTY);
132 ASSERT_EQ(errno, ENOENT);
H A Dtest-maxfile.cpp5 #include <errno.h>
76 fprintf(stderr, "bigfile received error: %s\n", strerror(errno));
77 if ((errno == EFBIG) || (errno == ENOSPC)) {
170 fprintf(stderr, "bigfile received error: %s\n", strerror(errno));
173 ASSERT_TRUE(errno == EFBIG || errno == ENOSPC);
/fuchsia/zircon/system/utest/namespace/
H A Dnamespace-test.c6 #include <errno.h>
35 ASSERT_TRUE(mkdir("/tmp/fake-namespace-test", 066) == 0 || errno == EEXIST, "");
36 ASSERT_TRUE(mkdir("/tmp/fake-namespace-test/dev", 066) == 0 || errno == EEXIST, "");
37 ASSERT_TRUE(mkdir("/tmp/fake-namespace-test-tmp", 066) == 0 || errno == EEXIST, "");
/fuchsia/zircon/system/utest/processor/
H A Dprocessor.c6 #include <errno.h>
/fuchsia/zircon/system/utest/pty/
H A Dpty-test.c7 #include <errno.h>
31 if (errno == EAGAIN) {
34 return -errno;
50 if (errno == EAGAIN) {
53 return -errno;
84 ASSERT_EQ(errno, EAGAIN, "");
86 ASSERT_EQ(errno, EAGAIN, "");
174 ASSERT_EQ(errno, EAGAIN, "");
176 ASSERT_EQ(errno, EAGAIN, "");
/fuchsia/zircon/third_party/ulib/musl/src/network/
H A Dgethostbyaddr.c3 #include <errno.h>
H A Dgethostbyname2.c3 #include <errno.h>
/fuchsia/zircon/third_party/ulib/musl/src/process/
H A Dposix_spawn_file_actions_addopen.c2 #include <errno.h>
/fuchsia/zircon/system/host/netprotocol/
H A Dnetruncmd.c13 #include <errno.h>
65 if (errno == ETIMEDOUT) {
/fuchsia/zircon/system/ulib/mdns/
H A Dmdns.c9 #include <errno.h>
48 errno = ENAMETOOLONG;
59 errno = ENOMEM;
72 errno = ENOMEM;
109 errno = EINVAL;
120 errno = ENOMEM;
134 errno = ENOMEM;
209 errno = EBADMSG;
/fuchsia/zircon/system/utest/core/memory-mapping/
H A Dmemory-mapping.cpp5 #include <errno.h>
108 auto test_errno = errno;
110 EXPECT_EQ(EINVAL, test_errno, "mmap errno should be EINVAL when len == 0");
113 test_errno = errno;
115 EXPECT_EQ(ENOMEM, test_errno, "mmap errno should be ENOMEM when len >= PTRDIFF_MAX");
124 auto test_errno = errno;
126 EXPECT_EQ(EINVAL, test_errno, "mmap errno should be EINVAL for unaligned offset");
211 auto test_errno = errno;
213 EXPECT_EQ(EINVAL, test_errno, "mmap errno should be EINVAL with bad flags");
216 test_errno = errno;
[all...]
/fuchsia/zircon/system/utest/vdso-variant/helper/
H A Dvdso-variant-helper.c7 #include <errno.h>
40 EXPECT_EQ(errno, EACCES, "opening vDSO file for writing");
/fuchsia/zircon/third_party/ulib/musl/src/multibyte/
H A Dmbrtowc.c2 #include <errno.h>
59 errno = EILSEQ;
/fuchsia/zircon/third_party/ulib/musl/src/passwd/
H A Dgetpwent_a.c16 rv = ferror(f) ? errno : 0;
60 errno = rv;
H A Dpwf.h2 #include <errno.h>
H A Dgetpw_a.c27 rv = errno;
61 rv = errno;
92 rv = errno;
100 rv = ferror(f) ? errno : EIO;
135 errno = rv;
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__fdopen.c2 #include <errno.h>
14 errno = EINVAL;
H A Dfgetwc.c3 #include <errno.h>
32 errno = EILSEQ;
H A Dvswprintf.c2 #include <errno.h>
45 errno = EOVERFLOW;
H A Dvsnprintf.c2 #include <errno.h>
24 errno = EOVERFLOW;
/fuchsia/zircon/system/utest/runtests-utils/
H A Druntests-utils-test-utils.cpp6 #include <errno.h>
37 ZX_ASSERT_MSG(-1 != fd, "%s", strerror(errno));
43 ZX_ASSERT_MSG(-1 != close(fd), "%s", strerror(errno));
58 ZX_ASSERT_MSG(input_fd, "%s", strerror(errno));
61 ZX_ASSERT_MSG(output_fd, "%s", strerror(errno));
68 ZX_ASSERT_MSG(write(output_fd.get(), buf, n) == n, "write failed: %s", strerror(errno));
70 ZX_ASSERT_MSG(n != -1, "read failed: %s", strerror(errno));
/fuchsia/zircon/system/host/bootserver/
H A Dtftp.c13 #include <errno.h>
122 ((errno == EAGAIN) || (errno == EWOULDBLOCK) || (errno == ENOBUFS)));
125 fprintf(stderr, "%s: Send failed with errno = %d (%s)\n", appname, errno, strerror(errno));
156 if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) {
187 fprintf(stderr, "%s: error: Cannot create socket %d\n", appname, errno);
[all...]
/fuchsia/zircon/system/utest/memfs/
H A Dmemfs-tests.cpp6 #include <errno.h>
135 ASSERT_EQ(errno, ENOSPC);
146 errno = 0;
148 ASSERT_EQ(errno, ENOSPC);
153 errno = 0;
155 ASSERT_EQ(errno, 0);
247 return errno == EPIPE ? 0 : -1;
251 return errno == EPIPE ? 0 : -1;
270 ASSERT_EQ(errno, EPIPE, "Expected connection to remote server to be closed");
/fuchsia/zircon/kernel/lib/libc/
H A Datoi.c11 #include <errno.h>
111 errno = EINVAL;
161 errno = ERANGE;

Completed in 141 milliseconds

1234567891011>>