EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Functions | Variables

StdLib/LibC/Uefi/compat.c File Reference

#include <LibConfig.h>
#include <string.h>
#include <fcntl.h>
#include <sys/syslimits.h>

Go to the source code of this file.

Defines

#define ISPATHSEPARATOR(x)   ((x == '/') || (x == '\\'))
#define DP_S_DEFAULT   0
#define DP_S_FLAGS   1
#define DP_S_MIN   2
#define DP_S_DOT   3
#define DP_S_MAX   4
#define DP_S_MOD   5
#define DP_S_CONV   6
#define DP_S_DONE   7
#define DP_F_MINUS   (1 << 0)
#define DP_F_PLUS   (1 << 1)
#define DP_F_SPACE   (1 << 2)
#define DP_F_NUM   (1 << 3)
#define DP_F_ZERO   (1 << 4)
#define DP_F_UP   (1 << 5)
#define DP_F_UNSIGNED   (1 << 6)
#define DP_C_SHORT   1
#define DP_C_LONG   2
#define DP_C_LDOUBLE   3
#define DP_C_LONG_LONG   4
#define char_to_int(p)   (p - '0')
#define abs_val(p)   (p < 0 ? -p : p)
#define PADMAX(x, y)   ((x) > (y) ? (x) : (y))

Functions

int getopt (int argc, char **argv, char *args)
int mkstemp (char *path)
int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
int snprintf (char *str, size_t count, const char *fmt,...)

Variables

char * optarg
int optind = 1

Define Documentation

#define abs_val (   p)    (p < 0 ? -p : p)

Definition at line 307 of file compat.c.

#define char_to_int (   p)    (p - '0')

Definition at line 306 of file compat.c.

#define DP_C_LDOUBLE   3

Definition at line 303 of file compat.c.

#define DP_C_LONG   2

Definition at line 302 of file compat.c.

#define DP_C_LONG_LONG   4

Definition at line 304 of file compat.c.

#define DP_C_SHORT   1

Definition at line 301 of file compat.c.

#define DP_F_MINUS   (1 << 0)

Definition at line 292 of file compat.c.

#define DP_F_NUM   (1 << 3)

Definition at line 295 of file compat.c.

#define DP_F_PLUS   (1 << 1)

Definition at line 293 of file compat.c.

#define DP_F_SPACE   (1 << 2)

Definition at line 294 of file compat.c.

#define DP_F_UNSIGNED   (1 << 6)

Definition at line 298 of file compat.c.

#define DP_F_UP   (1 << 5)

Definition at line 297 of file compat.c.

#define DP_F_ZERO   (1 << 4)

Definition at line 296 of file compat.c.

#define DP_S_CONV   6

Definition at line 288 of file compat.c.

#define DP_S_DEFAULT   0

Definition at line 282 of file compat.c.

#define DP_S_DONE   7

Definition at line 289 of file compat.c.

#define DP_S_DOT   3

Definition at line 285 of file compat.c.

#define DP_S_FLAGS   1

Definition at line 283 of file compat.c.

#define DP_S_MAX   4

Definition at line 286 of file compat.c.

#define DP_S_MIN   2

Definition at line 284 of file compat.c.

#define DP_S_MOD   5

Definition at line 287 of file compat.c.

#define ISPATHSEPARATOR (   x)    ((x == '/') || (x == '\\'))

Definition at line 141 of file compat.c.

#define PADMAX (   x,
  y 
)    ((x) > (y) ? (x) : (y))

Function Documentation

int getopt ( int  argc,
char **  argv,
char *  args 
)

Definition at line 103 of file compat.c.

int mkstemp ( char *  path)

Definition at line 187 of file compat.c.

int snprintf ( char *  str,
size_t  count,
const char *  fmt,
  ... 
)

Definition at line 832 of file compat.c.

int vsnprintf ( char *  str,
size_t  count,
const char *  fmt,
va_list  args 
)

Definition at line 821 of file compat.c.


Variable Documentation

char* optarg

Definition at line 100 of file compat.c.

int optind = 1

Definition at line 101 of file compat.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines