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
↓ 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
↓ 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)/%)
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX