HDTenEightyP/NetNews huggingface dataset:
From: lars@pfm.rmt.sub.org (Lars Eisenblatt)
Subject: Re: reliable signals under BSD / SVR4
Organization: PFM News & Mail RMT Mainz, Germany
Date: Thu, 10 Sep 1992 09:15:39 GMT
Keywords: signals, reliable, software interrupts

acourtny@unix1.tcd.ie (Antony A. Courtney) writes:

>I wrote the following short program to test whether or not signals are reliable
>on our particular SVR4 implementation  (A Siemens-Nixdorf RM600 running Sinix).

>The particular implementation of signal() is from Stevens' "Advanced Programming
>in the UNIX environment".  


>What's the word?  Are signals "reliable" or aren't they?

Signals in SVR4 and BSD are more reliable than the signalingmechnismens in
older SVR Versions. So if the same Signal is send twice or more to a process
the second delivery ist blocked until the first is handled. But there is no stacking of signals, so they get lost, if there is more than one Signal pending.

SVR4 signal handling also supports Blocking and Masking of Signals. For more Information, please refer to Stevens, and M.J.Bach "The Design of the UNIX OS" or
Leffler et.al. "The Design of BSD OS". Don't be frustated, a better Idea would be to use Messagequeues to serialize events.

Lars Eisenblatt					lars@pfm.rmt.sub.org
An der Wellenburg 18
6000 Frankfurt/Main 50				Phone: *49 69 505263
LAMARC GmbH, Wiesbaden
-- 
Lars Eisenblatt					lars@pfm.rmt.sub.org
An der Wellenburg 18
6000 Frankfurt/Main 50				Phone: *49 69 505263
LAMARC GmbH, Wiesbaden
From: hjbortol@impa.br (Humberto Jose Bortolossi)
Newsgroups: comp.unix.wizards
Subject: Re: X.25 products for UTS and 3270
Date: 15 Sep 92 21:35:36 GMT

=> 
=> Hoping this is an OK list to post such questions on, I'm looking for X.25
=> based products for Unisys UTS and 3270 emulation, for installation in an
=> SCO box. I'd appreciate any tips.
=>  
	What about tn3270 or x3270 from export.lcs.mit.edu, /contrib directory?

	Enjoy, Humberto.

-- 
+------------------------------------------+----------------------------------+
! Humberto Jose' Bortolossi                ! bitnet:   hjbortol@brlncc.bitnet !
! Instituto de Matematica Pura e Aplicada  ! internet: hjbortol@gauss.impa.br !
! Estrada Dona Castorina, 110              +----------------------------------+
! Jardim Botanico                          ! voice:    55-021-294-9032 (185)  !
! CEP 22460 - Rio de Janeiro - RJ - Brazil ! fax:      55-021-512-4115        !
+------------------------------------------+----------------------------------+
From: Jimbo@even
Newsgroups: comp.unix.wizards
Subject: hmm one more npasswd story...
Keywords: sun.
Date: 7 Sep 92 20:19:31 GMT
Reply-To: Jimbo@even
Organization: Front fr the liberation of the net.

The npasswd bug is very famous into differents hackers
groups. (especialy because of last jeff prog...)
something to do with the -rw-rw-rw of some passwds files.
so every body fixed it right now...

- i didnt have the time to test it :) -

---------------------------------------------------------------------
'' Remember Hackers have ethics... ''         Jimbo...
---------------------------------------------------------------------


Newsgroups: comp.unix.wizards
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: /etc/utmp trouble
Organization: Weber State University  (Ogden, UT)
Date: Tue, 15 Sep 92 19:41:36 GMT

