summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/fsync.c
blob: 1066770d50f05e7c202766a0492baa39d865f735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* vi: set sw=4 ts=4: */
/*
 * 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>

extern __typeof(fsync) __libc_fsync;
#define __NR___libc_fsync __NR_fsync
_syscall1(int, __libc_fsync, int, fd)
weak_alias(__libc_fsync, fsync)