summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/fsync.c
blob: e4963aedcd4d771b11d366063db057d3be3e6b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * fsync() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <unistd.h>
#include <cancel.h>

#define __NR___fsync_nocancel __NR_fsync
static _syscall1(int, __NC(fsync), int, fd)

CANCELLABLE_SYSCALL(int, fsync, (int fd), (fd))