Page MenuHomeFreeBSD

D31285.id92676.diff
No OneTemporary

D31285.id92676.diff

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

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)

Event Timeline