Searched refs:dev_zero (Results 1 – 2 of 2) sorted by relevance
/external/pcre/dist2/src/sljit/ |
D | sljitUtils.c | 96 static int dev_zero = -1; variable 102 dev_zero = open("/dev/zero", O_RDWR | SLJIT_CLOEXEC); in open_dev_zero() 104 return dev_zero < 0; in open_dev_zero() 116 if (SLJIT_UNLIKELY(dev_zero < 0)) in open_dev_zero() 117 dev_zero = open("/dev/zero", O_RDWR | SLJIT_CLOEXEC); in open_dev_zero() 120 return dev_zero < 0; in open_dev_zero() 270 if (SLJIT_UNLIKELY((dev_zero < 0) && open_dev_zero())) { in sljit_allocate_stack() 274 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
|
D | sljitExecAllocator.c | 169 if (SLJIT_UNLIKELY((dev_zero < 0) && open_dev_zero())) in alloc_chunk() 172 retval = mmap(NULL, size, prot, MAP_PRIVATE, dev_zero, 0); in alloc_chunk()
|