Lines Matching full:sysctl
32 #include <sys/sysctl.h>
49 * value of the sysctl so it can be updated later.
64 * Disable the net.inet.ip.portrange.randomized sysctl. Save the in disable_random_ports()
74 atf_tc_skip("Unable to set sysctl"); in disable_random_ports()
77 fprintf(stderr, "Error: unexpected sysctl value size " in disable_random_ports()
87 warn("error opening sysctl backup file"); in disable_random_ports()
92 warn("error writing saved value to sysctl backup file"); in disable_random_ports()
97 "Error writing saved value to sysctl backup file: " in disable_random_ports()
103 warn("error closing sysctl backup file"); in disable_random_ports()
110 atf_tc_skip("Error setting sysctl"); in disable_random_ports()
115 * Restore the sysctl value from the backup file and delete the backup file.
125 warn("error opening sysctl backup file"); in restore_random_ports()
130 warn("error reading saved value from sysctl backup file"); in restore_random_ports()
135 "Error reading saved value from sysctl backup file: " in restore_random_ports()
141 warn("error closing sysctl backup file"); in restore_random_ports()
144 warn("error removing sysctl backup file"); in restore_random_ports()
146 /* Restore the saved sysctl value. */ in restore_random_ports()
172 * Disable the net.inet.ip.portrange.randomized sysctl. Assuming an in connect_loop()