On Thu, Jul 10, 2014 at 08:29:04AM -0600, Philip Guenther wrote: > CVSROOT: /cvs > Module name: src > Changes by: guent...@cvs.openbsd.org 2014/07/10 08:29:03 > > Modified files: > usr.bin/rdist : common.c config-data.h > > Log message: > Assume POSIX: write() takes size_t and returns ssize_t
Do we need to do anything specific to build rdist after this change? ===> usr.bin/rdist cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c gram.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/message.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/lookup.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/isexec.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/expand.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/distopt.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/common.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/child.cIn file included from /usr/src/usr.bin/rdist/lookup.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/client.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/docmd.c cc -O2 -pipe -I. -I/usr/src/usr.bin/rdist -DOS_H=\"os-openbsd.h\" -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -c /usr/src/usr.bin/rdist/rdist.cIn file included from /usr/src/usr.bin/rdist/message.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite'In file included from /usr/src/usr.bin/rdist/gram.y:34: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' In file included from /usr/src/usr.bin/rdist/common.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' /usr/src/usr.bin/rdist/common.c:80: warning: no previous prototype for 'xwrite' In file included from /usr/src/usr.bin/rdist/expand.c:34: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' In file included from /usr/src/usr.bin/rdist/distopt.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' In file included from /usr/src/usr.bin/rdist/client.c:34: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' In file included from /usr/src/usr.bin/rdist/isexec.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' *** Error 1 in target 'common.o' *** Error 1 in target 'lookup.o' *** Error 1 in target 'message.o' *** Error 1 in target 'gram.o' In file included from /usr/src/usr.bin/rdist/child.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' In file included from /usr/src/usr.bin/rdist/docmd.c:36: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' /usr/src/usr.bin/rdist/child.c: In function 'readchild': *** Error 1 in target 'distopt.o' /usr/src/usr.bin/rdist/child.c:190: warning: implicit declaration of function 'xwrite' *** Error 1 in target 'expand.o' mandoc -Tlint /usr/src/usr.bin/rdist/rdist.1 /usr/src/usr.bin/rdist/client.c: In function 'sendfile': /usr/src/usr.bin/rdist/client.c:444: warning: implicit declaration of function 'xwrite' /usr/src/usr.bin/rdist/client.c: In function 'statupdate': /usr/src/usr.bin/rdist/client.c:1040: warning: declaration of 'target' shadows a global declaration /usr/src/usr.bin/rdist/client.c:54: warning: shadowed declaration is here /usr/src/usr.bin/rdist/client.c: In function 'fullupdate': /usr/src/usr.bin/rdist/client.c:1072: warning: declaration of 'target' shadows a global declaration /usr/src/usr.bin/rdist/client.c:54: warning: shadowed declaration is here *** Error 1 in target 'client.o' *** Error 1 in target 'docmd.o' *** Error 1 in target 'isexec.o' *** Error 1 in target 'child.o' In file included from /usr/src/usr.bin/rdist/rdist.c:32: /usr/src/usr.bin/rdist/defs.h:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xwrite' /usr/src/usr.bin/rdist/rdist.c: In function 'opendist': /usr/src/usr.bin/rdist/rdist.c:305: warning: declaration of 'distfile' shadows a global declaration /usr/src/usr.bin/rdist/rdist.c:42: warning: shadowed declaration is here *** Error 1 in usr.bin/rdist (<sys.mk>:87 'rdist.o') *** Error 1 (<sys.mk>:87 'child.o') *** Error 1 (<sys.mk>:87 'isexec.o') *** Error 1 (<sys.mk>:87 'docmd.o') *** Error 1 (<sys.mk>:87 'client.o') *** Error 1 (<sys.mk>:87 'expand.o') *** Error 1 (<sys.mk>:87 'distopt.o') *** Error 1 (<sys.mk>:87 'gram.o') *** Error 1 (<sys.mk>:87 'message.o') *** Error 1 (<sys.mk>:87 'lookup.o') *** Error 1 (<sys.mk>:87 'common.o') *** Error 2 in usr.bin (<bsd.subdir.mk>:48 'all') *** Error 2 in . (<bsd.subdir.mk>:48 'all') *** Error 2 in /usr/src (Makefile:82 'build')