HDTenEightyP/NetNews huggingface dataset:
From: peter@auad.acadiau.ca (Peter Steele)
Newsgroups: comp.unix.questions
Subject: Re: what happened to ftp.uu.net?
Date: 8 Apr 92 22:27:48 GMT
Organization: Acadia University

>>Not completely germane to UNIX, but does anyone know what happened
>>at ftp.uu.net?  I used to be able to anonymous ftp to this site.  Now,
>>all I ever get is anonymous logon rejected.  Any ideas?

>  It is high time you started using a nameserver, instead of relying on
>an out-of-date /etc/hosts file.  The address has changed, and you haven't
>kept your data up to date.

I *do* use a nameserver and have also got this error.... ????
--
Peter Steele        Unix Services Manager        peter.steele@acadiau.ca
Acadia University, Wolfville, NS   Tel: 902-542-2201   Fax: 902-542-4364
From: steve@rtfm.mlb.fl.us (Steve Pierce)
Newsgroups: comp.unix.questions
Subject: Re: .zip files
Date: 7 Apr 92 16:46:08 GMT
Article-I.D.: rtfm.1992Apr7.164608.16747
Distribution: usa
Organization: We don't need no stinkin' batches!

birecree@cygnus.Kodak.COM (Jack Birecree) writes:
>  Does anyone know where I can get the compression/uncompression program for .zip files (via ftp?)

  And someplace to get these for those of us without ftp?

  Thanks.
    Steve

-- 
===========================================
Steve Pierce             Palm Bay
steve@rtfm.mlb.fl.us     Florida
===========================================
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.unix.questions
Subject: Re: OSF/1 vs SVR4 (and others)
Date: 9 Apr 92 20:43:11 GMT
Organization: Auspex Systems, Santa Clara

(Bogus "usa" distribution deleted; the contents of the OSes described is
pretty much the same inside the US and outside the US, I presume, with
the only real exceptions being such technologies critical to US national
security as "crypt". :-))

>Vendor                          DEC     SUN     HP      IBM     USL
>OS                              OSF/1   Solaris HP-UX   AIX     Sys V
>Version                         1.0     1.0     8.0     3.1     4
>Available                       now     now     now     now     now
>OS
>Other
>  Architected for SMP           yes     yes     ?       ?       yes     ***
>  SMP available                 ?       yes     ?       ?       yes (?) ***

Try "no" in both cases for Solaris 1.0; Solaris 1.0 hasn't any MP
support, being based on SunOS 4.1.1, while Solaris 1.0.1, being based on
SunOS 4.1.2, has MP support but not full-blown SMP.
Newsgroups: comp.unix.questions
From: merlyn@iWarp.intel.com (Randal L. Schwartz)
Subject: Re: formatting/aligning text (awk? printf? huh?)
Reply-To: merlyn@iWarp.intel.com (Randal L. Schwartz)
Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA
Distribution: na
Date: Thu, 9 Apr 1992 17:07:00 GMT

In article <4848@nntp_server.ems.cdc.com>, mrt@ems (Mike Tiller) writes:
|
| If you want it too look less "rough":
| 
| awk -F: '{sub(/^[\t ]*/,"",$2);printf("%-29s%s\n",$1,$2)}' file

less "rough" *and* less portable.  Your code won't run on V7 awk, just
new-awk or gnu-awk (hey, that rhymes).  At least the Perl version will
run everywhere that Perl exists, and Perl is available for the cost of
a download.

Just another Perl hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/
From: cosmo@cherry.ucsb.edu (Burtin;Boris;;;;COMS;Undergraduate;920630;;;8-402525-19906-7;1000)
Newsgroups: comp.unix.questions
Subject: How do you delete control characters from a text file?
Keywords: control, text
Date: 13 Apr 92 22:36:06 GMT

I know this one's been answered in the past, but I've forgotten the answer.
Can someone help me delete things such as backspaces from a file?  Thanks,


--
     - Boris
(cosmo@cs.ucsb.edu)
From: flynn@nematic.kent.edu (Mark Flynn)
Newsgroups: comp.unix.questions
Subject: Re:  INFO-UNIX Digest  V14#155
Date: 7 Apr 92 14:37:21 GMT

