Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: mqueue.h
/* Copyright (C) 2004-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _MQUEUE_H
[17] Fix | Delete
#define _MQUEUE_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
#include <fcntl.h>
[22] Fix | Delete
#include <bits/types/sigevent_t.h>
[23] Fix | Delete
#include <bits/types/struct_timespec.h>
[24] Fix | Delete
/* Get the definition of mqd_t and struct mq_attr. */
[25] Fix | Delete
#include <bits/mqueue.h>
[26] Fix | Delete
[27] Fix | Delete
__BEGIN_DECLS
[28] Fix | Delete
[29] Fix | Delete
/* Establish connection between a process and a message queue NAME and
[30] Fix | Delete
return message queue descriptor or (mqd_t) -1 on error. OFLAG determines
[31] Fix | Delete
the type of access used. If O_CREAT is on OFLAG, the third argument is
[32] Fix | Delete
taken as a `mode_t', the mode of the created message queue, and the fourth
[33] Fix | Delete
argument is taken as `struct mq_attr *', pointer to message queue
[34] Fix | Delete
attributes. If the fourth argument is NULL, default attributes are
[35] Fix | Delete
used. */
[36] Fix | Delete
extern mqd_t mq_open (const char *__name, int __oflag, ...)
[37] Fix | Delete
__THROW __nonnull ((1));
[38] Fix | Delete
[39] Fix | Delete
/* Removes the association between message queue descriptor MQDES and its
[40] Fix | Delete
message queue. */
[41] Fix | Delete
extern int mq_close (mqd_t __mqdes) __THROW;
[42] Fix | Delete
[43] Fix | Delete
/* Query status and attributes of message queue MQDES. */
[44] Fix | Delete
extern int mq_getattr (mqd_t __mqdes, struct mq_attr *__mqstat)
[45] Fix | Delete
__THROW __nonnull ((2));
[46] Fix | Delete
[47] Fix | Delete
/* Set attributes associated with message queue MQDES and if OMQSTAT is
[48] Fix | Delete
not NULL also query its old attributes. */
[49] Fix | Delete
extern int mq_setattr (mqd_t __mqdes,
[50] Fix | Delete
const struct mq_attr *__restrict __mqstat,
[51] Fix | Delete
struct mq_attr *__restrict __omqstat)
[52] Fix | Delete
__THROW __nonnull ((2));
[53] Fix | Delete
[54] Fix | Delete
/* Remove message queue named NAME. */
[55] Fix | Delete
extern int mq_unlink (const char *__name) __THROW __nonnull ((1));
[56] Fix | Delete
[57] Fix | Delete
/* Register notification issued upon message arrival to an empty
[58] Fix | Delete
message queue MQDES. */
[59] Fix | Delete
extern int mq_notify (mqd_t __mqdes, const struct sigevent *__notification)
[60] Fix | Delete
__THROW;
[61] Fix | Delete
[62] Fix | Delete
/* Receive the oldest from highest priority messages in message queue
[63] Fix | Delete
MQDES. */
[64] Fix | Delete
extern ssize_t mq_receive (mqd_t __mqdes, char *__msg_ptr, size_t __msg_len,
[65] Fix | Delete
unsigned int *__msg_prio) __nonnull ((2));
[66] Fix | Delete
[67] Fix | Delete
/* Add message pointed by MSG_PTR to message queue MQDES. */
[68] Fix | Delete
extern int mq_send (mqd_t __mqdes, const char *__msg_ptr, size_t __msg_len,
[69] Fix | Delete
unsigned int __msg_prio) __nonnull ((2));
[70] Fix | Delete
[71] Fix | Delete
#ifdef __USE_XOPEN2K
[72] Fix | Delete
/* Receive the oldest from highest priority messages in message queue
[73] Fix | Delete
MQDES, stop waiting if ABS_TIMEOUT expires. */
[74] Fix | Delete
extern ssize_t mq_timedreceive (mqd_t __mqdes, char *__restrict __msg_ptr,
[75] Fix | Delete
size_t __msg_len,
[76] Fix | Delete
unsigned int *__restrict __msg_prio,
[77] Fix | Delete
const struct timespec *__restrict __abs_timeout)
[78] Fix | Delete
__nonnull ((2, 5));
[79] Fix | Delete
[80] Fix | Delete
/* Add message pointed by MSG_PTR to message queue MQDES, stop blocking
[81] Fix | Delete
on full message queue if ABS_TIMEOUT expires. */
[82] Fix | Delete
extern int mq_timedsend (mqd_t __mqdes, const char *__msg_ptr,
[83] Fix | Delete
size_t __msg_len, unsigned int __msg_prio,
[84] Fix | Delete
const struct timespec *__abs_timeout)
[85] Fix | Delete
__nonnull ((2, 5));
[86] Fix | Delete
#endif
[87] Fix | Delete
[88] Fix | Delete
/* Define some inlines helping to catch common problems. */
[89] Fix | Delete
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function \
[90] Fix | Delete
&& defined __va_arg_pack_len
[91] Fix | Delete
# include <bits/mqueue2.h>
[92] Fix | Delete
#endif
[93] Fix | Delete
[94] Fix | Delete
__END_DECLS
[95] Fix | Delete
[96] Fix | Delete
#endif /* mqueue.h */
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function