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>

@@ -9,11 +9,11 @@
 # http://www.illumos.org/license/CDDL.
 #
 
 #
 # Copyright (c) 2012, 2016 by Delphix. All rights reserved.
-# Copyright 2019 Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 #
 
 SUBDIRS_i386 = i386
 
 SUBDIRS =       \

@@ -28,11 +28,12 @@
                 spoof-ras \
                 stress \
                 $(SUBDIRS_$(MACH))
 
 PROGS = \
-        odirectory
+        odirectory \
+        writev
 
 CPPFLAGS += -D_REENTRANT
 PROGS32 = $(PROGS:%=%.32)
 PROGS64 = $(PROGS:%=%.64)
 

@@ -42,10 +43,14 @@
         $(SCRIPTS:%=$(ROOTOPTDIR)/%)
 
 odirectory.32 :=        LDLIBS += -lsocket
 odirectory.64 :=        LDLIBS64 += -lsocket
 
+writev.32 :=            CPPFLAGS += -D_FILE_OFFSET_BITS=64
+writev.32 :=            CSTD = $(CSTD_GNU99)
+writev.64 :=            CSTD = $(CSTD_GNU99)
+
 include $(SRC)/cmd/Makefile.cmd
 
 all     :=      TARGET = all
 install :=      TARGET = install
 clean   :=      TARGET = clean