>The same thing could be said of the PC world. First CPM, then early
>revs of DOS, then DOS 3.0 (finally something useable), DOS 5.0, the
>Presentation Manager, now Windows NT... You call this stability?
>-- 
>
>   -paul	pmartz@dsd.es.com
>		Evans & Sutherland
>

There seems to be a mistaken assumption here. Windows NT and Windows are not
the same thing. MS has its sights set on a much larger market than the PC
world with this OS. Of course, that's easy to do with Vaporware. 


Mark Flynn
Liquid Crystal Institute
Kent State University
flynn@nematic.kent.edu
From: eaw@heffalump.cs.bham.ac.uk (Edward A.D. Wright)
Newsgroups: comp.unix.questions
Subject: Consensys v4
Date: 10 Apr 92 18:23:31 GMT
Organization: Birmingham University Computer Science

Has anybody out there got Consensys v4, a version of UNIX by Consensys,
a company in Ontario? I'm considering purchasing it, and was wondering
if anyone had any comments on it. It's based on system V R4.

Ed Wright
eaw@cs.bham.ac.uk
From: jmiller@uop.uop.edu (James Miller)
Newsgroups: comp.unix.questions
Subject: Re: what happened to ftp.uu.net?
Date: 15 Apr 1992 07:51:09 UTC
Organization: University of the Pacific, Stockton, CA [138.9.200.1]

sss@netcom.com (Small Systems Solutions) writes:

>In article <15408@gandalf.UMCS.Maine.EDU> who@gandalf.UMCS.Maine.EDU writes:
>>
>>	I'am also prevented from logging on as anonymous to ftp.uu.net.
>>Are there certain hours for anony ftp connections? Any one know whats
>>up?

I've noticed that if you log in anonymous to ftp.uu.net with a password that is
NOT your email address it will reject you (for example the standard Name: ftp
PW: FTP will reject you), But if you login in as anonomous and give your email
address as the password (like it asks for), then it works. At least it does for
me, and I am about as anonomous to uunet as you can get.....james
Newsgroups: comp.unix.questions
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Delete Blank Lines
Originator: tchrist@pixel.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Thu, 9 Apr 1992 18:03:44 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of tsui@imec.be (Mung Laam Tsui):
:Hi Net-landers,
:
:I am trying to write a C program in order to remove
:all the empty lines in a text file. The following piece
:of code is my tentative try, but it doesn't work at
:all . Can anybody help me out. I'm not interested in 
:using UNIX utilities like awk, sed, .....

If you don't want to use UNIX, why are you posting
to comp.unix.questions?

--tom
Newsgroups: comp.unix.questions
From: jik@athena.mit.edu (Jonathan I. Kamens)
Subject: Re: Where I can find public domain source for printf?
Organization: Massachusetts Institute of Technology
Date: Tue, 7 Apr 1992 14:26:16 GMT

These two files on ftp.uu.net will probably be sufficient:

	/packages/bsd-sources/lib/libc/stdio/printf.c.Z
	/packages/bsd-sources/lib/libc/stdio/vfprintf.c.Z

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
Newsgroups: comp.unix.questions
From: jmoon@cco.caltech.edu (Jong H. Moon)
Subject: fg & bg
Organization: California Institute of Technology, Pasadena
Date: Mon, 13 Apr 1992 16:29:31 GMT

Just curious...anyone know how the commands 'fg' and 'bg' work?  Or does
anyone have a copy of the source for them?  Thanks.
From: birecree@cygnus.Kodak.COM (Jack Birecree)
Newsgroups: comp.unix.questions
Subject: .zip files
Date: 2 Apr 92 20:35:25 GMT
Distribution: usa
Organization: Eastman Kodak Co., Rochester, NY


  Does anyone know where I can get the compression/uncompression program for .zip files (via ftp?)


--
Jack Birecree            | If replying via E-Mail, please send to the address below
Product Software Eng.    | not to the address on this note.
Eastman Kodak Company    | Internet:  birecree@cygnus.kodak.COM
Rochester, NY 14653-7007 | Phone: (716) 726-9629
From: matt@askinc.ask.COM (   El Camino Acid   )
Newsgroups: comp.unix.questions
Subject: Re: Remove duplicate lines(??)
Date: 7 Apr 92 01:33:23 GMT
Organization: ASK Computer Systems, Inc.

