about summary refs log tree commit diff
path: root/include/sys
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-04-14 22:21:48 +0000
committerRich Felker <dalias@aerifal.cx>2015-04-17 22:31:44 -0400
commit02e5d564217cf2c92418f1cb5304754cfc9d57ff (patch)
tree12e6877fbfde19960b57b99bd54aa04ce9a4b853 /include/sys
parent658aefdf336b9465a50b779d9b7f1d23363c0027 (diff)
downloadmusl-02e5d564217cf2c92418f1cb5304754cfc9d57ff.tar.gz
musl-02e5d564217cf2c92418f1cb5304754cfc9d57ff.tar.xz
musl-02e5d564217cf2c92418f1cb5304754cfc9d57ff.zip
add PR_*_FP_MODE prctl options
new in linux v4.0, commit 9791554b45a2acc28247f66a5fd5bbc212a6b8c8
used to work around a floating-point abi issue on mips
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/prctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/prctl.h b/include/sys/prctl.h
index 4129a70c..ec92053d 100644
--- a/include/sys/prctl.h
+++ b/include/sys/prctl.h
@@ -119,6 +119,11 @@ struct prctl_mm_map {
 #define PR_MPX_ENABLE_MANAGEMENT  43
 #define PR_MPX_DISABLE_MANAGEMENT 44
 
+#define PR_SET_FP_MODE          45
+#define PR_GET_FP_MODE          46
+#define PR_FP_MODE_FR (1 << 0)
+#define PR_FP_MODE_FRE (1 << 1)
+
 int prctl (int, ...);
 
 #ifdef __cplusplus