Page MenuHomeFreeBSD

D20715.diff
No OneTemporary

D20715.diff

Index: head/sys/sys/_types.h
===================================================================
--- head/sys/sys/_types.h
+++ head/sys/sys/_types.h
@@ -68,6 +68,7 @@
typedef int __cpuwhich_t; /* which parameter for cpuset. */
typedef int __cpulevel_t; /* level parameter for cpuset. */
typedef int __cpusetid_t; /* cpuset identifier. */
+typedef __int64_t __daddr_t; /* bwrite(3), FIOBMAP2, etc */
/*
* Unusual type definitions.
Index: head/sys/sys/filio.h
===================================================================
--- head/sys/sys/filio.h
+++ head/sys/sys/filio.h
@@ -40,7 +40,7 @@
#ifndef _SYS_FILIO_H_
#define _SYS_FILIO_H_
-#include <sys/types.h>
+#include <sys/_types.h>
#include <sys/ioccom.h>
/* Generic file-descriptor ioctl's. */
@@ -64,12 +64,12 @@
#define FIOSEEKDATA _IOWR('f', 97, off_t) /* SEEK_DATA */
#define FIOSEEKHOLE _IOWR('f', 98, off_t) /* SEEK_HOLE */
struct fiobmap2_arg {
- int64_t bn;
- int runp;
- int runb;
+ __daddr_t bn;
+ int runp;
+ int runb;
};
-/* Get the file's bmap info for the logical block bn */
-#define FIOBMAP2 _IOWR('f', 99, struct fiobmap2_arg)
+/* Get the file's bmap info for the logical block bn. */
+#define FIOBMAP2 _IOWR('f', 99, struct fiobmap2_arg)
#ifdef _KERNEL
#ifdef COMPAT_FREEBSD32
Index: head/sys/sys/types.h
===================================================================
--- head/sys/sys/types.h
+++ head/sys/sys/types.h
@@ -101,7 +101,7 @@
#endif
typedef __critical_t critical_t; /* Critical section value */
-typedef __int64_t daddr_t; /* disk address */
+typedef __daddr_t daddr_t; /* disk address */
#ifndef _DEV_T_DECLARED
typedef __dev_t dev_t; /* device number or struct cdev */

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 17, 9:52 AM (7 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23828519
Default Alt Text
D20715.diff (1 KB)

Event Timeline