Home
last modified time | relevance | path

Searched refs:dev_zero (Results 1 – 2 of 2) sorted by relevance

/external/pcre/dist2/src/sljit/
DsljitUtils.c96 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()
DsljitExecAllocator.c169 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()