diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-06-04 14:21:45 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-06-04 14:21:45 -0400 |
commit | f16846a5f279b4eb5f80821e8d27ffa73b1a1f7d (patch) | |
tree | 8eda5073dcd740d0a83263bd89e36fd6bc33bdd0 /rt/bits/mqueue2.h | |
parent | 06c07b8b9fd21854c90d22b5b23196d78837262a (diff) | |
download | glibc-f16846a5f279b4eb5f80821e8d27ffa73b1a1f7d.tar glibc-f16846a5f279b4eb5f80821e8d27ffa73b1a1f7d.tar.gz glibc-f16846a5f279b4eb5f80821e8d27ffa73b1a1f7d.tar.bz2 glibc-f16846a5f279b4eb5f80821e8d27ffa73b1a1f7d.zip |
Fix <bits/mqueue2.h> for C++
Diffstat (limited to 'rt/bits/mqueue2.h')
-rw-r--r-- | rt/bits/mqueue2.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rt/bits/mqueue2.h b/rt/bits/mqueue2.h index 4c90609e83..a6d0815722 100644 --- a/rt/bits/mqueue2.h +++ b/rt/bits/mqueue2.h @@ -1,5 +1,5 @@ /* Checking macros for mq functions. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,16 +25,18 @@ parameter. */ extern mqd_t mq_open (__const char *__name, int __oflag, ...) __THROW __nonnull ((1)); -extern mqd_t __mq_open_2 (__const char *__name, int __oflag) __nonnull ((1)); -extern mqd_t __REDIRECT (__mq_open_alias, (__const char *__name, int __oflag, ...), - mq_open) __nonnull ((1)); +extern mqd_t __mq_open_2 (__const char *__name, int __oflag) + __THROW __nonnull ((1)); +extern mqd_t __REDIRECT_NTH (__mq_open_alias, (__const char *__name, + int __oflag, ...), mq_open) + __nonnull ((1)); __errordecl (__mq_open_wrong_number_of_args, "mq_open can be called either with 2 or 4 arguments"); __errordecl (__mq_open_missing_mode_and_attr, "mq_open with O_CREAT in second argument needs 4 arguments"); __extern_always_inline mqd_t -mq_open (__const char *__name, int __oflag, ...) +__NTH (mq_open (__const char *__name, int __oflag, ...)) { if (__va_arg_pack_len () != 0 && __va_arg_pack_len () != 2) __mq_open_wrong_number_of_args (); |