It's K&R C - types are merely a hint to the compiler :D
On 24/04/15 13:09, Sampsa Laine wrote:
I know what it is, I've just never used a compiler
in my life that ONLY does K&R..
But if you don't declare the parameter types they're assumed to be ints right,
which works a lot of the time if a point is the size of an int and you're passing
pointers around..No?
sampsa
On 24 Apr 2015, at 10:50, Johnny Billquist <bqt at softjar.se> wrote:
> On 2015-04-24 06:34, Sampsa Laine wrote:
>> Yeah it's insane, Hello World wouldn't compile until I changed it into
this format:
>>
>> ---- SNIP ----
>> #include <stdio.h>
>> int main(argc,argv) <--------- Type declarations, who needs that crap,
everything's an int! WOOO!
>> {
>> printf("Hello guise\n");
>> }
>> ---- END ----
> It's called K&R. You don't have prototypes, but arguments do have types.
You just declare it like this:
>
> int main(argc, argv)
> int argc;
> char **argv;
> {
> printf("Hello world\n");
> }
>
> Johnny
>
>> Also where is the equivalent of resolv.conf on these machines? I'm going to
leave this instance up and running, just for the hell of it - DECNET works (had to hack
the config files that load it up to get a node database since there's no NCP COPY
KNOWN NODES command lol) in and out, the address is JBEIL (8.225) and the current guest
account is riddle/riddle.
>>
>> Leave a message, sendmail (urgh) is running, it's set up to deliver local
mail. Going to maybe try to get this beast from the 70s of UNIX hell onto UUHECNET, it
said it installed UUCP...
>>
>> Oh and if anyone solves the riddle I set in Punic / Akkadian, I'm sending
them something cool from the souk in Jbeil..:)
>>
>> IP works in and out but name resolution doesn't (resolv.conf is there, I can
ping 8.8.8.8 but the system is just like "huh?"), I wonder if that apk nutjob
still makes those 100 MB hosts files..
>>
>> Sampsa
>>
>>
>>
>> On 24 Apr 2015, at 03:32, Johnny Billquist <bqt at softjar.se> wrote:
>>
>>> On 2015-04-24 04:05, Sampsa Laine wrote:
>>>> OK, so any tips on making an ULTRIX box a tad more modern? The terminal
definitions are all weird and the C compiler is from the 70s...
>>>>
>>>> Is there a nice set of BSD / GNU tools I can install on this? Or is this
it?
>>> Ha ha ha... We're talking Ultrix here. You'll be lucky to find
software that will even compile without you having to jump through all kind of hoops...
>>>
>>> You might want to start by replacing the whole syslog on that thing. We used
to run Ultrix at Update a number of years ago, and got most things upgraded. It was a
pain, and nowadays it will probably be an even greater pain.
>>>
>>> Johnny
>>>
>>> --
>>> Johnny Billquist || "I'm on a bus
>>> || on a psychedelic trip
>>> email: bqt at softjar.se || Reading murder books
>>> pdp is alive! || tryin' to stay hip" - B. Idol
>>> _______________________________________________
>>> Hecnet-list mailing list
>>> Hecnet-list at
lists.sonic.net
>>>
https://lists.sonic.net/mailman/listinfo/hecnet-list
>
> --
> Johnny Billquist || "I'm on a bus
> || on a psychedelic trip
> email: bqt at softjar.se || Reading murder books
> pdp is alive! || tryin' to stay hip" - B. Idol