HDTenEightyP/NetNews huggingface dataset:
From: spm2d@topaz.cs.Virginia.EDU (Steven P. Miale)
Subject: Re: Okay, let's stop pretending this group works.
Organization: University of Virginia Computer Science Department
Date: Tue, 14 Apr 1992 23:12:48 GMT

>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?

Just something I recently read:

In _Programming as if people mattered_ by Nathanael Borenstein (sp?)
[a superb book on software engineering when applied to user
interfaces], he mentions a survey that was taken.
The survey tried to discover the common link among Unix wizards,
but the results showed that there was very little in common
as far as knowledge was concerned; rather, the only thing the
Wizards had in common was that they knew where to turn for information
when they were stuck.

Steve



-- 
Steven Miale - spm2d@virginia.edu   | Backwards compatibility is backward.
Undergraduate Researcher            |
Department of Computer Science      |
University of Virginia              |
Newsgroups: comp.unix.wizards
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: fsck
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Wed, 15 Apr 92 20:20:35 GMT

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'll only find errors on blocks it actually reads, so it's
possible that free blocks (and others; eg. spare superblocks on a BSD
FFS) that are unreadable will not be reported as bad.  dd(1) is one way
of reading all the blocks.


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''
 
Newsgroups: comp.unix.wizards
From: shore@dinah.tc.cornell.edu (Melinda Shore)
Subject: Re: fsck
Reply-To: shore@tc.cornell.edu
Organization: Cornell Theory Center
Date: Fri, 17 Apr 1992 14:31:52 GMT

In article <1992Apr17.140013.18733@prl.dec.com>, boyd@prl.dec.com (Boyd Roberts) writes:
> Gee, I can't remember when I last fsck'd swap...

I did, this morning.  The Mach vnode pager pages to anonymous
files, which means that your swap partitions will need to be 
cleaned up after a crash.
-- 
       Melinda Shore - Cornell Theory Center - shore@tc.cornell.edu
From: lip@alta.cs.colorado.edu (Paul)
Newsgroups: comp.unix.wizards
Subject: Public Access Unix Connections
Keywords: What keywords?
Date: 16 Apr 92 18:59:54 GMT
Article-I.D.: colorado.1992Apr16.185954.20534
Followup-To: some other article that I posted
Organization: University of Colorado at Boulder


Ok, I know it's not appropriate to post this here but it generated quite an
interest.  So, I'm going to post it back here so that mountains of people that
mailed me can get the information.  Please don't flame me.
 
You can get the nixpub listing from

	ftp.cs.widener.edu

in this directory

	/pub/nixpub

Thanks to joslin_paul@ae.ge.com

Paul Li
-- 
 -__/|
 'o.O'  Ach!
=(___)= Phht!
   U
From: UESPR%BRFAPESP.bitnet@uicvm.uic.edu
Newsgroups: comp.unix.wizards
Subject: unsubscribe
Date: 6 Apr 92 21:06:31 GMT


Please unsubscribe me from this mailing list.
Thanks...
From: jfh@rpp386.lonestar.org (John F Haugh II)
Newsgroups: comp.unix.wizards
Subject: Re: fsck
Date: 14 Apr 92 22:50:34 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 <sysadmin.703264052@galaxy> sysadmin@ph.tn.tudelft.nl (Wouter Smaal) writes:
>Is it possible that fsck does not discover disk errors?

Yes.  FSCK doesn't read the entire disk, only directories, inodes, the
free list, and indirect data blocks.  File data blocks are not read
(thank Ghod) and if your error is there, fsck will never find it.  Also,
fsck only reads filesystems - it completely ignores paging and swapping
space.
-- 
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
From: buzz@fsrg.bear.com (Buzz Moschetti)
Newsgroups: comp.unix.wizards
Subject: Re: Okay, let's stop pretending this group works.
Date: 16 Apr 92 01:39:02 GMT
	<1992Apr14.213904.26106@cco.caltech.edu>
	<1992Apr14.224626.10108@ra.msstate.edu>
	<1992Apr15.135548.4928@rsd0.rsd.dl.nec.com>
Organization: Bear, Stearns & Co. Inc.
In-reply-to: randy@rss.dl.nec.com's message of 15 Apr 92 13:55:48 GMT

