2 #include <linux/unistd.h>
4 const char update_usage[] = "update\n"
6 "\tFlush buffered data to the disk devices every 30 seconds.\n";
9 #include <sys/kdaemon.h>
11 _syscall2(int, bdflush, int, func, int, data);
12 #endif /* __GLIBC__ */
15 update_main(struct FileInfo * i, int argc, char * * argv)
18 * Update is actually two daemons, bdflush and update.
25 else if ( pid == 0 ) {
27 * This is no longer necessary since 1.3.5x, but it will harmlessly
28 * exit if that is the case.
30 strcpy(argv[0], "bdflush (update)");
39 else if ( pid == 0 ) {