On <2 Apr 92 15:19:31 GMT>, jik@athena.mit.edu (Jonathan I. Kamens) writes:

 > In article <4614@nntp_server.ems.cdc.com>, dmcpheet@ems.cdc.com (Dennis McPheeters) writes:
 > |> I know I can use sort -um to remove adjacent duplicate lines without changing the
 > |> order of a text file.  Is there some easy and efficient way to remove successive
 > |> instances of non-adjacent duplicate lines?
 > 
 > Well, obviously, if you want to remove non-adjacent duplicate lines, you're
 > going to have to keep track of every line that has appeared in the file so
 > far.  It's not clear how "efficient" that can be, but here's a perl solution
 > that works for me:
 > 
 > 	perl -pe '$_ = "" if ($l{$_}++);'

Here's a much less concise solution, but works if you don't have perl.
It does use "cut", however; if your system doesn't have it, use one of the
solutions in the "sed question" thread recently.
It also assumes that your "cat -n" works like mine (SunOS 4.1.1),
which is to output each line number followed by a TAB character.

#! /bin/sh

cat -n $1 |	    # "<SPACE>*<DIGIT><DIGIT>*<TAB><original line>"
sort +1 +0 -1n |    # Sort by original line text first, secondarily by line no.
awk '		    # Throw out duplicates.
    fieldsep == 0   {fieldsep = index($0,"	") + 1}		# TAB character
		    {line = substr($0,fieldsep)
		     if (line != prev || NR == 1) { print $0; prev = line }
		    }
' |
sort +0 -1n |	    # (Field#s start at 0.) Sort by original line number.
cut -f2-	    # (Field#s start at 1.) Delimiter is TAB.

Is it efficient? It filtered a 7000-line file (output was 4500 lines)
on a Sparc1 in 0.9u 0.2s 0:17 7% 0+188k 3+9io 0pf+0w.
From: mrt@ems.cdc.com (Mike Tiller)
Newsgroups: comp.unix.questions
Subject: Re: formatting/aligning text (awk? printf? huh?)
Date: 8 Apr 92 13:52:40 GMT
Reply-To: mrt@ems.cdc.com
Distribution: na
Organization: Empros Systems International, a division of CDC

In article <1992Apr7.195014.774@iWarp.intel.com>, merlyn@iWarp.intel.com (Randal L. Schwartz) writes:
|> In article <odsT9Se00awV4XpYNT@andrew.cmu.edu>, vs0r+@andrew (Victor Dmitri Schoeman) writes:
|> | awk '{printf $1} {for (i=length($1);i<=28;i++) printf " "} {for (i=2;i<=NF;i++) printf $i" "} {printf "\n"}' file
|> 
|> Or perl -pe 's/^(\S+)\s+/sprintf("%-28s",$1)/e' file
|> 
|> This is one of those places where even a simple awk one-liner looks rough.
|> 
|> print "Just another Perl hacker,"
|> -- 
|> /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
|> | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
|> | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
|> \=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/
If you want it too look less "rough":

awk -F: '{sub(/^[\t ]*/,"",$2);printf("%-29s%s\n",$1,$2)}' file
-- 
Mike Tiller
mrt@ems.cdc.com
From: ant@cray.com (Tony Jones)
Newsgroups: comp.unix.questions
Subject: Re: Delete Blank Lines
Date: 8 Apr 92 19:06:16 GMT
Article-I.D.: hemlock.1992Apr8.140616.13079
Reply-To: ant@cray.com
Organization: Cray Research Inc, Eagan, MN

aldavi01@starbase.spd.louisville.edu (aldavi01@starbase.spd.louisville.edu) writes:
: Hi Net-landers,
: 
: I am trying to write a C program in order to remove
: all the empty lines in a text file. The following piece
: of code is my tentative try, but it doesn't work at
: all . Can anybody help me out. I'm not interested in 
: using UNIX utilities like awk, sed, .....
: 
: #include <stdio.h>
: main(int argv, char *argv[])
: {
:     int c;
:     FILE *fp;
: 
:     fp = fopen(argv[1], "r");
:     while((c = getc(fp)) != EOF)
: 	   if(c != '\n\n')
:                putchar(c);
:            else
:                          ;
: }