In article <1992Apr15.135548.4928@rsd0.rsd.dl.nec.com> randy@rss.dl.nec.com (Randy Bullard) writes:

   This exact idea popped into my mind the other day.  A server that screens
   incoming messages and only posts those articles with the sender in the
   approved 'wizard' list.  I don't think it would be necessary to worry too
   much about forgeries.  We just want to cut down on the garbage traffic and
   this type of mechanism would do that very well.  The criteria for actually
   getting on the 'Wizard List' could be quite loose. Anybody that's going to
   go to the trouble of submitting an application of some kind should pretty
   much be allowed in.  This simple process would keep the newbies from posting
   the standard 'how do I make a socket?' question.  Later after reading a
   FAQ stating the application process and the rules governing the use of the
   group and most importantly _where to go first for specific questions_ the
   guy could ask to be on the 'Wizard List' if he really wanted.  It forces
   newbies to _READ_ and _UNDERSTAND_ the FAQ before polluting the group.

What he said.  Yes, this post is somewhat paradoxical in that I'm not a wiz
nor is this post wizzy, but...
--
"Usually this is a couple of lines." -Well paid consultant.
Newsgroups: comp.unix.wizards
From: ggm@brolga.cc.uq.oz.au (George Michaelson)
Subject: Re: fsck
Organization: Prentice Centre, University of Queensland
Date: Thu, 16 Apr 1992 00:17:31 GMT

boyd@prl.dec.com (Boyd Roberts) writes:

>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'll only find errors on blocks it actually reads, so it's
>possible that free blocks (and others; eg. spare superblocks on a BSD
>FFS) that are unreadable will not be reported as bad.  dd(1) is one way
>of reading all the blocks.

Bad disk in swap is another obvious problem fsck et al won't find. As in
bad blocks at the end of a partition, you'll typically only find this kind
of thing under severe load: the last moment you want the machine to die.
 
If you're in a position to do pre-emptive checks, getting them out of the
way before end-of-term competition for CPU and diskspace can be useful...

	-George
--
                         George Michaelson
G.Michaelson@cc.uq.oz.au The Prentice Centre      | There's no  market for
                         University of Queensland | hippos in Philadelphia
Phone: +61 7 365 4079    QLD Australia 4072       |          -Bertold Brecht
From: conquet@irit.irit.fr (Eric CONQUET)
Newsgroups: comp.unix.wizards
Subject: Strange results on Unix
Date: 14 Apr 92 13:32:37 GMT
Organization: IRIT-UPS, Toulouse France

We have got strange results when running a set of three processes in
paralel on an HP Ws under UNIX. These processes were strictly identical
but had different priorities.
We have started these processes with the following c-shell script:

foreach i (1 2 3 4 5 6 7 8 9 10)
  calcul_cpu &; nice calcul_cpu &; nice -8 calcul_cpu
   wait
end

The code of "calcul_cpu" was the following one:

....
temps_deb = times(&tms_deb)  /* get the time before the loop*/
for (i=1; i<occ;i++)         /* Loop */
  cpt = cpt+1;                   
temps_fin = times(&tms_fin)  /* Get the time after the loop */
...                          /* Compute the elapsed time */


We have got the following results:

Process number      Priority         Average response time   
      1        basic user priority        3846
      2          BUP - 4                  4568
      3          BUP - 8                  3492


How do you explain that the process with the lowest priority has the
shortest response time?
Is it the standard behaviour of UNIX?
Is there a problem with our tests?


Thank you for your help.

Eric CONQUET
IRIT/SIERA
Universite Paul Sabatier
31077 TOULOUSE CEDEX
e-mail: conquet@irit.fr
Newsgroups: comp.unix.wizards
From: durie@wonton.TC.Cornell.EDU (Bob Durie)
Subject: Fork(),fclose()
Organization: Cornell Theory Center
Date: Mon, 13 Apr 1992 18:48:32 GMT

I have written an application that forks off processes and communicates to
them via a pipe which has been dup2'ed to the stdin of the child process.
The child process execlp's xgraph.   If I only have one such pipe open at a 
time, everything works fine.  If I have more than one pipe open at a time,
only one of the children actually gets an EOF on its stdin when I close the
pipes.  (the pipes are closed at roughly the same time)  When the child
who got the EOF terminates, the next child gets an EOF on stdin, and so on.
I want all child processes to get an EOF on stdin after I close their pipes.
The calling process has completed before any of this happens.  Things i have 
tried:

