summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2013-11-01 02:56:33 +0100
committerMichael Brown2013-11-01 18:00:16 +0100
commit92c56e129bae6dd054c89a6077009e25da5b7e29 (patch)
tree3485ab2d93a8e2f184d1859a3a9aa76b27ffc40b /src/include/usr
parent[monojob] Report ongoing job status as overall return status on timeout (diff)
downloadipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.tar.gz
ipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.tar.xz
ipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.zip
[cmdline] Rewrite "sync" command to use monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/sync.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/usr/sync.h b/src/include/usr/sync.h
new file mode 100644
index 00000000..0047d4ed
--- /dev/null
+++ b/src/include/usr/sync.h
@@ -0,0 +1,14 @@
+#ifndef _USR_SYNC_H
+#define _USR_SYNC_H
+
+/** @file
+ *
+ * Wait for pending operations to complete
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int sync ( unsigned long timeout );
+
+#endif /* _USR_SYNC_H */