first: change "int argv" to "int argc"

second: '\n\n' is two chars.
        You need to output the \n for normal lines, just not for 0 length
        lines.

The following works, 100% quick hack
#include <stdio.h>
main(int argc, char *argv[])
{
    int c, flag=0;
    FILE *fp;

    fp = fopen(argv[1], "r");
    while((c = getc(fp)) != EOF)
           if(c != '\n'){
                flag=0;
                putchar(c);
           }else if (!flag){
                        putchar('\n');
                        ++flag;
           }
}

tony
-- 
Tony Jones (ant@cray.com, ..!uunet!cray!ant)
ComMon Compiler System
Cray Research Inc, 655F Lone Oak Road, Eagan, MN 55121
Newsgroups: comp.unix.questions
From: meissner@osf.org (Michael Meissner)
Subject: Re: Help with 'find' and escape sequences
Organization: Open Software Foundation
Date: 13 Apr 92 13:44:51

In article <brien.703130003@irk> brien@irk.ugcs.caltech.edu (Brien Brian Oberstein) writes:

| I'm having a problem getting find to execute a "rm -i *~" in every subdir.
| I tried many combinations, mostly along the lines of :
| 
| alias allcl "find . -type d -ok rm -i {}\/\*~ \;"
| 
| but it checks seems execute rm -i /*~ in each directory.
| 
| brien.

An alternative is to do something like:

	find . -ok rm -f {} \;

and have find ask the questions instead of rm.
 
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
From: brennan@ssc-vax.boeing.com (Mike Brennan)
Newsgroups: comp.unix.questions
Subject: Re: Text Processing type question (sed, awk, ?)
Date: 8 Apr 92 19:26:45 GMT
Organization: Boeing Computer Services

In article <1992Apr3.151539.5262@crpmks.uucp>, marcs@crpmks.uucp (Marc Snyder) writes:
>   Here's the
> problem:  I need to process a file that looks like:
> 
> Mr. Joe Smith      :Smith Company          :555-1212
> Mr. John Doe       :Doe Company            :
> Mr. Jim Johnson    :Johnson Company        :212-555-1212
> 
> The file contains nearly 5000 lines.  Here's what I need to do:
> 
> 1.	Any entry (like #2) that has no phone number, should not be placed
> into the output file, it should be ignored.
> 
> 2.	Any entry with an area code, ie xxx-yyy-zzzz, should have a 1 placed
> before the area code, and should be placed into the output file.
> 
> 3.	Any entry with a phone number, but no area code, should be placed
> into the output file, unaltered.
> 



The following awk script will solve your problem.  The one I saw 
posted won't work and is a mess.

This will work with old awk, but a new awk is better.
   nawk  
   gawk  ftp prep.ai.mit.edu
   mawk  ftp oxy.edu


----------------------------
BEGIN { FS = OFS = ":" }

$3 ~ /^[ \t]*$/ { next }

$3 ~ /^...-...-....$/ { $3 = "1-" $3 }

{print}
-------------------------

-- 
Mike Brennan
brennan@boeing.com
Newsgroups: comp.unix.questions
From: dan@dribble.c-mols.siu.edu (Dan Ellison)
Subject: Re: Any way to find out what a defunct process USED to be?
Organization: Southern Illinois University - Carbondale, IL (SIU-C)
Distribution: usa
Date: Mon, 13 Apr 1992 11:42:38 GMT

In <ktsbumINN91v@early-bird.think.com> barmar@think.com (Barry Margolin) writes:

>I don't think there's a way to find out the name of the defunct process
>itself.  The process's memory has been discarded by the time it becomes a
>zombie; it only exists so that a process table entry can be maintained (to
>hold its resource usage statistics, for instance).

>I usually find it sufficient to use the PPID to find the parent process.
>Knowing what process created the zombie is usually enough, since that's the
>actual culprit (the problem is that the parent process isn't calling
>wait(2)).

OR, you may have spawned several children counting on a signal(SIGCHLD, handler)
call to take care of the wiat/wiat3.  THis is the case in the lpd code for
example.  But, once the SIGCHLD signal is received from the first child
the signal mask is set to disallow additional signal catching until the 
wait call is finished.  During this time the other children also raise
the SIGCHLD signal but these signals cannot be caught and then go zombie.
Under SCO UNIX (at least) this race condition can be prevented by using
the signal(SIGCHLD, SIG_IGN) to guarantee the children will die a
graceful death and not go zombie.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Ellison, Network Admin	  -    	Molecular Science Program SIU-C | 
| Southern Illinois University 	  - 	Carbondale, IL 62901            |   
| FAX:      (618) 453-3459        -   	PHONE:    (618) 453-7310 	|
From: steve@denali (steve)
Newsgroups: comp.unix.questions
Subject: cu and uucp lock during login
Keywords: cu uucp
Date: 7 Apr 92 22:46:13 GMT
Article-I.D.: denali.162
Organization: CAD MicroSystems, Los Angeles, CA

I have developed an annoying(to say the least) problem with modem communication.When I call out, at the point I should be getting a login prompt the
process freezes.  Here is the output of cu:

119 denali:/tmp% cu -d paul
conn(paul)
Device Type ACU wanted
mlock ttyf3 succeeded
filelock: ok
fixline(5, 2400)
processdev: calling setdevcfg(cu, ACU)
gdial(hayes24) called
expect: ("")
got it
sendthem (PAUSE
<NO CR>????????)
expect: (OK)
ATe1q0&d3s2=128L0^M^M^JOKgot it
sendthem (<NO CR>????????)
expect: (CONNECT)
^M^Jatdt(num. goes here)^M^M^JCONNECTgot it
getto ret 5
device status for fd=5
F_GETFL=2,iflag=`12045',oflag=`0',cflag=`2273',lflag=`0',line=`1'
cc[0]=`177',[1]=`34' , [2]=`10' , [3]=`25' , [4]=`1' , [5]=`0' , [6]=`0' , [7]=`0' ,
call _mode(1)
Connected
_receive started
 2400



paul logintransmit started
~[denali].
call tilda(.)
call _quit(0)
call _bye(0)

Disconnected
call cleanup(0)
call _mode(0)

Trying uucico in debug mode, I get:
120 denali:/tmp% /usr/lib/uucp/uucico -r1 -x4 -spaul >& paul

mchFind called (paul)
name (paul) not found; return FAIL
conn(paul)
Device Type ACU wanted
mlock ttyf3 succeeded
processdev: calling setdevcfg(uucico, ACU)
gdial(hayes24) called
expect: ("")
got it
sendthem (PAUSE
<NO CR>????????)
expect: (OK)
ATe1q0&d3s2=128L0^M^M^JOKgot it
sendthem (<NO CR>????????)
expect: (CONNECT)
^M^Jatdt(num. here)^M^M^JCONNECTgot it
getto ret 6
expect: ("")
got it
sendthem (DELAY
????????)
expect: (ogin:)
 2400^M^J^@^J^M^J^Jpaul losendthem (????????)
expect: (ogin:)
Call Failed: LOGIN FAILED
exit code 101
Conversation Complete: Status FAILED

What's wrong?  Any help will be greatly appreciated.

Cheers,
Steve (srice@cadmicro.com)
Newsgroups: comp.unix.questions
From: amc@wlv.imsd.contel.com (Allen M. Cohen)
Subject: setitimer
Keywords: ISC, setitimer, inet, alarm
Organization: Contel Federal Systems
Distribution: usa
Date: Fri, 17 Apr 92 16:54:12 GMT

I'm using ISC Unix 3.0, and I'm having trouble with "setitimer()" from
/usr/lib/libinet.a.
  (1)  Setitimer does not reset itself automatically, even though I
       set "it_value".  I have to reset it in the alarm signal handler.
  (2)  When the time interval is less that 1 second, it gives 1 sec.
Sample Program:

#include <signal.h>
#include <sys/time.h>
#include <stdio.h>

struct itimerval tv;
int    count;

main ()
{
  void AlarmHandler ();
  void Done ();
  
  sigset (SIGALRM, AlarmHandler); /* Alarm handler */
  sigset (SIGINT, Done);	  /* Interrupt handler */
    
  bzero( (char *)&tv, sizeof(tv));
  tv.it_interval.tv_usec = tv.it_value.tv_usec = 100000L; /* 1/10 of a second */
  if (setitimer (ITIMER_REAL, &tv, (struct itimerval *)NULL) < 0)
    {
      perror ("setitimer");
      exit (1);
    }
  while (1)
    {
      sigpause (SIGALRM);
    }
}


