]>
Commit | Line | Data |
---|---|---|
9098b1e1 MT |
1 | From: https://sourceware.org/bugzilla/show_bug.cgi?id=12841 |
2 | ||
3 | --- libc/rt/bits/mqueue2.h 2009-05-16 19:23:37.000000000 +0200 | |
4 | +++ libc/rt/bits/mqueue2.h 2011-06-04 19:05:38.322333773 +0200 | |
5 | @@ -1,5 +1,5 @@ | |
6 | /* Checking macros for mq functions. | |
7 | - Copyright (C) 2007 Free Software Foundation, Inc. | |
8 | + Copyright (C) 2007, 2011 Free Software Foundation, Inc. | |
9 | This file is part of the GNU C Library. | |
10 | ||
11 | The GNU C Library is free software; you can redistribute it and/or | |
12 | @@ -25,16 +25,18 @@ | |
13 | parameter. */ | |
14 | extern mqd_t mq_open (__const char *__name, int __oflag, ...) | |
15 | __THROW __nonnull ((1)); | |
16 | -extern mqd_t __mq_open_2 (__const char *__name, int __oflag) __nonnull ((1)); | |
17 | -extern mqd_t __REDIRECT (__mq_open_alias, (__const char *__name, int __oflag, ...), | |
18 | - mq_open) __nonnull ((1)); | |
19 | +extern mqd_t __mq_open_2 (__const char *__name, int __oflag) | |
20 | + __THROW __nonnull ((1)); | |
21 | +extern mqd_t __REDIRECT_NTH (__mq_open_alias, (__const char *__name, | |
22 | + int __oflag, ...), mq_open) | |
23 | + __nonnull ((1)); | |
24 | __errordecl (__mq_open_wrong_number_of_args, | |
25 | "mq_open can be called either with 2 or 4 arguments"); | |
26 | __errordecl (__mq_open_missing_mode_and_attr, | |
27 | "mq_open with O_CREAT in second argument needs 4 arguments"); | |
28 | ||
29 | __extern_always_inline mqd_t | |
30 | -mq_open (__const char *__name, int __oflag, ...) | |
31 | +__NTH (mq_open (__const char *__name, int __oflag, ...)) | |
32 | { | |
33 | if (__va_arg_pack_len () != 0 && __va_arg_pack_len () != 2) | |
34 | __mq_open_wrong_number_of_args (); |