From owner-freebsd-ports Wed Oct 23 11:54:14 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA03123 for ports-outgoing; Wed, 23 Oct 1996 11:54:14 -0700 (PDT) Received: from ns.caseware.com (ns.caseware.com [204.50.57.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA03118 for ; Wed, 23 Oct 1996 11:54:12 -0700 (PDT) Received: from danger-room (danger-room.caseware.com [206.186.93.33]) by ns.caseware.com (8.7.1/8.7.1) with SMTP id OAA17049 for ; Wed, 23 Oct 1996 14:48:17 -0400 (EDT) Message-Id: <2.2.32.19961023185439.0093f964@caseware.com> X-Sender: tom@caseware.com X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 23 Oct 1996 14:54:39 -0400 To: freebsd-ports@freebsd.com From: Tom Cassiotis Subject: Typhoon Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I was wondering if anyone has ported Typhoon DBMS? If not maybe someone can help me with the following problem: Version: FreeBSD 2.1.0-Release ... sprintf(dbdname, "%s.dbd", db->name); key = ftok(dbdname, 30); if( (db->shm_id = shmget(key, sizeof(TyphoonSharedMemory), 0)) == -1 ) { ... key == 503615776 sizeof == 120 The filename that is passed to ftok exists and has proper right. The stack trace is as follows: #0 0x8046975 in shmsys () #1 0x803cdf0 in shmget.so () #2 0xd3e0 in shm_alloc (db=0x119e8) at unix.c:205 #3 0xba8d in d_open (dbname=0xefbfdafb "test", mode=0x2fd1 "s") at ty_open.c:406 #4 0x3030 in Import (dbname=0xefbfdafb "test") at import.c:497 #5 0x3476 in main (argc=2, argv=0xefbfda98) at import.c:589 The man pages on shmget seem to be misleading as to the last parameter. It describes variable names that do not exist in the header file. Any clues? (Would 2.1.5 fix this?) Thanks for your time. Tom tom@caseware.com