HDTenEightyP/NetNews huggingface dataset:
From: fwp@Jester.CC.MsState.Edu (Frank Peters)
Subject: Re: Okay, let's stop pretending this group works.
Organization: Computing Center, Mississippi State University
Date: Tue, 14 Apr 1992 22:46:26 GMT

In article <1992Apr14.213904.26106@cco.caltech.edu> karchie@cco.caltech.edu (Kevin Allen Archie) says:
>gritton@alaska.caedm.byu.edu (Jamie Gritton) writes:
>>Really, expert-only subjects such as this will only work in an invitation-
>>based mailing list. Only let non-wizard (but somewhat experienced) people
>>like me join read-only. You shouldn't care who listens, only who talks.
>
>Um, maybe I'm missing something obvious, but it looks like this group is
>screaming for a moderator (and no, I'm not volunteering.)  Best of all
>worlds - keeps out the "newbie" traffic, while allowing us non-wizardly
>types (actually, I prefer "wizard in training" :) to soak up the Wisdom
>of the Gurus.

The problem is that such a moderator would have to be a wizard herself
and also be willing to take on such a time consuming task.

A compromise might be an automated moderator.  Some site agrees to keep
a list of approved posters and house the moderator address.  A
relatively trivial program could then compare the From: address of
incoming submissions against the approval list.  Rejected messages
could be returned with an explanation (and perhaps instructions for
applying for a wizzy wizard membership).

Of course, this could easily be circumvented by forgery.  But I think
the problem we are dealing with here is ignorance of the nature of the
group, not malice.

The big problems I see:

1) We'd need to define a wizard.  Dan's definition, while useful, may
   be a touch overly restrictive and is certainly hard to test for.

2) Who decides?  I don't think we are going to come up with a
   completely objective definition (congratulations, you scored 98 out
   of a possible 100 on the official usenet UNIX wizard test).  So
   someone is going to have to make a judgement.  Some kind of counsel
   of wizards governing body?

--
Frank Peters  -  UNIX Systems Programmer  -  Mississippi State University
Internet: fwp@CC.MsState.Edu  -  Phone: (601)325-7030  -  FAX: (601)325-8921
From: swist@doodly.mcc.dec.com (Jim Swist)
Newsgroups: comp.unix.wizards
Subject: Re: non-blocking accept()
Date: 9 Apr 92 19:37:09 GMT
Reply-To: swist@took.enet.dec.com
Organization: Digital Equipment Corporation

Look at fcntl(2).
Newsgroups: comp.unix.wizards
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: Sendmail does 8-bit??
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Wed, 8 Apr 92 12:39:58 GMT

In article <29911@adm.brl.mil>, Michael Panosh - Value Added Services@BRL.MIL, writes:
> A customer in South East Asia wants to be able to send 8-bit characters
> via the mail system on a MIPS based RISC/os box (OS Rev 4.52.p2).  We
> have been told that sendmail does not allow for 8-bit characters, which
> would not suprise me, but is annoying!!
> 

I've had exactly this argument here in the lab about ISO Latin-1
across SMTP.  I know that SMTP says 7 bits and most (all?) sendmail's
strip the 8th bit once the `L' mailer flag is set, but the we're in Europe
and we  really want to do this stuff so...

I hacked in a `8' mailer flag which says that even though you're going
to talk SMTP and strip the 8th bit due to the `L' flag well don't because
the hosts you are talking to can cope with 8 bit chars.  It's a trivial
hack in sendmail's util.c.  My plan is to hack this into the DECWRL sendmail
when I set up our new mailhost, and maybe persuade Vixie to adopt it.

If you want to hack it in yourself you can get the DECWRL Sendmail source
(aka "King James Sendmail") -- October 1991 release by anonymous ftp from
gatekeeper.dec.com in `pub/DEC/wrl-mail11-27oct91.tar.Z'.


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''
From: koodli@mysore.pilgrim.umass.edu (Rajeev Koodli)
Newsgroups: comp.unix.wizards
Subject: fork()  in OSF DCE
Keywords: threads
Date: 12 Apr 92 20:07:49 GMT
Organization: Project Pilgrim, Umass

