1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#include <EXTERN.h>
#include <perl.h>
#include <XSUB.h>
MODULE = Sys::CpuAffinity PACKAGE = Sys::CpuAffinity
int
xs_fortytwo()
CODE:
/* The purpose of this trivial code snippet is to
see whether you can compile something, anything,
during this build process.
If this doesn't compile, then you probably don't have
a compiler or it is badly misconfigured, and you
won't be able to generate any XS code with this
distribution. This would not necessarily mean that
this module wouldn't work -- it may still be possible
to manipulate CPU affinities on your system with Pure
Perl calls or with external utilities available on
your system.
If this is the ONLY thing that compiles, then your
system-specific snippets might be incorrect, or your
system might be obscure enough that no system-specific
snippets have been developed for it yet. */
RETVAL = 42;
OUTPUT:
RETVAL
|