Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mq_open_tests.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <mqueue.h>

Go to the source code of this file.

Functions

void shutdown (int exit_val, char *err_cause, int line_no)
 
void validate_current_settings ()
 
int main (int argc, char *argv[])
 

Variables

charDEF_MSGS = "/proc/sys/fs/mqueue/msg_default"
 
charDEF_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_default"
 
charMAX_MSGS = "/proc/sys/fs/mqueue/msg_max"
 
charMAX_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_max"
 
int default_settings
 
struct rlimit saved_limits cur_limits
 
int saved_def_msgs
 
int saved_def_msgsize
 
int saved_max_msgs
 
int saved_max_msgsize
 
int cur_def_msgs
 
int cur_def_msgsize
 
int cur_max_msgs
 
int cur_max_msgsize
 
FILE * def_msgs
 
FILE * def_msgsize
 
FILE * max_msgs
 
FILE * max_msgsize
 
charqueue_path
 
mqd_t queue = -1
 

Function Documentation

int main ( int  argc,
char argv[] 
)

Definition at line 234 of file mq_open_tests.c.

void shutdown ( int  exit_val,
char err_cause,
int  line_no 
)

Definition at line 75 of file mq_open_tests.c.

void validate_current_settings ( )

Definition at line 148 of file mq_open_tests.c.

Variable Documentation

int cur_def_msgs

Definition at line 52 of file mq_open_tests.c.

int cur_def_msgsize

Definition at line 52 of file mq_open_tests.c.

struct rlimit saved_limits cur_limits

Definition at line 50 of file mq_open_tests.c.

int cur_max_msgs

Definition at line 52 of file mq_open_tests.c.

int cur_max_msgsize

Definition at line 52 of file mq_open_tests.c.

char* DEF_MSGS = "/proc/sys/fs/mqueue/msg_default"

Definition at line 44 of file mq_open_tests.c.

FILE* def_msgs

Definition at line 53 of file mq_open_tests.c.

char* DEF_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_default"

Definition at line 45 of file mq_open_tests.c.

FILE * def_msgsize

Definition at line 53 of file mq_open_tests.c.

int default_settings

Definition at line 49 of file mq_open_tests.c.

char* MAX_MSGS = "/proc/sys/fs/mqueue/msg_max"

Definition at line 46 of file mq_open_tests.c.

FILE * max_msgs

Definition at line 53 of file mq_open_tests.c.

char* MAX_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_max"

Definition at line 47 of file mq_open_tests.c.

FILE * max_msgsize

Definition at line 53 of file mq_open_tests.c.

mqd_t queue = -1

Definition at line 55 of file mq_open_tests.c.

char* queue_path

Definition at line 54 of file mq_open_tests.c.

int saved_def_msgs

Definition at line 51 of file mq_open_tests.c.

int saved_def_msgsize

Definition at line 51 of file mq_open_tests.c.

int saved_max_msgs

Definition at line 51 of file mq_open_tests.c.

int saved_max_msgsize

Definition at line 51 of file mq_open_tests.c.