Print this page
12365 pwritev64 can't write at offsets between [2 GiB, 4 GiB)
Portions contributed by: John Levon <john.levon@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/Makefile
          +++ new/usr/src/test/os-tests/tests/Makefile
↓ open down ↓ 3 lines elided ↑ open up ↑
   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, 2016 by Delphix. All rights reserved.
  14      -# Copyright 2019 Joyent, Inc.
       14 +# Copyright 2020 Joyent, Inc.
  15   15  #
  16   16  
  17   17  SUBDIRS_i386 = i386
  18   18  
  19   19  SUBDIRS =       \
  20   20                  ddi_ufm \
  21   21                  file-locking \
  22   22                  pf_key \
  23   23                  poll \
  24   24                  sdevfs \
  25   25                  secflags \
  26   26                  sigqueue \
  27   27                  sockfs \
  28   28                  spoof-ras \
  29   29                  stress \
  30   30                  $(SUBDIRS_$(MACH))
  31   31  
  32   32  PROGS = \
  33      -        odirectory
       33 +        odirectory \
       34 +        writev
  34   35  
  35   36  CPPFLAGS += -D_REENTRANT
  36   37  PROGS32 = $(PROGS:%=%.32)
  37   38  PROGS64 = $(PROGS:%=%.64)
  38   39  
  39   40  ROOTOPTDIR = $(ROOT)/opt/os-tests/tests
  40   41  ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
  41   42          $(PROGS64:%=$(ROOTOPTDIR)/%) \
  42   43          $(SCRIPTS:%=$(ROOTOPTDIR)/%)
  43   44  
  44   45  odirectory.32 :=        LDLIBS += -lsocket
  45   46  odirectory.64 :=        LDLIBS64 += -lsocket
  46   47  
       48 +writev.32 :=            CPPFLAGS += -D_FILE_OFFSET_BITS=64
       49 +writev.32 :=            CSTD = $(CSTD_GNU99)
       50 +writev.64 :=            CSTD = $(CSTD_GNU99)
       51 +
  47   52  include $(SRC)/cmd/Makefile.cmd
  48   53  
  49   54  all     :=      TARGET = all
  50   55  install :=      TARGET = install
  51   56  clean   :=      TARGET = clean
  52   57  clobber :=      TARGET = clobber
  53   58  
  54   59  .KEEP_STATE:
  55   60  
  56   61  install: $(SUBDIRS) $(ROOTOPTPROGS)
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX