Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: andrew@andrew.triumf.ca (Andrew Daviel)
Subject: dbm size limit in OSF
Date: 1996/10/25	[thread overview]
Message-ID: <54rfks$581@nntp.ucs.ubc.ca> (raw)


I've ported an application written in Perl4 using dbmopen
to OSF (it uses LIBWWW_PERL 4, which bombs under Perl 5, and it
was easier to build Perl 4 than rewrite the app using LWP 5).

Anyhow, it works fine under Linux but under OSF I get 
"dbm store returned -1, errno 28, key "whatever" at TRbot line 1232

I figure  28 is ENOSPC No space left on device.

In "man ndbm" is
  [ENOSPC]  [Digital]  An attempt was made to store a key (and its associated
            contents) whose size exceeds the page block size limit as defined
            by PBLKSIZE in /usr/include/ndbm.h.

In ndbm.h is defined 
#ifdef _XOPEN_SOURCE_EXTENDED
#define DBM_PBLKSIZ 1024
#define DBM_DBLKSIZ 4096

        char    dbm_pagbuf[DBM_PBLKSIZ];/* page file block buffer */
        char    dbm_dirbuf[DBM_DBLKSIZ];/* directory file block buffer */
#else /* _OSF_SOURCE */
#define PBLKSIZ 1024
#define DBLKSIZ 4096
        char    dbm_dirbuf[DBLKSIZ];    /* directory file block buffer */
        char    dbm_pagbuf[PBLKSIZ];    /* page file block buffer */
#endif

So Digital have in their wisdom imposed some arbitrary small limit
on record lengths in a dbm database.

Can I just change this value?
Is it feasible to make a custom version of ndbm and link it
with Perl? Should I just install gdbm ?

--
Andrew Daviel         mailto:advax@triumf.ca 
TRIUMF                voice: 604-222-7376 
4004 Wesbrook Mall    fax:   604-222-7307 
Vancouver BC          http://andrew.triumf.ca/~andrew 
Canada   V6T 2A3      49D14.7N 123D13.6W



             reply	other threads:[~1996-10-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-25  4:00 Andrew Daviel [this message]
1996-10-25  4:00 ` dbm size limit in OSF Alan Lehotsky
1996-10-26  4:00 ` Mike Iglesias
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox