svn commit: r344700 - head/sys/compat/linuxkpi/common/include/linux

Bjoern A. Zeeb bz at FreeBSD.org
Fri Mar 1 14:33:21 UTC 2019


Author: bz
Date: Fri Mar  1 14:33:20 2019
New Revision: 344700
URL: https://svnweb.freebsd.org/changeset/base/344700

Log:
  Add ushort and ulong to linux/types.h.
  
  When porting code once written for Linux we find not only uints but also ushort and ulong.
  Provide central typedefs as part of the linuxkpi for those as well.
  
  Reviewed by:	hselasky, emaste
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D19405

Modified:
  head/sys/compat/linuxkpi/common/include/linux/types.h

Modified: head/sys/compat/linuxkpi/common/include/linux/types.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/types.h	Fri Mar  1 13:05:37 2019	(r344699)
+++ head/sys/compat/linuxkpi/common/include/linux/types.h	Fri Mar  1 14:33:20 2019	(r344700)
@@ -53,7 +53,9 @@ typedef uint32_t __be32;
 typedef uint64_t __le64;
 typedef uint64_t __be64;
 
+typedef unsigned short ushort;
 typedef unsigned int    uint;
+typedef unsigned long ulong;
 typedef unsigned gfp_t;
 typedef off_t loff_t;
 typedef vm_paddr_t resource_size_t;


More information about the svn-src-all mailing list