Patch-ID: bash32-032
[bash.git] / examples / loadables / sync.c
blob44d4e095ee295040e9bb5000e1f03971fe7244d6
1 /* sync - sync the disks by forcing pending filesystem writes to complete */
3 #include <config.h>
5 #ifdef HAVE_UNISTD_H
6 #include <unistd.h>
7 #endif
9 #include "builtins.h"
10 #include "shell.h"
11 #include "bashgetopt.h"
13 sync_builtin (list)
14 WORD_LIST *list;
16 sync();
17 return (EXECUTION_SUCCESS);
20 char *sync_doc[] = {
21 "force completion of pending disk writes",
22 (char *)NULL
25 struct builtin sync_struct = {
26 "sync", /* builtin name */
27 sync_builtin, /* function implementing the builtin */
28 BUILTIN_ENABLED, /* initial flags for builtin */
29 sync_doc, /* array of long documentation strings. */
30 "sync", /* usage synopsis; becomes short_doc */
31 0 /* reserved for internal use */