sbase

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

sync.c (294B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <unistd.h>
      3 
      4 #include "util.h"
      5 
      6 static void
      7 usage(void)
      8 {
      9 	eprintf("usage: %s\n", argv0);
     10 }
     11 
     12 int
     13 main(int argc, char *argv[])
     14 {
     15 	argv0 = *argv, argv0 ? (argc--, argv++) : (void *)0;
     16 
     17 	if (argc)
     18 		usage();
     19 	sync();
     20 
     21 	return 0;
     22 }