Linux Manuals session 3

Section 3: library functions

  • |

    selabel_close (3) Linux Manual Page

    selabel_open, selabel_close – userspace SELinux labeling interface Synopsis #include <selinux/selinux.h> #include <selinux/label.h> struct selabel_handle *selabel_open(int backend, const struct selinux_opt *options, unsigned nopt); void selabel_close(struct selabel_handle *hnd); Description selabel_open() is used to initialize a labeling handle to be used for lookup operations. The backend argument specifies which backend is to be opened; the list of current…

  • |

    seg_protocol (3) Linux Manual Page

    seg_protocol – SEG Protocol The general form for the SEG protocol messages is MESSAGE-TYPE;TIMESTAMP;message-type-specific content * MESSAGE-TYPE is a three-digit integer. The JSM will parse the message contents based on the message type. * TIMESTAMP is an unsigned value indicating seconds since the UNIX epoch. Message Types 001 – Job State Change Message Format: 001;TIMESTAMP;JOBID;STATE;EXIT_CODE…

  • |

    seg_api (3) Linux Manual Page

    Scheduler Implementation API – Scheduler-specific SEG module implementations use this API to issue events to the Job State Monitor. Enumerations enum globus_scheduler_event_generator_error_t { GLOBUS_SEG_ERROR_TYPE_NULL = 1024, GLOBUS_SEG_ERROR_TYPE_ALREADY_SET, GLOBUS_SEG_ERROR_TYPE_INVALID_MODULE, GLOBUS_SEG_ERROR_TYPE_INVALID_FORMAT, GLOBUS_SEG_ERROR_TYPE_OUT_OF_MEMORY, GLOBUS_SEG_ERROR_TYPE_LOADING_MODULE } Functions globus_result_t globus_scheduler_event (const char *format,…) globus_result_t globus_scheduler_event_pending (time_t timestamp, const char *jobid) globus_result_t globus_scheduler_event_active (time_t timestamp, const char *jobid) globus_result_t globus_scheduler_event_failed (time_t…

  • |

    seekdir (3) Linux Manual Page

    seekdir – set the position of the next readdir() call in the directory stream. Synopsis #include <dirent.h> void seekdir(DIR *dirp, long loc); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): seekdir():  _XOPEN_SOURCE     || /* Glibc since 2.19: */ _DEFAULT_SOURCE     || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE Description The seekdir() function sets the location in the directory stream from which the next readdir(2) call…

  • |

    seed_ (3) Linux Manual Page

    QuantLib::MCPathBasketEngine – Pricing engine for path dependent basket options using Monte Carlo simulation. Synopsis #include <ql/experimental/mcbasket/mcpathbasketengine.hpp> Inherits QuantLib::PathMultiAssetOption::engine, and McSimulation< MultiVariate, RNG, S >. Public Types typedef McSimulation< MultiVariate, RNG, S >::path_generator_type path_generator_type typedef McSimulation< MultiVariate, RNG, S >::path_pricer_type path_pricer_type typedef McSimulation< MultiVariate, RNG, S >::stats_type stats_type Public Member Functions MCPathBasketEngine (Size timeSteps, bool brownianBridge,…

  • |

    seed48_r (3) Linux Manual Page

    drand48_r, erand48_r, lrand48_r, nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r – generate uniformly distributed pseudo-random numbers reentrantly Synopsis #include <stdlib.h> int drand48_r(struct drand48_data *buffer, double *result); int erand48_r(unsigned short xsubi[3], struct drand48_data *buffer, double *result); int lrand48_r(struct drand48_data *buffer, long *result); int nrand48_r(unsigned short xsubi[3], struct drand48_data *buffer, long *result); int mrand48_r(struct drand48_data *buffer, long *result);…

  • |

    seed48 (3) Linux Manual Page

    drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48 – generate uniformly distributed pseudo-random numbers Synopsis #include <stdlib.h> double drand48(void); double erand48(unsigned short xsubi[3]); long lrand48(void); long nrand48(unsigned short xsubi[3]); long mrand48(void); long jrand48(unsigned short xsubi[3]); void srand48(long seedval); unsigned short *seed48(unsigned short seed16v[3]); void lcong48(unsigned short param[7]); Feature Test Macro Requirements for glibc (see…

  • |

    security_setenforce (3) Linux Manual Page

    security_getenforce, security_setenforce, security_deny_unknown, security_reject_unknown, security_get_checkreqprot – get or set the enforcing state of SELinux Synopsis #include <selinux/selinux.h> int security_getenforce(void); int security_setenforce(int value); int security_deny_unknown(void); int security_reject_unknown(void); int security_get_checkreqprot(void); Description security_getenforce() returns 0 if SELinux is running in permissive mode, 1 if it is running in enforcing mode, and -1 on error. security_setenforce() sets SELinux to…

  • |

    security_set_boolean (3) Linux Manual Page

    security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending – routines for manipulating SELinux boolean values Synopsis #include <selinux/selinux.h> int security_get_boolean_names(char ***names, int *len); int security_get_boolean_pending(const char *name); int security_get_boolean_active(const char *name); int security_set_boolean(const char *name, int value); int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int permanent); int security_commit_booleans(void); Description The SELinux policy can include conditional rules that are enabled or…

  • |

    security_reject_unknown (3) Linux Manual Page

    security_getenforce, security_setenforce, security_deny_unknown, security_reject_unknown, security_get_checkreqprot – get or set the enforcing state of SELinux Synopsis #include <selinux/selinux.h> int security_getenforce(void); int security_setenforce(int value); int security_deny_unknown(void); int security_reject_unknown(void); int security_get_checkreqprot(void); Description security_getenforce() returns 0 if SELinux is running in permissive mode, 1 if it is running in enforcing mode, and -1 on error. security_setenforce() sets SELinux to…

  • |

    security_mkload_policy (3) Linux Manual Page

    security_load_policy – load a new SELinux policy Synopsis #include <selinux/selinux.h> int security_load_policy(void *data, size_t len); int selinux_mkload_policy(int preservebools); int selinux_init_load_policy(int *enforce); Description security_load_policy() loads a new policy, returns 0 for success and -1 for error. selinux_mkload_policy() makes a policy image and loads it. This function provides a higher level interface for loading policy than security_load_policy(),…

  • |

    security_load_policy (3) Linux Manual Page

    security_load_policy – load a new SELinux policy Synopsis #include <selinux/selinux.h> int security_load_policy(void *data, size_t len); int selinux_mkload_policy(int preservebools); int selinux_init_load_policy(int *enforce); Description security_load_policy() loads a new policy, returns 0 for success and -1 for error. selinux_mkload_policy() makes a policy image and loads it. This function provides a higher level interface for loading policy than security_load_policy(),…

  • |

    security_load_booleans (3) Linux Manual Page

    security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending – routines for manipulating SELinux boolean values Synopsis #include <selinux/selinux.h> int security_get_boolean_names(char ***names, int *len); int security_get_boolean_pending(const char *name); int security_get_boolean_active(const char *name); int security_set_boolean(const char *name, int value); int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int permanent); int security_commit_booleans(void); Description The SELinux policy can include conditional rules that are enabled or…

  • |

    security_getenforce (3) Linux Manual Page

    security_getenforce, security_setenforce, security_deny_unknown, security_reject_unknown, security_get_checkreqprot – get or set the enforcing state of SELinux Synopsis #include <selinux/selinux.h> int security_getenforce(void); int security_setenforce(int value); int security_deny_unknown(void); int security_reject_unknown(void); int security_get_checkreqprot(void); Description security_getenforce() returns 0 if SELinux is running in permissive mode, 1 if it is running in enforcing mode, and -1 on error. security_setenforce() sets SELinux to…

  • |

    security_get_initial_context_raw (3) Linux Manual Page

    security_compute_av, security_compute_av_flags, security_compute_create, security_compute_create_name, security_compute_relabel, security_compute_member, security_compute_user, security_validatetrans, security_get_initial_context – query the SELinux policy database in the kernel Synopsis #include <selinux/selinux.h> int security_compute_av(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct av_decision *avd); int security_compute_av_raw(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct av_decision *avd); int security_compute_av_flags(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct…

  • |

    security_get_initial_context (3) Linux Manual Page

    security_compute_av, security_compute_av_flags, security_compute_create, security_compute_create_name, security_compute_relabel, security_compute_member, security_compute_user, security_validatetrans, security_get_initial_context – query the SELinux policy database in the kernel Synopsis #include <selinux/selinux.h> int security_compute_av(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct av_decision *avd); int security_compute_av_raw(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct av_decision *avd); int security_compute_av_flags(char *scon, char *tcon, security_class_t tclass, access_vector_t requested, struct…

  • |

    security_get_boolean_pending (3) Linux Manual Page

    security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending – routines for manipulating SELinux boolean values Synopsis #include <selinux/selinux.h> int security_get_boolean_names(char ***names, int *len); int security_get_boolean_pending(const char *name); int security_get_boolean_active(const char *name); int security_set_boolean(const char *name, int value); int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int permanent); int security_commit_booleans(void); Description The SELinux policy can include conditional rules that are enabled or…

  • |

    security_get_boolean_names (3) Linux Manual Page

    security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending – routines for manipulating SELinux boolean values Synopsis #include <selinux/selinux.h> int security_get_boolean_names(char ***names, int *len); int security_get_boolean_pending(const char *name); int security_get_boolean_active(const char *name); int security_set_boolean(const char *name, int value); int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int permanent); int security_commit_booleans(void); Description The SELinux policy can include conditional rules that are enabled or…

  • |

    security_get_boolean_active (3) Linux Manual Page

    security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending – routines for manipulating SELinux boolean values Synopsis #include <selinux/selinux.h> int security_get_boolean_names(char ***names, int *len); int security_get_boolean_pending(const char *name); int security_get_boolean_active(const char *name); int security_set_boolean(const char *name, int value); int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int permanent); int security_commit_booleans(void); Description The SELinux policy can include conditional rules that are enabled or…