OSDN Git Service

Last portion of libc_hidden_proto removal.
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / mremap.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * mremap() for uClibc
4  *
5  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6  *
7  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8  */
9
10 #include <sys/syscall.h>
11 #include <unistd.h>
12
13 #ifdef __NR_mremap
14
15 //vda:TODO: add comment and explain why??
16
17 #define mremap _hidemremap
18 #include <sys/mman.h>
19 #undef mremap
20
21 void *mremap(void *, size_t, size_t, int, void *);
22 libc_hidden_proto(mremap)
23
24 _syscall5(void *, mremap, void *, old_address, size_t, old_size, size_t,
25                   new_size, int, may_move, void *, new_address)
26 libc_hidden_def(mremap)
27
28 #endif