Searched refs:errno (Results 1 - 25 of 822) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/glibc/stdlib/sys/
H A Derrno.h1 #include <errno.h>
/haiku/src/tools/fs_shell/
H A Derrno.cpp10 #include <errno.h>
16 return &errno;
23 return errno;
30 errno = error;
/haiku/src/system/libroot/posix/glibc/include/bits/
H A Derrno.h18 #include_next <errno.h>
/haiku/headers/private/libroot/
H A DErrnoMaintainer.h9 #include <errno.h>
16 * A helper class resetting errno to 0 if it has been set during the execution
17 * of ICU methods. Any changes of errno shall only be done by our callers.
22 : fErrnoUponEntry(errno)
28 errno = fErrnoUponEntry;
H A Derrno_private.h9 #include <errno.h>
18 debug_printf("%s:%d - setting errno to %x\n", __FILE__, __LINE__, \
20 errno = error; \
24 do { errno = (x); } while (0)
/haiku/src/system/kernel/lib/
H A Dkernel_errno.cpp9 #include <errno.h>
13 Kernel space storage for "errno", located in the thread structure
14 (user "errno" can't be changed from kernel internal POSIX calls)
/haiku/src/tests/kits/support/barchivable/
H A DValidateInstantiationTester.cpp13 #include <errno.h>
36 errno is set to B_BAD_VALUE.
40 errno = B_OK;
42 CPPUNIT_ASSERT(errno == B_BAD_VALUE);
51 errno is set to B_MISMATCHED_VALUES.
55 errno = B_OK;
58 CPPUNIT_ASSERT(errno == B_MISMATCHED_VALUES);
67 errno is set to B_BAD_VALUE.
74 errno = B_OK;
76 CPPUNIT_ASSERT(errno
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dposix_spawn_pipe_test.c3 #include <errno.h>
22 errno = posix_spawn_file_actions_init(&fdops);
23 panic(errno, "init");
24 errno = posix_spawn_file_actions_addclose(&fdops, out[readIdx]);
25 panic(errno, "close stdout read");
26 errno = posix_spawn_file_actions_adddup2(&fdops, out[writeIdx], 1);
27 panic(errno, "dup2 stdout write");
28 errno = posix_spawn_file_actions_addclose(&fdops, err[readIdx]);
29 panic(errno, "close stderr read");
30 errno
[all...]
H A Dtermios.cpp8 #include <errno.h>
31 __progname, argv[1], strerror(errno));
35 if (err != -1 || errno != ENOTTY) {
37 __progname, argv[1], strerror(errno));
42 if (err != -1 || errno != ENOTTY) {
44 __progname, argv[1], strerror(errno));
50 if (err != -1 || errno != ENOTTY) {
52 __progname, argv[1], strerror(errno));
H A Dtls_concurrency_test.c1 #include <errno.h>
23 errno = pthread_create(&thr[j], NULL, thread, NULL);
24 panic(errno, "pthread_create");
28 errno = pthread_join(thr[j], NULL);
29 panic(errno, "pthread_join");
H A Dsetpgid_test.cpp1 #include <errno.h>
17 fprintf(stderr, "fork() failed: %s\n", strerror(errno));
26 fprintf(stderr, "child: first setpgid() failed: %s\n", strerror(errno));
31 // fprintf(stderr, "child: setsid() failed: %s\n", strerror(errno));
39 fprintf(stderr, "fork() 2 failed: %s\n", strerror(errno));
55 fprintf(stderr, "child: second setpgid() failed: %s\n", strerror(errno));
/haiku/src/tests/add-ons/kernel/file_systems/bfs/rename/
H A Drename.c5 #include <errno.h>
25 printf("chmod fails: %s\n", strerror(errno));
34 errno = 0;
38 printf(" errno = %d (%s)\n", errno, strerror(errno));
41 errno = 0;
46 printf(" errno = %d (%s)\n", errno, strerror(errno));
[all...]
/haiku/headers/compatibility/bsd/
H A Derrno.h9 #include_next <errno.h>
/haiku/src/system/libroot/posix/glibc/include/
H A Derrno.h20 * ISO C99 Standard: 7.5 Errors <errno.h>
36 #include <bits/errno.h>
41 /* Declare the `errno' variable, unless it's defined as a macro by
42 bits/errno.h. This is the case in GNU, where it is a per-thread
46 #ifndef errno
47 extern int errno;
63 /* The Hurd <bits/errno.h> defines `error_t' as an enumerated type so
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dperror.c21 #include <errno.h>
28 * `errno' and a newline.
46 if (strerror_r(errno, buffer, sizeof(buffer)) != 0)
47 snprintf(buffer, sizeof(buffer), "Unknown error %d", errno);
/haiku/src/tests/system/kernel/
H A Dwait_test_1.c7 #include <errno.h>
15 wait()/waitpid() should return -1 and set errno to ECHILD, since there
23 printf("wait() returned %ld (%s)\n", pid, strerror(errno));
26 printf("waitpid(-1, ...) returned %ld (%s)\n", pid, strerror(errno));
29 printf("waitpid(0, ...) returned %ld (%s)\n", pid, strerror(errno));
32 printf("waitpid(%ld, ...) returned %ld (%s)\n", getpgrp(), pid, strerror(errno));
/haiku/src/libs/bsd/
H A Dstrtonum.c20 #include <errno.h>
45 ev[0].err = errno;
46 errno = 0;
51 if (errno == EINVAL || numstr == ep || *ep != '\0')
53 else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
55 else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
60 errno = ev[error].err;
/haiku/src/libs/util/
H A Dpidfile.c40 #include <errno.h>
57 return (errno);
71 return (errno);
74 error = errno; /* Remember errno in case close() wants to change it. */
106 errno = ENAMETOOLONG;
131 if (errno == EWOULDBLOCK && pidptr != NULL) {
132 errno = pidfile_read(pfh->pf_path, pidptr);
133 if (errno == 0)
134 errno
[all...]
/haiku/headers/posix/
H A Derrno.h20 #define errno (*(_errnop())) macro
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Derrno.h9 #include <posix/errno.h>
/haiku/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundDeviceMixer.cpp13 #include <errno.h>
31 fInitCheckStatus = errno;
55 PRINT(("OpenSoundDeviceMixer::CountExtInfos: SNDCTL_MIX_NREXT: %s\n", strerror(errno)));
76 PRINT(("OpenSoundDeviceMixer::%s: SNDCTL_MIX_EXTINFO(%d): %s\n", __FUNCTION__, index, strerror(errno)));
77 return errno;
96 PRINT(("OpenSoundDeviceMixer::%s: SNDCTL_MIX_READ(%d): %s\n", __FUNCTION__, value->ctrl, strerror(errno)));
97 return errno;
116 PRINT(("OpenSoundDeviceMixer::%s: SNDCTL_MIX_WRITE(%d): %s\n", __FUNCTION__, value->ctrl, strerror(errno)));
117 return errno;
134 PRINT(("OpenSoundDeviceMixer::%s: SNDCTL_MIX_ENUMINFO(%d): %s\n", __FUNCTION__, index, strerror(errno)));
[all...]
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DDVBCard.cpp31 #include <errno.h> // required on BeOS R5
52 printf("DVB_GET_FREQUENCY_INFO failed with error %s\n", strerror(errno));
86 printf("DVB_GET_INTERFACE_INFO failed with error %s\n", strerror(errno));
87 return errno;
106 printf("DVB_GET_INTERFACE_INFO failed with error %s\n", strerror(errno));
107 return errno;
150 printf("DVB_SET_TUNING_PARAMETERS failed with error %s\n", strerror(errno));
151 return errno;
162 printf("DVB_GET_STATUS failed with error %s\n", strerror(errno));
163 return errno;
[all...]
/haiku/headers/private/shared/
H A Dsyscall_utils.h13 errno = __result; \
31 errno = __result; \
/haiku/src/add-ons/accelerants/vesa/
H A Ddpms.cpp7 #include <errno.h>
35 return errno;
/haiku/src/tests/misc/
H A Dwritev-test.cpp4 #include <errno.h>
14 printf("file open error %s\n", strerror(errno));
24 printf("vec 1 write error %s\n", strerror(errno));
31 printf("vec 2 write error %s\n", strerror(errno));
38 printf("vec 3 write error %s\n", strerror(errno));

Completed in 214 milliseconds

1234567891011>>