Back to index

tetex-bin  3.0
Defines | Functions | Variables
system.h File Reference
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include "gettext.h"
#include "strcase.h"
#include <errno.h>
#include <sys/stat.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _GNU_SOURCE
#define setlocale(category, locale)   /* empty */
#define const
#define _(String)   gettext (String)
#define N_(String)   (String)
#define _POSIX_PATH_MAX   255
#define PATH_MAX   _POSIX_PATH_MAX
#define O_BINARY   0
#define VA_START(args, lastarg)
#define va_alist   a1, a2, a3, a4, a5, a6, a7, a8
#define va_dcl   char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
#define va_end(args)
#define SET_BINARY(f)   (void)0
#define FOPEN_RBIN   "r"
#define FOPEN_WBIN   "w"
#define IS_SLASH(c)   ((c) == '/')
#define HAVE_DRIVE(n)   (0)
#define IS_ABSOLUTE(n)   ((n)[0] == '/')
#define FILENAME_CMP   strcmp
#define FILENAME_CMPN   strncmp
#define HAVE_LONG_FILENAMES(dir)   (1)
#define PATH_SEP   ":"
#define STRIP_DOT_EXE   0
#define DEFAULT_TMPDIR   "/tmp/"
#define NULL_DEVICE   "/dev/null"
#define PIPE_USE_FORK   1
#define ALSO_NULL_DEVICE   ""
#define STREQ(s1, s2)   (strcmp (s1, s2) == 0)
#define STRCASEEQ(s1, s2)   (strcasecmp (s1, s2) == 0)
#define STRNCASEEQ(s1, s2, n)   (strncasecmp (s1, s2, n) == 0)
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define MAX(a, b)   ((a) > (b) ? (a) : (b))

Functions

char * substring (const char *, const char *)
char * getenv ()
char * memchr ()
char * strerror ()
int strcasecmp ()
int strncasecmp ()
int strcoll ()
struct passwd * getpwnam (const char *name)
voidxmalloc (size_t)
voidxrealloc (void *, size_t)
char * xstrdup (const char *)
void xexit (int)

Variables

int errno

Define Documentation

#define _ (   String)    gettext (String)

Definition at line 57 of file system.h.

#define _GNU_SOURCE

Definition at line 24 of file system.h.

#define _POSIX_PATH_MAX   255

Definition at line 115 of file system.h.

#define ALSO_NULL_DEVICE   ""

Definition at line 261 of file system.h.

#define const

Definition at line 53 of file system.h.

#define DEFAULT_TMPDIR   "/tmp/"

Definition at line 253 of file system.h.

#define FILENAME_CMP   strcmp

Definition at line 245 of file system.h.

#define FILENAME_CMPN   strncmp

Definition at line 246 of file system.h.

#define FOPEN_RBIN   "r"

Definition at line 240 of file system.h.

#define FOPEN_WBIN   "w"

Definition at line 241 of file system.h.

#define HAVE_DRIVE (   n)    (0)

Definition at line 243 of file system.h.

#define HAVE_LONG_FILENAMES (   dir)    (1)

Definition at line 247 of file system.h.

#define IS_ABSOLUTE (   n)    ((n)[0] == '/')

Definition at line 244 of file system.h.

#define IS_SLASH (   c)    ((c) == '/')

Definition at line 242 of file system.h.

#define MAX (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Definition at line 289 of file system.h.

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

Definition at line 285 of file system.h.

#define N_ (   String)    (String)

Definition at line 58 of file system.h.

#define NULL_DEVICE   "/dev/null"

Definition at line 255 of file system.h.

#define O_BINARY   0

Definition at line 171 of file system.h.

#define PATH_MAX   _POSIX_PATH_MAX

Definition at line 117 of file system.h.

#define PATH_SEP   ":"

Definition at line 248 of file system.h.

#define PIPE_USE_FORK   1

Definition at line 256 of file system.h.

#define SET_BINARY (   f)    (void)0

Definition at line 239 of file system.h.

#define setlocale (   category,
  locale 
)    /* empty */

Definition at line 49 of file system.h.

#define STRCASEEQ (   s1,
  s2 
)    (strcasecmp (s1, s2) == 0)

Definition at line 277 of file system.h.

#define STREQ (   s1,
  s2 
)    (strcmp (s1, s2) == 0)

Definition at line 276 of file system.h.

#define STRIP_DOT_EXE   0

Definition at line 249 of file system.h.

#define STRNCASEEQ (   s1,
  s2,
  n 
)    (strncasecmp (s1, s2, n) == 0)

Definition at line 278 of file system.h.

#define va_alist   a1, a2, a3, a4, a5, a6, a7, a8

Definition at line 189 of file system.h.

#define va_dcl   char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;

Definition at line 190 of file system.h.

#define va_end (   args)

Definition at line 191 of file system.h.

#define VA_START (   args,
  lastarg 
)

Definition at line 188 of file system.h.


Function Documentation

char* getenv ( )
struct passwd* getpwnam ( const char *  name) [read]

Here is the caller graph for this function:

char* memchr ( )

Here is the caller graph for this function:

int strcoll ( )

Here is the caller graph for this function:

char* strerror ( )
char* substring ( const char *  ,
const char *   
)

Definition at line 23 of file substring.c.

{
  char *result = xmalloc (end - start + 1);
  char *scan_result = result;
  const char *scan = start;

  while (scan < end)
    *scan_result++ = *scan++;

  *scan_result = 0;
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void xexit ( int  )

Definition at line 50 of file xexit.c.

{
  if (ferror (stdout))
    {
      fputs (_("ferror on stdout\n"), stderr);
      exit_status = 1;
    }
  else if (fflush (stdout) != 0)
    {
      fputs (_("fflush error on stdout\n"), stderr);
      exit_status = 1;
    }

  exit_status = exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE;

  exit (exit_status);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void * xrealloc ( void ,
size_t   
)

Definition at line 46 of file xmalloc.c.

{
  void *temp;

  if (!pointer)
    temp = malloc (bytes);
  else
    temp = realloc (pointer, bytes);

  if (!temp)
    memory_error_and_abort ("xrealloc");

  return (temp);
}
char* xstrdup ( const char *  )

Definition at line 733 of file util.c.

{
    size_t len;
    char *new;

    ASSERT(fprintf(stderr, "Test assertion!\n") && 1 == 0);
    ASSERT(str != NULL, "");
    len = strlen(str) + 1;
    new = xmalloc(len);
    memcpy(new, str, len);
    return new;
}

Variable Documentation