HDTenEightyP/NetNews huggingface dataset:
From: rstevens@noao.edu (W. Richard Stevens)
Subject: Re: Problems with keepalive under SunOS 4.1.X
Summary: default time is 2 hours
Keywords: networking, SunOS
Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
Date: Mon, 4 Jan 1993 12:13:31 GMT

>  int s = socket(AF_INET, SOCK_STREAM, 0);
>  int keepalive = 1;
>  setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &keepalive, sizeof(keepalive));

This code is correct.

>I make connection to another machine, block on a read, and unplug the other
>machine ... and nothing happens. Any ideas?

The default is 2 hours.  Even after this 2 hour period, it'll take
up to 10 minutes for the sender of the keepalive probes to determine
that it can't get through to the other end.

You can change this *on a per-kernel basis* (i.e., not on a per
connection basis) on Suns by changing the appropriate variables
in the file /usr/share/sys/netinet/in_proto.c and rebuilding the
kernel.

	Rich Stevens  (rstevens@noao.edu)
Newsgroups: comp.unix.programmer
From: mre@phx.mcd.mot.com (Mark Enstone)
Subject: Re: Which Child?
Keywords: child fork
Organization: Motorola Computer Group, Tempe, Az.
Date: Wed, 6 Jan 1993 22:38:23 GMT

In article <C0Fyxx.ABn@cerc.wvu.wvnet.edu> abmg@cerc.wvu.wvnet.edu (Aliasghar Babadi) writes:
>Hi,
>	I have a program which forks several child processes. If one
>child is terminated. Is there a way to findout which child has been  
>terminated? Thanks.

wait(2)

"and if a child process stopped or terminated prior to the call on wait,
return is immediate."

"If wait returns due to a stopped or terminated child process, the process
ID of the child is returned to the calling process. Otherwise, a value of
-1 is returned and errno is set to indicate the error."

Therefore, what you're after is the return value from wait (&stat_loc)
system call.

All sorts of other good stuff are returned in stat_loc. May I perhaps suggest
RTM on the wait(2) system call.

You're welcome,

- mark
A.k.a.                              ,,,
                                   (o o)
+------------------------------oOO--(_)--OOo-----------------------------------+
| Mark Enstone                       |                                         |
| Motorola Inc.,                     | uucp : mre@phx.mcd.mot.com              |
| Fault Tolerant Computing           | phone: (602) 438 3284                   |
| 2900 South Diablo Way, DW220       | fax  : (602) 438 3836                   |
| Tempe, Arizona 85282, USA          | icbm : mid-southwestern US desert       |
+------------------------------------+-----------------------------------------+
Newsgroups: comp.unix.programmer,comp.unix.questions,comp.unix.wizards
From: croley@r2d2.mcc.com (David Croley)
Subject: Re: Anybody got rz/sz to work on their UNIX system?
Organization: MCC Experimental Systems Lab
Date: Tue, 12 Jan 1993 20:35:24 GMT

I use the sz/rz combo under SunOS 4.1.x.  I've used two it in two different
Sun systems, only one of which I actually compiled the code.  It worked with
little to no trouble that I remember.  Make sure that the software on the
other end knows what the default packet length is.  Other than that, I'm
of little help because I haven't had to fool with it since I got it working.
BTW, the other end of my setup is usually a MacLC running Zterm 0.9.
My man page says that it's revision level Delta dated 4-22-89.


-- 

 ------------------ - - - - - - - - - - ------------------------------------
| David T. Croley | MCC - Exp. Sys. Lab | Gopher surfer extraordinaire      |
| croley@mcc.com  | UT Austin, Texas    | The Net is the ultimate game-room |
 ------------------ - - - - - - - - - - ------------------------------------
Newsgroups: comp.unix.programmer,comp.unix.questions
From: garath@engin.umich.edu (Scott Grosch)
Subject: References for nlist access "codes"
Date: Tue, 12 Jan 93 21:11:01 EST
Organization: University of Michigan Engineering, Ann Arbor
Summary: Looking for nlist n_names
Keywords: nlist


