mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Axe the stackgap macros as the Linux ABIs no longer use the stackgap.
This commit is contained in:
parent
49d409a108
commit
4db580972e
1 changed files with 0 additions and 26 deletions
|
|
@ -49,32 +49,6 @@
|
|||
#include <sys/cdefs.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
static __inline caddr_t stackgap_init(void);
|
||||
static __inline void *stackgap_alloc(caddr_t *, size_t);
|
||||
|
||||
#define szsigcode (*(curthread->td_proc->p_sysent->sv_szsigcode))
|
||||
#define psstrings (curthread->td_proc->p_sysent->sv_psstrings)
|
||||
|
||||
static __inline caddr_t
|
||||
stackgap_init()
|
||||
{
|
||||
return (caddr_t)(psstrings - szsigcode - SPARE_USRSPACE);
|
||||
}
|
||||
|
||||
static __inline void *
|
||||
stackgap_alloc(sgp, sz)
|
||||
caddr_t *sgp;
|
||||
size_t sz;
|
||||
{
|
||||
void *p = (void *) *sgp;
|
||||
|
||||
sz = ALIGN(sz);
|
||||
if (*sgp + sz > (caddr_t)(psstrings - szsigcode))
|
||||
return NULL;
|
||||
*sgp += sz;
|
||||
return p;
|
||||
}
|
||||
|
||||
extern const char linux_emul_path[];
|
||||
|
||||
int linux_emul_convpath(struct thread *, char *, enum uio_seg, char **, int);
|
||||
|
|
|
|||
Loading…
Reference in a new issue