HDTenEightyP/NetNews huggingface dataset:
From: magus@drktowr.chi.il.us (Louis Giliberto)
Newsgroups: comp.os.coherent
Subject: Re: ANSI C ubiquity
Date: 11 Dec 92 23:18:17 GMT
Distribution: comp
Organization: DarkTower Software
X-Newsreader: TIN [version 1.1 PL6]

Steven J. Edwards (sje@xylos.ma30.bull.com) wrote:
: This is a little task for all of the K&R old style C fans from which
: we've heard so much in this forum recently.

Shoot!

: Step 1: Gather together one of each of the issues of popular trade
: magazines for personal computers printed over the past three years.
: Include those for Apple, Atari, and Commodore as well as for PCs.

Hmm.  Well, what about 3Bx series computers, UNIX-PC's, vaxen, 3090's,
etc?  Not everyone works on a PC.  

: Step 2: Count the total number of advertisements and article
: references for C compilers.  These will include compilers from
: Microsoft, Borland, Symantec, Microway, Power C, along with numerous
: noncomercial efforts like GNU's gcc.  It also includes the K&R
: compiler from MWC as part of Coherent.
: 
: Step 3: Enumerate the percentage of references in step 2 that don't
: follow ANSI C standards.  I believe that MWC is the only one in this
: category.

Nope, Minix is still distributed with a K&R compiler.  And there are hundreds
of systems out there with older versions of UNIX that don't use ANSI C
(like the 3B15 at my school).  Further, many modern compilers on UNIX systems
cross-compile ANSI and K&R.  For example, my school has an RS6000 running
AIX.  For class I am writing a Pascal compiler for the RS6000 and AIX.
I'm writing it on Coherent.  It compiles and runs on Coherent, and it
compiles and runs on AIX.  I only have one "#ifdef":

#ifdef COHERENT
#include "include/getsym.h"
#else
#include "getsym.h"
#endif

in my header files since the AIX compiler uses the path relative to
the current file while Coherent uses it relative to the current directory.

Borland C++ will compile K&R c files, but generate a warning not to use
old-style declarations.

K&R is dying, but it is not by far dead.  You can get K&R's C manual in
either ANSI or Classic C (K&R C) editions.

BTW, don't ask me for the Pascal compiler.  It cross-compiles to RS6000
assembly.  It does *no* optimizations above minimum register usage, and
it doesn't have pointers implemented yet.  So it's useless.

Sure, all the *new* compilers are ANSI compliant, but not everyone has
a new compiler.  Why does Coherent use K&R still? My guess: since Coherent
has been around for like 10 years or so it was written before ANSI was
in vogue.  Everything from the kernel up would have to be rewritten to
compile.  That's not something that happens overnite.  I'm sure Coherent
will be ANSI before long.

So, there are plenty of K&R C users out there.  I would never buy a compiler
that compiled only ANSI C.  If I'm buying a new product, I want downward
compatibility.  That's why I don't buy Macs ;)

-Louis
--
---------------------------------------------------------
 Louis J. Giliberto, Jr.   ! magus@drktowr.chi.il.us
   -sysadmin drktowr       ! lgilibe@orion.it.luc.edu
  Chicago, IL  USA         ! 
---------------------------------------------------------
From: mfaurot@phzzzt.uucp (Michael Faurot)
Newsgroups: comp.os.coherent
Subject: Re: v4.0 reboot command
Date: 19 Dec 92 15:53:57 GMT
Organization: A.T.W.W.
X-Newsreader: Tin 1.1 PL4

jim@pisaro.enet.dec.com (Jim Hodges) writes:
: 
: I've noticed that the reboot command doesn't appear to work. After
: issuing the shutdown 
: and sync commands, I issue the command  reboot, and my system just sits
: there...
: 
: Is this a "feature"(known/reported problem) ?  Anyone else have a
: similar experience
: with this command?

Sounds like you have a machine with an AMI BIOS in it.  If this is the
case, it is a known problem with machines with this BIOS that warm
boot commands don't always work.  I have a machine with a similar BIOS
and it does this all of the time--even under DOS.  

