head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.8 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.1.0.66 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.64 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.62 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.60 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.58 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.56 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.54 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.52 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.50 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.48 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.46 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.44 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.42 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.40 pkgsrc-2008Q1:1.1.0.38 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.36 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.34 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.32 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.30 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.28 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.26 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.24 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.22 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.20 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.18 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.16 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.14 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.12 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.10 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.8 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.6 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.4 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.2 netbsd-1-6-1-base:1.1; locks; strict; comment @# @; 1.2 date 2011.05.22.19.11.42; author dholland; state dead; branches; next 1.1; 1.1 date 2003.01.27.23.39.03; author ad; state Exp; branches; next ; desc @@ 1.2 log @Fix assorted build problems. Should close PR 42081. While here, add at least minimal comments to all patches and tidy up some (but by no means all) pkglint. I have no idea if this works. It spews warnings about "packed", which lead me to suspect it may not run correctly, but I don't have the facilities to test it. It does, however, now build ok on LP64 and if someone can test it may be reasonable to remove the restriction on that. @ text @$NetBSD: patch-aj,v 1.1 2003/01/27 23:39:03 ad Exp $ --- dpteng/lockunix.c.orig Fri Dec 13 14:04:11 2002 +++ dpteng/lockunix.c Fri Dec 13 14:07:56 2002 @@@@ -31,6 +31,7 @@@@ #include "lockunix.h" static char Lock[] = "/tmp/%s.LOCK"; +static const int LockMode = 0600; extern int errno; static char * @@@@ -73,7 +74,7 @@@@ return (-1); } sprintf (templateBuffer, Template, Name); - if ((fd = open(mktemp (templateBuffer), O_WRONLY|O_CREAT|O_EXCL)) < 0) { + if ((fd = open(mktemp (templateBuffer), O_WRONLY|O_CREAT|O_EXCL, LockMode)) < 0) { free (templateBuffer); free (lock); return (-1); @@@@ -143,7 +144,7 @@@@ if (lock != (char *)NULL) { sprintf (lock, Lock, Name); - if ((fd = open(lock, O_WRONLY|O_CREAT|O_TRUNC)) >= 0) { + if ((fd = open(lock, O_WRONLY|O_CREAT|O_TRUNC, LockMode)) >= 0) { sprintf (buffer, "%d\n", pid); write (fd, buffer, strlen(buffer)); close (fd); @ 1.1 log @Miscellaneous fixes and improvements; crank version to nb1. @ text @d1 1 a1 1 $NetBSD$ @