🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37166

Using libstorage

#37166
From: bg
Date: Fri, 30 Apr 1999 00:00
37 lines
1802 bytes
Greetings -

I am wondering how I would use the libstorage in another program to
access articles.  I have managed to get it to compile after a few
modifications, but I have no idea if I will hose my system by running
it.  Below are the changes I've made.  Please let me know what damage I
might do.  :-)  If the library isn't safe for use by programs outside
the INN package, I would be willing to make it so it is safe.

... in my program ...

#include "storage.h"
#include "libinn.h"

... in storage.h, because including clibrary.h resulted in even more
errors ...

typedef long OFFSET_T;
typedef int BOOL;
typedef pid_t PID_T;

... in my makefile - adding qio.o cleared up some linker (?) complaints
...

CFLAGS= -Wall -g -c -O2 -I../include -I../zlib/zlib
-I/usr/local/news/include -I
/usr/local/src/inn-2.2/include
LDFLAGS= -L../lib/ -L../zlib/zlib/ /usr/local/news/lib/libstorage.a
/usr/local/news/lib/libinn.a /usr/local/src/inn-2.2/storage/qio.o


TIA

Tom Hetrick


Technical Details
Message-ID: <3729CD93.D5F6116A@wizard.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3729CD93.D5F6116A@wizard.net>
Subject: Using libstorage
Date: Fri, 30 Apr 1999 00:00:00 +0000
From: bg <billgates@aol.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 472718198
Content-Transfer-Encoding: 7bit
Sender: techdom@gateway.loralorion.com
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news1.loralorion.net
X-Trace: news1.loralorion.net 925486430 7939 209.239.66.36 (30 Apr 1999 15:33:50 GMT)
Organization: Loral Orion
Mime-Version: 1.0
NNTP-Posting-Date: 30 Apr 1999 15:33:50 GMT
Newsgroups: news.software.nntp