pike.git / src / configure.in

version» Context lines:

pike.git/src/configure.in:3548:       *)    LIBS="${OLDLIBS} -lpthread"    ;;    esac    fi       PIKE_AC_DEBUG       AC_CHECK_FUNCS(pthread_init pthread_mutexattr_init pthread_kill \ -  pthread_cond_reltimedwait_np pthread_mach_thread_np) +  pthread_cond_reltimedwait_np pthread_mach_thread_np \ +  pthread_jit_write_protect_np)       AC_MSG_CHECKING(posix threads)       AC_CACHE_VAL(pike_cv_posix_threads, [    AC_TRY_RUN([   #define _REENTRANT   #define _THREAD_SAFE   #define _MIT_POSIX_THREADS 1      #include <stdlib.h>
pike.git/src/configure.in:4063:      #ifdef HAVE_FCNTL_H   #include <fcntl.h>   #endif      #include <errno.h>      #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)   #define MAP_ANONYMOUS MAP_ANON   #endif /* !MAP_ANONYMOUS && MAP_ANON */ + #ifndef MAP_JIT + #define MAP_JIT 0 + #endif       int main(int argc, char **argv)    {    void *ptr;    int dev_zero = -1;   #ifndef MAP_ANONYMOUS    /* Neither MAP_ANONYMOUS nor MAP_ANON.    * Map some /dev/zero.    */    dev_zero = open("/dev/zero", O_RDONLY);    if (dev_zero < 0) {    fprintf(stderr, "open(\"/dev/zero\", O_RDONLY) failed. errno: %d\n",    errno);    return 1;    }   #define MAP_ANONYMOUS 0   #endif /* !MAP_ANONYMOUS */    if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE, -  MAP_PRIVATE|MAP_ANONYMOUS, +  MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT,    dev_zero, 0)) == MAP_FAILED) {    fprintf(stderr, "mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,\n" -  "MAP_PRIVATE|MAP_ANONYMOUS, %d, 0) failed. errno: %d\n", +  "MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT, %d, 0) failed. errno: %d\n",    dev_zero,    errno);    return 2;    }    return 0;    }    ], [    pike_cv_mmap_PROT_EXEC="yes"    ], [    pike_cv_mmap_PROT_EXEC="no"
pike.git/src/configure.in:4120:      #include <errno.h>      #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)   #define MAP_ANONYMOUS MAP_ANON   #endif /* !MAP_ANONYMOUS && MAP_ANON */      #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)   #define MAP_ANONYMOUS MAP_ANON   #endif /* !MAP_ANONYMOUS && MAP_ANON */ + #ifndef MAP_JIT + #define MAP_JIT 0 + #endif    ], [    void *ptr;    int dev_zero = -1;   #ifndef MAP_ANONYMOUS    /* Neither MAP_ANONYMOUS nor MAP_ANON.    * Map some /dev/zero.    */    dev_zero = open("/dev/zero", O_RDONLY);    if (dev_zero < 0) return 1;   #define MAP_ANONYMOUS 0   #endif /* !MAP_ANONYMOUS */    if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE, -  MAP_PRIVATE|MAP_ANONYMOUS, +  MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT,    dev_zero, 0)) == MAP_FAILED) {    return 2;    }    return 0;    ], [    pike_cv_mmap_PROT_EXEC="yes"    ], [    pike_cv_mmap_PROT_EXEC="no"    ])    ])