.\" 
.\" Text-to-Doc converter for Palm Pilots
.\" pdb.4
.\" 
.\" Copyright (C) 1998  Paul J. Lucas
.\" 
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\" 
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
.\" 
.\" ---------------------------------------------------------------------------
.\" define code-start macro
.de cS
.sp
.nf
.RS 5
.ft CW
.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i
..
.\" define code-end macro
.de cE
.ft 1
.RE
.fi
.sp
..
.\" ---------------------------------------------------------------------------
.TH "\f3PDB\f1" "4" "20. August 2005" "txt2pdbdoc" ""
.SH "NAME"
PDB \- (Pilot Datenbank) Dateiformat
.SH "\[:U]BERSICHT"
.nf 
.ft CW
.ta 5 12 26
#define dmDBNameLength	32	/* 31 chars + 1 null terminator */

struct pdb_header {	/* 78 bytes total */
	char	name[ dmDBNameLength ];
	Word	attributes;
	Word	version;
	DWord	create_time;
	DWord	modify_time;
	DWord	backup_time;
	DWord	modificationNumber;
	DWord	appInfoID;
	DWord	sortInfoID;
	char	type[4];
	char	creator[4];
	DWord	id_seed;
	DWord	nextRecordList;
	Word	numRecords;
};
.P
struct pdb_rec_header {	/* 8 bytes total */
	DWord	offset;
	struct {
		int delete	: 1;
		int dirty	: 1;
		int busy	: 1;
		int secret	: 1;
		int category	: 4;
	}	attributes;
	char	uniqueID[3];
}
.ft 1
.fi 
.SH "BESCHREIBUNG"
Das PDB (Pilot Datenbank)\-Dateiformat wird von allen Modellen
des Palm Pilot und IBM Workpad benutzt.
Das Format besteht aus einem Kopf (Header), gefolgt von einem Satz an
Block\-Headern und den Bl\[:o]cken selbst.
.SS Wortgr\[:o]\[ss]e
In der \[:U]BERSICHT oben, werden die Typen
``\f(CWByte\f1,''
``\f(CWWord\f1,'' und ``\f(CWDWord\f1''
in den Pilot\-Headern verwendet.
Der Typ ``\f(CWByte\f1'' ist 8 Bit lang;
``\f(CWWord\f1'' ist 16 Bit lang;
``\f(CWDWord\f1'' ist 32 Bit lang.
Die letzten beiden sind im Big\-Endian\-Format.
.SH "BESONDERHEITEN"
.TP 4
1.
Die C\-Strukturen in der \[:U]BERSICHT oben sind nur informativ
und werden h\[:o]chstwahrscheinlich nicht mit aktuellem C\-Code funktionieren.
.TP 
2.
Das hier vorgestellte PDB\-Dateiformat ist nicht das offizielle, es stammt
aus der Zeit, als es noch geheim war und ist m\[:o]glicherweise \[:u]berholt.
Der offizielle Standard ist auf der Webseite von Palm verf\[:u]gbar. (SIEHE AUCH)
.SH "SIEHE AUCH"
txt2pdbdoc(1), html2pdbtxt(1), pdbtxt2html(1), doc(4)
.PP 
Palm Computing Inc.
.I Palm File Format Specification,
2000.
.br 
http://www.palmos.com/dev/support/docs/fileformats/front.html
.SH "AUTOR"
Paul J. Lucas
.RI < pauljlucas@mac.com >
.br 
Aktualisiert und \[:u]bersetzt von Erik Schanze
.RI < eriks@debian.org >