HDTenEightyP/NetNews huggingface dataset:
From: konopik@konopik.austin.ibm.com (Brad Konopik)
Newsgroups: comp.unix.aix
Subject: Re: RTS/CTS on the RS6000
Date: 2 Sep 92 05:04:37 GMT
Organization: IBM AIX Porting Center, Austin

In article <1992Jul18.133420.448@meiko.com> philip@meiko.com (Philip Gladstone) writes:
>RTS/CTS:
>	Accroding to IBM you have to put an 'stty add rts' in one of
>the rc.* files to get the rts line discipline. They (support) offered
>to send me a script that would do this to a list of ttys.

Yikes !  Don't dare put raw "stty add rts" commands in your rc.* files !
You're machine will hang like a big dog.  Austin's Level 3 TTY support has
a "work-around" that feeds a list of ttys to an "addrts" program which
opens the port with O_NONBLOCK so you won't hang.  You can hook THIS into
your rc.* files.

This will have to suffice until someone insists that an APAR be opened to
have this ability from smit (heck, they might have an APAR by now...call
and see).

>Two questions for the knowledgeable:
>
>1)	Why is the effect of 'stty add rts' permanenet -- even when
>	done by a user in their .profile to their own tty? Why doesn't
>	login / init / tty subsystem reset on logout/hangup?

RTS/CTS handshaking is not something that is in effect every 3rd login
and odd Tuesday !  It's usually something that you want permanent.
Don't blindly do it from a .profile though, get the workaround described
above.

>2)	Why is it so bad to do 'stty add rts' to your own tty when
>	logged in over the network (i.e. your tty is a psuedo-tty)?
>Philip

I haven't tried it, but this would probably hose flow control.  When
somebody wants to T_BLOCK the pty because input is backing up, the 
T_BLOCK request gets handled by the pacing discipline (aka flow-control
discipline) closest to the hardware (or by the hardware if the hardware
can handle it - ala 64-port).  Instead of an xon/xoff getting sent
across the net, the RTS/CTS discipline tells the pty driver to drop RTS,
which it does (and which does NOTHING to pace incoming data).  DISCLAIMER:
I haven't traced the code, but this is what I'd expect to happen (your
mileage may vary - especially if you use weird stuff like pty packet mode).

-- 
  tcpnet: konopik@konopik.austin.ibm.com  |  Brad Konopik
 ibmvnet: KONOPIK at AUSTIN               |  IBM AIX Porting Center, Austin
internet: konopik.austin.ibm.com!konopik@ibmpa.awdpa.ibm.com
   uunet: ..!uunet!ibmsupt!ibmpa!konopik.austin.ibm.com!konopik
Newsgroups: comp.unix.aix
From: sh0001@israel (Scott Hansohn)
Subject: AIX malloc and fault tolerance
Organization: Medtronic, Inc.
Date: Thu, 3 Sep 1992 13:51:56 GMT

In AIX, a nonzero return from malloc does not guarantee that the
memory requested has been allocated to the process.  Neither does
a successful launch of a program containing a large static buffer
guarantee that the buffer may be fully usable.

I was quite surprised to discover this in a recent conversation that
my program had with the malloc function.  The dialog when something
like this:
    program: Hey malloc!  I'd like a few megabytes please.
    malloc:  No problem, here you go -- it's at this address.
    program: Thanks very much.  I'll just go and fill this memory, and --
    malloc:  Just kidding!  I didn't really give you the memory.  And by
             the way, you're going to die if you continue to use it.  Ha!

It turns out that when my program went to fill in the memory, it was sent
a SIGKILL by AIX.  This was clearly a bug of some kind, so I reported it.
I sent a demo program that just malloc'd as big a buffer as it could get,
and then started zeroing a byte every 4k.  When I started up a couple of
them, they all died.  Some got bus errors, others were sent SIGKILL.

IBM's response is that this is working as designed!

IBM said that they don't allocate the paging space until it's needed, in
order to accommodate programs which ask for large amounts of memory that
they never use (some nonsense about sparse arrays).  I said that I need
to know if the memory is really there before I start using it.  They
referred me to some sample code.  If it weren't so sad, it would have
been funny.

