🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #4976

Re: vt100clock

#4976
From: Clarence Dold
Date: Wed, 10 May 1989 14:44
27 lines
1531 bytes
in article <7150@bsu-cs.bsu.edu>, neubauer@bsu-cs.bsu.edu (Paul Neubauer) says:

> I tried to compile Joel Spolsky's vt100clock program from Vol. 6, Issue 98,
> archived as clock.msk.  I am running on a BSD 4.3 system, if that is any
> help.  The command 'cc vt100clock.c' produced the output:

> Undefined:
> _cuserid

> Can anybody tell me (1) what it does, (2) if there is a BSD equivalent or
> near-equivalent, and/or (3) what to do about it?  

It returns the LOGNAME, used to find /usr/mail/LOGNAME mail storage file.
You might be able to derive it from a getenv of LOGNAME or ...

I also changed the line
	signal(SIGINT,clear&exit) to trap to a null function on SIGINT
so that the clock wouldn't go away when I interrupted a program.
I'm running SysV 3.0, and I don't get the 'mail' prompt, just the clock.
I went to sdb, which is kind of hard(?) on a program that is in background.

Thanks Joel.  I don't even care about the mail stuff, the clock is great.
-- 
---
Clarence A Dold - dold@tsmiti.Convergent.COM		(408) 434-5293
		...pyramid!ctnews!tsmiti!dold
		P.O.Box 6685, San Jose, CA 95150-6685	MS#10-007
Technical Details
Message-ID: <684@mitisft.Convergent.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!pyramid!ctnews!mitisft!dold
References: <7150@bsu-cs.bsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!pyramid!ctnews!mitisft!dold
From: dold@mitisft.Convergent.COM (Clarence Dold)
Newsgroups: comp.sources.d
Subject: Re: vt100clock
Message-ID: <684@mitisft.Convergent.COM>
Date: 10 May 89 14:44:42 GMT
References: <7150@bsu-cs.bsu.edu>
Distribution: na
Organization: Convergent Technologies, San Jose, CA
Lines: 27