… | |
… | |
8 | #include "autoconf/config.h" |
8 | #include "autoconf/config.h" |
9 | |
9 | |
10 | #include <pthread.h> |
10 | #include <pthread.h> |
11 | |
11 | |
12 | #include <stddef.h> |
12 | #include <stddef.h> |
|
|
13 | #include <errno.h> |
13 | #include <sys/types.h> |
14 | #include <sys/types.h> |
14 | #include <sys/stat.h> |
15 | #include <sys/stat.h> |
15 | #include <limits.h> |
16 | #include <limits.h> |
16 | #include <unistd.h> |
17 | #include <unistd.h> |
17 | #include <fcntl.h> |
18 | #include <fcntl.h> |
… | |
… | |
782 | |
783 | |
783 | PROTOTYPES: ENABLE |
784 | PROTOTYPES: ENABLE |
784 | |
785 | |
785 | BOOT: |
786 | BOOT: |
786 | { |
787 | { |
|
|
788 | HV *stash = gv_stashpv ("IO::AIO", 1); |
|
|
789 | newCONSTSUB (stash, "EXDEV", newSViv (EXDEV)); |
|
|
790 | newCONSTSUB (stash, "O_RDONLY", newSViv (O_RDONLY)); |
|
|
791 | newCONSTSUB (stash, "O_WRONLY", newSViv (O_WRONLY)); |
|
|
792 | |
787 | create_pipe (); |
793 | create_pipe (); |
788 | pthread_atfork (atfork_prepare, atfork_parent, atfork_child); |
794 | pthread_atfork (atfork_prepare, atfork_parent, atfork_child); |
789 | } |
795 | } |
790 | |
796 | |
791 | void |
797 | void |