Esempio n. 1
0
int
syncfs (int fd)
{
  error_t err = HURD_DPORT_USE (fd, __file_syncfs (port, 1, 0));
  if (err)
    return __hurd_dfail (fd, err);
  return 0;
}
Esempio n. 2
0
/* Make all changes done to all files actually appear on disk.  */
void
sync (void)
{
  /* This is not actually synchronous; we don't wait.  */
  error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
  if (err)
    (void) __hurd_fail (err);
}