The sample code contained a malloc wrapper that returns nonzero only if
the memory is actually there.  It sets up a handler for SIGDANGER, then
calls malloc.  If it returns nonzero (a virtual certainty) it proceeds
to touch pages of memory.  If it gets SIGDANGER, the handler longjmps to
code which "untouches" the memory, frees the successfully-malloc'd-but-
not-really-there buffer and causes the malloc wrapper to return zero.

I have questions:
    1) Has anyone seen a system where static memory may not really be
       there, or where a nonzero malloc doesn't guarantee the successful
       usage of the memory?
    2) Has anyone heard of SIGDANGER before?
    3) Read the POSIX standard for malloc from a "legal" standpoint.
       If IBM claims POSIX compliance, can I use this as a weapon?
    4) Even if I use this malloc wrapper everywhere in my own code,
       how do I deal with third-party code I purchase that calls the
       unwrapped malloc?
From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
Newsgroups: comp.unix.aix
Subject: Re: putuserattr() chomping memory
Date: 3 Sep 92 15:16:48 GMT
Organization: IBM AWD, Austin

In article <Btv3po.9sB@math.uwaterloo.ca> mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF]) writes:
>I have a program (yes, the same one as before) that uses frequent calls
>to putuserattr() and its friends.  It seems that after a large number of these
>calls, my page space is filling to the brim, and the program gets SIGKILLed
>by the kernel.

someone smarter than me asked:

	"does he ever do a close (enduserDB)?"

I assume this means that enduserDB() releases memory.

-- 
curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
My views are unrelated to those of IBM     |        Austin, TX
  Social Security isn't a retirement plan.  It's middle class welfare.
Newsgroups: comp.unix.aix
From: nsysdbj@straylight.acs.ncsu.edu (David Joyner)
Subject: Mwm under AIX 3.2
Organization: North Carolina State University
X-Newsreader: Tin 1.1 PL5
Date: Mon, 31 Aug 1992 12:52:53 GMT

Has anyone heard of any problems with mwm under AIX 3.2 and xdm?  It
is trashing the DISPLAY variable on all my systems.  $DISPLAY is set
to :0 before mwm executes.  Any shells started from mwm inherit a
trashed DISPLAY variable, usually 0:.46 or equivalent garbage.

If I execute twm instead of mwm the problem goes away.  I've tried
setting MWMSHELL to different things, including ksh and csh but the
behavior still persists.

--
David Joyner (david_joyner@ncsu.edu)
Unix Systems Programmer                            | Phone: (919) 515-2794  |
NCSU Administrative Computing Services             | FAX:   (919) 515-3787  |
Newsgroups: comp.unix.aix
Subject: Sendmail and Errors-to header
From: gordon@chmeds.ac.nz
Date: 3 Sep 92 10:39:40 +1300

Forgive me if it's too easy, but has anyone got an AIX sendmail.cf
which handles "Errors-To" headers correctly;

I want error reports to use the Errors-to header (if there is one) rather
than the From header, which is the current situation.

We know nothing about sendmail, so don't be worried about offending
through stating the obvious!

Thanks 
-- 
Gordon Findlay,  Computer Scientist, Christchurch School of Medicine
                 Nuclear-free New Zealand         !My life would be easier
Generic:  Gordon@CHMEDS.AC.NZ                     !to straighten out if I had
JANET:    Gordon%NZ.AC.CHMEDS@UK.AC.NSFNET-RELAY  !the source code, and
Paper:    PO Box 4345, Christchurch,  NEW ZEALAND !a good debugger.
Newsgroups: comp.unix.aix
From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore)
Subject: Re: LASER PRINTER and AIX?
Originator: usenet@midway.ecn.uoknor.edu
Date: Wed, 2 Sep 1992 14:06:39 GMT
Reply-To: dwight@geohub.gcn.uoknor.edu
Organization: Geosciences Computing Network, Univ. of Oklahoma

