Skip to content

File gencat.c

FileList > cubrid > src > executables > gencat.c

Go to the source code of this file

  • #include <sys/cdefs.h>
  • #include <sys/types.h>
  • #include <sys/queue.h>
  • #include <arpa/inet.h>
  • #include <ctype.h>
  • #include <errno.h>
  • #include <fcntl.h>
  • #include <limits.h>
  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <unistd.h>
  • #include "porting.h"
  • #include "cubrid_getopt.h"

Classes

Type Name
struct _msgT
struct _nls_cat_hdr
struct _nls_msg_hdr
struct _nls_set_hdr
struct _setT

Public Functions

Type Name
LIST_HEAD ()
void MCAddMsg (int msgId, const char * str)
void MCAddSet (int setId)
void MCDelMsg (int msgId)
void MCDelSet (int setId)
void MCParse (int fd)
void MCReadCat (int fd)
void MCWriteCat (int fd)
int main (int argc, char * argv)

Public Static Functions

Type Name
char * cskip (char * cptr)
void error (const char * msg)
char * get_line (int fd)
char * getmsg (int fd, char * cptr, char quote)
void warning (const char * cptr, const char * msg)
char * wskip (char * cptr)
void * xmalloc (size_t len)
void * xrealloc (void * ptr, size_t size)
char * xstrdup (const char * str)

Macros

Type Name
define CORRUPT "corrupt message [**catalog"**](broker__monitor_8c.md#function-timeout)
define NL_CAT_LOCALE 1
define NL_MSGMAX 2048
define NL_SETD 0
define NL_SETMAX 255
define NOMEMORY "out [**of**](broker__monitor_8c.md#function-timeout) [**memory"**](broker__monitor_8c.md#function-timeout)
define _NLS_MAGIC 0xff88ff89
define _NLS_PRIVATE

Public Functions Documentation

function LIST_HEAD

LIST_HEAD () 

function MCAddMsg

void MCAddMsg (
    int msgId,
    const  char * str
) 

function MCAddSet

void MCAddSet (
    int setId
) 

function MCDelMsg

void MCDelMsg (
    int msgId
) 

function MCDelSet

void MCDelSet (
    int setId
) 

function MCParse

void MCParse (
    int fd
) 

function MCReadCat

void MCReadCat (
    int fd
) 

function MCWriteCat

void MCWriteCat (
    int fd
) 

function main

int main (
    int argc,
    char * argv
) 

Public Static Functions Documentation

function cskip

static char * cskip (
    char * cptr
) 

function error

static void error (
    const  char * msg
) 

function get_line

static char * get_line (
    int fd
) 

function getmsg

static char * getmsg (
    int fd,
    char * cptr,
    char quote
) 

function warning

static void warning (
    const  char * cptr,
    const  char * msg
) 

function wskip

static char * wskip (
    char * cptr
) 

function xmalloc

static void * xmalloc (
    size_t len
) 

function xrealloc

static void * xrealloc (
    void * ptr,
    size_t size
) 

function xstrdup

static char * xstrdup (
    const  char * str
) 

Macro Definition Documentation

define CORRUPT

#define CORRUPT `"corrupt message catalog"`

define NL_CAT_LOCALE

#define NL_CAT_LOCALE `1`

define NL_MSGMAX

#define NL_MSGMAX `2048`

define NL_SETD

#define NL_SETD `0`

define NL_SETMAX

#define NL_SETMAX `255`

define NOMEMORY

#define NOMEMORY `"out of  memory"`

define _NLS_MAGIC

#define _NLS_MAGIC `0xff88ff89`

define _NLS_PRIVATE

#define _NLS_PRIVATE 


The documentation for this class was generated from the following file cubrid/src/executables/gencat.c