It's typically not a major problem, unless of course you were wanting
to reboot the machine remotely.  Instead of using the reboot command
just hit the RESET switch on your machine (if it has one) or else turn
the machine off, wait a few seconds and then turn it on again.
-- 
+--------------------+-------------------------------------------------------+
|   Michael Faurot   | Domain: mfaurot@phzzzt.UUCP		             |
|   ------- ------   | UUCP: ...!{irscscm|mimsy}!bogart!phzzzt!mfaurot       |
+--------------------+--------------------+----------------------------------+
| Fleischman:  Ed, are you hallucinating? |    I wanna go home with the      |
|         Ed:  Oh yeah, but not right now.|  Armadillo . . . --Gary P Nunn   |
+-----------------------------------------+----------------------------------+
Newsgroups: comp.os.coherent
From: mtarrant@ATK.COM (Mike Tarrant)
Subject: Software Request
Summary: All I want for Christmas is gcc 
Keywords: Santa, C compilers, COHERENT
Organization: Alliant TechSystems Inc.
Date: Fri, 18 Dec 1992 23:05:49 GMT

Dear Santa,
  I would like an ANSI C compiler so I can do the homework for my
Advanced C Programming class, next term, under Coherent.
  I have been a good boy.
                 -Mike   (mtarrant@atk.com)
From: udo@umunk.GUN.de (Udo Munk)
Newsgroups: comp.os.coherent
Distribution: world
Subject: mouse support
Keywords: serial mouse, COHERENT
Summary: using a serial mouse under COHERENT
X-Newsreader: TIN [version 1.1 PL7]
Organization: Udo Munk's private BBS
Date: Sun, 13 Dec 92 22:27:17 GMT

Well, here is some nice stuff for you to play with:
a test program to read input from a serial mouse under COHERENT 4.0.
Harry reports some problems with the serial mouse under MGR and after
he found out that the port must be opened with 1200 baud, I wrote
this little test program to show, how the tty line must be set up.
I think this could be interesting for others too, maybe someone wants
to add mouse support to a program, so here it is:


/*
 *	test programm to evaluate how a serial mouse works
 *	udo@umunk.GUN.de
 */

#include <stdio.h>
#include <termio.h>
#include <fcntl.h>
#include <signal.h>

mouse = "/dev/com1pl";		/* my mouse port */
int mouse_fd;
struct termio old_tty, new_tty;

sig_handler()
{
	ioctl(mouse_fd, TCSETAF, &old_tty);
	exit(0);
}

main()
{
	int c;

	signal(SIGINT, sig_handler);
	signal(SIGQUIT, sig_handler);
	signal(SIGHUP, sig_handler);

	fprintf(stdout, "try to open the mouse tty line: ");
	if ((mouse_fd = open(mouse, O_RDONLY | O_NDELAY)) < 0) {
		fprintf(stdout, "can't open %s\n", mouse);
		exit(1);
	}
	fprintf(stdout, "success\n");

	fprintf(stdout, "try to get tty line mode: ");
	if (ioctl(mouse_fd, TCGETA, &old_tty) < 0) {
		fprintf(stdout, "can't get tty line mode\n");
		exit(1);
	}
	fprintf(stdout, "success\n");

	new_tty = old_tty;
	new_tty.c_cflag &= ~(CBAUD | HUPCL);
	new_tty.c_cflag |= CLOCAL | B1200;
	new_tty.c_iflag = IGNBRK;
	new_tty.c_oflag = new_tty.c_lflag = 0;
	new_tty.c_cc[VMIN] = 1;
	new_tty.c_cc[VTIME] = 0;
	fprintf(stdout, "try to set new tty line mode: ");
	if (ioctl(mouse_fd, TCSETAF, &new_tty) < 0) {
		fprintf(stdout, "can't set new tty line mode\n");
		exit(1);
	}
	fprintf(stdout, "success\n");

	c = mouse_fd;
	fprintf(stdout, "try to reopen the mouse tty line with CLOCAL: ");
	if ((mouse_fd = open(mouse, O_RDONLY)) < 0) {
		fprintf(stdout, "can't open %s with CLOCAL\n", mouse);
		exit(1);
	}
	fprintf(stdout, "success\n");
	close(c);

	fprintf(stdout, "Now I'm reading from the mouse tty line:\n");
	while (1) {
		read(mouse_fd, &c, 1);
		fprintf(stdout, "%02x ", c);
		fflush(stdout);
	}
}

