Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

sys2.h File Reference

#include <alloca.h>
#include <stdint.h>
#include <inttypes.h>
#include <ctype.h>
#include <locale.h>
#include <libintl.h>
#include "xalloc.h"
#include "closeout.h"
#include "version-etc.h"

Include dependency graph for sys2.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define S_IFMT   0170000
#define S_ISUID   04000
#define S_ISGID   02000
#define S_ISVTX   01000
#define S_IRUSR   00400
#define S_IRGRP   (S_IRUSR >> 3)
#define S_IROTH   (S_IRUSR >> 6)
#define S_IWUSR   00200
#define S_IWGRP   (S_IWUSR >> 3)
#define S_IWOTH   (S_IWUSR >> 6)
#define S_IXUSR   00100
#define S_IXGRP   (S_IXUSR >> 3)
#define S_IXOTH   (S_IXUSR >> 6)
#define S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)
#define S_IRWXG   (S_IRGRP | S_IWGRP | S_IXGRP)
#define S_IRWXO   (S_IROTH | S_IWOTH | S_IXOTH)
#define S_IXUGO   (S_IXUSR | S_IXGRP | S_IXOTH)
#define S_IRWXUGO   (S_IRWXU | S_IRWXG | S_IRWXO)
#define CHMOD_MODE_BITS   (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
#define ST_TIME_CMP_NS(a, b, ns)   0
#define ST_TIME_CMP(a, b, s, ns)   ((a).s < (b).s ? -1 : (a).s > (b).s ? 1 : ST_TIME_CMP_NS(a, b, ns))
#define ATIME_CMP(a, b)   ST_TIME_CMP (a, b, st_atime, st_atim.ST_MTIM_NSEC)
#define CTIME_CMP(a, b)   ST_TIME_CMP (a, b, st_ctime, st_ctim.ST_MTIM_NSEC)
#define MTIME_CMP(a, b)   ST_TIME_CMP (a, b, st_mtime, st_mtim.ST_MTIM_NSEC)
#define RETSIGTYPE   void
#define IN_CTYPE_DOMAIN(c)   1
#define ISBLANK(c)   ((c) == ' ' || (c) == '\t')
#define ISGRAPH(c)   (IN_CTYPE_DOMAIN (c) && isprint (c) && !isspace (c))
#define ISPRINT(c)   (IN_CTYPE_DOMAIN (c) && isprint (c))
#define ISALNUM(c)   (IN_CTYPE_DOMAIN (c) && isalnum (c))
#define ISALPHA(c)   (IN_CTYPE_DOMAIN (c) && isalpha (c))
#define ISCNTRL(c)   (IN_CTYPE_DOMAIN (c) && iscntrl (c))
#define ISLOWER(c)   (IN_CTYPE_DOMAIN (c) && islower (c))
#define ISPUNCT(c)   (IN_CTYPE_DOMAIN (c) && ispunct (c))
#define ISSPACE(c)   (IN_CTYPE_DOMAIN (c) && isspace (c))
#define ISUPPER(c)   (IN_CTYPE_DOMAIN (c) && isupper (c))
#define ISXDIGIT(c)   (IN_CTYPE_DOMAIN (c) && isxdigit (c))
#define ISDIGIT_LOCALE(c)   (IN_CTYPE_DOMAIN (c) && isdigit (c))
#define TOLOWER(Ch)   (ISUPPER (Ch) ? tolower (Ch) : (Ch))
#define TOUPPER(Ch)   (ISLOWER (Ch) ? toupper (Ch) : (Ch))
#define ISDIGIT(c)   ((unsigned) (c) - '0' <= 9)
#define PARAMS(Args)   ()
#define setlocale(Category, Locale)
#define bindtextdomain(Domain, Directory)
#define textdomain(Domain)
#define dcgettext(Domainname, Text, Category)   Text
#define _(Text)   Text
#define N_(Text)   Text
#define STREQ(a, b)   (strcmp ((a), (b)) == 0)
#define mempcpy(D, S, N)   ((void *) ((char *) memcpy (D, S, N) + (N)))
#define SAME_INODE(Stat_buf_1, Stat_buf_2)
#define DOT_OR_DOTDOT(Basename)
#define SETVBUF(Stream, Buffer, Type, Size)   setvbuf (Stream, Buffer, Type, Size)
#define GETOPT_HELP_OPTION_DECL   "help", no_argument, 0, GETOPT_HELP_CHAR
#define GETOPT_VERSION_OPTION_DECL   "version", no_argument, 0, GETOPT_VERSION_CHAR
#define case_GETOPT_HELP_CHAR
#define case_GETOPT_VERSION_CHAR(Program_name, Authors)
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define CHAR_BIT   8
#define TYPE_SIGNED(t)   (! ((t) 0 < (t) -1))
#define TYPE_MINIMUM(t)
#define TYPE_MAXIMUM(t)   ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
#define INT_STRLEN_BOUND(t)   ((sizeof (t) * CHAR_BIT - 1) * 302 / 1000 + 2)
#define CHAR_MIN   TYPE_MINIMUM (char)
#define CHAR_MAX   TYPE_MAXIMUM (char)
#define SCHAR_MIN   (-1 - SCHAR_MAX)
#define SCHAR_MAX   (CHAR_MAX == UCHAR_MAX ? CHAR_MAX / 2 : CHAR_MAX)
#define UCHAR_MAX   TYPE_MAXIMUM (unsigned char)
#define SHRT_MIN   TYPE_MINIMUM (short int)
#define SHRT_MAX   TYPE_MAXIMUM (short int)
#define INT_MAX   TYPE_MAXIMUM (int)
#define UINT_MAX   TYPE_MAXIMUM (unsigned int)
#define LONG_MAX   TYPE_MAXIMUM (long)
#define ULONG_MAX   TYPE_MAXIMUM (unsigned long)
#define SIZE_MAX   TYPE_MAXIMUM (size_t)
#define UINTMAX_MAX   TYPE_MAXIMUM (uintmax_t)
#define OFF_T_MIN   TYPE_MINIMUM (off_t)
#define OFF_T_MAX   TYPE_MAXIMUM (off_t)
#define UID_T_MAX   TYPE_MAXIMUM (uid_t)
#define GID_T_MAX   TYPE_MAXIMUM (gid_t)
#define PID_T_MAX   TYPE_MAXIMUM (pid_t)
#define IF_LINT(Code)
#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))
#define ASSIGN_STRDUPA(DEST, S)

