home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Path: sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!clau
- From: clau@acs.ucalgary.ca (Christopher Lau)
- Subject: Re: kudos to the support and development teams at MWC!!
- Sender: news@acs.ucalgary.ca (USENET News System)
- Message-ID: <92Sep01.204456.20411@acs.ucalgary.ca>
- Date: Tue, 01 Sep 92 20:44:56 GMT
- References: <92Sep01.050744.18851@acs.ucalgary.ca>
- Nntp-Posting-Host: acs5.acs.ucalgary.ca
- Organization: The University of Calgary, Alberta, Canada
- Lines: 80
-
- clau@acs.ucalgary.ca (Christopher Lau) writes:
- > ( congrats to mwc guys and stuff about my custom smail and wmail deleted)
- >
- > My custom news software needed an almost complete rewrite... Does anyone know
- > why Coh 4.0.1 I/O functions grok on things like:
- >
- > < assume things are declared and everything works >
- > ....
- > fp1=stdin;
- > fp2=popen("/usr/bin/zcat", "w");
- >
- > fgets(buff, BUFSIZ, fp1);
- > fputs(buff, fp2);
- >
- > while(c=fgetc(fp1) != EOF) {
- > fputc(c,fp2);
- > }
- >
- > ....
- >
- > Regardless of the input, the output to zcat is a bunch of ctrl-A's..
- > Strange... I didn't look too much further into this, but I rewrote
- > most of that stuff with the getchar() and putc() macros.. then it worked..
- > Have absolutely no idea why.. maybe someone out there can shed some light
- > on it..
- >
-
- Stupid mistake.. Some nice person (I've forgotten who, feel free to speak up
- for youself and claim the credit) pointed out to me that I'd forgotten a
- set of brackets around the c=getc(fp)..
-
-
- > Anyways, with the new Coh 4.0.1 buffer caches, my software will process a
- > 50K compressed (~100K uncompressed) news batch in just under 30 seconds...
- > Amazing!! Consider that under Coh 3.2.X, this would have taken around 1.5
- > to 2 minutes!!!
-
- This has actually now improved to under 10 seconds.. It seems that I had
- a few sleep() calls in my old routines.. I now use the lockit() routines in
- libmisc (BTW- unlockit() is misspelled in libmisc- it's called nlockit()-
- without the 'u') to ensure mutual exclusivity instead of waiting (actually,
- Coh 3.2.X was slow enough that waiting DID ensure mutual exclusivity, but
- Coh 4.0.1 is so fast, that if I remove the sleep(), I run into trouble)
-
- Geez those buffer caches are amazing!
-
- >
- > My last piece of software installed today was micro-gnu emacs (mg)... It
- > compiled the first time with no errors with the system V settings.. The
- > dired routines didn't work at first (Coherents 'ls -al' output is different
- > than sysv and bsd).. a little minor hacking got it all working... The
- > stripped binary is 68K long.. only about 10K larger than the microemacs
- > binary that came with Coh 4.0.1!!
- >
-
-
- If anyone out there in netland would like any of my stuff, let me know
- and I'll mail it to you or put it up on raven.
-
-
- > c4
- >
- > P.S.- Just remembered- support guys- there's a file "reg.h" missing from the
- > /usr/include/sys directory- the file sys/timeout.h tries to include it..
- > I don't think this warrants a disk mailing, so could you just email me the
- > file?? Thanks
-
- Still looking for this file guys!
-
-
-
- Thanks
- c4
-
-
- --
- Christopher Lau | Dammit Jim, I'm a doctor,
- The University of Calgary | not an engineer!
- Dept. of Electrical & Computer Engg. | Well, you're an engineer now..
- lau@enel.ucalgary.ca -OR- clau@acs.ucalgary.ca -OR- root@fusion.cuc.ab.ca
-