Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106135873
D26965.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D26965.diff
View Options
Index: head/sys/amd64/linux/linux_sysvec.c
===================================================================
--- head/sys/amd64/linux/linux_sysvec.c
+++ head/sys/amd64/linux/linux_sysvec.c
@@ -231,7 +231,7 @@
break;
default:
- frame->tf_rax = linux_to_bsd_errno(error);
+ frame->tf_rax = bsd_to_linux_errno(error);
frame->tf_r10 = frame->tf_rcx;
break;
}
Index: head/sys/amd64/linux32/linux32_sysvec.c
===================================================================
--- head/sys/amd64/linux32/linux32_sysvec.c
+++ head/sys/amd64/linux32/linux32_sysvec.c
@@ -678,7 +678,7 @@
if (__predict_false(error != 0)) {
if (error != ERESTART && error != EJUSTRETURN)
- frame->tf_rax = linux_to_bsd_errno(error);
+ frame->tf_rax = bsd_to_linux_errno(error);
}
}
Index: head/sys/arm64/linux/linux_sysvec.c
===================================================================
--- head/sys/arm64/linux/linux_sysvec.c
+++ head/sys/arm64/linux/linux_sysvec.c
@@ -142,10 +142,8 @@
cpu_set_syscall_retval(td, error);
if (__predict_false(error != 0)) {
- if (error != ERESTART && error != EJUSTRETURN) {
- td->td_frame->tf_x[0] =
- linux_to_bsd_errno(error);
- }
+ if (error != ERESTART && error != EJUSTRETURN)
+ td->td_frame->tf_x[0] = bsd_to_linux_errno(error);
}
}
Index: head/sys/compat/linux/linux.h
===================================================================
--- head/sys/compat/linux/linux.h
+++ head/sys/compat/linux/linux.h
@@ -196,6 +196,6 @@
}
#define BITMAP_1t1_LINUX(_name) BITMAP_EASY_LINUX(_name, LINUX_##_name)
-int linux_to_bsd_errno(int error);
+int bsd_to_linux_errno(int error);
#endif /* _LINUX_MI_H_ */
Index: head/sys/compat/linux/linux_errno.c
===================================================================
--- head/sys/compat/linux/linux_errno.c
+++ head/sys/compat/linux/linux_errno.c
@@ -11,7 +11,7 @@
#include <compat/linux/linux_errno.inc>
int
-linux_to_bsd_errno(int error)
+bsd_to_linux_errno(int error)
{
KASSERT(error >= 0 && error <= ELAST,
Index: head/sys/compat/linux/linux_socket.c
===================================================================
--- head/sys/compat/linux/linux_socket.c
+++ head/sys/compat/linux/linux_socket.c
@@ -1559,7 +1559,7 @@
name, &newval, UIO_SYSSPACE, &len);
if (error != 0)
return (error);
- newval = -linux_to_bsd_errno(newval);
+ newval = -bsd_to_linux_errno(newval);
return (copyout(&newval, PTRIN(args->optval), len));
/* NOTREACHED */
default:
Index: head/sys/i386/linux/linux_sysvec.c
===================================================================
--- head/sys/i386/linux/linux_sysvec.c
+++ head/sys/i386/linux/linux_sysvec.c
@@ -800,7 +800,7 @@
if (__predict_false(error != 0)) {
if (error != ERESTART && error != EJUSTRETURN)
- frame->tf_eax = linux_to_bsd_errno(error);
+ frame->tf_eax = bsd_to_linux_errno(error);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:02 AM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15609224
Default Alt Text
D26965.diff (2 KB)
Attached To
Mode
D26965: Fix misnomer
Attached
Detach File
Event Timeline
Log In to Comment