summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-03-18 18:20:17 +0000
committernetchild <netchild@FreeBSD.org>2006-03-18 18:20:17 +0000
commitc1829f604cdf8a3f393bfa6cb85fe9a6d4908919 (patch)
tree0bfbd4f21076e4935e7376b8d0502c8d258d4cfa /sys/compat/linux/linux_file.c
parentd4f801f4ab01a2c0d88e59ddabc9757533800554 (diff)
downloadFreeBSD-src-c1829f604cdf8a3f393bfa6cb85fe9a6d4908919.zip
FreeBSD-src-c1829f604cdf8a3f393bfa6cb85fe9a6d4908919.tar.gz
Get rid of the need of COMPAT_43 in the linuxolator.
Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Obtained from: DragonFly (some parts)
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 79a8ba9..b0d054d 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$");
#include <ufs/ufs/quota.h>
#include <ufs/ufs/ufsmount.h>
-#include "opt_compat.h"
-
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>
#include <machine/../linux32/linux32_proto.h>
@@ -669,6 +667,21 @@ linux_truncate(struct thread *td, struct linux_truncate_args *args)
}
int
+linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args)
+{
+ struct ftruncate_args /* {
+ int fd;
+ int pad;
+ off_t length;
+ } */ nuap;
+
+ nuap.fd = args->fd;
+ nuap.pad = 0;
+ nuap.length = args->length;
+ return (ftruncate(td, &nuap));
+}
+
+int
linux_link(struct thread *td, struct linux_link_args *args)
{
char *path, *to;
OpenPOWER on IntegriCloud