* sysdeps/hppa/nptl/tls.h: Fix comment.
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Fix comment format.
[__USE_GNU] (O_CLOEXEC): Define.
* sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Issue error
if the library is unsupported.
[ASSEMBLER && IS_IN_librt]: Define CENABLE, CDISABLE, and
__local_multiple_threads.
+2007-09-24 Carlos O'Donell <carlos@systemhalted.org>
+
+ * sysdeps/hppa/nptl/tls.h: Fix comment.
+ * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Fix comment format.
+ [__USE_GNU] (O_CLOEXEC): Define.
+ * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Issue error
+ if the library is unsupported.
+ [ASSEMBLER && IS_IN_librt]: Define CENABLE, CDISABLE, and
+ __local_multiple_threads.
+
2007-08-03 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h:
#define THREAD_GSCOPE_WAIT() \
GL(dl_wait_lookup_done) ()
-#endif /* __ASSEMBLER__ */
+#endif /* !__ASSEMBLER__ */
#endif /* tls.h */
#ifdef __USE_GNU
-# define O_DIRECT 00040000 /* Direct disk access. */
-# define O_DIRECTORY 00010000 /* Must be a directory. */
-# define O_NOFOLLOW 00000200 /* Do not follow links. */
-# define O_NOATIME 04000000 /* Do not set atime. */
+# define O_DIRECT 000040000 /* Direct disk access. */
+# define O_DIRECTORY 000010000 /* Must be a directory. */
+# define O_NOFOLLOW 000000200 /* Do not follow links. */
+# define O_NOATIME 004000000 /* Do not set atime. */
+# define O_CLOEXEC 010000000 /* Set close_on_exec. */
#endif
#ifdef __USE_LARGEFILE64
# define CDISABLE .import __libc_disable_asynccancel,code ASM_LINE_SEP \
bl __libc_disable_asynccancel,%r2 ASM_LINE_SEP
# endif
-# else
+# elif defined IS_IN_librt
# ifdef PIC
# define CENABLE .import __librt_enable_asynccancel,code ASM_LINE_SEP \
bl __librt_enable_asynccancel,%r2 ASM_LINE_SEP
# define CDISABLE .import __librt_disable_asynccancel,code ASM_LINE_SEP \
bl __librt_disable_asynccancel,%r2 ASM_LINE_SEP
# endif
+# else
+# error Unsupported library
# endif
# ifdef IS_IN_libpthread
# define __local_multiple_threads __pthread_multiple_threads
# elif !defined NOT_IN_libc
# define __local_multiple_threads __libc_multiple_threads
-# else
+# elif IS_IN_librt
# define __local_multiple_threads __librt_multiple_threads
+# else
+# error Unsupported library
# endif
# ifndef __ASSEMBLER__