1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
Index: b/usr/src/lib/libc/port/mapfile-vers
===================================================================
--- a/usr/src/lib/libc/port/mapfile-vers 2014-03-02 23:24:53.941324987 +0400
+++ b/usr/src/lib/libc/port/mapfile-vers 2014-03-02 23:24:57.222356447 +0400
@@ -116,14 +116,7 @@
protected:
pipe2;
dup3;
- mkostemp;
- mkostemps;
-
-$if lf64
- mkostemp64;
- mkostemps64;
-$endif
-} ILLUMOS_0.3;
+} DYSON_1;
SYMBOL_VERSION DYSON_1 {
global:
@@ -145,6 +138,8 @@
gnu_strerror_r;
mempcpy;
memrchr;
+ mkostemp;
+ mkostemps;
program_invocation_name;
program_invocation_short_name;
qsort_r;
@@ -152,6 +147,8 @@
sendfile;
sendfilev;
$if _ELF32
+ mkostemp64;
+ mkostemps64;
sendfile64;
sendfilev64;
$endif
Index: b/usr/src/head/stdlib.h
===================================================================
--- a/usr/src/head/stdlib.h 2014-03-02 23:24:53.949923251 +0400
+++ b/usr/src/head/stdlib.h 2014-03-02 23:24:57.224298130 +0400
@@ -102,9 +102,17 @@
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname mkstemp mkstemp64
#pragma redefine_extname mkstemps mkstemps64
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+#pragma redefine_extname mkostemp mkostemp64
+#pragma redefine_extname mkostemps mkostemps64
+#endif
#else /* __PRAGMA_REDEFINE_EXTNAME */
#define mkstemp mkstemp64
#define mkstemps mkstemps64
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+#define mkostemp mkostemp64
+#define mkostemps mkostemps64
+#endif
#endif /* __PRAGMA_REDEFINE_EXTNAME */
#endif /* _FILE_OFFSET_BITS == 64 */
@@ -115,9 +123,17 @@
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname mkstemp64 mkstemp
#pragma redefine_extname mkstemps64 mkstemps
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+#pragma redefine_extname mkostemp64 mkostemp
+#pragma redefine_extname mkostemps64 mkostemps
+#endif
#else /* __PRAGMA_REDEFINE_EXTNAME */
#define mkstemp64 mkstemp
#define mkstemps64 mkstemps
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+#define mkostemp64 mkostemp
+#define mkostemps64 mkostemps
+#endif
#endif /* __PRAGMA_REDEFINE_EXTNAME */
#endif /* _LP64 && _LARGEFILE64_SOURCE */
@@ -176,6 +192,10 @@
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
extern int mkstemps(char *, int);
#endif
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+int mkostemp(char *, int);
+int mkostemps(char *, int, int);
+#endif
#endif /* defined(__EXTENSIONS__) ... */
#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
@@ -184,6 +204,10 @@
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
extern int mkstemps64(char *, int);
#endif
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+int mkostemp64(char *, int);
+int mkostemps64(char *, int, int);
+#endif
#endif /* _LARGEFILE64_SOURCE... */
#if defined(__EXTENSIONS__) || \
|