Have fun with this.
--
Udo Munk, Oberstr. 21, 4040 Neuss 1, Germany
udo@umunk.GUN.de   ...!{mcshh,smurf,unido}!easix!umunk!udo   CIS: 100021,2515
uucp: +49 2131 278869 V22/32/42bis 8N1 login: uucp pwd: public MYNAME=bbsuser
request file /usr/spool/uucppublic/info for instructions
Newsgroups: comp.os.coherent
From: tim@rcsl.demon.co.uk (Tim Frost)
Subject: Timing less than 1 second
Distribution: world
Organization: Roundhill Computer Systems Limited
Reply-To: tim@rcsl.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sat, 19 Dec 1992 22:09:30 +0000

In porting our PANEL Plus II screen manager software to Coherent 
4.0, I have had some difficulty in implementing the keyboard 
timeouts and delays which are available in our library (if 
supported by the operating system).  The main problem is that the 
alarm2() and the tick() system calls are missing from the Coherent 
run-time library, although fully documented (and described in man).

I called MWC and was told these functions were "scheduled for a 
future release", and that I should look up the poll() function 
instead, perhaps used with /dev/null.

I find that poll() is fine for doing "key waiting" stuff on file
handle zero.  But if I open /dev/null and pass it the file number
of this file, the returned event is always POLLNVAL, indicating
that the file number is not an open stream.  I need this, for
example, for a straight delay of quarter of a second; I don't want 
to hang this on stdin because a type-ahead would kill it. The 
solution I came up with was to pass poll() a valid pointer to an 
array of pollfd structures but tell it the number of structures is 
zero.  In this case poll() just waits for the passed number of 
milliseconds, which is what I need.

Does anyone know enough about poll() to know whether this trick
is safe?  Its behaviour is consistent with the documentation but
it is not really documented.

-- 
:: Tim Frost ::::::::::::::::::: Roundhill Computer Systems Limited ::
::::::::::::::::::::::::::::::::::::::: Marlborough SN8 1SU England ::
:: tim@rcsl.demon.co.uk ::::::::::::: +44 (0) 672 84 535 (fax: 525) ::
:: rcsl is not associated with any other (dial-up) demon.co.uk site ::
Newsgroups: comp.os.coherent
From: ringgold@netcom.com (Thomas Essex)
Subject: Additional library directories
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sat, 12 Dec 1992 06:37:36 GMT

  I am currently working on a project, and want to build my own library.
However, whenever I specify the -L directive to indicate the additional
library path, I get an error indicating it can't find my library.
  Here's an example of how my command line looks:

  cc -o program program.c -L/usr/local/lib -lmylib

The error I get indicates it is unable to locate library libmylib.a. And
looking withing the /usr/local/lib directory I have the file libmylib.a.
Also, if I link /usr/local/lib/libmylib.a to /usr/lib the command line works
perfectly.
  Can someone tell me what I'm doing wrong? 


    Tom

P.S. I'm using the standard make and cc that was shipped with Coherent 4.1.
-- 

ringgold@netcom.com

Motto: PFP!!!  ;)
From: bob@dalek.mwc.com (Bob Hemedinger)
Newsgroups: comp.os.coherent
Subject: request for beta testers follow-up
Date: 17 Dec 92 19:12:47 GMT
Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>

I forgot to mention one minor detail when asking for people to beta new
terminfo/termcap & ported Taylor 1.04gamma uucp stuff... please
include your postal address. Also allow a few weeks for the disks to
get out, as I'll be disappearing for a couple of weeks for the holidays.

--
                   MWC Technical Support (bob@mwc.com)