I could't find the right newsgroup. Hope someone here can come to my rescue.


I am having a problem using fork() in a multi-threaded application. 
First of all, I am spawning few threads and assigning a procedure to each one
of them.One of the threads runs through a procedure that forks a child process.
I am using execve in the child process to run /usr/ucb/finger.
Problem is child process does't execute finger at all and unless I use a
non-blocking wait or signal and ignore SIGCHLD, the whole process blocks. I have
spent quite sometime playing around.
I donot know how to get around this problem.Please e-mail me directly if you have
any suggestions. Thanks..

Rajeev

PS: DCE supports wrapper routine for fork() and I am linking my application with
    the proper library.

Newsgroups: comp.unix.wizards
From: amid@bullet.ecf (AMID  Rudy)
Subject: non-blocking accept()
Originator: amid@bullet.ecf.toronto.edu
Organization: University of Toronto, Engineering Computing Facility
Date: Thu, 9 Apr 1992 16:46:53 GMT

(repost to comp.unix.wizards. My site's Pnews won't do the crossposting for me)

'lo,

  Can someone suggest to me exactly how to mark accept() non-blocking?  If
I RTFM correctly, I have to set the file descriptor somehow.  I'm a novice
Unix and C programmer so any help in this section is greatly appreciated.
This is, btw, a socket programming project that I have to do in University.

Thanks,
---
Rudy Amid  amid@ecf.toronto.edu                                            /\
   //      a378amid,a318amid,a209amid@cdf.toronto.edu                    (//\\)
  //
\X/     "This world needs its dreamers. May they never wake up." -Prefab Sprout
From: volpe@bart.crd.ge.com (Christopher R Volpe)
Newsgroups: comp.unix.wizards
Subject: Re: Okay, let's stop pretending this group works.
Date: 14 Apr 92 23:07:26 GMT
Reply-To: volpe@bart.crd.ge.com (Christopher R Volpe)
Organization: GE Corporate R&D Center

In article <8#@byu.edu>, gritton@alaska.caedm.byu.edu (Jamie Gritton) writes:
|>brnstnd@nyu.edu writes:
|>
|>>Yo, wizards. (We all know who I'm talking to: a ``wizard'' in my book is
|>>someone who can rewrite the system from scratch.) Here's a suggestion.
|>
|>OK, so I'm not a wizard in your book. I think I'll responf anyway.
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ditto for me. I'll keep it brief.

The solution is not to hide the group from newbies, but rather to get the
basic ground rules known right off the bat. People see "comp.unix.wizards"
and assume that this is the place to come and tap the wizards' knowledge.
They don't realize it is a place for wizards to discuss wizardly topics.
I would suggest changing the name of the group to comp.unix.wizards_only.
This would get the point across immediately, I believe. And anyone who
posts anything beginning with "Hello wizards! I have a question..." would
deserve whatever flamage he/she gets. 

-Chris
                                                  
==================
Chris Volpe
G.E. Corporate R&D
volpecr@crd.ge.com
Newsgroups: comp.unix.wizards
From: levy@cbnewsb.cb.att.com (daniel.r.levy)
Subject: tcsetpgrp() problem
Organization: AT&T
Distribution: na
Date: Wed, 15 Apr 1992 23:03:23 GMT

Could some kind person please give me a clue as to a problem I am seeing with
tcsetpgrp() on SunOS 4.1.1 under these conditions.

#include <sys/types.h>
#include <fcntl.h>

extern pid_t getpid();
extern pid_t tcgetpgrp();

main()
{
	pid_t spid;
	pid_t mypid;
	int devtty;

	devtty = open("/dev/tty",O_RDONLY);
	spid = tcgetpgrp(devtty);
	mypid = getpid();

	printf("Making myself a process group leader\n");
	setpgid((pid_t)0,(pid_t)0);
	printf("Putting my process group in the foreground\n");
	tcsetpgrp(devtty,mypid);	/* problem, see below */
	printf("Restoring old process group to foreground\n");
	tcsetpgrp(devtty,spid);
}

If I run this program under Korn shell as such:

ksh$ /bin/sh -c myprogram

it gets as far as the first tcsetpgrp() whereupon the process hangs in a
stopped state, as shown by a T in the STAT field of the output of the ps
command for that process.  If I do the same under Bourne shell, it works fine.
The Korn shell seems to be doing something that causes the process to stop.  Is
there some way I can "outsmart" what the Korn shell is doing, so that I can
create a new process group led by a child process of a program invoked
interactively under Korn shell and temporarily put that new process group in
the foreground, later to restore the old process group to the foreground?

Thank you.
-- 
Daniel R. Levy
att[.att.com]!ihope!levy, levy@ihope.cnet.att.com

And they'll know we are Christians by our love....
From: moser@sw.stratus.com (Tom Moser)
Newsgroups: comp.unix.wizards
Subject: Re: Strange results on Unix
Keywords: response, quantum, cpu bound
Date: 16 Apr 92 15:15:18 GMT
Organization: Stratus Computer, Inc.

The lower priority process is probably benefiting from longer quantums. It
can run results to completion without being rescheduled in a cpu
bounded problem like yours. A process which blocks and wakes tends to reflect
it's lower priority better than a process which is strictly CPU bound -
especially if the task is fairly short. You could change your benchmark
to take longer overall and do some sleep(0) calls and you would probably see 
very different results.

-Tom
From: mauricio%dcc.unicamp.br@uicvm.uic.edu (Mauricio Fernandez)
Newsgroups: comp.unix.wizards
Subject: TLI over UDP?
Date: 13 Apr 92 23:31:01 GMT

Hello, this is Mauricio Fernandez from the State University of
Campinas, Brazil.  We are interested in implementing a library of
reliable message-passing primitives using a connectionless transport
protocol. We are inclined to use Sun's TLI for it hides the details of
the underlying protocol. However, we found out that Sun only released
a bug-full tcp STREAMS-driver to be used below TLI.

We will appreciate any information about a public domain
implementation of an udp STREAMS-driver for SunOS 4.1.1.

Thanks in advance



___________________________________________________________________
                                                Mauricio Fernandez
                                           mauricio@dcc.unicamp.br
                                              mauricio@bruc.bitnet
Newsgroups: comp.unix.wizards
From: wucolin@popeye.CIS.McMaster.CA (Colin Wu)
Subject: Re: Creating lpr input filter
Reply-To: wucolin@popeye.CIS.McMaster.CA (Colin Wu)
Organization: McMaster University, Hamilton, Ontario, Canada.
Date: Mon, 13 Apr 1992 13:32:28 GMT

In article <92099.085403U36842@uicvm.uic.edu> U36842@uicvm.uic.edu (Ashish  
Desai) writes:
> 
> Problem: Right now we have a shell script that created a header that is
>         prefixed to a file before it is printed. That is, stick a header
>         to the file and then do an lpr fname.
>         I would like put the filter as a "printcap entry" input filter, which
>         gets invoked when the file is printed using "lpr".
>         I know that you can specify an input
>         filter for a printer in the "printcap".
>         The problem is I can't find documentation on how to write a filter
>         such that "lpr" invokes it.

I tried to email you but uiucvm.uic.edu claims it doesn't know about  
earth.eecs.uic.edu.

I have written just such a filter that we use in our student labs.  I can send
you the source and a sample printcap entry if you like.

For documentation on filter specifications see the System and Network
Administration Manual, Chapter 12.
--
   __     _             _            Colin Wu
  /  )   //            ' )   /       Network Analyst
 /    __|/  o ____      / / / . .    Computing & Information Services
