summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/fsync.c
blob: 774efc9ce74d04f79f0b6a41ab933d5a19a00487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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>

#ifdef __LINUXTHREADS_OLD__
extern __typeof(fsync) weak_function fsync;
strong_alias(fsync,__libc_fsync)
#endif

_syscall1(int, fsync, int, fd)