Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2013 14:53:39 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r250272 - user/dchagin/lemul/sys/compat/linux
Message-ID:  <201305051453.r45Erdjm021368@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun May  5 14:53:38 2013
New Revision: 250272
URL: http://svnweb.freebsd.org/changeset/base/250272

Log:
  Get ready to commit x86_64 Linux emulation.
  All fields of type l_int in struct statfs are defined
  as long on i386 and amd64.

Modified:
  user/dchagin/lemul/sys/compat/linux/linux_stats.c

Modified: user/dchagin/lemul/sys/compat/linux/linux_stats.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_stats.c	Sun May  5 13:56:59 2013	(r250271)
+++ user/dchagin/lemul/sys/compat/linux/linux_stats.c	Sun May  5 14:53:38 2013	(r250272)
@@ -326,18 +326,17 @@ linux_lstat(struct thread *td, struct li
 	return(stat_copyout(&buf, args->up));
 }
 
-/* XXX - All fields of type l_int are defined as l_long on i386 */
 struct l_statfs {
-	l_int		f_type;
-	l_int		f_bsize;
-	l_int		f_blocks;
-	l_int		f_bfree;
-	l_int		f_bavail;
-	l_int		f_files;
-	l_int		f_ffree;
+	l_long		f_type;
+	l_long		f_bsize;
+	l_long		f_blocks;
+	l_long		f_bfree;
+	l_long		f_bavail;
+	l_long		f_files;
+	l_long		f_ffree;
 	l_fsid_t	f_fsid;
-	l_int		f_namelen;
-	l_int		f_spare[6];
+	l_long		f_namelen;
+	l_long		f_spare[6];
 };
 
 #define	LINUX_CODA_SUPER_MAGIC	0x73757245L



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305051453.r45Erdjm021368>