Deleted Added
full compact
adjkerntz.c (5077) adjkerntz.c (5078)
1/*
2 * Copyright (C) 1993 by Andrew A. Chernov, Moscow, Russia.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 240 unchanged lines hidden (view full) ---

249 if (sysctl(mib, 2, NULL, NULL, &kern_offset, len) == -1) {
250 syslog(LOG_ERR, "sysctl(update_offset): %m");
251 return 1;
252 }
253 }
254
255 if (need_restore) {
256 need_restore = 0;
1/*
2 * Copyright (C) 1993 by Andrew A. Chernov, Moscow, Russia.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 240 unchanged lines hidden (view full) ---

249 if (sysctl(mib, 2, NULL, NULL, &kern_offset, len) == -1) {
250 syslog(LOG_ERR, "sysctl(update_offset): %m");
251 return 1;
252 }
253 }
254
255 if (need_restore) {
256 need_restore = 0;
257 mib[0] = CTL_MACHDEP;
258 mib[1] = CPU_DISRTCSET;
257 disrtcset = 0;
258 len = sizeof(disrtcset);
259 if (sysctl(mib, 2, NULL, NULL, &disrtcset, len) == -1) {
260 syslog(LOG_ERR, "sysctl(restore_disrtcset): %m");
261 return 1;
262 }
263 }
264
265/****** End of critical section ******/
266
267 if (init) {
268 init = 0;
269 /* wait for signals and acts like -a */
270 (void) sigsuspend(&emask);
271 goto again;
272 }
273
274 return 0;
275}
259 disrtcset = 0;
260 len = sizeof(disrtcset);
261 if (sysctl(mib, 2, NULL, NULL, &disrtcset, len) == -1) {
262 syslog(LOG_ERR, "sysctl(restore_disrtcset): %m");
263 return 1;
264 }
265 }
266
267/****** End of critical section ******/
268
269 if (init) {
270 init = 0;
271 /* wait for signals and acts like -a */
272 (void) sigsuspend(&emask);
273 goto again;
274 }
275
276 return 0;
277}