Linux Manuals session 3

Section 3: library functions

  • |

    averageType (3) Linux Manual Page

    ql/instruments/averagetype.hpp – Averaging algorithm enumeration. Synopsis#include <ql/qldefines.hpp> #include <ostream> Classesstruct Average Placeholder for enumerated averaging types. Functionsstd::ostream & operator<< (std::ostream &out, Average::Type type) Detailed DescriptionAveraging algorithm enumeration. AuthorGenerated automatically by Doxygen for QuantLib from the source code.

  • |

    averageShortfall (3) Linux Manual Page

    QuantLib::GenericRiskStatistics – empirical-distribution risk measures Synopsis#include <ql/math/statistics/riskstatistics.hpp> Inherits S. Public Typestypedef S::value_type value_type Public Member FunctionsReal semiVariance () const Real semiDeviation () const Real downsideVariance () const Real downsideDeviation () const Real regret (Real target) const Real potentialUpside (Real percentile) const potential upside (the reciprocal of VAR) at a given percentile Real valueAtRisk (Real percentile)…

  • |

    avcall (3) Linux Manual Page

    avcall – build a C argument list incrementally and call a C function on it. Synopsis#include <avcall.h> av_alist alist; av_start_type(alist, &func [[, return_type], &return_value]); av_type(alist, [arg_type,] value); av_call(alist); DescriptionThis set of macros builds an argument list for a C function and calls the function on it. It significantly reduces the amount of `glue’ code required…

  • |

    avc_sid_to_context (3) Linux Manual Page

    avc_context_to_sid, avc_sid_to_context, avc_get_initial_sid – obtain and manipulate SELinux security ID’s Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_context_to_sid(char *ctx, security_id_t *sid); int avc_sid_to_context(security_id_t sid, char **ctx); int avc_get_initial_sid(const char *name, security_id_t *sid); DescriptionSecurity ID’s (SID’s) are opaque representations of security contexts, managed by the userspace AVC. avc_context_to_sid() returns a SID for the given context in the memory…

  • |

    avc_sid_stats (3) Linux Manual Page

    avc_cache_stats, avc_av_stats, avc_sid_stats – obtain userspace SELinux AVC statistics Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> void avc_av_stats(void); void avc_sid_stats(void); void avc_cache_stats(struct avc_cache_stats *stats); DescriptionThe userspace AVC maintains two internal hash tables, one to store security ID’s and one to cache access decisions. avc_av_stats() and avc_sid_stats() produce log messages indicating the status of the access decision and SID…

  • |

    avc_reset (3) Linux Manual Page

    avc_open, avc_destroy, avc_reset, avc_cleanup – userspace SELinux AVC setup and teardown Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_open(struct selinux_opt *options, unsigned nopt); void avc_destroy(void); int avc_reset(void); void avc_cleanup(void); Descriptionavc_open() initializes the userspace AVC and must be called before any other AVC operation can be performed. avc_destroy() destroys the userspace AVC, freeing all internal memory structures. After…

  • |

    avc_open (3) Linux Manual Page

    avc_open, avc_destroy, avc_reset, avc_cleanup – userspace SELinux AVC setup and teardown Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_open(struct selinux_opt *options, unsigned nopt); void avc_destroy(void); int avc_reset(void); void avc_cleanup(void); Descriptionavc_open() initializes the userspace AVC and must be called before any other AVC operation can be performed. avc_destroy() destroys the userspace AVC, freeing all internal memory structures. After…

  • |

    avc_netlink_release_fd (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_netlink_open (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_netlink_loop (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_netlink_close (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_netlink_check_nb (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_netlink_acquire_fd (3) Linux Manual Page

    avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop – SELinux netlink processing Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_netlink_open(int blocking); void avc_netlink_close(void); int avc_netlink_acquire_fd(void); void avc_netlink_release_fd(void); void avc_netlink_loop(void); int avc_netlink_check_nb(void); DescriptionThese functions enable applications to handle notification of SELinux events via netlink. The userspace AVC normally checks for netlink messages on each call to avc_has_perm(3). Applications may wish…

  • |

    avc_init (3) Linux Manual Page

    avc_init – legacy userspace SELinux AVC setup Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_init(const char *msgprefix, const struct avc_memory_callback *mem_callbacks, const struct avc_log_callback *log_callbacks, const struct avc_thread_callback *thread_callbacks, const struct avc_lock_callback *lock_callbacks); Descriptionavc_init() is deprecated; please use avc_open(3) in conjunction with selinux_set_callback(3) in all new code. avc_init() initializes the userspace AVC and must be called before…

  • |

    avc_has_perm_noaudit (3) Linux Manual Page

    avc_has_perm, avc_has_perm_noaudit, avc_audit, avc_entry_ref_init – obtain and audit SELinux access decisions Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> void avc_entry_ref_init(struct avc_entry_ref *aeref); int avc_has_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, void *auditdata); int avc_has_perm_noaudit(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, struct av_decision *avd); void avc_audit(security_id_t ssid, security_id_t tsid, security_class_t tclass,…

  • |

    avc_has_perm (3) Linux Manual Page

    avc_has_perm, avc_has_perm_noaudit, avc_audit, avc_entry_ref_init – obtain and audit SELinux access decisions Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> void avc_entry_ref_init(struct avc_entry_ref *aeref); int avc_has_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, void *auditdata); int avc_has_perm_noaudit(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, struct av_decision *avd); void avc_audit(security_id_t ssid, security_id_t tsid, security_class_t tclass,…

  • |

    avc_get_initial_sid (3) Linux Manual Page

    avc_context_to_sid, avc_sid_to_context, avc_get_initial_sid – obtain and manipulate SELinux security ID’s Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_context_to_sid(char *ctx, security_id_t *sid); int avc_sid_to_context(security_id_t sid, char **ctx); int avc_get_initial_sid(const char *name, security_id_t *sid); DescriptionSecurity ID’s (SID’s) are opaque representations of security contexts, managed by the userspace AVC. avc_context_to_sid() returns a SID for the given context in the memory…

  • |

    avc_get_initial_context (3) Linux Manual Page

    avc_context_to_sid, avc_sid_to_context, avc_get_initial_sid – obtain and manipulate SELinux security ID’s Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_context_to_sid(char *ctx, security_id_t *sid); int avc_sid_to_context(security_id_t sid, char **ctx); int avc_get_initial_sid(const char *name, security_id_t *sid); DescriptionSecurity ID’s (SID’s) are opaque representations of security contexts, managed by the userspace AVC. avc_context_to_sid() returns a SID for the given context in the memory…

  • |

    avc_entry_ref_init (3) Linux Manual Page

    avc_has_perm, avc_has_perm_noaudit, avc_audit, avc_entry_ref_init – obtain and audit SELinux access decisions Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> void avc_entry_ref_init(struct avc_entry_ref *aeref); int avc_has_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, void *auditdata); int avc_has_perm_noaudit(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested, struct avc_entry_ref *aeref, struct av_decision *avd); void avc_audit(security_id_t ssid, security_id_t tsid, security_class_t tclass,…

  • |

    avc_destroy (3) Linux Manual Page

    avc_open, avc_destroy, avc_reset, avc_cleanup – userspace SELinux AVC setup and teardown Synopsis#include <selinux/selinux.h> #include <selinux/avc.h> int avc_open(struct selinux_opt *options, unsigned nopt); void avc_destroy(void); int avc_reset(void); void avc_cleanup(void); Descriptionavc_open() initializes the userspace AVC and must be called before any other AVC operation can be performed. avc_destroy() destroys the userspace AVC, freeing all internal memory structures. After…