One deletion, few adds and sort to include lists.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tm_isdst >0: yes, 0: no, <0: unknown
*/
-#include <unistd.h> /* for geteuid() */
-#include <fcntl.h> /* for O_RDWR */
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
+#include <time.h>
+#include <unistd.h>
+
+#include "c.h"
#include "nls.h"
#if defined(__i386__)
* f) put the command 'clock -au' or 'clock -a' in your '/etc/rc.local'
*/
-#include <string.h>
-#include <stdio.h>
-#include <fcntl.h>
#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <time.h>
-#include <sys/time.h>
-#include <sys/stat.h>
-#include <stdarg.h>
#include <getopt.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <sysexits.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+#include "c.h"
#include "clock.h"
#include "nls.h"
* kd.c - KDGHWCLK stuff, possibly m68k only, likely to be deprecated
*/
-#include "clock.h"
#ifdef __m68k__
-# include <unistd.h> /* for close() */
-# include <fcntl.h> /* for O_RDONLY */
+# include <fcntl.h>
# include <sysexits.h>
# include <sys/ioctl.h>
+# include <unistd.h>
+# include "clock.h"
# include "nls.h"
# include "usleep.h"
#if !defined(__m68k__) || !defined(KDGHWCLK)
+#include <stddef.h>
struct clock_ops *probe_for_kd_clock()
{
return NULL;
/*
* rtc.c - Use /dev/rtc for clock access
*/
-#include <unistd.h> /* for close() */
-#include <fcntl.h> /* for O_RDONLY */
+#include <asm/ioctl.h>
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <sysexits.h>
#include <sys/ioctl.h>
-#include <sys/time.h> /* for struct timeval */
+#include <sys/select.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
#include "clock.h"
#include "nls.h"