2 * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
5 * Task.xs contains XS wrappers for the task maniplulation functions.
8 /* Solaris includes. */
17 * The XS code exported to perl is below here. Note that the XS preprocessor
18 * has its own commenting syntax, so all comments from this point on are in
22 MODULE = Sun::Solaris::Task PACKAGE = Sun::Solaris::Task
26 # Define any constants that need to be exported. By doing it this way we can
27 # avoid the overhead of using the DynaLoader package, and in addition constants
28 # defined using this mechanism are eligible for inlining by the perl
29 # interpreter at compile time.
35 stash = gv_stashpv("Sun::Solaris::Task", TRUE);
36 newCONSTSUB(stash, "TASK_NORMAL", newSViv(TASK_NORMAL));
37 newCONSTSUB(stash, "TASK_FINAL", newSViv(TASK_FINAL));
38 newCONSTSUB(stash, "TASK_PROJ_PURGE", newSViv(TASK_PROJ_PURGE));
42 settaskid(project, flags)