Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mconsole_user.c File Reference
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <sys/un.h>
#include "mconsole.h"

Go to the source code of this file.


#define MIN(a, b)   ((a)<(b) ? (a):(b))
#define STRINGX(x)   #x
#define STRING(x)   STRINGX(x)


int mconsole_get_request (int fd, struct mc_request *req)
int mconsole_reply_len (struct mc_request *req, const char *str, int total, int err, int more)
int mconsole_reply (struct mc_request *req, const char *str, int err, int more)
int mconsole_unlink_socket (void)
int mconsole_notify (char *sock_name, int type, const void *data, int len)


char mconsole_socket_name [256]

Macro Definition Documentation

#define MIN (   a,
)    ((a)<(b) ? (a):(b))

Definition at line 74 of file mconsole_user.c.

#define STRING (   x)    STRINGX(x)

Definition at line 77 of file mconsole_user.c.

#define STRINGX (   x)    #x

Definition at line 76 of file mconsole_user.c.

Function Documentation

int mconsole_get_request ( int  fd,
struct mc_request req 

Definition at line 79 of file mconsole_user.c.

int mconsole_notify ( char sock_name,
int  type,
const void data,
int  len 

Definition at line 179 of file mconsole_user.c.

int mconsole_reply ( struct mc_request req,
const char str,
int  err,
int  more 

Definition at line 165 of file mconsole_user.c.

int mconsole_reply_len ( struct mc_request req,
const char str,
int  total,
int  err,
int  more 

Definition at line 126 of file mconsole_user.c.

int mconsole_unlink_socket ( void  )

Definition at line 171 of file mconsole_user.c.

Variable Documentation

char mconsole_socket_name[256]

Definition at line 38 of file mconsole_user.c.