In article <9208291603.AA10520@ohc>, tilak%ohc@cmsa.Berkeley.EDU (Tilak Ratnanather)
writes:
|
|>I have a IBM laserprinter 4029 connected to a IBM RS6000/530H workstation.
|>The printer is 'permanentlt in PPDS mode. However when I want to print a
|>postscript or hpgl file I have to change the settings on the laser printer
|>before I run either
|>
|>	lpr -Pps  test.ps
|>
|>or
|>
|>	lpr -Pgl  test.gl
|>
|>What should I do to make it easy for other guys in my lab who are not
|>UNIX literate to be able to print a PS or GL or ASCII file whatever
|>setting the printer is initially set at.
|>
|>Any ideas or questions for clarification would be appreciated.
|>
|>Tilak Ratnanather DPhil		tratnana@eureka-gold.wbme.jhu.edu
|>Dept of Otolaryngology--Head & Neck Surgery
|>The Johns Hopkins University School of Medicine.
|>
I have the same configuration (with AIX 3.2). It was very easy to use SMIT to
to configure the printer. It allows you to create 4 virtual printers, one for
each file type that the printer accomodates (ASCII, PostScript, HPGL, PPDS).
Once these are set up, all you have to do is specify the queue in the print
request, and the printer backend (piobe) makes sure that the proper control
sequence is sent for the printer to change modes. I NEVER have to touch the
controls on the front panel of the printer. You can even set it up such that
if someone prints an ASCII file to the PS queue, it handles that case 
appropriately.
----------------------------------------------------------------------------
Dwight D. Moore
Geosciences Computing Network
University of Oklahoma

dwight@geohub.gcn.uoknor.edu (129.15.40.10)
These opinions do not necessarily represent the opinions of OU or the GCN.
----------------------------------------------------------------------------
Newsgroups: comp.unix.aix,comp.mail.mh
From: grossman@telly.tc.cornell.edu ()
Subject: mh 6.7.2 patches for aix 3.2.2
Organization: Cornell Theory Center
Date: Fri, 4 Sep 1992 21:17:43 GMT

I'd like to build mh 6.7.2 for aix 3.2.2.  Would someone mind sending/posting
patches that can be applied to mh 6.7.2 so that the distribution will then build 
under aix 3.2.2?

Thanks.
--
David Grossman                       grossman@theory.tc.cornell.edu
From: mbrown@testsys.austin.ibm.com (Mark Brown)
Newsgroups: comp.unix.aix
Subject: Re: Where are the #*&^$( MAN pages?
Date: 28 Aug 92 14:23:41 GMT
Organization: IBM Corp., Austin TX.

| mbeckman@mbeckman.com writes:
|> (comp.unix.aix), mbrown@testsys.austin.ibm.com (Mark Brown) writes:
|> Mel, there really *aren't* any man pages. The AIX 'man' command
|It turns out there *are* man pages. A procedure is documented in 

Generalization will kill me yet, You are correct, of course.

cheers,
mark

-- 
Mark Brown       IBM PSP Austin, TX.| Practice random acts
(512) 838-3926   VNET: MBROWN@AUSVMQ|          of kindness and
MAIL: mbrown@testsys.austin.ibm.com |                  senseless beauty.
DISCLAIMER: My views may be, and often are, independent of IBM official policy.
Xref: sparky comp.unix.aix:9154 bit.listserv.aix-l:1404
From: manmetha@gauss.rutgers.edu (Rajesh Malhotra)
Newsgroups: comp.unix.aix,bit.listserv.aix-l
Subject: Another LVM question. -- varyonvg in 'C'
Keywords: vg_major, pv_id -- where do I find these?
Date: 27 Aug 92 19:44:07 GMT
Followup-To: comp.unix.aix
Organization: Rutgers Univ., New Brunswick, N.J.


Fellow Aixers,

	Another LVM question. I am trying to implement

		varyonvg <vgname>

in 'C' and am having a hard time doing it. I thought the function
lvm_varyonvg would do it for me. I guess it would, but for that I need
vg_major, pv_id. I have no idea where to get these from. Has anyone in
netland implemented the lvm commands in 'C' (other than the use of
system :-). If so, I would appreciate some input on this matter.

	The commands I specifically need to implement are varyonvg, varyoffvg,
exportvg and importvg.

	Any and all responses/ideas appreciated.

Raj.
-- 
===============================================================================
  __  __     .
 /   __/    /                               Raj Malhotra.
