37
37
uint pagesize=sysconf(_SC_PAGESIZE);
39
39
struct st_mem_list *element;
42
41
size=((size-1) & ~(pagesize-1))+pagesize;
43
42
if (!(ptr=memalign(pagesize,size)))
45
44
if (MyFlags & (MY_FAE+MY_WME))
46
45
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_WAITTANG),size);
49
48
success = mlock((uchar*) ptr,size);
50
49
if (success != 0 && geteuid() == 0)
54
51
fprintf(stderr, "Warning: Failed to lock memory. errno %d\n",