Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.apple » Modified macput.c for System V
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Modified macput.c for System V [message #72438] Sat, 25 May 2013 10:27
lra is currently offline  lra
Messages: 50
Registered: May 2013
Karma: 0
Member
Message-ID: <295@aluxe.UUCP>
Date: Sun, 5-Aug-84 23:59:05 EDT
Article-I.D.: aluxe.295
Posted: Sun Aug  5 23:59:05 1984
Date-Received: Mon, 6-Aug-84 04:27:59 EDT
Organization: AT&T Bell Laboratories, Allentown, PA
Lines: 30

[]

Following is a "diff" of the new Beta macput.c submitted to fa.info-mac with
a slightly modified version to run on System V UNIX.

Many thanks to those who have been posting Mac sources to the net.

diff posted_macput.c  modified_macput.c
8d7
< #include 
186c185,186
< 	struct timeb tbuf;
---
 >  	long tbuf;
 >  	extern long timezone;
234,236c234,236
< 		ftime(&tbuf);
< 		tp = localtime(&tbuf.time);
< 		tdiff = TIMEDIFF - tbuf.timezone * 60;
---
 >  		time(&tbuf);
 >  		tp = localtime(&tbuf);
 >  		tdiff = TIMEDIFF - timezone;


Lonnie Abelbeck
AT&T Bell Laboratories
mhuxi!aluxe!lra
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: The latest on the Spies (speez) Card
Next Topic: Interface Mac to Vax 11/780 without using modem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Apr 25 11:40:10 EDT 2024

Total time taken to generate the page: 0.08207 seconds