mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
reflect the fact that they allocate and deallocate user memory (i.e. things reached through a userptr_t).
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#ifndef _GPXE_EMALLOC_H
|
||||
#define _GPXE_EMALLOC_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* External memory allocation
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gpxe/uaccess.h>
|
||||
|
||||
extern userptr_t emalloc ( size_t size );
|
||||
extern userptr_t erealloc ( userptr_t ptr, size_t new_size );
|
||||
extern void efree ( userptr_t ptr );
|
||||
|
||||
#endif /* _GPXE_EMALLOC_H */
|
||||
17
src/include/gpxe/umalloc.h
Normal file
17
src/include/gpxe/umalloc.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _GPXE_UMALLOC_H
|
||||
#define _GPXE_UMALLOC_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* User memory allocation
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gpxe/uaccess.h>
|
||||
|
||||
extern userptr_t umalloc ( size_t size );
|
||||
extern userptr_t urealloc ( userptr_t ptr, size_t new_size );
|
||||
extern void ufree ( userptr_t ptr );
|
||||
|
||||
#endif /* _GPXE_UMALLOC_H */
|
||||
Reference in New Issue
Block a user