head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.8 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.4 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.2 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.3.0.36 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.34 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.32 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.30 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.28 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.26 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.24 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.22 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.20 pkgsrc-2008Q1:1.3.0.18 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.16 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.14 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.12 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.10 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.8 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.6 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.4 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.2 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.2 pkgsrc-2004Q2-base:1.1; locks; strict; comment @# @; 1.4 date 2010.02.10.17.08.22; author joerg; state dead; branches; next 1.3; 1.3 date 2006.02.02.15.03.19; author joerg; state Exp; branches; next 1.2; 1.2 date 2004.09.08.12.14.59; author wiz; state Exp; branches; next 1.1; 1.1 date 2004.05.24.16.09.35; author kristerw; state Exp; branches; next ; desc @@ 1.4 log @Retire comms/plptools. @ text @$NetBSD: patch-ah,v 1.3 2006/02/02 15:03:19 joerg Exp $ --- lib/Enum.h.orig 2002-08-10 20:47:05.000000000 +0200 +++ lib/Enum.h @@@@ -28,6 +28,7 @@@@ #endif #include +#include #include #include @@@@ -257,7 +258,7 @@@@ public: * XXX: throw OutOfRangeException ? */ static E getValueFor(const std::string &s) { - return (E) staticData.stringRep.lookup(s.getCStr()); + return (E) staticData.stringRep.lookup(s.c_str()); } }; @@@@ -295,6 +296,20 @@@@ public: * * @@author Henner Zeller */ +#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +#define ENUM_DEFINITION(EnumName, initWith) \ +/** \ + * The definition of the static variable holding the static \ + * data for this Enumeration wrapper. \ + */ \ +template Enum::sdata Enum::staticData; \ +/** \ + * actual definition of the constructor for the static data. \ + * This is called implicitly by the definition above. \ + */ \ +Enum::sdata::sdata() : \ +name(#EnumName),defaultValue(initWith) +#else #define ENUM_DEFINITION(EnumName, initWith) \ /** \ * The definition of the static variable holding the static \ @@@@ -307,6 +322,7 @@@@ Enum::sdata Enum::st */ \ Enum::sdata::sdata() : \ name(#EnumName),defaultValue(initWith) +#endif /** * Writes enumeration's string representation. @ 1.3 log @Add DragonFly support. Fix C++ RTL usage: c_str is how to get the representation, not getCStr. Attempt to fix declaration of static template members. Be conditional for GCC 3.4+ for now, it conflicts with the constructor in GCC 3.3. Attempt to fix timezone usage as found in other packages. Use PTHREAD_* variables instead of hard-coded -lpthread. Don't look for _nl_domain_bindings in -lintl, libintl uses a different prefix. Remove harmfull class keywords in friend declarations. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 0.12 to fix build with gcc3. Changes since 0.8 are not documented except in the ChangeLog. Changes from Version 0.7 to 0.8 - Fixed lot of bugs, especially in nfs code - Series 3 _should_ work again. - Added support for KDE (KDE >= 2.1) - Added KDE Application "kpsion" Changes from Version 0.6 to 0.7 - Changed timezone-stuff again. With S5, now the machine-info is evaluated. This info holds the Psion's time-offset so that we are able to calculate the offset correctly, regardless of the Psion's setting. All that is done in a new class PsiTime. For S3, a Fallback is provided using an Env-Variable "PSI_TZ" which can be set to the Psion's time-offset in seconds. - Added lots of rpc related stuff: - Implemented a procfs-like subdir in plpnfsd. Processes can be examined and misc. parameters can be examined/changed using the entries in /proc/ Several parameters can now be changed on the fly: attribute-cache timeout in seconds: proc/acache (rw) debuglevel: proc/debuglevel (rw) directory-cache timeout in seconds: proc/dcache (rw) Psion's owner-info: proc/owner (ro) Unix-owner of mounted directory: proc/unixowner (rw) Stopping of plpnfsd has now changed: Old: reference /mnt/psion/exit New: echo stop > /mnt/psion/proc/exit This should be safer than accidentally referencing a file. For every process running on the psion, a subdir in proc/ is created with two files "cmd" and "args" (both ro). cmd is the process-name, args is it's commandline. - Added machinfo command in plpftp for displaying lot of interesting information about S5. (E.g. battery status etc.) - Added killsave and runrestore to plpftpd. Both take a unix file as argument. killsave kills all processes on the Psion and saves restart-information to the specified file. runrestore reads a file created by killsave and starts all processes saved in this file. -> Functionality similar to the behavior of PsiWin before/after backup. @ text @d13 38 @ 1.1 log @Fix some C++ issues that gcc 3.3 complains on. @ text @d3 4 a6 5 --- lib/ppsocket.cc.orig 2004-05-24 12:38:15.000000000 +0200 +++ lib/ppsocket.cc 2004-05-24 17:42:47.000000000 +0200 @@@@ -389,7 +389,7 @@@@ { int i; d8 5 a12 5 - cout << hex << (int) c << endl; + cout << std::hex << (int) c << endl; i = writeTimeout(&c, 1, 0); if (i == SOCKET_ERROR || i == 0) return (false); @