[cmdline] Rewrite "sync" command to use monojob_wait()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-11-01 01:56:33 +00:00
parent dc7a023715
commit 92c56e129b
5 changed files with 103 additions and 25 deletions

14
src/include/usr/sync.h Normal file
View File

@@ -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 */