aboutsummaryrefslogtreecommitdiff
path: root/qemu-thread-posix.c
AgeCommit message (Expand)AuthorFilesLines
2012-11-02semaphore: implement fallback counting semaphores with mutex+condvarPaolo Bonzini1-10/+82
2012-10-31qemu-thread: add QemuSemaphorePaolo Bonzini1-0/+80
2012-08-02qemu-thread: Let qemu_thread_is_self() return boolAndreas Färber1-1/+1
2011-12-12qemu-thread: implement joinable threads for POSIXJan Kiszka1-2/+26
2011-12-12qemu-thread: add API for joinable threadsJan Kiszka1-3/+4
2011-09-21Abort on thread layer errorsJan Kiszka1-1/+1
2011-03-19qemu-thread: delete unused functionsBlue Swirl1-38/+0
2011-03-13add Win32 IPI servicePaolo Bonzini1-9/+0
2011-03-13add assertions on the owner of a QemuMutexPaolo Bonzini1-1/+5
2011-03-13add win32 qemu-thread implementationPaolo Bonzini1-0/+192
hjl/pr18078'>hjl/pr18078 Unnamed repository; edit this file 'description' to name the repository.root
aboutsummaryrefslogtreecommitdiff
path: root/include/errno.h
blob: c361a785c24b928fd3f6b58ef11090b0efb9390b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _ERRNO_H
#include <stdlib/errno.h>
#if !defined _ISOMAC && !defined __ASSEMBLER__

# if IS_IN (rtld)
#  include <dl-sysdep.h>
#  ifndef RTLD_PRIVATE_ERRNO
#   error "dl-sysdep.h must define RTLD_PRIVATE_ERRNO!"
#  endif
# else
#  define RTLD_PRIVATE_ERRNO	0
# endif

# if RTLD_PRIVATE_ERRNO
/* The dynamic linker uses its own private errno variable.
   All access to errno inside the dynamic linker is serialized,
   so a single (hidden) global variable is all it needs.  */

#  undef  errno
#  define errno rtld_errno
extern int rtld_errno attribute_hidden;

# elif IS_IN_LIB && !IS_IN (rtld)

#  undef  errno
#  if IS_IN (libc)
#   define errno __libc_errno
#  else
#   define errno errno		/* For #ifndef errno tests.  */
#  endif
extern __thread int errno attribute_tls_model_ie;

# endif	/* IS_IN_LIB */

# define __set_errno(val) (errno = (val))

extern int *__errno_location (void) __THROW __attribute_const__
#  if RTLD_PRIVATE_ERRNO
     attribute_hidden
#  endif
;
libc_hidden_proto (__errno_location)

#endif /* !_ISOMAC && !__ASSEMBLER__ */
#endif /* !_ERRNO_H */