(====================]          _____
         \\             (===================)
   (======\\======]         /// ~~~~~
           \\/             ///       I don't care if you hit the broad side
    ===========================      of a barn.
     =========================(      Why would I aim at such a structure?
Newsgroups: comp.os.coherent
From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
Subject: Re: Linux-Coherent comparison (was Priorities...)
Organization: University of Helsinki
Date: Sat, 12 Dec 1992 09:31:58 GMT

In article <270.2B285D26@mechanic.Fidonet.org> Jeff.Tomich@p1.f260.n3603.z1.FIDONET.ORG (Jeff Tomich) writes:
>
>Where does one get Linux? I'm currently a Coherent user, would like to
>see how Linux works.  Is it an 32bit system and were do I purchase it?

Yes, linux is 32-bit, but you don't generally purchase it: just ftp to
tsx-11.mit.edu or any of the other linux ftp sites (sunsite.unc.edu and
nic.funet.fi as well as a lot of other sites).  Also read comp.os.linux
for details. 

If you don't have ftp-capability, it's also available on a number of BBS
sites (not recommended, though: they are usually not very up-to-date),
and if you are really desperate you can buy it on floppies (see
c.o.linux for details).  There are even a couple of CD-roms, although
that isn't the normal way to get linux. 

		Linus
Newsgroups: comp.os.coherent
From: bob@amscons.amscons.com (Bob Amstadt)
Newsgroups: comp.os.coherent
Subject: Re: Additional library directories
Date: 17 Dec 92 07:48:16 GMT
Organization: Amstadt Consulting Group
X-Newsreader: Tin 1.1 PL4

fredex@fcshome.UUCP (fred smith) writes:
: tools helped a lot, they couldn't fix the broken shell. Some of the 
: final problems that caused me to give up were just that--broken shell.
: Simple shellscripts that just didn't do the right thing. Sometimes
: blatantly wrong. Sometimes just spew out error messages.

Yep, I saw the same thing and gave up after only a couple of
days.  I'm running WNEWS here and it works great.  It is missing
quite a bit, but it does everything you need to receive
news and post news.  I don't plan on feeding any other sites.
So, the features that are missing don't matter much to me.

If anyone can tell me how to receive UUCP transmissions at 9600
baud with MNP 5 without the ever so frequent "lost packets", I'd
be glad to once again struggle with C-News, but for now I'll
work on the more annoying problems.
Newsgroups: comp.os.coherent
From: multics@lachesis.acm.rpi.edu (Multics)
Subject: Re: Colorado Systems - Conversation
Organization: The Voice of Fate
Date: Sun, 20 Dec 1992 22:44:43 GMT

I'm going to try to get the QIC specs and take a look at things and give it
a try.  I've never written a device driver before, but I'v got the manuals
and I've done similier type stuff on other systems.  My main reason is I
want to be able to use my CMS drive under windows, coherent and ESIX sysVr4.

I have coherent, but until I can back it up to tape, it don't get installed.

-- 
A good bureaucracy is the best tool of oppression ever invented.
Richard Shetron   USERFXLG@rpi.mts.edu  multics@clotho.acm.rpi.edu

Newsgroups: comp.os.coherent
From: hcp@csx.cciw.ca (H.C. Pulley)
Subject: vfprintf sources uploaded to raven
Organization: Canada Centre for Inland Waters
Date: Mon, 14 Dec 1992 03:36:58 GMT

Someone asked alittle while ago about vfprintf for Coherent.  Udo Munk sent me
some sources for it.  He said I could upload it to raven, so I have.

You will find vprintf.tar.Z on raven now.  It is in incoming right now but 
should be in the sources32 directory soon.

Harry
-- 
         hcp@csx.cciw.ca          |This message released|It takes all kinds,
   hcpiv@grumpy.cis.uoguelph.ca   |to the PUBLIC DOMAIN.|and to each his own.
----------------------------------+---------------------|This thought in mind,
Stay away from the DOS side, Luke!|Un*x don't play that.|I walk alone.
From: elmar@gulasch.hanse.de (Elmar Folba)
Newsgroups: comp.os.coherent
Subject: Re: Linux ??????
Date: 16 Dec 92 20:05:38 GMT
Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>
Organization: Spare-time Hacker, Hamburg, Germany

In article <9212131817.AA49339@st6000.sct.edu> you write:
>
>  hi,
>
>    what is  linux ???
a free POSIX implementation for IBM AT386 and compatibles
>     How does it compare to COH ?????
both are fairly well-working U*X clones; that's what they have in common
>      Where do I get it from ?????
reading 3 or 4 days' worth of comp.os.linux will answer this and 90% of
your further questions



--
Kind regards,                   Elmar Folba
                                Hamburg, Germany
                                elmar@gulasch.hanse.de
From: kestas@lith.UUCP (Kestutis Sliupas)
Subject: Re: UNSW Prolog dumps core
Newsgroups: comp.os.coherent
Date: 15 Dec 92 05:02:58 GMT
Distribution: world
Organization: Vacaville, CA

amoroso@ghost.dsi.unimi.it (paolo amoroso) writes:
> 
> 
> I tried to compile UNSW Prolog, which is included with COHware Volume II,
> with COHERENT 4.0.1. The make program showed only some warnings concerning
> variables that were not used. When i run the generated program, it dumped
> core with the messages "trapcode=7 User Trap" and "Memory Fault" in the
> register dump.
	Just a guess, but I would bet that the int is 8 bits long. (286
model, etc.)
				Regards, Kestas

 Kestutis Sliupas            x  (510) 231-1540 (work voice) 
 kestas%lith@infopro.com     x  (510) 231-1285 (work FAX) USA CA  
 kestas@infopro.com          kestas%lith@uunet.uu.net
From: jdhuse@sedona.intel.com (Jon Dhuse~)
Newsgroups: comp.os.coherent
Subject: open file limit in Coh 4.0.1
Date: 16 Dec 92 15:40:46 GMT
Organization: Intel Corporation
Originator: jdhuse@sedona


Hello,

I saw a couple of postings regarding the number of open files allowed under
Coherent.  What I am wondering is if that parameter is controlled by a
kernel variable that could be patched to increase the number (albeit at a loss
of user-availble memory).  Does anyone have a clue about this?

Thanks,  Jon.
From: di1helol@his.se (Helge Olsen)
Newsgroups: comp.os.coherent
Subject: (none)
Date: 15 Dec 92 20:37:09 GMT
Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>

Hi, netters!
  A couple of weeks ago I posted a request for a herc and vga driver
for COHERENT 3.2(.1A). Noone has responded, so I guess that there is
noone available at all. In that case, could someone owning the DDK
possibly write one? I can supply code for setting/unsetting graphics
mode, setting pixels etc.
  The reason why I need the driver is that I am going to try to build a
simple graphics environment for 3.2. For this I need to know:
Is it possible to redirect input/output for shells to a pipe?
        e.g. sh >/dev/vtty0.0 </dev/vtty0.1
This would of course restrict to programs not using curses (or will it
not if I write my own termcap), but all I want is to have a very
simple environment with, say three windows. If there is anyone out
there who wants to help or give advice, please do. I am not very good
on designing things (but I know C and assembler well enough), so it
would be nice if someone had a good idea about how to design it, I
don't know anything about GUIs.

Ps. hcp told me that it would probably be impossible to implement
_ANY_ GUI under the small memory model, so I decided to do it.
PPs I will be away from school from friday 18/12 to about 10/01 or so,
so please don't forget over christmas.

(ReplyTo: di1helol@his.se      --- Even the blind knows how to C ---
From: root@rwsys.wimsey.bc.ca (Superuser)
Newsgroups: comp.os.coherent
Subject: Re: HELP pse w/uucico
Date: 20 Dec 92 04:16:43 GMT
Organization: RWSYS Exporter BBS system

tbell@n8hsp.ncoast.org (Terry Bell N8HSP) writes:
> Hi,
> I have been trying without any success to get my machine to call out.
> I've read the manual SEVERAL times but I guess something just isn't
> clicking in the ole nogin. Following is a debug session and asso files.
> I have a 1200bps modem in com1: (I have to keep the 2400bps in the
> MSDOS machine to keep my mail/news feeds happy). As sson as I get
> COH uucico running I will switch modems. Any help, most APPRECIATED.
> 
> ====================================================================
> System Name "wariat", debug=9 (Fri Dec 11 03:47:32 1992) (V4.0.04S)
> Thinking of calling system: wariat
> checktime(Any) = Ok to call now
> 12/11 03:47:32 [wariat]: Calling site wariat {117} (V4.0.04S)
> Trying to connect at speed 1200
> Calling phone# 4819436
> 12/11 03:47:32 [wariat]: Dial failed, Line Problem {117}
> 12/11 03:47:32 [wariat]: Modem says 
                                     ^^^^^^^^^^^^^^^^^^^^^^^^
                                  You're not getting anything from the
                                  modem. Check the file permissions on
                                  /dev/com1l, ( not the same as Permissions
				  file ). Here's mine ( it works ) for
				  for com2l.

crw-rw-rw-  2 bin        bin          5 129 Fri Dec 18 06:09 /dev/com2l
^^^^^^^^^^
^^^^^^^^^^
This can get screwed
up so that you are unable
to read and write to the 
port. The result will be
no response from the modem
just as your debug file shows

	Also check modeminit, and the modem  configurtion registers 
to ensure that verbose operation works. When uucico runs, the
modem is reconfigured to be able to 'talk'. You should see meesages like
12/11 03:47:32 [wariat]: Modem says BUSY
    or
12/11 03:47:32 [wariat]: Modem says NO CARRIER


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root@rwsys.wimsey.bc.ca (Randy Wright)      | Exporter BBS     2400 bps
                or                          | (604) 581-0518     8N1
    Randy_Wright@Mindlink.bc.ca             | uucp         ogin: uguest
                                            | interactive login: guest
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: kestas@lith.UUCP (Kestutis Sliupas)
Subject: Calling man for 'two-word' subjects?
Newsgroups: comp.os.coherent
Date: 14 Dec 92 02:50:23 GMT
Distribution: world
Organization: Vacaville, CA

Hi:
	I was wondering how to access man articles for 'two-
worded' subjects; ie 'modem control'? I can't find it in the manual,
man modemcontrol, man modem-control and man modem_control all fail.
Suggestions?
				Regards, Kestas

 Kestutis Sliupas            x  (510) 231-1540 (work voice) 
 kestas%lith@infopro.com     x  (510) 231-1285 (work FAX) USA CA  
 kestas@infopro.com          kestas%lith@uunet.uu.net
From: udo@umunk.GUN.de (Udo Munk)
Newsgroups: comp.os.coherent
Distribution: world
Subject: Re: Additional library directories
X-Newsreader: TIN [version 1.1 PL7]
Organization: Udo Munk's private BBS
Date: Thu, 17 Dec 92 22:43:59 GMT

fred smith (fredex@fcshome.UUCP) wrote:
: Thomas P. Anderson (tpa10@snappy-tom.NoSubdomain.NoDomain) wrote:
: : [...horror story about failed CNEWS port and Coherent shell...]
: : Just wondering, now that we have tcsh available to us, will that get
: : you past those problems?  Seems a shame to give up after all that 
: : work.
: 
: No, it won't help. tcsh is a superset of csh. csh and sh are two
: entirely different critters, when it comes to shell scripts. unfortunately.
: 
: Oh, I suppose someone who knew a LOT more about the nitty-gritty of
: sh and awk and sed than I do could hack away at the build processes,
: the test processes, and all the sed/sh/awk scripts and make 'em
: work on Cohrerent.  I'm no guru, but I can usually get by. This one
: burned me out, however.

Hm, just some thoughts (no time to realize them yet):
1. has someone ported bash (GNU bourne again shell)? This shell should
   be fully compatible to the SV bourne shell.
2. On some ftp/mail sites you'll find pdksh, a public domain korn shell.
   A patch is posted yesterday to one of the source groups. I don't know
   how good this korn shell clone is, but one could try it.
--
Udo Munk, Oberstr. 21, 4040 Neuss 1, Germany
udo@umunk.GUN.de   ...!{mcshh,smurf,unido}!easix!umunk!udo   CIS: 100021,2515
uucp: +49 2131 278869 V22/32/42bis 8N1 login: uucp pwd: public MYNAME=bbsuser
request file /usr/spool/uucppublic/info for instructions
Newsgroups: comp.os.coherent