Does anyone have a list of values that can be used with the nlist()
system call?  The only two I know of are _boottime and _avenrun.  If
people would be willing to send me something like the followin I could
compile a list of names which could be used and repost if desired.
For example, these are the only ones I know:

-------------------------------------------------------------------------
n_name     |   read() type     | description           | quirks
-------------------------------------------------------------------------
_avenrun   |   long [3] on sun | Read the load average | Divide by FSCALE
           | double [3] others |                       | if on a sun.
-------------------------------------------------------------------------
_boottime  | struct timeval    | Read machine boottime | None
-------------------------------------------------------------------------

I am mainly looking for the n_name to use in order to scan running
processes, such as a w or ps command does, but all info would be useful.
-- 
Scott Grosch                              Internet: garath@engin.umich.edu
Programmer                                        Bitnet: user7a4b@umichum
Computer Aided Engineering Network                  University of Michigan
From: slzvq@cc.usu.edu
Newsgroups: comp.unix.programmer
Subject: difference between mswindow & xwindow?
Date: 6 Jan 93 13:14:46 MDT
Organization: Utah State University

my problem is about what is the difference between xwindow &  mswindow.
I have not any idea about it? 



Newsgroups: comp.unix.programmer
From: davids@shell.portal.com (David - Schenfeld)
Subject: QUERY: shmget() on a Convex?
Organization: Portal Communications Company
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 4 Jan 1993 06:28:13 GMT

I am trying to port a program I have written that uses shared memory
via the shmget, shmctrl, shmat, and shmdt calls to a Convex.
Are there functional equivalents under their OS?

Thanks,
David.

Newsgroups: comp.unix.programmer
From: bad@flatlin.ka.sub.org (Christoph Badura)
Subject: Re: Beginner question about chdir()
Organization: Guru Systems/Funware Department
Date: Mon, 4 Jan 1993 11:44:13 GMT
Keywords: chdir cd environment

In <1992Dec30.165109.29838@netcom.com> ian@netcom.com (James Ian McGowan) writes:
>How can i use the chdir() call in a program and have it affect
>the current directory of the parent process?

You can't. The parent process must execute a chdir(2) call itself.

>  Is there some
>tricky way of telling the shell (csh in this case) to do a cd?

You could tell the parent to the it's own chdir() but this requires
cooperation from the parent.

>If this is a FAQ, i apologise.  Pointers to sources of
>information about how a child process can affect the environment
>of its parent would be very welcome.

Look into the comp.unix.questions FAQ, it covers this topic at length.
-- 
				Christoph Badura  ---  bad@flatlin.ka.sub.org

AIX is a better... is a better...  is a better... OpenSystem.
					IBM Rep at GUUG Symposium '92
Newsgroups: comp.unix.programmer
From: melchers@Harpo.Chemie.FU-Berlin.DE (Bernd Melchers)
Subject: format of floating points?
Organization: Free University of Berlin, Germany
Date: Tue, 5 Jan 1993 10:45:32 GMT

How are doubles coded by the ieee standard?

Cray has its own standard, i.e.:
0.44658343480 is coded as 3f d0 e5 a4 70 a9 b3 85, i.e.
0011 1111 1111 1111 1110 0100 1010 0110
^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
  037777              mantissa: 1/2 + 1/4 +1/8 + 1/64 +
 -040000
 -------
 -077777(oct) = -1(dec)
 exponent

1001 0101 0111 1110 1100 1101 0111 1110
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+1/512+1/2048 +1/32768 +... = 0.893096(dec)

--> 0.893096(dec) * 2^-1 = 0.446548
                           ========


On a iris4d (big endian), the same double gives (ieee standard)
3f dc 94 d2 af d9 af b1, i.e.
0011 1111 1101 1100 1001 0100 1101 0010 1010 1111
1101 1001 1010 1111 1011 0001
where is mantissa and exponent and how are they coded?

