Print this page
10880 posix_memalign() should avoid clobbering return parameter on failure
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/libc-tests/tests/Makefile
+++ new/usr/src/test/libc-tests/tests/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 14 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
15 15 # Copyright (c) 2018, Joyent, Inc.
16 16 #
17 17
18 18 SUBDIRS = \
19 19 catopen \
20 20 fpround \
21 21 newlocale \
22 22 nl_langinfo \
23 23 priv_gettext \
24 24 random \
25 25 regex \
26 26 select \
27 27 strerror \
28 28 symbols \
29 29 threads \
30 30 wcsrtombs \
31 31 wctype
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32
33 33 PROGS = \
34 34 aligned_alloc \
35 35 c11_threads \
36 36 c11_tss \
37 37 call_once \
38 38 endian \
39 39 env-7076 \
40 40 fnmatch \
41 41 memset_s \
42 + posix_memalign \
42 43 printf-9511 \
43 44 psignal-5097 \
44 45 quick_exit_order \
45 46 quick_exit_status \
46 47 set_constraint_handler_s \
47 48 strcoll-strxfrm-6907 \
48 49 timespec_get \
49 50 wcsncasecmp \
50 51 wcsncasecmp-7344 \
51 52 wcsncasecmp-7350
52 53
53 54 SCRIPTS = \
54 55 quick_exit \
55 56 psignal
56 57
57 58 CPPFLAGS += -D_REENTRANT
58 59
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
59 60 # needs work
60 61 SMOFF += all_func_returns,snprintf_overflow
61 62
62 63 PROGS32 = $(PROGS:%=%.32)
63 64 PROGS64 = \
64 65 $(PROGS:%=%.64) \
65 66 printf-6961.64
66 67
67 68 aligned_alloc.32 := LDLIBS += -lproc
68 69 aligned_alloc.64 := LDLIBS64 += -lproc
70 +posix_memalign.32 := LDLIBS += -lproc
71 +posix_memalign.64 := LDLIBS64 += -lproc
69 72
70 73 memset_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
71 74 memset_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
72 75 set_constraint_handler_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
73 76 set_constraint_handler_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
74 77
75 78 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
76 79 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
77 80 $(PROGS64:%=$(ROOTOPTDIR)/%) \
78 81 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
79 82
80 83 include $(SRC)/cmd/Makefile.cmd
81 84
82 85 all := TARGET = all
83 86 install := TARGET = install
84 87 clean := TARGET = clean
85 88 clobber := TARGET = clobber
86 89 lint := TARGET = lint
87 90
88 91 .KEEP_STATE:
89 92
90 93 install: $(SUBDIRS) $(ROOTOPTPROGS)
91 94
92 95 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
93 96
94 97 clean lint: $(SUBDIRS)
95 98
96 99 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
97 100
98 101 $(ROOTOPTDIR):
99 102 $(INS.dir)
100 103
101 104 $(ROOTOPTDIR)/%: %
102 105 $(INS.file)
103 106
104 107 $(ROOTOPTDIR)/%: %.ksh
105 108 $(INS.rename)
106 109
107 110 %.64: %.c
108 111 $(LINK64.c) -o $@ $< $(LDLIBS64)
109 112 $(POST_PROCESS)
110 113
111 114 %.32: %.c
112 115 $(LINK.c) -o $@ $< $(LDLIBS)
113 116 $(POST_PROCESS)
114 117
115 118 clobber: $(SUBDIRS)
116 119 $(RM) $(PROGS32) $(PROGS64)
117 120
118 121 $(SUBDIRS): FRC
119 122 @cd $@; pwd; $(MAKE) $(TARGET)
120 123
121 124 FRC:
↓ open down ↓ |
43 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX