TianoCore EDK2 master
Loading...
Searching...
No Matches
CrtWrapper.c File Reference
#include <CrtLibSupport.h>

Go to the source code of this file.

Typedefs

typedef int(* SORT_COMPARE) (IN VOID *Buffer1, IN VOID *Buffer2)
 

Functions

STATIC VOID QuickSortWorker (IN OUT VOID *BufferToSort, IN CONST UINTN Count, IN CONST UINTN ElementSize, IN SORT_COMPARE CompareFunction, IN VOID *Buffer)
 
char * strchr (const char *str, int ch)
 
char * strrchr (const char *str, int c)
 
int strncasecmp (const char *s1, const char *s2, size_t n)
 
int sscanf (const char *buffer, const char *format,...)
 
char * strerror (int errnum)
 
size_t strspn (const char *s1, const char *s2)
 
size_t strcspn (const char *s1, const char *s2)
 
char * strcpy (char *strDest, const char *strSource)
 
char * strncpy (char *strDest, const char *strSource, size_t count)
 
char * strcat (char *strDest, const char *strSource)
 
int strcmp (const char *s1, const char *s2)
 
int isdigit (int c)
 
int isxdigit (int c)
 
int isspace (int c)
 
int isalnum (int c)
 
int isupper (int c)
 
long strtol (const char *nptr, char **endptr, int base)
 
unsigned long strtoul (const char *nptr, char **endptr, int base)
 
int tolower (int c)
 
void qsort (void *base, size_t num, size_t width, int(*compare)(const void *, const void *))
 
char * getenv (const char *varname)
 
char * secure_getenv (const char *varname)
 
size_t fwrite (const void *buffer, size_t size, size_t count, FILE *stream)
 
void abort (void)
 
int fclose (FILE *f)
 
FILE * fopen (const char *c, const char *m)
 
size_t fread (void *b, size_t c, size_t i, FILE *f)
 
uid_t getuid (void)
 
uid_t geteuid (void)
 
gid_t getgid (void)
 
gid_t getegid (void)
 
int printf (char const *fmt,...)
 

Variables

int errno = 0
 
FILE * stderr = NULL
 
FILE * stdin = NULL
 
FILE * stdout = NULL
 

Detailed Description

C Run-Time Libraries (CRT) Wrapper Implementation for OpenSSL-based Cryptographic Library.

Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CrtWrapper.c.

Typedef Documentation

◆ SORT_COMPARE

typedef int(* SORT_COMPARE) (IN VOID *Buffer1, IN VOID *Buffer2)

Definition at line 19 of file CrtWrapper.c.

Function Documentation

◆ abort()

void abort ( void  )

Definition at line 555 of file CrtWrapper.c.

◆ fclose()

int fclose ( FILE *  f)

Definition at line 565 of file CrtWrapper.c.

◆ fopen()

FILE * fopen ( const char *  c,
const char *  m 
)

Definition at line 573 of file CrtWrapper.c.

◆ fread()

size_t fread ( void *  b,
size_t  c,
size_t  i,
FILE *  f 
)

Definition at line 582 of file CrtWrapper.c.

◆ fwrite()

size_t fwrite ( const void *  buffer,
size_t  size,
size_t  count,
FILE *  stream 
)

Definition at line 513 of file CrtWrapper.c.

◆ getegid()

gid_t getegid ( void  )

Definition at line 617 of file CrtWrapper.c.

◆ getenv()

char * getenv ( const char *  varname)

Definition at line 480 of file CrtWrapper.c.

◆ geteuid()

uid_t geteuid ( void  )

Definition at line 601 of file CrtWrapper.c.

◆ getgid()

gid_t getgid ( void  )

Definition at line 609 of file CrtWrapper.c.

◆ getuid()

uid_t getuid ( void  )

Definition at line 593 of file CrtWrapper.c.

◆ isalnum()

int isalnum ( int  c)

Definition at line 370 of file CrtWrapper.c.

◆ isdigit()

int isdigit ( int  c)

Definition at line 332 of file CrtWrapper.c.

◆ isspace()

int isspace ( int  c)

Definition at line 358 of file CrtWrapper.c.

◆ isupper()

int isupper ( int  c)

Definition at line 384 of file CrtWrapper.c.

◆ isxdigit()

int isxdigit ( int  c)

Definition at line 344 of file CrtWrapper.c.

◆ printf()

int printf ( char const *  fmt,
  ... 
)

Definition at line 625 of file CrtWrapper.c.

◆ qsort()

void qsort ( void *  base,
size_t  num,
size_t  width,
int(*)(const void *, const void *)  compare 
)

Definition at line 447 of file CrtWrapper.c.

◆ QuickSortWorker()

STATIC VOID QuickSortWorker ( IN OUT VOID *  BufferToSort,
IN CONST UINTN  Count,
IN CONST UINTN  ElementSize,
IN SORT_COMPARE  CompareFunction,
IN VOID *  Buffer 
)

Definition at line 30 of file CrtWrapper.c.

◆ secure_getenv()

char * secure_getenv ( const char *  varname)

Definition at line 493 of file CrtWrapper.c.

◆ sscanf()

int sscanf ( const char *  buffer,
const char *  format,
  ... 
)

Definition at line 180 of file CrtWrapper.c.

◆ strcat()

char * strcat ( char *  strDest,
const char *  strSource 
)

Definition at line 299 of file CrtWrapper.c.

◆ strchr()

char * strchr ( const char *  str,
int  ch 
)

Definition at line 119 of file CrtWrapper.c.

◆ strcmp()

int strcmp ( const char *  s1,
const char *  s2 
)

Definition at line 318 of file CrtWrapper.c.

◆ strcpy()

char * strcpy ( char *  strDest,
const char *  strSource 
)

Definition at line 269 of file CrtWrapper.c.

◆ strcspn()

size_t strcspn ( const char *  s1,
const char *  s2 
)

Definition at line 239 of file CrtWrapper.c.

◆ strerror()

char * strerror ( int  errnum)

Definition at line 195 of file CrtWrapper.c.

◆ strncasecmp()

int strncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)

Definition at line 149 of file CrtWrapper.c.

◆ strncpy()

char * strncpy ( char *  strDest,
const char *  strSource,
size_t  count 
)

Definition at line 279 of file CrtWrapper.c.

◆ strrchr()

char * strrchr ( const char *  str,
int  c 
)

Definition at line 129 of file CrtWrapper.c.

◆ strspn()

size_t strspn ( const char *  s1,
const char *  s2 
)

Definition at line 205 of file CrtWrapper.c.

◆ strtol()

long strtol ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 400 of file CrtWrapper.c.

◆ strtoul()

unsigned long strtoul ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 415 of file CrtWrapper.c.

◆ tolower()

int tolower ( int  c)

Definition at line 430 of file CrtWrapper.c.

Variable Documentation

◆ errno

int errno = 0

Definition at line 12 of file CrtWrapper.c.

◆ stderr

FILE* stderr = NULL

Definition at line 14 of file CrtWrapper.c.

◆ stdin

FILE* stdin = NULL

Definition at line 15 of file CrtWrapper.c.

◆ stdout

FILE* stdout = NULL

Definition at line 16 of file CrtWrapper.c.