Enumerations

enum  { GETOPT_HELP_CHAR = (CHAR_MIN - 2), GETOPT_VERSION_CHAR = (CHAR_MIN - 3) }

Functions

char * alloca ()
void free ()
char * malloc ()
char * memchr ()
char * realloc ()
char * stpcpy ()
char * strndup ()
char * strstr ()
char * getenv ()
off_t lseek ()
unsigned long strtoul ()
char * getlogin ()
char * ttyname ()
uid_t geteuid ()
passwd * getpwuid ()
group * getgrgid ()
uid_t getuid ()
char *base_name PARAMS ((char const *))


Define Documentation

#define S_IFMT   0170000
 

#define S_ISUID   04000
 

#define S_ISGID   02000
 

#define S_ISVTX   01000
 

#define S_IRUSR   00400
 

#define S_IRGRP   (S_IRUSR >> 3)
 

#define S_IROTH   (S_IRUSR >> 6)
 

#define S_IWUSR   00200
 

#define S_IWGRP   (S_IWUSR >> 3)
 

#define S_IWOTH   (S_IWUSR >> 6)
 

#define S_IXUSR   00100
 

#define S_IXGRP   (S_IXUSR >> 3)
 

#define S_IXOTH   (S_IXUSR >> 6)
 

#define S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)
 

#define S_IRWXG   (S_IRGRP | S_IWGRP | S_IXGRP)
 

#define S_IRWXO   (S_IROTH | S_IWOTH | S_IXOTH)
 

#define S_IXUGO   (S_IXUSR | S_IXGRP | S_IXOTH)
 

#define S_IRWXUGO   (S_IRWXU | S_IRWXG | S_IRWXO)
 

#define CHMOD_MODE_BITS   (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
 

#define ST_TIME_CMP_NS a,
b,
ns       0
 

#define ST_TIME_CMP a,
b,
s,
ns       ((a).s < (b).s ? -1 : (a).s > (b).s ? 1 : ST_TIME_CMP_NS(a, b, ns))
 

#define ATIME_CMP a,
     ST_TIME_CMP (a, b, st_atime, st_atim.ST_MTIM_NSEC)
 

#define CTIME_CMP a,
     ST_TIME_CMP (a, b, st_ctime, st_ctim.ST_MTIM_NSEC)
 

#define MTIME_CMP a,
     ST_TIME_CMP (a, b, st_mtime, st_mtim.ST_MTIM_NSEC)
 

#define RETSIGTYPE   void
 

#define IN_CTYPE_DOMAIN      1
 

#define ISBLANK      ((c) == ' ' || (c) == '\t')
 

#define ISGRAPH      (IN_CTYPE_DOMAIN (c) && isprint (c) && !isspace (c))
 

#define ISPRINT      (IN_CTYPE_DOMAIN (c) && isprint (c))
 

#define ISALNUM      (IN_CTYPE_DOMAIN (c) && isalnum (c))
 

#define ISALPHA      (IN_CTYPE_DOMAIN (c) && isalpha (c))
 

#define ISCNTRL      (IN_CTYPE_DOMAIN (c) && iscntrl (c))
 

#define ISLOWER      (IN_CTYPE_DOMAIN (c) && islower (c))
 

#define ISPUNCT      (IN_CTYPE_DOMAIN (c) && ispunct (c))
 

#define ISSPACE      (IN_CTYPE_DOMAIN (c) && isspace (c))
 

#define ISUPPER      (IN_CTYPE_DOMAIN (c) && isupper (c))
 

#define ISXDIGIT      (IN_CTYPE_DOMAIN (c) && isxdigit (c))
 

#define ISDIGIT_LOCALE      (IN_CTYPE_DOMAIN (c) && isdigit (c))
 

#define TOLOWER Ch       (ISUPPER (Ch) ? tolower (Ch) : (Ch))
 

#define TOUPPER Ch       (ISLOWER (Ch) ? toupper (Ch) : (Ch))
 

#define ISDIGIT      ((unsigned) (c) - '0' <= 9)
 

#define PARAMS Args       ()
 

#define setlocale Category,
Locale   
 

#define bindtextdomain Domain,
Directory   
 

#define textdomain Domain   
 

#define dcgettext Domainname,
Text,
Category       Text
 

#define _ Text       Text
 

#define N_ Text       Text
 

#define STREQ a,
     (strcmp ((a), (b)) == 0)
 

#define mempcpy D,
S,
     ((void *) ((char *) memcpy (D, S, N) + (N)))
 

#define SAME_INODE Stat_buf_1,
Stat_buf_2   
 

Value:

((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
   && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)

#define DOT_OR_DOTDOT Basename   
 

Value:

(Basename[0] == '.' && (Basename[1] == '\0' \
           || (Basename[1] == '.' && Basename[2] == '\0')))

#define SETVBUF Stream,
Buffer,
Type,
Size       setvbuf (Stream, Buffer, Type, Size)
 

#define GETOPT_HELP_OPTION_DECL   "help", no_argument, 0, GETOPT_HELP_CHAR
 

#define GETOPT_VERSION_OPTION_DECL   "version", no_argument, 0, GETOPT_VERSION_CHAR
 

#define case_GETOPT_HELP_CHAR
 

Value:

case GETOPT_HELP_CHAR:        \
    usage (EXIT_SUCCESS);        \
    break;

#define case_GETOPT_VERSION_CHAR Program_name,
Authors   
 

Value:

case GETOPT_VERSION_CHAR:                 \
    version_etc (stdout, Program_name, PACKAGE, VERSION, Authors);   \
    exit (EXIT_SUCCESS);                  \
    break;

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

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

#define CHAR_BIT   8
 

#define TYPE_SIGNED      (! ((t) 0 < (t) -1))
 

#define TYPE_MINIMUM  
 

Value:

((t) (TYPE_SIGNED (t) \
               ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))

#define TYPE_MAXIMUM      ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
 

#define INT_STRLEN_BOUND      ((sizeof (t) * CHAR_BIT - 1) * 302 / 1000 + 2)
 

#define CHAR_MIN   TYPE_MINIMUM (char)
 

#define CHAR_MAX   TYPE_MAXIMUM (char)
 

#define SCHAR_MIN   (-1 - SCHAR_MAX)
 

#define SCHAR_MAX   (CHAR_MAX == UCHAR_MAX ? CHAR_MAX / 2 : CHAR_MAX)
 

#define UCHAR_MAX   TYPE_MAXIMUM (unsigned char)
 

#define SHRT_MIN   TYPE_MINIMUM (short int)
 

#define SHRT_MAX   TYPE_MAXIMUM (short int)
 

#define INT_MAX   TYPE_MAXIMUM (int)
 

#define UINT_MAX   TYPE_MAXIMUM (unsigned int)
 

#define LONG_MAX   TYPE_MAXIMUM (long)
 

#define ULONG_MAX   TYPE_MAXIMUM (unsigned long)
 

#define SIZE_MAX   TYPE_MAXIMUM (size_t)
 

#define UINTMAX_MAX   TYPE_MAXIMUM (uintmax_t)
 

#define OFF_T_MIN   TYPE_MINIMUM (off_t)
 

#define OFF_T_MAX   TYPE_MAXIMUM (off_t)
 

#define UID_T_MAX   TYPE_MAXIMUM (uid_t)
 

#define GID_T_MAX   TYPE_MAXIMUM (gid_t)
 

#define PID_T_MAX   TYPE_MAXIMUM (pid_t)
 

#define IF_LINT Code   
 

#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))
 

#define ASSIGN_STRDUPA DEST,
 
 

Value:

do                \
    {                \
      const char *s_ = (S);         \
      size_t len_ = strlen (s_) + 1;      \
      char *tmp_dest_ = (char *) alloca (len_); \
      DEST = memcpy (tmp_dest_, (s_), len_); \
    }                \
  while (0)


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
GETOPT_HELP_CHAR 
GETOPT_VERSION_CHAR 

00447 {
00448   GETOPT_HELP_CHAR = (CHAR_MIN - 2),
00449   GETOPT_VERSION_CHAR = (CHAR_MIN - 3)
00450 };


Function Documentation

char* alloca  
 

void free  
 

char* malloc  
 

char* memchr  
 

char* realloc  
 

char* stpcpy  
 

char* strndup  
 

char* strstr  
 

char* getenv  
 

off_t lseek  
 

unsigned long strtoul  
 

char* getlogin  
 

char* ttyname  
 

uid_t geteuid  
 

struct passwd* getpwuid  
 

struct group* getgrgid  
 

uid_t getuid  
 

char* base_name PARAMS (char const *)   
 


Generated on Mon Apr 7 19:42:49 2003 for DuTree by doxygen1.2.18