Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151806141
D31285.id92676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D31285.id92676.diff
View Options
Index: sys/compat/linux/linux.h
===================================================================
--- sys/compat/linux/linux.h
+++ sys/compat/linux/linux.h
@@ -113,6 +113,7 @@
/* sigaltstack */
#define LINUX_SS_ONSTACK 1
#define LINUX_SS_DISABLE 2
+#define LINUX_SS_AUTODISARM 0x80000000
int linux_to_bsd_sigaltstack(int lsa);
int bsd_to_linux_sigaltstack(int bsa);
Index: sys/compat/linux/linux.c
===================================================================
--- sys/compat/linux/linux.c
+++ sys/compat/linux/linux.c
@@ -188,6 +188,12 @@
if (lsa & LINUX_SS_DISABLE)
bsa |= SS_DISABLE;
+ if (lsa & LINUX_SS_AUTODISARM) {
+ /*
+ * XXX: We should be returning EINVAL instead.
+ */
+ linux_msg(curthread, "unsupported SS_AUTODISARM");
+ }
/*
* Linux ignores SS_ONSTACK flag for ss
* parameter while FreeBSD prohibits it.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 7:32 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31263104
Default Alt Text
D31285.id92676.diff (854 B)
Attached To
Mode
D31285: linux: emit warning on SS_AUTODISARM
Attached
Detach File
Event Timeline
Log In to Comment