thanks for helping
	Bernd

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Bernd Melchers                   | melchers@chico.chemie.fu-berlin.de
Freie Universitaet Berlin        | Lieblingsessen: Pizza, aber nur
Institut fuer Kristallographie   |              selbstgemachte...
Takustr. 6                       |              und ohne Tierkadaver
D 1000 Berlin 33                 |
Earth                            |
Tel.: 0049-30-8383612            |
                                 |
Please replace battery pack, attach external power,
or system will be shutdown in 10 seconds.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: chetanm@visionware.co.uk (Chetan Mistry)
Newsgroups: comp.unix.programmer
Subject: IOCTL routines under Interactive UNIX
Date: 4 Jan 93 16:52:01 GMT
Organization: VisionWare Ltd., Leeds, UK
X-Newsreader: Tin 1.1 PL4


Does anybody no anything about the IOCTL routines, especially
under Interactive UNIX. I have created a socket and I'm trying
to change the socket so that it is non-blocking using FIONBIO. 

  eg.

   int s, block =1;

   s = socket(AF_INET, SOCK_DGRAM, 0)            
 
   ioctl(s, FIONBIO, (char *) &block);

The ioctl call never terminates (does anybody no why ?).

Any help will be appreciated. Thanks
  
Chet
Newsgroups: comp.unix.programmer,comp.os.msdos.programmer,comp.sys.mac.programmer
From: asu@server2.panther.mot.com (Russell Trotter)
Subject: Looking for PD or Commercial Xmodem/ymodem/zmodem package
Organization: Motorola Panther Project, Chandler, AZ
Date: Fri, 8 Jan 1993 17:23:43 GMT

We are looking for Xmodem/Ymodem/Zmodem protocol package for Sun Unix 
workstations, IBM PC's and, Macintosh's.  Anybody know of
them in existence.  It doesn't have to be specific to each platform,
i.e. I don't mind doing a little porting to any of those as long
as I've got some library.  Thanks.

Russ
From: Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel)
Newsgroups: comp.unix.programmer
Subject: asynchronously connecting a socket
Date: 5 Jan 1993 16:53:43 +0100
Organization: INSA Informatique (Grasp), Lyon, France
NNTP-Posting-Host: grasp1.univ-lyon1.fr

The connect(3n) system call when used aynchronously will return -1 with
errno set to EINPROGRESS.  A write select(3n) will indicate completion
of the connect.  Is this an option or is it mandatory ?

In order to check return codes, I used a small loop:

      while (connect(f->f_file, &ip, sizeof ip) < 0) {
         fprintf(stderr, "errno = %d\n", errno);
         sleep(1);
         continue;
      } /* endif */

This returns:

errno = 150 (EINPROGRESS)
errno = 11 (EAGAIN)
[many other errno = 11]
Broken pipe

and the application dies.  Is this behavior illegal (I know it does not
make much sense to have such a loop).  Shouldn't I get a EALREADY
instead of the EAGAIN ?

Also, in a select loop.  Once select indicates a write even for that
file description.  How do I check the connection ?  Redo a connect()
and except errno to be either EISCONN to indicate success, any other
result to indicate failure ?

-- 
Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
Xref: sparky comp.unix.programmer:5904 comp.unix.internals:2115
From: shuenn@tora.swdc.stratus.com (serene3)
Newsgroups: comp.unix.programmer,comp.unix.internals
Subject: Re: RPC descriptions RFC1014 and RFC1057 still up to date ?
Date: 12 Jan 93 17:45:10 GMT
Organization: Stratus Computer, Inc., San Jose, CA

In article <1992Dec29.130633.29392@cs.tu-berlin.de> ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
>Hi,
>
>I am new to RPC programming and I am using the RFC1044 (XDR) and RFC1057
>(RPC) as documentation. Those RFC's were written in 1987 and 1988.
>So I am wondering wether they are still valid ?
>
>Apart from that, can anybody recommend other documentation for RPC and
>XDR ? I had a look at Stevens' Network book, but he only gives a short
>overview.
>
>
>Thanks for any info, Ernst.
>--
>
>-----------------------------------------------------------------------------
>Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
>-----------------------------------------------------------------------------

