… | |
… | |
31 | #include <cstdarg> |
31 | #include <cstdarg> |
32 | #include <sproto.h> |
32 | #include <sproto.h> |
33 | |
33 | |
34 | #include "cfperl.h" |
34 | #include "cfperl.h" |
35 | #include "shstr.h" |
35 | #include "shstr.h" |
|
|
36 | |
|
|
37 | #include <unistd.h> |
|
|
38 | #if _POSIX_MEMLOCK |
|
|
39 | # include <sys/mman.h> |
|
|
40 | #endif |
36 | |
41 | |
37 | #include <EXTERN.h> |
42 | #include <EXTERN.h> |
38 | #include <perl.h> |
43 | #include <perl.h> |
39 | #include <XSUB.h> |
44 | #include <XSUB.h> |
40 | |
45 | |
… | |
… | |
1603 | |
1608 | |
1604 | void emergency_save () |
1609 | void emergency_save () |
1605 | |
1610 | |
1606 | void _exit (int status = 0) |
1611 | void _exit (int status = 0) |
1607 | |
1612 | |
|
|
1613 | #if _POSIX_MEMLOCK |
|
|
1614 | |
|
|
1615 | int mlockall (int flags = MCL_CURRENT | MCL_FUTURE) |
|
|
1616 | |
|
|
1617 | int munlockall () |
|
|
1618 | |
|
|
1619 | #endif |
|
|
1620 | |
1608 | int find_animation (char *text) |
1621 | int find_animation (char *text) |
1609 | PROTOTYPE: $ |
1622 | PROTOTYPE: $ |
1610 | |
1623 | |
1611 | int random_roll (int min, int max, object *op, int goodbad); |
1624 | int random_roll (int min, int max, object *op, int goodbad); |
1612 | |
1625 | |