… | |
… | |
1681 | |
1681 | |
1682 | #if _POSIX_MEMLOCK |
1682 | #if _POSIX_MEMLOCK |
1683 | |
1683 | |
1684 | int mlockall (int flags = MCL_CURRENT | MCL_FUTURE) |
1684 | int mlockall (int flags = MCL_CURRENT | MCL_FUTURE) |
1685 | INIT: |
1685 | INIT: |
|
|
1686 | #ifdef __linux |
1686 | mallopt (M_PERTURB, 0xaa); // bug-workaround for linux glibc+mlockall+calloc |
1687 | mallopt (M_PERTURB, 0xaa); // bug-workaround for linux glibc+mlockall+calloc |
|
|
1688 | #endif |
1687 | |
1689 | |
1688 | int munlockall () |
1690 | int munlockall () |
1689 | |
1691 | |
1690 | #endif |
1692 | #endif |
1691 | |
1693 | |
… | |
… | |
1776 | EXTEND (SP, NUM_COINS); |
1778 | EXTEND (SP, NUM_COINS); |
1777 | for (int i = 0; i < NUM_COINS; ++i) |
1779 | for (int i = 0; i < NUM_COINS; ++i) |
1778 | PUSHs (sv_2mortal (to_sv (archetype::find (coins [i])))); |
1780 | PUSHs (sv_2mortal (to_sv (archetype::find (coins [i])))); |
1779 | |
1781 | |
1780 | bool |
1782 | bool |
1781 | load_resource_file (octet_string filename) |
1783 | load_resource_file_ (octet_string filename) |
1782 | |
1784 | |
1783 | MODULE = cf PACKAGE = cf::attachable |
1785 | MODULE = cf PACKAGE = cf::attachable |
1784 | |
1786 | |
1785 | int |
1787 | int |
1786 | valid (SV *obj) |
1788 | valid (SV *obj) |