If your site have Sun WS, you might want to seek out Sun's "Network
Programming Guide" for SunOS 4.1.

-shuenn
Newsgroups: comp.unix.programmer
From: bill@bilver.uucp (Bill Vermillion)
Subject: Re: How to print 2pages on 1paper?
Organization: W. J. Vermillion - Winter Park, FL
Date: Tue, 5 Jan 1993 04:43:29 GMT

In article <1992Dec31.183118.29509@debbie.cc.nctu.edu.tw> u7911093@cc.nctu.edu.tw (Erik Wang) writes:


>	and by the way, Is there any program which can print text data on
>two side of one paper?

That's not a software problem.  You need something like and HP Laser
Jet IID, IIID, or similar, that have duplex paper printing.

It takes a sheet from the tray, prints it, puts it into the manual
loading tray, sucks it back in upside down, and prints the other side.


-- 
Bill Vermillion - bill@bilver.oau.org  bill@bilver.uucp
                - ..!{peora|tous|tarpit}!bilver!bill
Newsgroups: comp.unix.aix
From: scott@austin.ibm.com ()
Subject: Re: Where has all my memory gone?
Originator: scott@porter.austin.ibm.com
Date: Tue, 5 Jan 1993 15:33:14 GMT
Organization: IBM Austin


In article <ESULZNER.92Dec26145005@cadev5.intel.com>, esulzner@cadev5.intel.com (Eric Sulzner) writes:
> It gets used for I/O paging.
> And it never gets put back on the free list.
> But it's still available to apps that ask for it.

This information is misleading at best.

> 
> adding RSS in ps output is the only way I've found.  It's not perfect,
> but it gets pretty close.  IBM couldn't come up with a better way (I
> asked).

The RSS information displayed by the 'ps' command is the sum of the resident
pages in the process private segment (data, stack) and the pages in the process
text segment (executable).  The pages in the text segment never require paging
space and so the RSS information does not tell you where all the paging space is
being utilized.

The 'ps' command only reports paging space utilized by processes.  Other uses
of paging space include the kernel, kernel extensions, shared libraries and
shared memory segments.  If you can get your hands on the performance tool
called 'svmon' it provides a detailed report of paging space usage that includes
all of these.

> 
> you might want to alias
> ps aux | sed 1d | awk '{sum += $6} \
> END	{print sum}
> (or something like that, I'm not at work) to something, or put it in a script.
> 
> In article <1hikh3INNn5g@crcnis1.unl.edu> james@engrs.unl.edu (James Nau) writes:
> 
>    Does anyone know a way to tell exactly where all one's memory
>    is being used at?  I've got two 520's running 3.2.1 which have
>    been up and running since July 9.  That's fine, but I think
>    I'm slowly loosing memory (I mean on the RSs :)  Both 'lsps -a'
>    and monitor seem to agree that I've got 60MB of paging, and about
>    52MB used leaving 8 or so free.  I would normally not argue, but
>    running with 8MB free is getting awfully tight.  So, I add up
>    the outputs of size from 'ps aux', 'ps -kel'.  They seem to both
>    add up to around 32 MB in use.  So, where is the other 20MB
>    of virtual memory?  It sure would be nice to have it back :)  This
>    is even after running slibclean.  What I want, is a way to find
>    out who/what is using that 20MB of memory.  If something is using
>    it productively,  that's OK, but I still want to know where it is!
> 
>    I could probably cure all this by rebooting, but, I usually view
>    that as the last response on the two servers.  Besides, as they
>    say "I shouldn't HAVE to do that".
> 
>    Thanks!
>    James
> 
>    james@engrs.unl.edu
> 
>    College of Engineering
>    University of Nebraska--Lincoln
>    W181 Nebraska Hall
>    Lincoln, NE  68588-0501
> --
> Eric Sulzner	esulzner@scdt.intel.com
-- 
Scott L. Porter                    IBM AWS Austin / AIX Kernel Development
                                   Internet: scott@austin.ibm.com
