From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <010901c0ce7c$80575ed0$e8b7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <20010423110853.3397219A61@mail.cse.psu.edu>, <006a01c0ccb7$5990b0b0$95b9c6d4@SOMA> <3AE840B1.17EF07D7@arl.army.mil> Subject: Re: [9fans] the declaration of main() MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Thu, 26 Apr 2001 20:12:47 +0200 Topicbox-Message-UUID: 91fa6bd6-eac9-11e9-9e20-41e7f4b1d025 From: "Douglas A. Gwyn" > Note that in PDP-11 UNIX C, C externs have an underscore > prefixed to them at the linker level; so _exit in assembler > corresponds to exit() in C. There is also _exit() in C, i.e. > __exit in assembler, which is the plain system call you > described, but from assembler one would not call that extern > function but would rather use a "sys" (TRAP) instruction > with the proper subcode to select the exit syscall. There > were (optional) assembler macros for the syscall subcodes. yep, that's right. now i remember. i think the _'s got as far as 32V or TS1.2 or whatever it was called. but that's going back some 15+ years so i don't recall that well. i'm pretty sure that i saw it with adb with that system on our 11/780s. the day USG killed adb i wanted to kill USG. system V -- what a mess. sdb? what a joke. crash? what a joke.