TianoCore EDK2 master
Loading...
Searching...
No Matches
OnigurumaUefiPort.c File Reference

Go to the source code of this file.

Data Structures

struct  ONIGMEM_HEAD
 

Macros

#define ONIGMEM_HEAD_SIGNATURE   SIGNATURE_32('o','m','h','d')
 
#define ONIGMEM_OVERHEAD   sizeof(ONIGMEM_HEAD)
 

Functions

int EFIAPI sprintf_s (char *str, size_t sizeOfBuffer, char const *fmt,...)
 
int OnigStrCmp (const char *Str1, const char *Str2)
 
int strlen (const char *str)
 
void * malloc (size_t size)
 
void * realloc (void *ptr, size_t size)
 
void * memcpy (void *dest, const void *src, unsigned int count)
 
void * memset (void *dest, int ch, unsigned int count)
 
void free (void *ptr)
 

Detailed Description

Module to rewrite stdlib references within Oniguruma

(C) Copyright 2014-2021 Hewlett Packard Enterprise Development LP
Copyright (c) 2020, Intel Corporation. All rights reserved.
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file OnigurumaUefiPort.c.

Macro Definition Documentation

◆ ONIGMEM_HEAD_SIGNATURE

#define ONIGMEM_HEAD_SIGNATURE   SIGNATURE_32('o','m','h','d')

Definition at line 13 of file OnigurumaUefiPort.c.

◆ ONIGMEM_OVERHEAD

#define ONIGMEM_OVERHEAD   sizeof(ONIGMEM_HEAD)

Definition at line 20 of file OnigurumaUefiPort.c.

Function Documentation

◆ free()

void free ( void *  ptr)

Definition at line 137 of file OnigurumaUefiPort.c.

◆ malloc()

void * malloc ( size_t  size)

Allocates memory blocks.

Definition at line 58 of file OnigurumaUefiPort.c.

◆ memcpy()

void * memcpy ( void *  dest,
const void *  src,
unsigned int  count 
)

Definition at line 115 of file OnigurumaUefiPort.c.

◆ memset()

void * memset ( void *  dest,
int  ch,
unsigned int  count 
)

Definition at line 127 of file OnigurumaUefiPort.c.

◆ OnigStrCmp()

int OnigStrCmp ( const char *  Str1,
const char *  Str2 
)

Definition at line 41 of file OnigurumaUefiPort.c.

◆ realloc()

void * realloc ( void *  ptr,
size_t  size 
)

Definition at line 81 of file OnigurumaUefiPort.c.

◆ sprintf_s()

int EFIAPI sprintf_s ( char *  str,
size_t  sizeOfBuffer,
char const *  fmt,
  ... 
)

Definition at line 23 of file OnigurumaUefiPort.c.

◆ strlen()

int strlen ( const char *  str)

Definition at line 50 of file OnigurumaUefiPort.c.