void AlarmHandler (int sig)
{
  count++;
  /* printf ("."), fflush (stdout); */
  
/*
 *  Why do I have to reset timer?
 */
  if (setitimer (ITIMER_REAL, &tv, (struct itimerval *)NULL) < 0)
    {
      perror ("setitimer");
      exit (1);
    }
}  


void Done (int sig)
{
  fprintf (stderr, "Count = %d\n", count);
  exit (0);
}


<> Allen M. Cohen                  Internet:  amc@wlv.imsd.contel.com       <>
<> 1853 Stonesgate St.             UUCP:      elroy.Jpl.Nasa.Gov!agi0!allen <>
<> Westlake Village, Ca. 91361     Telephone: (805) 498-9611 ext. 195       <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
From: vs0r+@andrew.cmu.edu (Victor Dmitri Schoeman)
Newsgroups: comp.unix.questions
Subject: Re: formatting/aligning text (awk? printf? huh?)
Date: 7 Apr 92 19:05:02 GMT
Distribution: na
Organization: Freshman, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

jtice@butterfly.UVic.CA (Jason W. Tice) writes:
> 
> I've a list of  names and phrases, that look like this:
> 
> john@here.i.am: this a test
> Bob_M@there.I.go:               this a test
> ME@HERE.UUCP:  this is not a test
> jtice@nero.uvic.ca:    this might be a test
> noone@uvicctr.uic.ca:                         this a test
> you_too:     this a test of nuclear fission inside a tin can
> 
> I want it to look like this:
> 
> john@here.i.am:              this a test
> Bob_M@there.I.go:            this a test
> ME@HERE.UUCP:                this is not a test
> jtice@nero.uvic.ca:          this might be a test
> noone@uvicctr.uic.ca:        this a test
> you_too:                     this a test of nuclear fission inside a tin can 
> 
> You get the idea (I hope)

