Article View: demon.tech.unix
Article #464Re: xrolodex
From: Paul Civati
Date: Mon, 13 Mar 2000 00:00
Date: Mon, 13 Mar 2000 00:00
39 lines
2173 bytes
2173 bytes
In article <8ag57b$lgb$10@axalotl.demon.co.uk>,
huge@nospam.huge.org.uk (Huge) writes:
> Can anyone recommend a rolodex/card index app for Solaris 7? I have an
> elderly copy of xrolodex, compiled under SunOS4.1.3, but it no longer
> runs properly under 7 and I cannot get it to recompile;
It probably just needs a bit of massaging, is all:
> axalotl{huge}92: make
[..]
> cc -O -pipe -I/usr/include -I$OPENWINHOME/include -DSTANDALONE -c cards.c
> cards.c: In function `init_rolo':
> cards.c:110: `O_CREAT' undeclared (first use in this function)
> cards.c:551: `O_WRONLY' undeclared (first use in this function)
> cards.c:551: `O_TRUNC' undeclared (first use in this function)
> cards.c:588: `F_OK' undeclared (first use in this function)
> cards.c:589: `O_CREAT' undeclared (first use in this function)
> cards.c:598: `W_OK' undeclared (first use in this function)
> cards.c:623: `F_OK' undeclared (first use in this function)
> cards.c:628: `R_OK' undeclared (first use in this function)
% uname -a
SunOS viper.xciv.org 5.7 Generic_106541-04 sun4m sparc SUNW,SPARCstation-10
% egrep 'F_OK|W_OK|R_OK' /usr/include/*.h
/usr/include/unistd.h:#define R_OK 4 /* Test for Read permission */
/usr/include/unistd.h:#define W_OK 2 /* Test for Write permission */
/usr/include/unistd.h:#define F_OK 0 /* Test for existence of File */
% egrep 'O_CREAT|O_WRONLY|O_TRUNC' /usr/include/sys/*.h
/usr/include/sys/fcntl.h:#define O_WRONLY 1
/usr/include/sys/fcntl.h:#define O_CREAT 0x100
/usr/include/sys/fcntl.h:#define O_TRUNC 0x200
Add <unistd.h> and <sys/fcntl.h> to cards.c and see how much further
it gets.
-Paul-
Technical Details
Message-ID:
<8ahbuk$4dp$1@vantage.xciv.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8ag57b$lgb$10@axalotl.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac57,99f333247bbe24ae,start X-Google-Attributes: gidfac57,public From: paul@xciv.org (Paul Civati) Subject: Re: xrolodex Date: 2000/03/13 Message-ID: <8ahbuk$4dp$1@vantage.xciv.org> X-Deja-AN: 596645458 References: <8ag57b$lgb$10@axalotl.demon.co.uk> Content-Type: text/plain; charset=us-ascii Organization: iso.org.dod.internet Mime-Version: 1.0 Newsgroups: demon.tech.unix