having the calling process do a wait() instead of exiting
using fork() instead of vfork()
sending various signals to the child process upon closing the pipe
various other things

I'm about ready to give up and use tmp files, but I'd rather use pipes...

Any ideas??

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: mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation)
Subject: memory mapping in sVr4 STREAMS module
Originator: mtcusa@tigger.jvnc.net
Organization: JvNCnet, Princeton University, NJ
Distribution: usa
Date: Mon, 13 Apr 1992 19:32:35 GMT

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.

Would somebody please replace 'magicfunc' in the following two
examples with more correct magic?

Thanks in advance,

GB - (obviously a first time streams module writer)

****************************************************************************

VERSION ONE

mytypedef MODDATA[ xxx ];

/*
 * QUEUE READ SIDE
 */

modrput(q, mp)
queue_t *q;
mblk_t *mp;
{
struct iocblk *p;

	switch( mp->b_datap->db_type)
	{
	blah, blah, blah
	  .
	  .
	  .
	case M_IOCTL:
		p = (struct iocblk *)mp->b_rptr;
		switch ( p->ioc_cmd)
		{
		case MODULE_MMAP:
			/*
			 * map MODDATA to user space
			 */
			magicfunc( MODDATA );
			break;
		etc...
		}
	blah, blah, blah
	  .
	  .
	  .
	}
}

****************************************************************************

VERSION TWO - space derived by a kernel alloc call (can't remember syntax
	      at the moment), and pointer to said space mapped.

mytypedef *MODDATA;

/*
 * OPEN
 */
modopen( q, dev, oflag, sflag)
register queue_t *q;
int dev;
int sflag;
int oflag;
{
	blah, blah, blah ....

	MODDATA = (mytypedef *)some_kernel_allocfunc( some_size );
	q->q_ptr = (caddr_t)MODDATA;

	blah, blah, blah ....
}

/*
 * QUEUE READ SIDE
 */
modrput(q, mp)
register queue_t *q;
register mblk_t *mp;
{
struct iocblk *p;

	switch( mp->b_datap->db_type)
	{
	blah, blah, blah
	  .
	  .
	  .
	case M_IOCTL:
		p = (struct iocblk *)mp->b_rptr;
		switch ( p->ioc_cmd)
		{
		case MODULE_MMAP:
			/*
			 * map MODDATA to user space
			 */
			magicfunc( q->q_ptr );
			break;
		etc...
		}
	blah, blah, blah
	  .
	  .
	}
}
From: ossian@comlab.gatech.edu (Ossian Gillebert)
Newsgroups: comp.unix.wizards
Subject: Re: seeking prgms and FTP sites UNIX
Date: 8 Apr 92 16:07:29 GMT
Organization: Georgia Institute of Technology


Hello. I am seeking a Spreadsheet program that will wirk in a tcsh or
SunOS environment. What library might I find such a prgm. within?

Moreover can some one Please list unix and Cshell Tcshell ftp locations
such as UUNet but by digital addrs ie:(128.21.365.1) where such prgrms.
might be located.
Thanks -Ossian



     * USENET: ossian@comlab.gatech.edu | Ph 1-706-532-5015 U.S.A.*

   ***     Ni/or dhu/n Dia doras riamh nar oscal Se/ cean eile.  ***  

 *** When the People learn to lead the Leaders will Learn to Follow ***

--

     * USENET: ossian@comlab.gatech.edu | Ph 1-706-532-5015 U.S.A.*

   ***     Ni/or dhu/n Dia doras riamh nar oscal Se/ cean eile.  ***  
Xref: sparky comp.unix.wizards:2193 comp.unix.programmer:2369 comp.unix.internals:1108
From: wardrb@cs.utexas.edu (Richard Byron Ward)
Newsgroups: comp.unix.wizards,comp.unix.programmer,comp.unix.internals
Subject: Re: Page Fault Handlers
Date: 14 Apr 1992 10:52:09 -0500
Organization: CS Dept, University of Texas at Austin
NNTP-Posting-Host: earth.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?
|