/   ( /_   /                                voice : (908)613 4313. 
        __/                                 email : manmetha@gauss.rutgers.edu

===============================================================================
From: s913300@rubicon.bf.rmit.oz.au (Nga Tran)
Newsgroups: comp.unix.aix
Subject: HELP ON SCREEN3.2
Date: 31 Aug 92 11:01:54 GMT
Organization: RMIT Computer Centre


	I would appreciate if someone give me some guides about my problem:

	I had screen 3.2 working on my AIX V3.1 but after the upgrade 
	to AIX3.2 I can not compile it due to some errors during compilation.
	(I still can run screen because I still have the run file)

	 If anyone have the same problem or know the solution please drop
	 a few lines to me.


		Thank advance.
Newsgroups: comp.unix.aix
From: carol@phoenix.oise.on.ca (Carol Broderick)
Subject: aix 3.2 backup with full path names
Organization: Ontario Institute for Studies in Education
Date: 26 Aug 92 14:46:33 GMT

I want to use the backup command to do incremental backups. I also want to 
automate the restore from these backups. I need to be able to use a script to
restore multiple backups from a tape so I need to know what filesystem each
backup is from but it seems to only keep the relative pathname. I can't see the
name of the filesystem in the table of contents. Is the filesystem
name on the tape anywhere? Using incremental backups and backing up by
filesystem, is there a way I can get backup to use the full path names of
the files?  I don't want to use find -newer to give it file names unless I have
to. 

Thanks for any tips or suggestions.

Carol Broderick
From: malexand@aludra.usc.edu (Michael Alexander)
Newsgroups: comp.unix.aix
Subject: Re: AIX-Windows terminal emulation on PC?
Date: 23 Aug 1992 13:16:01 -0700
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: aludra.usc.edu
Keywords: AIXWindows, terminal, emulation, PC

tdavis@ux2.cso.uiuc.edu (Todd Davis - Invoice) writes:

>I don't know how off-the-wall this request is, so forgive me if it sounds
>insane. :-)