Newsgroups: comp.unix.aix
From: woan@exeter.austin.ibm.com (Ronald S. Woan)
Subject:  cpio: 0511-032 Cannot copy from the diskette.
Date: Fri, 8 Jan 1993 06:50:19 GMT
Reply-To: woan@cactus.org
Organization: Austin School of Hardknocks

In article <2ZJ2wB1w163w@connect.com> root@connect.com (Niles Mills) writes:
>I'm trying to get a directory from a tape that is labelled as being
>"CPIO format" via the following command lines:  (label yields no
>clues as to density)

You might try using smit to set the tape device to variable block size
(0).



-- 
+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan                       woan@cactus.org or woan@vnet.ibm.com +
+ other email addresses             Prodigy: XTCR74A Compuserve: 73530,2537 +
Newsgroups: comp.unix.aix
Subject: Re: process numbers 
From: Craig_Anderson@kcbbs.gen.nz (Craig Anderson)
Date: 10 Jan 93 21:46:34 GMT
Organization: Kappa Crucis Unix BBS, Auckland, New Zealand

In article <C0Ly9M.nB6@austin.ibm.com> jfh@greenber.austin.ibm.com (John F Hau
>The process ID is a covert storage channel.  If AIX used sequential 
>pids two co-operating processes could pass information back and forth 
>to each other with the following little piece of code - 
 
But it's only a *covert* channel if you don't have auditing available 
for the fork() system call.  It would have been much more pleasant to 
leave the PIDs alone and allow auditing of fork() for the security 
insane. 
 
Besides, regardless of the selection of PIDs i can still use use fork() 
[not to mention millions of other things] as a covert channel. 
 
If process A does a bunch of forks to send a 1, and doesn't do any 
fork()s to send a 0, then process B, which sits in a loop counting how 
many fork()s it can do per unit time, still knows what A is sending 
(since B will be able to do less forks() when A is also fork()ing). 
 
Regardless of how many other processes are out there doing their own 
fork()ing, the channel will still have a signal to noise ratio greater 
than zero and that is good enough for transmitting error free data. 
 
-Craig 
-- 
Craig Anderson 
craig%abstract@kcbbs.gen.nz
From: jcburt@gatsibm.larc.nasa.gov ()
Newsgroups: comp.unix.aix
Subject: Re: xlfortran version 2.3
Date: 12 Jan 1993 22:47:38 GMT
Organization: NASA Langley Research Center
NNTP-Posting-Host: gatsibm.larc.nasa.gov

In article <1iva7tINN4s4@unidui.uni-duisburg.de> michael@hal6000.thp.Uni-Duisburg.DE (Michael Staats) writes:
>shapiro@sputter1.fullerton.edu writes:
>
>
>
>>	I just received xlfortran version 2.3.  We currently are using
>>version 2.2 on our model 320.  Is there anything important that I should
>>know before installing this upgrade?
>
>Yes.
>The optimizer crashes on some code that could be compiled with 2.2.
>Since I'm not a Fortran programmer I can't tell you details,
>try to send a mail to egbert@hal6000.Uni-Duisburg.DE.
>Michael
>--
>Michael (Spirou) Staats, Student of Theoretical Physics, Uni-GH Duisburg 
>email: michael@hal6000.Uni-Duisburg.DE
>
It also had a bug with the optimizer that would cause it to compile and
run fine, but it wouldn't update certain varibles within an decrement loop...
it would calculate the value of the variable properly the first time through
the loop, but then after the loop terminated, the variable would still have
the initial value...worked fine w/o optimizer and fine under xlf 2.2...
IBM sent us a bug fix that fixed it...hopefully your version will already
have the bug fix in it...

John
From: amelcuk@buphy.bu.edu (Andre Melcuk)
Newsgroups: comp.unix.aix
Subject: Laser Jet III
Date: 5 Jan 93 22:27:43 GMT
Organization: Boston University Physics Department


   Please, please, please! How can I print PostScript to a Laser Jet III
with a PostScript II cartridge (PostSript Plus) attached to the parallel
port. I have it configured as a hplj3 printer on lp0. I then try the postscript
virtual printer, the hplj2 virtual printer (no lj3 virtual printers to be found). It sortof prints pcl commands in pcl mode. It definitely prints ASCII
in pcl mode. It sometimes even prints header pages (where on EARTH do they come from? I disable them everywhere. Yes, I followed the header page thread. Just a little flame) in PS mode. But nothing else. PLEASE HELP ME!

Andrew Mel'cuk    amelcuk@dirac.clarku.edu
From: 1k1mgm@kuhub.cc.ukans.edu (Christopher Gunn)
Newsgroups: comp.unix.aix
Subject: Composite video output for Gt's?
Date: 11 Jan 93 14:51:18 CST
Organization: University of Kansas Academic Computing Services

Does there exist for RS/6000 Gt4x (or Gt[N]) graphics adaptors such
a thing as NTSC/composite video output hardware (the sort of thing
that on Silicon Graphics' tubes lets you send a quadrant of the
screen to a VCR or broadcast-type monitor)?

Supposedly, there are glossy brochures out from IBM about AIX
and multimedia;  I'm asking my sales person but thought the net
might have information also, especially for 3rd-party gear (if there
is any).

Appreciate any help.

Christopher Gunn	Molecular Graphics and Modeling Lab
SPAN--KUPHSX::GUNN	Department of Medicinal Chemistry, Malott Hall
913-864-4428 or -4495	University of Kansas, Lawrence, KS  66045
Newsgroups: comp.unix.aix
From: av@cygnus (Alexander Vrenios)
Subject: Re: Building X11R5
Summary: Try setting LANG=C
Organization: /etc/whereiamat
Date: Mon, 04 Jan 93 15:59:07 GMT

We had a similar problem with AIX 3.2 LEX: invalid character
on the last line. Changing the environment variable LANG=C
corrected it. (No: we don't know why!)
Newsgroups: comp.unix.aix
From: shair@barolo.cso.uiuc.edu (Bob Shair)
Subject:  CONTINUED QUALITY IMPROVEMENTS FOR AIX SNA SERVICES/6000  
Reply-To: shair@vnet.ibm.com
Organization: IBM Champaign
Date: Wed, 6 Jan 1993 21:55:30 GMT

This is from an IBM distribution list I follow.  SNA services users may
wish to order the updates.  ... Bob


 CONTINUED QUALITY IMPROVEMENTS FOR AIX SNA SERVICES/6000

 January 6, 1993

 A new update that continues to focus on quality and product improvements
 is now available for AIX SNA Services/6000. This update represents a
 continuation of the commitment to the quality improvement of the product
 that began with the availability of the comprehensive Maintenance,
 Quality and Usability update in July, 1992.

 This update is available for:

    - AIX SNA Services/6000 Version 1.1 for use with AIX Version 3.1 Base
      Operating System Maintenance level 7 (sometimes referred to as
      2007) or later.

    - AIX SNA Services/6000 Version 1.2 for use with AIX Version 3.2 Base
      Operating System.

 Included in this update are:

    - Additional fixes to reported field problems and APAR's.

    - Additional product enhancements resulting from continued customer
      feedback.

    - Ability to configure attachments (links) to be automatically
      restarted following deactivation (Auto Restart).

    - Interruptible API support required for the Encina PPC Gateway
      product that has been available since December, 1992.

 Ordering Information for Product Updates:

    - Customers with AIX SNA Services/6000 Version 1.1 installed,
      order:
             1) PTF# U411901 for Tape media
             2) PTF# U411902 for Diskette media

    - Customers with AIX SNA Services/6000 Version 1.2 installed,
      order:
             1) PTF# U411903 for Executables
             2) PTF# U411904 for Messages

             Note: Media type, Tape or Diskette, is to be specified at
                   order entry.

--

Bob Shair                          shair@vnet.ibm.com
Scientific Computing Specialist    SHAIR@UIUCVMD (bitnet)
IBM Champaign