(__/ (_) \_<_/ / <_    (_(_/ (_/_    McMaster University
email:	wucolin@popeye.CIS.McMaster.CA	(NeXTmail welcome)
	wucolin@McMaster.CA		(Generic email only)
From: lip@hazelrah.cs.colorado.edu (Paul)
Newsgroups: comp.unix.wizards
Subject: Public Internet access points
Date: 8 Apr 92 03:41:24 GMT
Organization: University of Colorado at Boulder

Would someone email me a location (newsgroup or ftpsite) of a public internet
access site (ie. call in over the modem) of the US.

Paul Li
lip@hazelrah.cs.colorado.edu
-- 
 -__/|
 'o.O'  Ach!
=(___)= Phht!
   U
From: alan@shodha.enet.dec.com ( Alan's Home for Wayward Notes File.)
Newsgroups: comp.unix.wizards
Subject: Re: fsck
Summary: Yes.
Date: 15 Apr 92 15:10:33 GMT
Organization: Digital Equipment Corp. - Colorado Springs, CO.

In article <sysadmin.703264052@galaxy>, sysadmin@ph.tn.tudelft.nl (Wouter Smaal) writes:
> Is it possible that fsck does not discover disk errors?

Yes.  It will depend on the vendor and my experience is limited
to 4.2BSD and ULTRIX V1.0 through V4.2, but fsck(8) doesn't
usually read the file system DATA blocks.  It will have to
look at all the inodes, cylinder group blocks (FFS) and directory
files and should discover any data corruption there.  You have
to temper this expectation with the possibility of insane hardware
and software bugs.  Either of these should be reported to the
appropriate vendor, though for insane hardware you'll probably
want to talk to the service vendor.

Some vendors may have extended fsck to include a simple read
check of data block, relying on the disk and controller to
verify the data is correct, but I don't know of any.  Such a
check could take a very long time.  Using dd(1) to scan the
entire disk may be easier.  Some vendors may provide optimized
scanning programs for certain classes of disks (from DEC, radisk(8)
for DSA disks and rzdisk for SCSI disks).

> 
> Wouter Smaal                     E-mail: sysadmin@ph.tn.tudelft.nl  
-- 
Alan Rollow				alan@nabeth.cxo.dec.com
From: af41sfc1@mis.itri.org.tw (Sung Feng-Chi)
Newsgroups: comp.unix.wizards
Subject: subscribe
Date: 10 Apr 92 04:03:31 GMT



	Please add me to your mailing list. Thank you very much.

	Acer Sung
	ITRI
	af41sfc1@mis.itri.org.tw
From: jean@hoggar.imag.fr (Jean Chouanard)
Newsgroups: comp.unix.wizards
Subject: Using SO_KEEPALIVE to detect the death of a client???
Keywords: sockets
Date: 6 Apr 92 11:20:12 GMT
Reply-To: jean@hoggar.imag.fr (Jean Chouanard)
Organization: IMAG Institute, University of Grenoble, France


	Hi!
I'm working on a client//server model and my server have to detect the death
of his client. I'm working on SunOS 4.1.1 / Sparc 2.

I know that's a FAQ but I how do that working!
I saw that you cant set option SO_KEEPALIVE on the communication socket to 
enables the periodic transmission of messages on this socket, that 
what I've done, but nothing else change! I was expecting a signal SIGPIPE but 
No signal!

Here is my code for the client and the server. 
Any help will be wellcome, Thank's.


=-=-=- Server.c =-=-=-=-=-=
recup_sig_pipe()
{
  printf ("I've got a signal!!!\n");
  exit (0);
}
main()
{
  int s;
  struct sockaddr_in sin, client;
  int lg;
  static short c_port=4011; /* static for this example */
  struct hostent  *hpclient;
  int i,k,ver;
  int res;
  static int one = 1;
  

  s = socket(AF_INET,SOCK_STREAM,0);
  bzero(&sin, sizeof (sin));
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = htonl(INADDR_ANY);
  res = -1;
  sin.sin_port = htons(c_port);
  
  signal (SIGPIPE , recup_sig_pipe);
  res = bind(s, (struct sockaddr *) &sin, sizeof(struct sockaddr_in));
  if (res != 0){
    perror("bind :");
    exit;
  }
  if (listen(s,1) < 0){
    perror("listen :");
    exit;
  }
  g1 = accept(s,&client,&lg);
  if (g1 < 0){
    perror("accept :");
    exit;
  }
  if (setsockopt(g1, SOL_SOCKET, SO_KEEPALIVE, (char *) &one,
sizeof(one)) < 0)	{
    perror("setsockopt :");
    exit (0);
  }
  while (1) {
	/* Do something else.... */
  }
}
=-=-=- Client.c =-=-=-=-=-=
main()
{


    static struct sockaddr_in deamon;
    static struct sockaddr_in adele;
    static struct hostent *hpl;
    static struct in_addr *point;
    int s;
    char buf[512];

    if ((s = socket(AF_INET,SOCK_STREAM, 0)) < 0){
      perror("socket :");
      return(NULL);
    }
    bzero ((char *)&adele, sizeof(adele));
    adele.sin_addr.s_addr = INADDR_ANY;
    adele.sin_family      = AF_INET;
    adele.sin_port        = 0;
    if  (bind (s, (struct sockaddr *) &adele, sizeof(adele)) == -1){
      perror("bind :");
      close(s);
      return(NULL);
    }
    if ((hpl = gethostbyname("hoggar")) == NULL){
      perror("gethostbyname :");
      close(s);
      return(NULL);
    }


    point = (struct in_addr *) hpl->h_addr;
    bzero ((char *)&deamon, sizeof(deamon));
    deamon.sin_addr.s_addr = point->s_addr;
    deamon.sin_family      = hpl->h_addrtype;
    deamon.sin_port        = htons((u_short)4011); /* static for this
example */
    if (connect (s, (struct sockaddr *) &deamon, sizeof(deamon)) ==
-1){
      perror("connect :");
      close(s);
      return(NULL);
    }

    printf("I've got my server\n");
    while (1){
	  /* doing something... then exit */
    }
}


-- 
    Les amants sont maigres, les maris sont gras. (Alex Barbier : Lycaons).
Jean Chouanard        		|	jean@imag.imag.fr
Laboratoire IMAG/LGI Grenoble   |	jean@imag.UUCP
Newsgroups: comp.unix.wizards
From: lijewski@theory.TC.Cornell.EDU (Mike Lijewski)
Subject: interrupting read(2) w/a signal under 4.2 BSD
Keywords: 4.2BSD, signal, read, siginterrupt
Organization: Cornell National Supercomputer Facility
Date: Tue, 7 Apr 1992 01:50:32 GMT

Is there any portable way to guarantee on a 4.2BSD-based system that
read(2) gets interrupted on receipt of a signal and not restarted, in
the absence of siginterrupt(2)?  In particular, I'd prefer to do no more
than set a flag in the signal handler.

-- 
Mike Lijewski  (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: lijewski@theory.tc.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  25 Renwick Heights Road, Ithaca, NY  14850
Newsgroups: comp.unix.wizards
From: terry@ithaca.Eng.Sandy.Novell.COM (Terry Lambert)
Subject: Re: Defining a wizard (was: Okay...)
Organization: Novell NPD -- Sandy, UT
Date: Wed, 15 Apr 1992 18:37:39 GMT

In article <-$@byu.edu>, gritton@alaska.caedm.byu.edu (Jamie Gritton) writes:
|> One easy way to tell is to ask "are you a wizard?" True, that goes by
|> bravado instead of knowlege, but most of who need weeding out are
|> those who even call themselves beginners.
|> --
|> James Gritton - gritton@byu.edu - I disclaim

	I second the motion.  It worked for the collosal cave adventure, it ought
to work for usenet.  ;-)

						Terry Lambert
						terry_lambert@gateway.novell.com
						terry@icarus.weber.edu

----------------------------------------------------------------
"I have an 8 user poetic license" - me
"Are you my mother?" - Dr. Seuss
"Are you a wizrd?" - The collosal cave adventure
From: vijay@cdsun.fnal.gov (Vijay Gurbani)
Newsgroups: comp.unix.wizards
Subject: Network Traffic Modelling
Summary: Info needed on NTM
Date: 10 Apr 92 20:52:08 GMT
Distribution: usa


Hello all:

   First of all, let me apologize for posting here; but I could not find an
appropriate newsgroup in our distribution list. And somehow, I have a gut
feeling that I would get some information from the "wizards". I also tried
archie and came up with zip. 

   Now for the question: I am looking for any technical papers/magazine 
articles and such on the subject of network traffic modelling; any articles
at all. If any of you have any leads, please email me at vijay@cdsun.fnal.gov. 
I would really appreciate it. Anybody wanting a summary can contact me.

Thanks much.

- vijay
--
 (____)    Chicago Bulls                       Vijay K. Gurbani
'(o  o)`   1991-92 NBA World Champions         Fermi National Accelerator Lab.
  \  /     05 23 24 33 54                      vijay@{cdsun,fnsg01}.fnal.gov
== OO =====All opinions are mine, of course====================================
From: nigelm@ohm.york.ac.uk (Nigel Metheringham)
Newsgroups: comp.unix.wizards
Subject: Re: Sendmail does 8-bit??
Date: 9 Apr 92 14:32:23 GMT
Organization: Electronics Department, University of York, UK

The IDA sendmail distribution has character set support within it
and I believe it will handle 8 bit data, although I am not sure of
this.

Current version is sendmail-5.65c+IDA-1.4.4.1 available from all
good archive sites!

	Nigel.

-- 
# Nigel Metheringham   # (NeXT) EMail: nigelm@ohm.york.ac.uk #
# System Administrator #######  Phone: +44 904 432374        #
# Department of Electronics  #  Fax:   +44 904 432335        #
#     University of York, Heslington, York, UK, YO1 5DD      #
Newsgroups: comp.unix.wizards
From: durie@wonton.TC.Cornell.EDU (Bob Durie)
Subject: Fork(),fclose()
Organization: Cornell Theory Center
Date: Tue, 14 Apr 1992 04:49:23 GMT

Thanks to the many people who responded to my question re. stdin not being
closed properly on the child processes I was forking.  The problem was that
as I forked processes, all file descriptors were being dup'd, so that the
last child forked had a copy of the pipes going to the other children; hence
they were not closing until that child terminated.  The sol'n was to use
fcntl to mark those pipes as close on exec.

Bob
-- 
--------------------------------------------------------------------------
| Bob Durie               | 389 Theory Center, Electrical Engineering,   |
| bobd@ee.cornell.edu     | Cornell University, Ithaca NY 14853.         |
| bobd@crnlee.bitnet      | Phone: (607) 255 0302 |  Fax: (607) 254 4565 |
Newsgroups: comp.unix.wizards
From: terry@ithaca.npd.Novell.COM (Terry Lambert)
Subject: Re: memory mapping in sVr4 STREAMS module
Organization: Novell NPD -- Sandy, UT
Distribution: usa
Date: Mon, 13 Apr 1992 23:06:41 GMT

In article <1992Apr13.193235.7013@tigger.jvnc.net>, mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation) writes:
|> HI:
|> 
|> I'm trying to write a sVr4 STREAMS module that will allow portions of 
|> it's data to be memory mapped, either by an IOCTL call, or
|> via 'mmap' if appropriate.  Something tells me it would be cleaner
|> to use 'ioctl', but if 'mmap' works better ... fine.
|> 

	Cheat.  I did.

	1)	Write a driver that takes an ioctl() that passes the user space address and gives the
		kernel space address for it.
	2)	In your program, get a shared memory segment.
	3)	Use shmctl() to lock it down if your system can swap shared memory (most can't).
	4)	Pass the address of your shared memory segment to your driver.  This will get you
		the address in kernel space of the segment.
	5)	Pass this address to your streams driver.
	6)	Modify the memory from kernel or user space to your heart's content.


	This is good for data passing as well, as it avoids the copyin()/copyout() calls.  The main
	problem with streams is that the u struct is only valid for the open; otherwise, the u struct
	belongs to the user whose system call caused streams to run that particular time.  Bletch!

							Terry Lambert
							terry@icarus.weber.edu
Newsgroups: comp.unix.wizards
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: fsck
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Fri, 17 Apr 92 14:00:13 GMT

In article <ggm.703383451@brolga>, ggm@brolga.cc.uq.oz.au (George Michaelson) writes:
> 
> Bad disk in swap is another obvious problem fsck et al won't find.

Gee, I can't remember when I last fsck'd swap...


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''