>I'm looking for a PC program that will allow the PC to run as a AIXWindows
>terminal. The PC is connected to the RS/6000 via a serial connection. (No
>modem involved - it's a direct connection.)

>I don't care if the program is a stand alone program or requires Microsoft
>Windows.

You can use any X-Windows server sofware for the PC. Among others, there are
X-Vision, Desqview-X, Win-X (under windows), ...
If you want to save $ and sacrifice some time you can use some BSD 4.3 from
the net with X11R5 which is free. 

Cheers,

Michael in Boston
Newsgroups: comp.unix.aix
From: jhardin@data.tamu.edu (James Hardin)
Subject: alloca in readline
Keywords: Gnu readline library
Reply-To: jhardin@data.tamu.edu (James Hardin)
Organization: Department of Statistics, TAMU
Date: Mon, 31 Aug 1992 22:43:22 GMT

  I have installed the Gnu readline library - or at least I think I 
did it correctly. However, when my program tries to link it in the
linker fails complaining of an unresolved reference to "alloca".
Seems like someone brought up this function before. Does anyone
have any idea why it is missing?

  Thanks,

  James


-- 
------------------------------------------------------------------------------
James Hardin           |  Department of Statistics  |  College Station, Texas
jhardin@stat.tamu.edu  |  Texas A&M University      |  USA              77843
Bell: (409) 845-9447   |  FAX: (409) 845-3144       |  Campus mail stop: 3143
------------------------------------------------------------------------------
From: dlj0@ns1.cc.lehigh.edu (DAVID L. JOHNSON)
Newsgroups: comp.unix.aix
Subject: Re: More on aXe
Date: 3 Sep 92 01:32:55 GMT
Organization: Lehigh University

6~
In article <1992Sep1.205343.3026@uts.cc.wayne.edu>, tom@uts.cc.wayne.edu (Thomas Richard Stevenson) writes:
>jhardin@data.tamu.edu (James Hardin) writes:
>
>>  I asked earlier for some help on getting aXe compiled under 
>>aix 3.2.1 and several people wrote and told me to comment out the
>>line: #define R5 and to try again. One person suggested that 
>>after he had done that the program compiled, but core dumped on
>>invocation. Well, that is what is happening to me. The program
>>has a segmentation fault in the 
>
>>  CopyShowMenuChildren()
>
>>routine in the AxeEditor.c file. 
>
>I'm seeing the same problem. What I saw was that the variable 
>CLASS(show_menu), which is the first parameter in CopyShowMenuChildren(),
>is set to zero. Zero is the default value for CLASS(show_menu), but it's
>also one of the possible return values from 
>
>   CLASS(show_menu) = 
>        MakeMenu(showButton, CLASS(menu_parent), MakeShowMenu, False)
>
>MakeMenu() is called to set CLASS(show_menu) during the init of aXe. My 
>c programming is very poor, and the routine MakeMenu() is a recursive 
>subroutine, which makes the problem of debugging aXe that much harder for 
>me. I'm hoping that with this extra information, that some c expert will 
>be able to find the bug within MakeMenu(), or one of the routines MakeMenu()
>calls.
>
	
These defaults are set to 0, but axe can't live with that.  You have to
load your Xdefaults for aXe or it'll dump on startup, because of these
impossible default settings.  I put mine in an .Xdefaults file, but
a directory with Axe.ad as in teh distribution will also work, if you 
tell aXe where to look in the Imakefile (It should work, anyway).
-- 
Sincerely,

David L. Johnson                    ID:  dlj0@ns1.cc.lehigh.edu
Christmas-Saucon Hall #14, rm 211        
Department of Mathematics

Lehigh University                   Telephone: 215-758-3759 (office)
Newsgroups: comp.unix.aix
From: bobs@moo.org (Bob Smith)
Subject: FTP Site
Reply-To: bobs@moo.UUCP (Bob Smith)
Organization: World Wide User Group (WWUG)
Date: Sun, 23 Aug 1992 21:34:17 GMT


Is there a site "reach-able" via FTP that carries AIX sources/binaries?

-- 

Bob Smith datanet|| WWUG                       IP 192.207.83.0
Modem Over Olympia,(moo.org)                   MDMOVROLY-CUP.PORTAL.COM         World Wide User Group (MIL)                    SBOB!AT&T.MAIL.COM
      
Newsgroups: comp.unix.aix
From: op@holmes.acc.Virginia.EDU (Olaf  Pors)
Subject: Restores of rootvg by inode
Originator: op@holmes.acc.Virginia.EDU
Keywords: restore, inode
Organization: University of Virginia
Date: Mon, 31 Aug 1992 17:12:12 GMT


  Responses to my previous post indicate that some folks
are interested in creating a customized bootable tape to
allow restores by inode of the root volume group.  You can
pick up boottape.1.tar.Z via anonymous ftp from
uvaarpa.Virginia.EDU in pub/rs6000 which contains
appropriate diffs, scripts, and documentation for AIX
3.2.2.

  I'm genuinely surprised that only a few people indicated
concern about a very serious deficiency in AIX:  it is
currently impossible, without local modifications, to back
up and restore your root volume group by inode.  This
means that unless you are willing to do a mksysb every
day, you can't have reliable daily backups of the root
volume group.  At our site, with 27 RS6000s being backed
up, and a set of 11 systems programmers independently
making changes to the root volume group, reliable daily
backups are quite important.  Is UVa the only site with a
concern for backups?  Have other sites found another
solution?  I'd sure like to hear about it.  Most of all,
I'd like to think that IBM is concerned about this and
doing something about it.  How about it, readers from IBM
- has this issue escaped the managers?  Is anything in the
works?  If not, who do I talk to?  So far, it appears to
me that AIX is continuing on its "full backups only"
course.

Olaf Pors
Academic Computing Center / ITC
University of Virginia
op@Virginia.EDU
804-924-0633
Newsgroups: comp.unix.aix
From: M15245@mwvm.mitre.org
Subject: MH mail REPL on AIX 3.2.1
Organization: The MITRE Corporation, McLean VA 22102
Date: Wed, 26 Aug 1992 18:37:48 GMT

I am having a problem with "repl" on AIX 3.2.1.  When we try to repl"y" to a ma
il message a piece of /etc/passwd gets inserted into the return address.  There
 doesn't seem to be any connection between the message and the part of the file
 that is inserted.  The result is that return replies don't make it back and so
me messages cannot be sent.  The problem is inconsistant but frequent.
 
Has anyone else had the problem or seen a fix (APAR)?
 
Newsgroups: comp.unix.aix
From: frank@poiro.enet.dec.com (Frank O'Neill)
Subject: Enabling/disabling root logins on a terminal?
Reply-To: foneill@clada.enet.dec.com
Organization: Digital Equipment Corporation
Date: Wed, 26 Aug 1992 14:06:12 GMT


Hi,

	Can anybody tell me how to mark tty lines as secure (i.e. allow
	root logins) on AIX.  The on and secure bits may be set in the
	/etc/ttys file on ULTRIX and in the /etc/ttytab file on SunOS.
	Neither of these files seem to exist on AIX.  The getttyent()
	routine gets a tty description file entry which has a format
	described in ttyent.h and includes the TTY_ON and TTY_SECURE
	bits.  What file does getttyent() access to find this information?

	It seems that when I use SMIT to add a TTY, it creates the file
	/dev/tty*, and I can set the Enable LOGIN bit for that TTY using
	the Change/Show characteristics of a TTY.  But how do you enable
	or disable the SECURE bit?

Thanks,

Frank


--
Frank O'Neill,
Digital Equipment International,
Galway, Ireland
Newsgroups: comp.unix.aix
From: mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF])
Subject: Re: putuserattr() chomping memory
Organization: Math Faculty Computing Facility, University of Waterloo, Canada
Date: Fri, 4 Sep 1992 14:11:51 GMT

curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806) writes:
>mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF]) writes:
>>I have a program (yes, the same one as before) that uses frequent calls
>>to putuserattr() and its friends.  It seems that after a large number of these
>>calls, my page space is filling to the brim, and the program gets SIGKILLed
>>by the kernel.
>
>someone smarter than me asked:
>
>	"does he ever do a close (enduserDB)?"
>
>I assume this means that enduserDB() releases memory.

I tried adding that after, say, every 20 users.  No improvement.

-- Murray S. Kucherawy ----------------------------------------+--------------
Software Systems Co-op, Math Faculty Computing Facility [MFCF] | This is a
University of Waterloo, Ontario, Canada                        | machine that
E-mail: mskucherawy@{math,watdragon}.UWaterloo.ca              | goes PING!
---------------------------------------------------------------+--------------
From: scotte@cdsac.uucp (L. Scott Emmons)
Newsgroups: comp.unix.aix
Subject: Re: Xload Equivalent
Date: 28 Aug 92 17:54:43 GMT
Organization: CableData (U.S. Computer Services), Sacramento, CA
NntpPostingHost: cdsac

In article <BtnF2n.IoF@news.udel.edu> jack@freezer.cns.udel.edu writes:
>On our Sun SPARCservers we have the program: xload which presents
>a load average graphical display.  I have been trying to find 
>an equivalent program on the 6000.  Anyone know of one?

Yes! You should find "xload" in "/usr/lpp/X11/Xamples/bin" if it has
already been built. The sources are in
"/usr/lpp/X11/Xamples/clients/xload", if it has not already been
built. It works great, and seems to be about the only way to get a
'real' load average in AIX, which otherwise insists that a load
average of 1 is a maximum. Grrrr.

 
			   L. Scott Emmons
		      CableData  Research Center
		     csusac.csus.edu!cdsac!scotte
From: hsg@duke.cs.duke.edu (Henry Greenside)
Newsgroups: comp.unix.aix
Subject: Is a CD-ROM fast enough for Info?
Keywords: CD-ROM, Info, speed
Date: 28 Aug 92 03:10:30 GMT
Organization: Duke University Computer Science Dept.; Durham, N.C.

I recently purchased a RS/6000 340 with a 1.2 GB disk
and debating how to maximize free disk space. I
understand that one can access all the Info files with
a CD-ROM and hence delete the copies of those files
from the disk.

What I would like to know is whether a CD-ROM is fast
enough to provide a reasonably responsive way of using
Info. Have people found this to be the case?

	Henry
Newsgroups: comp.unix.aix