I posted these questions to comp.unix.questions yesterday, but I haven't 
gotten any responses... Anyway, I have studied the problem more and have
"discovered" sigaction, but which signals do I want to handle?  SIGBUS?
SIGSEGV?  Also, do I have to alter exec in order to let other programs
use my page handler?  Any and all responses will be appreciated.  C code
will be especially fondly remembered :-).

Rick
From: ossian@comlab.gatech.edu (Ossian Gillebert)
Newsgroups: comp.unix.wizards
Subject: seeking prgms and FTP sites UNIX
Date: 8 Apr 92 15:38:27 GMT
Reply-To: ossian@comlab.gatech.edu (Ossian Gillebert)
Organization: Georgia Institute of Technology

--

     * USENET: ossian@comlab.gatech.edu | Ph 1-706-532-5015 U.S.A.*

   ***     Ni/or dhu/n Dia doras riamh nar oscal Se/ cean eile.  ***
From: moconnor@pms704.pms.ford.com (Mike O'Connor)
Newsgroups: comp.unix.wizards
Subject: Re: usleep() on ultrix 4.1
Date: 7 Apr 92 16:49:37 GMT
Article-I.D.: fmsrl7.1992Apr7.164937.26258
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
X-Disclaimer: Not an official spokesperson for Ford Motor Co.

In article <29941@adm.brl.mil> OCONNOR@arcb.afrc.ac.uk (Phil O'Connor) writes:

:Does anyone know where I can get the source for the function
:usleep() or if I can use a suitable work around?

Glad to help a fellow O'Connor.  :)

You could get the usleep.c from the xlock distribution available via
anonymous FTP from export.lcs.mit.edu and you should be all set.

						...Mike

-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
Newsgroups: comp.unix.wizards
From: tjbarre@srv.PacBell.COM (Tom Barrett)
Subject: Turning Off RTS on a Serial Port
Organization: Pacific * Bell
Distribution: usa
Date: Fri, 10 Apr 1992 23:07:35 GMT



UNIX Wizards:

I have a question as to how to turn off RTS on /dev/ttyb
of a SUN 4/470 running SunOS 4.1.1

I have tried using ttysoftcar and the eeprom command, but
to no avail; my port still puts out constant RTS.

Question: How can I turn this off?  Do I have to make kernel
modifications?

Please reply by e-mail to tjbarre@PacBell.COM, as I don't
always read this group (you've probably figured out that
i'm not a wizard from the level of my question!)

thanks!
tom barrett

Xref: sparky comp.unix.wizards:2114 comp.unix.questions:5905
From: shubu@cs.utexas.edu (Shubhendu Sekhar Mukherjee)
Newsgroups: comp.unix.wizards,comp.unix.questions
Subject: core
Followup-To: poster
Date: 6 Apr 1992 22:34:29 -0500
Organization: CS Dept, University of Texas at Austin
NNTP-Posting-Host: oporto.cs.utexas.edu
Keywords: gcore core

I am trying to get snapshots of the memory using gcore.  It's dumping
the core alright.  But I have the following questions:

1.Is the core dumped in binary? Looks like it is.
2.The man page of core says the beginning of the core contains a 
  structure "user" defined in sys/user.h.  I am trying to read this 
  structure from the beginning of the file by the "read" system call.
  However, it doesn't seem to be reading it correctly.  The structure
  contains a variable u_procp, which is supposed to be non-null.
  However, it is returning null, so that I can't even get the size
  of the heap and stack dumped in the core file.  

  Here is a simple program I am trying to use, but it doesn't work.


#include <stdio.h>

#define KERNEL

#include <sys/param.h>
#include <sys/user.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>


struct user *u_area; 

main(argc, argv)
int argc;
char *argv[]; {
   int fd;
   
   if(argc <= 1) {
	printf("Usage: readcore <core_file>\n");
	exit(1);
	}

   u_area = (struct user *) malloc(sizeof(struct user));

   if((fd = open(argv[1], O_RDONLY)) == -1) { 
	perror("Couldn't open file");
	exit(1);
	}
   	
   if(read(fd, (unsigned char *)u_area, sizeof(struct user)) == -1) {
	perror("Couldn't read file");
	exit(1);
	}
	
   printf("u_dsize = %d\nu_ssize = %d\n", u_area->u_dsize, u_area->u_ssize); 
   close(fd);
   }
   
Also, in case I am able to get the u_procp pointer correctly, then 
how do I obtain the actual structure?  Is this a pointer into the 
heap, so that I have to get it from a certain offset from the core 
file, or is it laid out in the u area itself, at the beginning of the
core file.

Also, any details about the structure of the core file would be most 
appreciated.  Please mail responses directly to shubu@cs.utexas.edu.

-Shubu
-- 
----------------------------------------------------------------------
Shubhendu Sekhar Mukherjee         University of Texas @ Austin, C.Sc.
e-mail:shubu@cs.utexas.edu     [W]:(512) 471-9586   [H]:(512) 467-2653
----------------------------------------------------------------------
From: boyd@aisi.llnl.gov (Kevin Boyd)
Newsgroups: comp.unix.wizards
Subject: Help with BIND
Date: 14 Apr 92 16:32:11 GMT
Organization: Lawrence Livermore National Labs, Livermore CA
Originator: boyd@aisi.llnl.gov

Is it possible to dynamically update a BIND server?   From what I've read
it looks like I should be able to, but my feeble attempts have failed.  What
I'd like to do is update an IP address associated with a name.  If any one
has some sample C code, or can point me to documentation I'd appreciate 
it.

Thanks
-- 
Kevin Boyd                             186,000 miles per second isn't just  
Phone:    (510) 423-7647               a good idea, it's the law! 
Internet: boyd@aisi.llnl.gov
Newsgroups: comp.unix.wizards
Subject: Re: how to tell if tape drives are present on current host
From: chuck@comp.vuw.ac.nz (Chuck Qun Zheng)
Date: Thu, 16 Apr 1992 07:26:52 GMT
Reply-To: chuck@comp.vuw.ac.nz (Chuck Qun Zheng)
Organization: Technology Strategy, Telecom Corporation of New Zealand.


It seems to me mt will do the trick:

	#!/bin/sh

	mt -f /dev/st0 rew
	if [ $? = 0 ]
	then 
		do thing1
	else
		do thing2
	fi

-- 
---------------
Chuck Qun Zheng
Telecom Corperate Office of New Zealand
Wellington, New Zealand
Xref: sparky comp.unix.wizards:2116 comp.unix.programmer:2261 comp.sys.sun.misc:1764 alt.sys.sun:2652
From: coleman@bldrdoc.gov (Sean Coleman 497-5672 )
Newsgroups: comp.unix.wizards,comp.unix.programmer,comp.sys.sun.misc,alt.sys.sun
Subject: Decoding a RPC packet
Keywords: packet
Date: 5 Apr 92 18:34:33 GMT
Followup-To: poster

I am trying to write a program that decodes the other RPC packets
like yp, mountd, etc. 

Since these programs have dynamic port numbers given to the program
by the portmapper, it is unclear how to tell if a udp packet contains
RPC data vs data for some other program since the port number for say
mountd changes. Is there something unique about the data format of
of the rpc data field that would allow a decoding program to know that
the data is a RPC packet which we can further decode to get program
numbers and then use the protocol definition to decode the rpc packet.

I also wonder determing the type of procedure that was executed,
how is the data passed to the procedure layed out in the packet.

For instance, if we were doing a mount and the argument to the 
mount procedure call, is the filesystem name, how would that be
layed out.

Thanks

Sean Coleman
coleman@bldrdoc.gov
From: Thomas.Tornblom@nexus.comm.se (Thomas Tornblom)
Newsgroups: comp.unix.wizards
Subject: Re: Sendmail does 8-bit??
Date: 13 Apr 92 10:51:37 GMT
Organization: Communicator Nexus AB

In article <1992Apr8.123958.9467@prl.dec.com> boyd@prl.dec.com (Boyd Roberts) writes:

   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.

Get sendmail-5.65+IDA 1.4.4 from your nearby archive site. It has
support for various national character sets, including latin-1. It
also handles 8 bit transfers through old 7 bits sites without loosing
the 8:th bit. It is also much easier to configure and get to work
properly.

Thomas

--
Real life:      Thomas Tornblom           Email:  Thomas.Tornblom@nexus.comm.se
Snail mail:     Communicator Nexus AB     Phone:  +46 18 171814
                Box 857                   Fax:    +46 18 696516
                S - 751 08 Uppsala, Sweden
Newsgroups: comp.unix.wizards