summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-03-31 17:42:54 +0000
committerjilles <jilles@FreeBSD.org>2013-03-31 17:42:54 +0000
commit9d8a3c5c3b4f3e39e3b60af49f0da1899c1a7ebc (patch)
treeb8628274f03c6bcc8f72bb87ea957e5a46c0357f /sys/compat
parent1f73a954db5bb5e3e2a9a410eae7f420e2252b20 (diff)
downloadFreeBSD-src-9d8a3c5c3b4f3e39e3b60af49f0da1899c1a7ebc.zip
FreeBSD-src-9d8a3c5c3b4f3e39e3b60af49f0da1899c1a7ebc.tar.gz
Rename do_pipe() to kern_pipe2() and declare it properly.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 7e4ac380..49c3fdf 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -70,9 +70,6 @@ __FBSDID("$FreeBSD$");
#include <compat/linux/linux_util.h>
#include <compat/linux/linux_file.h>
-/* XXX */
-int do_pipe(struct thread *td, int fildes[2], int flags);
-
int
linux_creat(struct thread *td, struct linux_creat_args *args)
{
@@ -1584,7 +1581,7 @@ linux_pipe(struct thread *td, struct linux_pipe_args *args)
printf(ARGS(pipe, "*"));
#endif
- error = do_pipe(td, fildes, 0);
+ error = kern_pipe2(td, fildes, 0);
if (error)
return (error);
@@ -1611,7 +1608,7 @@ linux_pipe2(struct thread *td, struct linux_pipe2_args *args)
flags |= O_NONBLOCK;
if ((args->flags & LINUX_O_CLOEXEC) != 0)
flags |= O_CLOEXEC;
- error = do_pipe(td, fildes, flags);
+ error = kern_pipe2(td, fildes, flags);
if (error)
return (error);
OpenPOWER on IntegriCloud