summaryrefslogtreecommitdiff
path: root/usr/src/head/stdlib.h
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-03-06 12:22:09 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-03-06 12:22:09 +0000
commitc9d5215bf1b67592fb838367435fe20cfd079dd2 (patch)
tree0e98d0e92f52dfd2c43d36b0395e004d62f664b9 /usr/src/head/stdlib.h
parent37db1b725f2132b140356cbf6ba045af1d7dfd97 (diff)
parent7d8deab2c421c563ab11a55e623ed48109e237af (diff)
downloadillumos-joyent-c9d5215bf1b67592fb838367435fe20cfd079dd2.tar.gz
[illumos-gate merge]
commit 7d8deab2c421c563ab11a55e623ed48109e237af 12306 XPG4v2 slave pty behaviour should generally be disabled Conflicts: usr/src/uts/common/os/streamio.c
Diffstat (limited to 'usr/src/head/stdlib.h')
-rw-r--r--usr/src/head/stdlib.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/src/head/stdlib.h b/usr/src/head/stdlib.h
index 6b0d224e07..337311a978 100644
--- a/usr/src/head/stdlib.h
+++ b/usr/src/head/stdlib.h
@@ -28,7 +28,7 @@
/*
* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
- * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
+ * Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
*/
/* Copyright (c) 1988 AT&T */
@@ -250,6 +250,19 @@ extern int setenv(const char *, const char *, int);
extern int unsetenv(const char *);
#endif
+/*
+ * In strict XPG4v2 mode, slave pseudo terminal devices behave differently.
+ * See the block comment in usr/src/lib/libc/port/gen/pt.c
+ */
+#if defined(_STRICT_SYMBOLS) && defined(_XPG4_2)
+#ifdef __PRAGMA_REDEFINE_EXTNAME
+#pragma redefine_extname unlockpt __unlockpt_xpg4
+#else
+extern int __unlockpt_xpg4(int);
+#define unlockpt __unlockpt_xpg4
+#endif
+#endif /* defined(_STRICT_SYMBOLS) && defined(_XPG4_2) */
+
#if defined(__EXTENSIONS__) || \
(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
extern char *canonicalize_file_name(const char *);