| 1 | #cxx . . $ `<file>/src/OVAL/probes/probe/option.c`/ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 2 | #include <config.h>cxx . . $ `<file>/build/config.h`/ |
| 3 | #endif |
| 4 | |
| 5 | #include <stdarg.h> |
| 6 | #include "option.h"cxx . . $ `<file>/src/OVAL/probes/probe/option.h`/ |
| 7 | |
| 8 | size_t OSCAP_GSYMcxx . . $ `src/common/util.h:444:9`!(probe_optdef_count) = 0; |
| 9 | probe_option_tcxx . . $ probe_option_t# *OSCAP_GSYMcxx . . $ `src/common/util.h:444:9`!(probe_optdef) = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 10 | |
| 11 | static int __probe_option_opcxx . . $ __probe_option_op(4150cf18850aca74).(int option, int op, va_listcxx . . $ va_list# ap) |
| 12 | { |
| 13 | probe_option_tcxx . . $ probe_option_t#* optdef = OSCAP_GSYMcxx . . $ `src/common/util.h:444:9`!(probe_optdef); |
| 14 | size_t i, optdef_count = OSCAP_GSYMcxx . . $ `src/common/util.h:444:9`!(probe_optdef_count); |
| 15 | int ret = -1; |
| 16 | |
| 17 | for (i = 0; i < optdef_count; ++i) { |
| 18 | if (option == optdef[i].optioncxx . . $ $anonymous_type_7ccdd93c6ac2fc09_0#option.) { |
| 19 | ret = optdef[i].handlercxx . . $ $anonymous_type_7ccdd93c6ac2fc09_0#handler.(option, op, ap); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | return ret; |
| 24 | } |
| 25 | |
| 26 | int probe_setoptioncxx . . $ probe_setoption(e5daca538bd362ba).(int option, ...) |
| 27 | { |
| 28 | int ret; |
| 29 | va_listcxx . . $ va_list# ap; |
| 30 | va_startcxx . . $ `<external>/8105065126723003039/stdarg.h:50:9`!(ap, option); |
| 31 | ret = __probe_option_opcxx . . $ __probe_option_op(4150cf18850aca74).(option, PROBE_OPTION_SETcxx . . $ `src/OVAL/probes/probe/option.h:7:9`!, ap); |
| 32 | va_endcxx . . $ `<external>/8105065126723003039/stdarg.h:52:9`!(ap); |
| 33 | return ret; |
| 34 | } |
| 35 | |
| 36 | int probe_getoptioncxx . . $ probe_getoption(e5daca538bd362ba).(int option, ...) |
| 37 | { |
| 38 | int ret; |
| 39 | va_listcxx . . $ va_list# ap; |
| 40 | va_startcxx . . $ `<external>/8105065126723003039/stdarg.h:50:9`!(ap, option); |
| 41 | ret = __probe_option_opcxx . . $ __probe_option_op(4150cf18850aca74).(option, PROBE_OPTION_GETcxx . . $ `src/OVAL/probes/probe/option.h:8:9`!, ap); |
| 42 | va_endcxx . . $ `<external>/8105065126723003039/stdarg.h:52:9`!(ap); |
| 43 | return ret; |
| 44 | } |