mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
[BZ #6545]
* sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make available only for __USE_GNU.
This commit is contained in:
parent
71053765e0
commit
135460f45c
@ -1,5 +1,9 @@
|
|||||||
2008-12-08 Ulrich Drepper <drepper@redhat.com>
|
2008-12-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #6545]
|
||||||
|
* sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
|
||||||
|
available only for __USE_GNU.
|
||||||
|
|
||||||
* inet/Makefile (tests): Add tst-getni2.
|
* inet/Makefile (tests): Add tst-getni2.
|
||||||
* inet/tst-getni2.c: New file.
|
* inet/tst-getni2.c: New file.
|
||||||
|
|
||||||
|
@ -655,7 +655,7 @@ extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
|
|||||||
/* Remove a cleanup handler installed by the matching pthread_cleanup_push.
|
/* Remove a cleanup handler installed by the matching pthread_cleanup_push.
|
||||||
If EXECUTE is non-zero, the handler function is called. */
|
If EXECUTE is non-zero, the handler function is called. */
|
||||||
# define pthread_cleanup_pop(execute) \
|
# define pthread_cleanup_pop(execute) \
|
||||||
do; while (0); /* Empty to allow label before pthread_cleanup_pop. */ \
|
do { } while (0);/* Empty to allow label before pthread_cleanup_pop. */\
|
||||||
} while (0); \
|
} while (0); \
|
||||||
__pthread_unregister_cancel (&__cancel_buf); \
|
__pthread_unregister_cancel (&__cancel_buf); \
|
||||||
if (execute) \
|
if (execute) \
|
||||||
@ -691,7 +691,7 @@ extern void __pthread_register_cancel_defer (__pthread_unwind_buf_t *__buf)
|
|||||||
restores the cancellation type that was in effect when the matching
|
restores the cancellation type that was in effect when the matching
|
||||||
pthread_cleanup_push_defer was called. */
|
pthread_cleanup_push_defer was called. */
|
||||||
# define pthread_cleanup_pop_restore_np(execute) \
|
# define pthread_cleanup_pop_restore_np(execute) \
|
||||||
do; while (0); /* Empty to allow label before pthread_cleanup_pop. */ \
|
do { } while (0);/* Empty to allow label before pthread_cleanup_pop. */\
|
||||||
} while (0); \
|
} while (0); \
|
||||||
__pthread_unregister_cancel_restore (&__cancel_buf); \
|
__pthread_unregister_cancel_restore (&__cancel_buf); \
|
||||||
if (execute) \
|
if (execute) \
|
||||||
|
@ -309,7 +309,7 @@ enum
|
|||||||
{
|
{
|
||||||
SCM_RIGHTS = 0x01 /* Transfer file descriptors. */
|
SCM_RIGHTS = 0x01 /* Transfer file descriptors. */
|
||||||
#define SCM_RIGHTS SCM_RIGHTS
|
#define SCM_RIGHTS SCM_RIGHTS
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_GNU
|
||||||
, SCM_CREDENTIALS = 0x02 /* Credentials passing. */
|
, SCM_CREDENTIALS = 0x02 /* Credentials passing. */
|
||||||
# define SCM_CREDENTIALS SCM_CREDENTIALS
|
# define SCM_CREDENTIALS SCM_CREDENTIALS
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user