try:

awk '{printf $1} {for (i=length($1);i<=28;i++) printf " "} {for (i=2;i<=NF;i++) printf $i" "} {printf "\n"}' file

__________________________________________________________
We should not worry about what happens when computers pass 
the Turing test, but rather what happens when humans fail.
Dmitri Schoeman                       VS0R+@andrew.cmu.edu
__________________________________________________________
From: wardrb@cs.utexas.edu (Richard Byron Ward)
Newsgroups: comp.unix.questions
Subject: Page Fault Handlers
Date: 13 Apr 1992 17:11:23 -0500
Organization: CS Dept, University of Texas at Austin
NNTP-Posting-Host: muleshoe.cs.utexas.edu

Can any of you "gurus" out there tell me how to use my own page fault
handler in one of my programs?  Also, is there source code available
by ftp for a typical page fault handler?

One more thing, is it possible to use my page fault handler with other
programs, possibly by setting up the handler(using signal?) and then
exec'ing the other program?

Rick
From: jfh@rpp386.lonestar.org (John F Haugh II)
Newsgroups: comp.unix.questions
Subject: Re: errno questions
Date: 12 Apr 92 15:26:46 GMT
Reply-To: jfh@rpp386.cactus.org (John F Haugh II)
Organization: On the Beach, Simpson Bay, Sint Maarten, Nederland Antilles
X-Random-Thought: Practice random kindness and senseless acts of beauty

In article <JIK.92Apr9170959@pit-manager.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes:
>3) The system call or function knows that an error occurred, but it
>doesn't think that any of the errors in <errno.h> are an adequate
>description of the error, so it resorts to leaving 0 in errno.
>(Actually, I've never actually seen this happen, so I don't know if
>it's considered "OK" or not; I'm just postulating.)

I'd say this could also be a function which "knows" that the error
is unrelated to the function and so decides to save errno prior to
beginning its execution and then restores it after execution is
completed.

Were it only that "isatty" always worked this way ...
-- 
John F. Haugh II        | Every 56 days.   | UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 251-2151 | Give Blood, often.    | Domain: jfh@rpp386.cactus.org
"A countryman between two lawyers is like a fish between two cats."
		-- Benjamin Franklin