summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/sync.c
blob: dd69e335be3d6e7c97b6188d68147ce64bf7c1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* vi: set sw=4 ts=4: */
/*
 * sync syscall 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>
# if defined __USE_BSD || defined __USE_UNIX98
#include <sys/types.h>
#include <unistd.h>

#ifndef INLINE_SYSCALL
#define INLINE_SYSCALL(name, nr, args...) __syscall_sync (args)
#define __NR___syscall_sync __NR_sync 
static inline _syscall0(void, __syscall_sync);
#endif

void sync(void)
{
	INLINE_SYSCALL(sync, 0);
}
#endif