head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.54 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.52 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.50 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.48 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.46 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.44 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.42 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.40 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.38 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.36 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.34 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.32 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.30 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.28 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2; locks; strict; comment @# @; 1.3 date 2002.11.25.17.53.22; author jwise; state dead; branches; next 1.2; 1.2 date 2000.10.13.18.59.31; author jwise; state Exp; branches; next 1.1; 1.1 date 2000.10.02.19.27.54; author he; state Exp; branches; next ; desc @@ 1.3 log @Update tcl-scotty to version 2.1.11 and tkined to version 1.4.11 (the version bundled with scotty-2.1.11) Tnm changes since 2.1.10: 15/6/01 (bug fix) Fixed a buffer overrun in ntping. This is actually the reason to make this bugfix release public. 2/11/99 (bug fix) Make sure that remaining job times do not increase if the system clock moves backwards. 17/5/99 (bug fix) Make sure that commands bound to a recv event are always evaluated. 6/4/99 (bug fix) Fixed a Y2K bug in tnmHttp.c (thanks to bkozuma@@aol.com for finding this problem). 23/3/99 (bug fix) Accept derived types (e.g. DisplayString) in a varbind list. 9/3/99 (bug fix) Fixed bugs in straps.c which could cause security problems due to buffer overruns or signed/unsigned conversion. 8/3/99 (new feature) Added the global tnm(cache) variable which points to a directory where Tnm saves frozen MIB files. The default value for tnm(cache) is compatible with previous 2.1.X releases. Tkined changes since 1.4.10: 21/4/99 (bug fix) The size of the canvas is now independent from the resolution of the display. Further, PostScript dumps should now fit on the selected page size. @ text @$NetBSD: patch-ae,v 1.2 2000/10/13 18:59:31 jwise Exp $ --- tnmUnixSocket.c.orig Wed Sep 18 23:37:21 1996 +++ tnmUnixSocket.c Mon Oct 2 21:07:45 2000 @@@@ -13,6 +13,8 @@@@ #include "tnmInt.h" #include "tnmPort.h" +#include + int TnmSocket(domain, type, protocol) int domain; @@@@ -20,7 +22,13 @@@@ int protocol; { int s = socket(domain, type, protocol); - return (s < 0) ? TNM_SOCKET_ERROR : s; + if (s < 0) { + return TNM_SOCKET_ERROR; + } +#ifdef O_NONBLOCK + fcntl(s, F_SETFL, O_NONBLOCK); +#endif + return s; } int @ 1.2 log @Fix an obvious syntax error in patch-ae. People should *really* test code before committing it. _Especially_ in packages which they are not the maintainer of... @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1 2000/10/02 19:27:54 he Exp $ @ 1.1 log @Open SNMP sockets with O_NONBLOCK (if available). In some odd cases scotty can end up calling recvfrom() twice in a row with no intervening select(), and can thus otherwise end up in a hang. Fix supplied by Juergen Schoenwalder, received in private communication. @ text @d1 1 a1 1 $NetBSD$ d19 1 a19 1 + return (s < 0) { @