Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178277374
D62381.1796405494.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62381.1796405494.diff
View Options
diff --git a/sys/powerpc/linux/linux_proto.h b/sys/powerpc/linux/linux_proto.h
--- a/sys/powerpc/linux/linux_proto.h
+++ b/sys/powerpc/linux/linux_proto.h
@@ -926,9 +926,9 @@
};
struct linux_sync_file_range_args {
char fd_l_[PADL_(l_int)]; l_int fd; char fd_r_[PADR_(l_int)];
+ char flags_l_[PADL_(l_uint)]; l_uint flags; char flags_r_[PADR_(l_uint)];
char offset_l_[PADL_(l_loff_t)]; l_loff_t offset; char offset_r_[PADR_(l_loff_t)];
char nbytes_l_[PADL_(l_loff_t)]; l_loff_t nbytes; char nbytes_r_[PADR_(l_loff_t)];
- char flags_l_[PADL_(l_uint)]; l_uint flags; char flags_r_[PADR_(l_uint)];
};
struct linux_fallocate_args {
char fd_l_[PADL_(l_int)]; l_int fd; char fd_r_[PADR_(l_int)];
diff --git a/sys/powerpc/linux/linux_systrace_args.c b/sys/powerpc/linux/linux_systrace_args.c
--- a/sys/powerpc/linux/linux_systrace_args.c
+++ b/sys/powerpc/linux/linux_systrace_args.c
@@ -1922,9 +1922,9 @@
case 308: {
struct linux_sync_file_range_args *p = params;
iarg[a++] = p->fd; /* l_int */
+ iarg[a++] = p->flags; /* l_uint */
iarg[a++] = p->offset; /* l_loff_t */
iarg[a++] = p->nbytes; /* l_loff_t */
- iarg[a++] = p->flags; /* l_uint */
*n_args = 4;
break;
}
@@ -5888,13 +5888,13 @@
p = "l_int";
break;
case 1:
- p = "l_loff_t";
+ p = "l_uint";
break;
case 2:
p = "l_loff_t";
break;
case 3:
- p = "l_uint";
+ p = "l_loff_t";
break;
default:
break;
diff --git a/sys/powerpc/linux/syscalls.master b/sys/powerpc/linux/syscalls.master
--- a/sys/powerpc/linux/syscalls.master
+++ b/sys/powerpc/linux/syscalls.master
@@ -1514,12 +1514,13 @@
l_uint initval
);
}
+; PowerPC has sync_file_range2 here: flags come before the offsets.
308 AUE_NULL STD {
int linux_sync_file_range(
l_int fd,
+ l_uint flags,
l_loff_t offset,
- l_loff_t nbytes,
- l_uint flags
+ l_loff_t nbytes
);
}
309 AUE_NULL STD {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 5:31 PM (22 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42210521
Default Alt Text
D62381.1796405494.diff (1 KB)
Attached To
Mode
D62381: linuxulator/powerpc: fix the argument order of sync_file_range2
Attached
Detach File
Event Timeline