Back to index

glibc  2.9
Defines | Functions
mqueue.h File Reference
#include <features.h>
#include <sys/types.h>
#include <fcntl.h>
#include <bits/siginfo.h>
#include <time.h>
#include <bits/mqueue.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __need_sigevent_t
#define __need_timespec

Functions

__BEGIN_DECLS mqd_t mq_open (__const char *__name, int __oflag,...) __THROW __nonnull((1))
int mq_close (mqd_t __mqdes) __THROW
int mq_getattr (mqd_t __mqdes, struct mq_attr *__mqstat) __THROW __nonnull((2))
int mq_setattr (mqd_t __mqdes, __const struct mq_attr *__restrict __mqstat, struct mq_attr *__restrict __omqstat) __THROW __nonnull((2))
int mq_unlink (__const char *__name) __THROW __nonnull((1))
int mq_notify (mqd_t __mqdes, __const struct sigevent *__notification) __THROW
ssize_t mq_receive (mqd_t __mqdes, char *__msg_ptr, size_t __msg_len, unsigned int *__msg_prio) __nonnull((2))
int mq_send (mqd_t __mqdes, __const char *__msg_ptr, size_t __msg_len, unsigned int __msg_prio) __nonnull((2))

Define Documentation

Definition at line 25 of file mqueue.h.

#define __need_timespec

Definition at line 27 of file mqueue.h.


Function Documentation

int mq_close ( mqd_t  __mqdes)

Definition at line 25 of file mq_close.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function:

int mq_getattr ( mqd_t  __mqdes,
struct mq_attr __mqstat 
)

Definition at line 24 of file mq_getattr.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function:

int mq_notify ( mqd_t  __mqdes,
__const struct sigevent *  __notification 
)
__BEGIN_DECLS mqd_t mq_open ( __const char *  __name,
int  __oflag,
  ... 
)

Definition at line 37 of file mqueue2.h.

{
  if (__va_arg_pack_len () != 0 && __va_arg_pack_len () != 2)
    __mq_open_wrong_number_of_args ();

  if (__builtin_constant_p (__oflag))
    {
      if ((__oflag & O_CREAT) != 0 && __va_arg_pack_len () == 0)
       {
         __mq_open_missing_mode_and_attr ();
         return __mq_open_2 (__name, __oflag);
       }
      return __mq_open_alias (__name, __oflag, __va_arg_pack ());
    }

  if (__va_arg_pack_len () == 0)
    return __mq_open_2 (__name, __oflag);

  return __mq_open_alias (__name, __oflag, __va_arg_pack ());
}

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t mq_receive ( mqd_t  __mqdes,
char *  __msg_ptr,
size_t  __msg_len,
unsigned int __msg_prio 
)

Definition at line 25 of file mq_receive.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function:

int mq_send ( mqd_t  __mqdes,
__const char *  __msg_ptr,
size_t  __msg_len,
unsigned int  __msg_prio 
)
int mq_setattr ( mqd_t  __mqdes,
__const struct mq_attr *__restrict  __mqstat,
struct mq_attr *__restrict  __omqstat 
)
int mq_unlink ( __const char *  __name)