/external/python/cpython2/Lib/test/ |
test_errno.py | 1 """Test the errno module 5 import errno 16 self.assertTrue(hasattr(errno, error_code), 17 "errno is missing %s" % error_code) 20 # Every key value in errno.errorcode should be on the module. 21 for value in errno.errorcode.itervalues(): 22 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 28 for attribute in errno.__dict__.iterkeys(): 30 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/external/python/cpython3/Lib/test/ |
test_errno.py | 1 """Test the errno module 5 import errno 15 self.assertTrue(hasattr(errno, error_code), 16 "errno is missing %s" % error_code) 19 # Every key value in errno.errorcode should be on the module. 20 for value in errno.errorcode.values(): 21 self.assertTrue(hasattr(errno, value), 22 'no %s attr in errno' % value) 28 for attribute in errno.__dict__.keys(): 30 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/external/valgrind/none/tests/ |
threadederrno.c | 6 #include <errno.h> 14 strerror_r(errno, errstr, sizeof(errstr)); 15 printf("f = %ld, errno = %d (%s)\n", (long)f, errno, errstr); 23 strerror_r(errno, errstr, sizeof(errstr)); 24 printf("f = %ld, errno = %d (%s)\n", (long)f, errno, errstr); 37 strerror_r(errno, errstr, sizeof(errstr)); 38 printf("f = %ld, errno = %d (%s)\n", (long)f, errno, errstr) [all...] |
threadederrno.stdout.exp | 1 f = 0, errno = 2 (No such file or directory) 2 f = 0, errno = 2 (No such file or directory) 3 f = 0, errno = 2 (No such file or directory)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_errno.py | 2 """Test the errno module 6 import errno 17 self.assertTrue(hasattr(errno, error_code), 18 "errno is missing %s" % error_code) 21 # Every key value in errno.errorcode should be on the module. 22 for value in errno.errorcode.itervalues(): 23 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 29 for attribute in errno.__dict__.iterkeys(): 31 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_errno.py | 2 """Test the errno module 6 import errno 17 self.assertTrue(hasattr(errno, error_code), 18 "errno is missing %s" % error_code) 21 # Every key value in errno.errorcode should be on the module. 22 for value in errno.errorcode.itervalues(): 23 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 29 for attribute in errno.__dict__.iterkeys(): 31 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_errno.py | 2 """Test the errno module 6 import errno 17 self.assertTrue(hasattr(errno, error_code), 18 "errno is missing %s" % error_code) 21 # Every key value in errno.errorcode should be on the module. 22 for value in errno.errorcode.itervalues(): 23 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 29 for attribute in errno.__dict__.iterkeys(): 31 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_errno.py | 2 """Test the errno module 6 import errno 17 self.assertTrue(hasattr(errno, error_code), 18 "errno is missing %s" % error_code) 21 # Every key value in errno.errorcode should be on the module. 22 for value in errno.errorcode.itervalues(): 23 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 29 for attribute in errno.__dict__.iterkeys(): 31 self.assertIn(getattr(errno, attribute), errno.errorcode [all...] |
/bionic/tests/ |
sys_msg_test.cpp | 31 #include <errno.h> 37 if (msgctl(-1, IPC_STAT, nullptr) == -1 && errno == ENOSYS) { 78 errno = 0; 80 ASSERT_TRUE(errno == EINVAL || errno == ENOSYS); 84 errno = 0; 86 ASSERT_TRUE(errno == ENOENT || errno == ENOSYS); 90 errno = 0; 92 ASSERT_TRUE(errno == EINVAL || errno == ENOSYS) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
1-1.c | 35 #include <errno.h> 67 UNRESOLVED(errno, "Unable to read CLOCK_REALTIME clock"); 76 UNRESOLVED(errno, "Failed to fork"); 81 UNRESOLVED(errno, "Failed to open the semaphore (try executing " 91 } while (ret == -1 && errno == EINTR); 94 UNRESOLVED(errno, "Failed to post the semaphore"); 98 UNRESOLVED(errno, "Failed to close the semaphore"); 107 } while (ret == -1 && errno == EINTR); 110 if (errno == ETIMEDOUT) 112 UNRESOLVED(errno, "Failed to wait for the semaphore") [all...] |
12-1.c | 43 #include <errno.h> 67 UNRESOLVED(errno, "Failed to initialize signal set"); 73 UNRESOLVED(errno, "Failed to add SIGUSR1 to signal set"); 79 UNRESOLVED(errno, "Failed to add SIGUSR2 to signal set"); 85 UNRESOLVED(errno, "Sigprocmask failed"); 92 UNRESOLVED(errno, "failed to kill with SIGUSR1"); 98 UNRESOLVED(errno, "failed to kill with SIGUSR2"); 105 UNRESOLVED(errno, 112 UNRESOLVED(errno, 120 UNRESOLVED(errno, [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
UnixException.java | 38 private int errno; field in class:UnixException 41 UnixException(int errno) { 42 this.errno = errno; 47 this.errno = 0; 51 int errno() { method in class:UnixException 52 return errno; 55 void setError(int errno) { 56 this.errno = errno; [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/ |
3-2.c | 49 #include <errno.h> 102 if (sem == SEM_FAILED && errno == EEXIST) { 108 UNRESOLVED(errno, "Failed to create the semaphore"); 114 } while (ret != 0 && errno == EINTR); 117 UNRESOLVED(errno, "Failed to wait for the semaphore"); 124 UNRESOLVED(errno, "Failed to close the semaphore"); 131 UNRESOLVED(errno, "Failed to re-open the semaphore"); 138 UNRESOLVED(errno, "Failed to get semaphore value"); 150 UNRESOLVED(errno, "Failed to close the semaphore"); 156 UNRESOLVED(errno, "Failed to unlink the semaphore") [all...] |
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
reallocarr.c | 40 #include <errno.h> 63 saved_errno = errno; 69 errno = saved_errno; 81 errno = saved_errno; 87 result = errno; 92 errno = saved_errno;
|
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
getsockopt.c | 30 In the case of an error, ::errno contains more details.
45 pSocketProtocol = BslFdToSocketProtocol ( s, NULL, &errno );
53 &errno );
56 OptionStatus = ( 0 == errno ) ? 0 : -1;
|
setsockopt.c | 29 In the case of an error, ::errno contains more details.
44 pSocketProtocol = BslFdToSocketProtocol ( s, NULL, &errno );
52 &errno );
55 OptionStatus = ( 0 == errno ) ? 0 : -1;
|
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/ |
realpath.c | 16 #include <errno.h>
42 errno = EINVAL;
47 errno = ENOMEM;
|
/external/autotest/client/site_tests/security_AltSyscall/src/ |
adjtimex.c | 7 #include <errno.h> 26 if (ret != -1 || errno != EFAULT) 35 if (ret != -1 || errno != EPERM)
|
clock_adjtime.c | 7 #include <errno.h> 26 if (ret != -1 || errno != EFAULT) 35 if (ret != -1 || errno != EPERM)
|
/external/compiler-rt/test/tsan/ |
ignore_lib1.cc | 18 #include <errno.h> 26 exit(printf("failed to load the library (%d)\n", errno)); 29 exit(printf("failed to find the func (%d)\n", errno));
|
/external/libdaemon/libdaemon/ |
dsignal.c | 32 #include <errno.h> 44 int saved_errno = errno; 46 errno = saved_errno; 53 daemon_log(LOG_ERR, "pipe(): %s", strerror(errno)); 74 daemon_log(LOG_ERR, "sigemptyset(): %s", strerror(errno)); 79 daemon_log(LOG_ERR, "sigaddset(): %s", strerror(errno)); 84 daemon_log(LOG_ERR, "sigprocmask(): %s", strerror(errno)); 94 daemon_log(LOG_ERR, "sigaction(%s, ...) failed: %s", strsignal(s), strerror(errno)); 124 int saved_errno = errno; 134 errno = saved_errno [all...] |
/external/libusb/libusb/os/ |
poll_posix.c | 25 #include <errno.h> 38 usbi_dbg("Failed to get pipe fd flags: %d", errno); 43 usbi_dbg("Failed to set non-blocking on new pipe: %d", errno);
|
/external/libvncserver/libvncclient/ |
tls_none.c | 21 #include <errno.h> 41 errno = EINTR; 49 errno = EINTR;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
10-1.c | 16 * use -1 as fildes and check return value is -1 and errno is EBADF 27 #include <errno.h> 46 if (errno != EBADF) { 47 printf(TNAME " errno is not EBADF %s\n", strerror(errno));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/ |
5-1.c | 21 #include <errno.h> 31 if (fsync(fd) == -1 && errno == EBADF) { 36 printf("Test FAILED: Expect EBADF, get: %s\n", strerror(errno));
|