0b332f8d36
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 <psionMountDir>/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.
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
$NetBSD: patch-ag,v 1.2 2004/09/08 12:14:59 wiz Exp $
|
|
|
|
--- plpnfsd/nfs_prot_svc.c.orig 2002-03-08 09:29:50.000000000 +0100
|
|
+++ plpnfsd/nfs_prot_svc.c
|
|
@@ -8,7 +8,7 @@
|
|
#include "OSdefs.h"
|
|
|
|
#define PORTMAP
|
|
-#ifdef __SVR4
|
|
+#if defined(__SVR4) || defined(__NetBSD__)
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#endif
|
|
@@ -16,7 +16,7 @@
|
|
#include <rpc/rpc.h>
|
|
#include "nfs_prot.h"
|
|
#include "mp.h"
|
|
-#ifdef __GLIBC__
|
|
+#if defined(__GLIBC__) || defined(__NetBSD__)
|
|
#include <string.h>
|
|
#endif
|
|
|
|
@@ -197,7 +197,7 @@ nfs_program_2(rqstp, transp)
|
|
}
|
|
memset((char *)&argument, 0, sizeof(argument));
|
|
#if !defined(__SVR4) && !defined(__FreeBSD__)
|
|
-#ifdef __GLIBC__
|
|
+#if defined(__GLIBC__) || defined(__NetBSD__)
|
|
if (!svc_getargs(transp, (xdrproc_t)xdr_argument, (caddr_t)&argument)) {
|
|
#else
|
|
if (!svc_getargs(transp, xdr_argument, &argument)) {
|
|
@@ -217,7 +217,7 @@ nfs_program_2(rqstp, transp)
|
|
svcerr_systemerr(transp);
|
|
}
|
|
#if !defined(__SVR4) && !defined(__FreeBSD__)
|
|
-#ifdef __GLIBC__
|
|
+#if defined(__GLIBC__) || defined(__NetBSD__)
|
|
if (!svc_freeargs(transp, (xdrproc_t)xdr_argument,(caddr_t)&argument)) {
|
|
#else
|
|
if (!svc_freeargs(transp, xdr_argument, &argument)) {
|