In article <92259.131154KLAWITT@DMSWWU1A.UNI-MUENSTER.DE> Holger Klawitter, Informatik <KLAWITT@DMSWWU1A.UNI-MUENSTER.DE> writes:
>Hi!
>
>Since nobody in comp.unix.questions dared to answer my question ill try
>this group. I am looking for a program to edit the /etc/utmp file
>in order to change the ownership of the tty('s ?) of xdm.
>(A patch into xdm would be even better.)
>This tty should be given to the user; otherwise programs like printtool,
>xlock(the MIT-one) or xvnews believe to belong to xdm.

Xdm doesn't run a pty for an interactive session; to do this, you use a
program like xterm (like is started in the default Xstartup file).  If the
ownership of the slave end of the pty is at fault (ie: the device name
that shows when you type "who am i"), then your problem is xterm.  This is
an X question rather than a generic UNIX question, and modification of you
authentication mecahnism (xdm) won't take care of the problem in the
slightest.


					Terry Lambert
					terry_lambert@gateway.novell.com
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------
Newsgroups: comp.unix.wizards
From: cavers@menudo.uh.edu (Chris M. Cavers)
Subject: Disk decoding
Summary: Any hints on how to decode a disk
Organization: University of Houston
Date: Tue, 8 Sep 1992 18:32:06 GMT

I would like to decode the information on a unix disk.
I am using Sun OS 4.1.2.
I am intercepting the block i/o calls at the device driver level.
Given a byte offset and a number of bytes to move, I would like to be
able to determine which file contains the data. 

Thanks in advance,
Chris
cavers@menudo.uh.edu
Newsgroups: comp.unix.wizards
From: sgccsns@citec.oz.au (Shane Noel Smith 2245702)
Subject: GOSIP
Organization: CITEC
Date: Wed, 9 Sep 1992 05:22:34 GMT

Hello,


I am trying to find out some information regarding the implementation
of the OSI  transport layer 4 being available for Ingres*Net and
if anyone has a commitment from Ingres to GOSIP standards of any country.



-------------------------------------------------------------
|  Shayne Smith          |  Department of Family Services,  |
|                        |  Aboriginal and Islander Affairs |
|  sgccsns@citec.oz.au   |  Queensland AUSTRALIA            |
|------------------------|-----------------------------------
|  GPO Box 806           | These are my personal views only |
|  Brisbane              | My employer doesn't pay me       |
|  Qld, AUSTRALIA 4001   | enough to think fo them          |
-------------------------------------------------------------


Xref: sparky comp.unix.wizards:3805 comp.unix.questions:10750 comp.windows.x:16202
From: asw2s@palm.cs.Virginia.EDU (Alex S. Waterman)
Subject: Process state during interrupt processing
Followup-To: asw2s@virginia.edu
Keywords: device driver, interrupt, process state
Organization: University of Virginia Computer Science Department
Distribution: usa
Date: Sat, 12 Sep 1992 15:49:51 GMT

All,
        Running SunOS4.1.1 on a sun4. Is there any fool proof way to tell
the state of a process, if the proc * is handy, during interrupt time?  (ie.
is the process alive, or has it died) Specifically, during a VME bus
interrupt.  Is the process structure locked in memory, and located at the
same VIRTUAL memory location?  

Thanks in advance,
 - Alex Waterman
From: wiesel@ipf.bau-verm.uni-karlsruhe.de (Joachim Wiesel Ext. 2316)
Newsgroups: comp.unix.wizards
Subject: Re:  SUN/HYUNDAI compatibility
Date: 7 Sep 92 08:10:59 GMT

We have  installed 2 HYUNDAI SparcStation-2 compatibles with GX boards
(From HYUNDAI) several weeks ago.

The CGSIX (GX)  has a large IC with a 'SUN GX' print on it. So obviously
they are using the SUN Chipset.

The boxes have been delivered with a CDROM-Pack each, containing
Solaris 1.0.1 (Sunos 4.1.2), OW3 and and the Software migration CD.

All binaries we have had ran without any problem.

Joachim

-- 

Joachim Wiesel, Institut fuer Photogrammetrie und Fernerkundung,
Universitaet  Karlsruhe, Englerstr. 7, D-7500 Karlsruhe, Germany
Phone: +49 721 608 2316                      Fax: +49 721 694 568
Internet: wiesel@ipf.bau-verm.uni-karlsruhe.de
Newsgroups: comp.unix.wizards
From: terry@thisbe.npd.Novell.COM (Terry Lambert)
Subject: Re: Question on COFF file format
Organization: Novell NPD -- Sandy, UT
Date: Fri, 4 Sep 1992 21:35:46 GMT

In article <Bu2AJL.43K.1@cs.cmu.edu>, dstewart+@cs.cmu.edu (David B Stewart) writes:
|> 
|> The header information gives the sizes of everything else, but not
                                             ^^^^^^^^^^^^^^^
|> for the string table.  However, to be able to allocate memory to
|> store the string table, I have to know its size, but that doesn't
|> seem to be available.

String table size = size of file from fstat() - total of everything else


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

---
Disclaimer:  Any opinions in this posting are my own and not those of
my present or previous employers.
From: royg@netcom.com (Roy H. Gordon)
Subject: Re: reliable signals under BSD / SVR4
Date: Thu, 10 Sep 92 19:10:54 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
X-Newsreader: Tin 1.1 PL5

> I've yet to find a real application that actually uses BSD's SIGIO.
> Has anyone seen one?
> 
> 	Rich Stevens  (rstevens@noao.edu)

The orignal Sybase server user mode kernel used SIGIO, I believe.

I wrote a server in 1987 for a division of TRW that used SIGIO.  Some time
ago I was told it was still in production, though modified.
Newsgroups: comp.unix.wizards
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Programmatic recgonition of sun floppy device
Organization: Weber State University  (Ogden, UT)
Date: Fri, 11 Sep 92 01:51:32 GMT

In article <1992Sep10.011122.23106@bellahs.com> gfong@bellahs.com (Gary Fong RD) writes:
>
>Wizards,
>  How can I programmatically determine if a given file descripter/pointer
>belongs to a floppy device on a Sun 4/40?  Detecting the file is special and
>raw, I can do.  But what function/macro will tell me it is a floppy device
>or not?

1.	If it's an fp, use the fileno() macro to get the fd.  WARNING:
	stdio on SunOS and some other systems can only support a char
	worth of fd's!
2.	fstat() the fd to get the major/minor numbers.
3.	opendir() on "/dev".
4.	Use readdir() to read each file name in "/dev".  If you run out, it's
	not a floppy, and go to #8.
5.	stat() the file to get major/minor.
6.	If the major/minor numbers both match, this is your device.  If
	not, go to #4.
7.	If the file name you stat()'ed begins with "fd", it's a floppy.  If
	not, then it isn't.
8.	closedir().

Or you could just recode your program so it knows what file names it opened
and whether they were for a floppy or not.  Save a lot of trouble.


					Terry Lambert
					terry_lambert@gateway.novell.com
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------
Newsgroups: comp.unix.wizards
From: parlier@jpl-devvax.jpl.nasa.gov (Randy Parlier)
Subject: RE: Dir Name Lookup Cache(dnlc) twiddling
Organization: Jet Propulsion Laboratory (NASA)
Date: Fri, 11 Sep 1992 21:14:40 GMT


>In article <1992Sep11.154227.7250@bristol.ac.uk> P.Smee@bristol.ac.uk (Paul Smee) writes:
>>Anyhow, I have a vague memory of hearing that there is a parameter
>>which can be fiddled when doing a vmunix build, which will increase the
>>space reserved by the system for caching information about open inodes
>>(or dirs, maybe?), and so might improve performance in an environment
>>where the system is doing not very much (computationally), but using a
>>lot of (small) files to do it.  Can anyone provide enough further info
>>to help us find and twiddle this, as that describes precisely the
>>situation this little box is in?
>>


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

writes:

>	You are talking about the directory name lookup cache (dnlc).
>There are several magic incantations effecting this, most requiring source:
>
> .......alot of good interesting stuff deleted....
>
>4.	If you ask for too much cache, the dnlc will be turned off when
>	the kernel alloc fails to get the memory.  If you have high
>	values for NPROCS or MAXUSERS, the cache size required will be
>	computed larger.  Too large, and caching goes away entirely
>	(instead of scaling back, like you'd expect).  Be careful that
>	you do not do this.  Since the flag is static to dnlc, you will
>	not be able to tell that this is happening other than by inference.



	Name to inode conversion uses the DNLC.  Some things that impair
	DNLC use are (a) long (greater than 14 character) names are not cached,
	(b)long symbolic link names increase pathname resolution time, and
	(c) deep directory structures require frequent cache access.

	If you don't have source code, about the only way you can change the
	size of the cache is modify the 'MAXUSERS' parameter.

	You can determine what your DNLC hit-rate is by using 'vmstat -s'.
	The last line reported by vmstat will say something like:

	 	78494 total name lookups (cache hits 95%  per-process)
		      toolong 74

	You could try modifying MAXUSERS and monitoring your cache hit rate
	using vmstat to try and tune your system the way you want it.

	Note that 'MAXUSERS' also modifies the size of your inode cache which
	can accelerate changes to file attributes.

	There is also a buffer cache for some kernel structures that is used
	for inodes and cylinder group information.  You can examine your 
	buffer cache hit rate by doing the following:

	echo "bstats,2/D" | adb -k /vmunix /dev/mem | sed -n -e '3p' |
	      awk '{printf("buffer cache hit rate: %8.2f%%\n",$3/$2 * 100.0)}'

	You can also use adb to change the number of pages used for buffer
	cache using the nbuf parameter:

		echo "nbuf?W0t100" | adb -w /vmunix

	Then reboot your machine.

	NOTE:  This all applies to the SunOS.  Totally irrelevant to Solaris
	I'm sure.

	Randy
	parlier@puente.jpl.nasa.gov
Organisation: Westfaelische Wilhelms-Universitaet, Muenster, Germany
Date: Tuesday, 15 Sep 1992 13:11:54 MES
From: Holger Klawitter, Informatik <KLAWITT@DMSWWU1A.UNI-MUENSTER.DE>
Newsgroups: comp.unix.wizards
Subject:    /etc/utmp trouble

Hi!

Since nobody in comp.unix.questions dared to answer my question ill try
this group. I am looking for a program to edit the /etc/utmp file
in order to change the ownership of the tty('s ?) of xdm.
(A patch into xdm would be even better.)
This tty should be given to the user; otherwise programs like printtool,
xlock(the MIT-one) or xvnews believe to belong to xdm.

Thanks in advance. (Answers via email, please)

Holger Klawitter


-----------------------------------------------------------------------------
holger@math.uni-muenster.de    Institut fuer Numerische Mathematik/Informatik
Tel.: (+49) 251 - 83 3754                 Westfaelische Wilhelms-Universitaet
                                    Einsteinstr. 62, D-4400 Muenster, Germany
From: pickens@bsu-cs.bsu.edu (David B. Pickens)
Newsgroups: comp.unix.wizards
Subject: HELP!!!!
Summary: Someone has forgotten our root password
Date: 14 Sep 92 16:58:09 GMT
Organization: Dept. of CS Ball State University Muncie IN

I need some help.  I am woking on a project setting up an AT&T
386WGS computer with AT&T UNIX 386 v3.2.2 and have run into
a problem.  Someone has either changed the root password or
the password file has been destroyed.

The root password was the only account installed as far as
I know (I inherited this project when it was half done) and
do not want to re-install unix if I possibly can.

Any suggestion?

You can reach me at (317) 285-1827 by phone.
Any help is appreciated!

David Pickens
.sig {none of this fancy stuff}

           e-mail: pickens@bsu-cs.bsu.edu
           voice: 317.285.1827

           Center for Information and Communication Sciences
           Ball State University
           Muncie, IN 47306
Newsgroups: comp.unix.wizards
From: gfong@bellahs.com (Gary Fong RD)
Subject: Programmatic recgonition of sun floppy device
Organization: Bell Atlantic Healthcare Systems
Date: Thu, 10 Sep 1992 01:11:22 GMT


Wizards,
  How can I programmatically determine if a given file descripter/pointer
belongs to a floppy device on a Sun 4/40?  Detecting the file is special and
raw, I can do.  But what function/macro will tell me it is a floppy device
or not?

Gary Fong
Bell Atlantic Healthcare System
gfong@bellahs.com
From: yedidya@bimacs.BITNET (Yedidya Israel)
Newsgroups: comp.unix.wizards
Subject: npasswd - a security hole
Date: 7 Sep 92 14:06:54 GMT
Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL


I'd like to report of a security hole caused by npasswd on a specific
circumstance. I don't like the whole community to shout on me for
revealing "secrets" to the crackers. So please tell me how to act, who
to tell ?

Some notes:

1. The fix is very simple.
2. Maybe it was already revealed before and I am not making anything
new. I don't remember it on the net.
3. I already told the author and we have different opinions whether
the fix should be internal to npasswd or external. So he refuses to
make the fix inside.
4. I sent Cert a description a month ago, no answer yet.

--
Israel Yedidya,         Phone:  972-3-5318682 or 972-3-5318407/8
System Administrator,   Fax:    972-3-5353325
Math & CS Department,   Email:  yedidya@bimacs.cs.biu.ac.il
Bar-Ilan University,    Bitnet: yedidya@bimacs
Ramat-Gan, ISRAEL.      Uucp:   ...!uunet!pucc.princeton.edu!bimacs!yedidya
If someone proves there is no God, I'll stop being religious!
Newsgroups: comp.unix.wizards
From: dickerso@fester.dell.com (Russell Dickerson - X2787)
Subject: Book Idea
Reply-To: dickerso@cpat.stortek.com
Organization: IO SpecialistsConsulting
Date: Mon, 14 Sep 1992 16:25:59 GMT

If anyone out there is looking for a good idea for a book.  I have a
suggestion:

    Unix FILE I/O

	Cover everything with lots of examples.  Explain the IOCTLs and
	FCNTLs and all that stuff.

Every book I have only gives a cursory overview of the subject.  I think 
there is enough here to make an entire book.

IF this book already exists, could someone e-mail me the title and ISBN
number?

Just think of the bandwidth we could save :^)
--
-----------------------------------------------------------------------
Russell Dickerson	Unix/X Consultant	IOSpecialists
(303) 673-5409 ---REPLY TO>>> dickerso@cpat.stortek.com <<<!!!!--------
For every vision, there is an equal and opposite Congressional revision.
Newsgroups: comp.unix.wizards
From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Intro to comp.unix.wizards - read before posting! (weekly announcement, last change: Jul 31 10:30)
Followup-To: poster
Organization: Rensselaer Polytechnic Institute, Troy NY
Date: Sun, 6 Sep 1992 10:00:40 GMT
Expires: Tue, 6 Oct 1992 10:00:23 GMT

Please take a moment to read this before posting to comp.unix.wizards
for the first time.

comp.unix.wizards is for in-depth discussion of advanced unix topics.

Elementary questions do not belong in comp.unix.wizards.  Although some
socket questions (for example) are appropriate, "How do I program with
sockets?" is not.

Crossposting to comp.unix.wizards and comp.unix.questions is
inappropriate.  Plenty of wizards read comp.unix.questions and answer
questions there.

A wizard is someone who can rewrite the entire system from scratch.  If
you are not a wizard, you are welcome to follow along the discussions
anyway.  You'll learn quite a bit about how UNIX works.  Caution: post
to wizards only if you are yourself a wizard.

For a list of answers to frequently asked questions (FAQ), please refer
to comp.unix.questions (or comp.lang.c, news.answers, etc...).  "How do
I delete a file whose name starts with a '-' ?" is an example of such a
question.  Please do not ask or answer FAQ's on the net.

Write to Unix-Wizards-Request@BRL.MIL (Subject: subscribe.  Any
message.) if you want a daily digest of this newsgroup mailed to you.

To unsubscribe from the unix-wizards mailing list, send mail to
Unix-Wizards-Request@BRL.MIL Subject: unsubscribe.  It is incorrect to
post such requests to the list, or to mail them to me, though others
may mistakenly do so.

E-mail comments about this posting are welcome.  From time to time I'll
summarize them.

Brian
--
These opinions are mine, and do not necessarily reflect those of any
academic department or computing service at Rensselaer.
Newsgroups: comp.unix.wizards
From: wmchung@eng.ie.cuhk.hk (chung wai man)
Subject: Async IO problem
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Sat, 5 Sep 1992 11:36:16 GMT

Hi!

I have some problem about Async IO. In the Unix Network Programming
by Stevens, on P.327, it has an example program telling how to make
async IO. It has the codes:

    sigblock(sigmask((SIGIO));
    while(sigflag == 0)
      sigpause(0);eee(0)
    
I wonder if these codes are necessary for Async IO. These codes seems that
the program will halt and wait for a signal. If it is so, it is just a
blocking socket waiting for something to receive.

My concept for Async IO is that it is like a software interrupt. The 
program can go along. When something has received, it will be interrupted
, doing a routine already registered for signal SIGIO, then
resuming.

I wonder if I am right. I hope that some experts can give comments to me.
I am so perplexed on these issues. Moreover, I also want to know if the 
select() system call is blocking or not.

Thanks!

I appreciate if you can email to me directly:
wmchung@eng.ie.cuhk.hk

Best Regards,
W.M. Chung
Newsgroups: comp.unix.wizards
From: jogulin@pub_one.fia.dmg.ml.com (Joseph Ogulin)
Subject: Re: Selecting a "safe" socket/port for a server - HELP!
Organization: The Rift from Here to There
Date: Fri, 11 Sep 1992 13:24:03 GMT

In article <1992Sep9.154514.22952@dickens.com>, lpc@dickens.com (Luis P Caamano) writes:
|> In article <1992Sep4.234715.23719@anasazi.com> duane@anasazi.com (Duane Morse) writes:
|> >We have a number of server programs which listen on sockets/ports
|> >to perform various transaction processing functions.  We'd rather
|> >not make these programs have super-user privileges in order to
|> >use privileged, low-numbered sockets/ports, because it's an adminstrative
|> >nuisance.
|> >
|> >Is it a safe strategy to use high-end port numbers for the listeners
|> >in order to avoid having client programs possibly grab the
|> >socket/port before the server?  If so, what is considered "high-end"?
|> >If not, is there an alternate strategy?
|> 
|> "high-end" is over 5000.
|> 
|> From W. R. Stevens, "Unix Network Programming," pg. 303-304
|> -----
|> reserved ports                             1-1023
|> ports automatically assigned by system  1024-5000
|> ports assigned by rresvport()            512-1023
|> -----
|> "The system doesn't automatically assign an Internet port greater than
|> 5000.  It leaves these ports for user-developed, nonprivileged servers."
|> 
|> Now, that's what the books says.  Most implementations follow this 
|> scheme, but that's not the law.

You might also want to check RFC 1060 - Assigned Numbers.

For those who do not know where to get them, they are available
from nic.ddn.mil.  There is an automated mail server (service@nic.ddn.mil)
where your commands are the Subject line.  They are also available through
anonymous ftp.

-- 
==> "You never f**king know the answer when it's important." --The Doctor <==
Joe Ogulin

jogulin@camelot.fia.dmg.ml.com		joe@monroe.pilot.dmg.ml.com
jogulin@apollo.stevens-tech.edu		gcs_jogulin@stevens.bitnet

Disclaimer:  The above article is solely my opinion and does not necessar-
ily reflect that of my employer.  The content is my responsibility alone.
Newsgroups: comp.unix.wizards
From: ksingh@passion.fia.dmg.ml.com (Kunal Singh)
Subject: Re: ASYNCHRONOUS FILE PRESENCE NOTIFICATION
Keywords: UNIX FILE
Organization: Merrill Lynch Debt Markets
Date: Fri, 4 Sep 1992 19:09:38 GMT

I was told that the problem posed by my previous post cannot be solved.  That the unix operating system does not have the necessary facilitites.  

So, I was thinking.  What If I mounted my special directory as an NFS file system.  Would that help ?