HDTenEightyP/NetNews huggingface dataset:
From: pgainer@vnet.ibm.com (Patrick Gainer)
Date: Mon, 27 Jul 92 10:28:50 EDT
Newsgroups: comp.unix.aix
Subject: Re: A better dynamic loader???
Organization: IBM - Toronto Lab
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
            <1992Jul25.073355.7669@pencom.com>

In <1992Jul25.073355.7669@pencom.com> Mike Heath writes:
>In article <45628@shamash.cdc.com> pbd@runyon.cim.cdc.com (Paul Dokas) writes:
>>I need to be able to execute dynamically loaded modules from within another
>>program, but I can't seem to find the needed functionality anywhere.  What I
>>have right now is a program that uses load() to pull in a module and then it
>>calls the function pointed to by the return value of load().  This works
....
>
>You could either use loadquery() to get the module names, or better yet,
>at the time of each load() call (though, you'll still have to account for
>the shared libraries loaded at exec() time), open the file manually and
>grab all the exported symbols and their addresses (Loader symbol table).
>You'll have to "relocate" the addresses using the value returned by load().
>
>For performance reasons, you'll want to retain all these values for
>multiple calls, plus, you'll want to memory map the object files
>when you scan the Loader Symbol Table.
>
>--
>Mike Heath        Pencom ...  We're not just headhunters anymore.

An easy way to do this is to use load(), as Mike says, then to call nlist()
which returns offsets of functions within a single object module, then
calculate the function addresses from the offsets returned by nlist() and
the entry point returned by load().

I happen to have some code which does exactly what you want - I'll send it
to you if you'd like.

Patrick Gainer
pgainer@vnet.ibm.com
Newsgroups: comp.unix.aix
From: mberkley@visions.uvic.ca (Mike  Berkley)
Subject: Equivalent of BSD Cbreak mode in POSIX line discipline?
Reply-To: mberkley@sirius.uvic.ca (J. Michael Berkley)
Organization: University of Victoria
Date: 28 Jul 92 14:17:49

Does anybody know what the equivalent of BSD cbreak mode is when using
POSIX line discipline?

We have a set of old Fortran routines that try to read a character at
a time from the terminal for user interaction.  Under AIX 3.1.5, we
used (this is simplified):

	stty disp bsd
	stty cbreak -echo
	fortstuff

Under AIX 3.2, the BSD line discipline seems to be broken (we either
don't get a character, or we start losing line feeds, etc.  Since it
will take time for IBM to fix BSD line discipline, we would like to
know if there is a way to get cbreak behaviour out of POSIX line
discipline.

I have tried -icanon, but it doesn't seem to persist, that is -icanon
applies to the shell in which "stty -icanon min..." is invoked, but
has no effect on the Fortran program.

Thanks


Mike Berkley
Barrodale Computing Services
mberkley@visions.UVic.CA
From: silverio@cass.ma02.bull.com (Brian Silverio)
Newsgroups: bull.sys.aix,comp.unix.aix
Subject: Re: Changing name associated with a process
Date: 22 Jul 92 23:44:01 GMT
Organization: Bull World Wide Information Systems Inc.

kelvin@thed.uk22.bull.com (Kelvin J. Hill) writes:


>Frankly, so am I! On the DPX2/500 it does not update the global name but only
>the programs private copy of the name pointer. I suspect this is a blatant
>violation of the systems security....   Does anyone elses 'ps' see the new
>name value or is it private to this process group?

Quite the contrary.  This should improve security.  You can now hide
the details of the command and its arguments from the world at large.
One of the "known security problems" is with programs like Oracle that allow
a password to be entered on the command line.  The password is then visible
to everyone on the machine.
This technique, properly used, can correct the problem.
-- 
____________________________________________________
Brian D. Silverio      b.silverio@bull.com
From: tim@osiris.usi.utah.edu (Tim Burns)
Newsgroups: comp.unix.aix
Subject: Fortran/C timing
Date: 29 Jul 92 21:32:46 GMT
Reply-To: tim@osiris.usi.utah.edu (Tim Burns)
Organization: School of Engineering and Applied Sciences, UCLA
Originator: tim@osiris.usi.utah.edu

To: pollack@ucunix.san.uc.edu
Subject: Re: FOrtran utilities
Newsgroups: comp.unix.aix
Organization: School of Engineering and Applied Sciences, UCLA
Cc: 
Bcc: 

Hello,

Here is a C program that you can call from fortran.  You might want 
to use "MCLOCK*0.01 = seconds" though in your fortran program, because it 
is easier to use.  On the 3090 you would use "CLOCKX = seconds".  

As far as date goes, the gettimeofday struct should have the date in 
it somewhere.

Hope this helps

Tim Burns


-----------------cut me!-----------------------------------------
#include <sys/time.h>

/*  Purpose:  Fortran-callable interface to gettimeofday routine. */

int mptime(int *sec, int *usec)
{
   extern int gettimeofday();

   struct timeval t;
   struct timezone tz;

   int stat;

   stat = gettimeofday(&t, &tz);

   *sec = t.tv_sec;
   *usec = t.tv_usec;

   return(stat);
}
-----------------cut me!-----------------------------------------
-- 
     *__T__*               No matter how deeply I go down into myself
       _i_                 my God is dark, and like a webbing made
      */m\*                of a hundred roots that drink in silence.
                           		--Ranier Maria Rilke 
-- 
     *__T__*               No matter how deeply I go down into myself
       _i_                 my God is dark, and like a webbing made
      */m\*                of a hundred roots that drink in silence.
                           		--Ranier Maria Rilke
From: petros@athina.cc.uch.gr (Petros Dourouklakis)
Newsgroups: comp.unix.aix
Subject: Console dead after installation....
Date: 21 Jul 92 08:11:29 GMT
Organization: Computer Science Department, University of Crete HELLAS
X-Newsreader: Tin 1.1 PL3

Hello there ppl...
I have faced a very strange problem in installing a rs6k 320 box to 3.2
My console behaved normal for all the installation of the bos. After
that i got the message saying remove tape from /dev/rmt0 turn key to normal
and press enter to reboot. I did all this. Machine booted normally
but after i got the message Multi-user initialization complete
the console was dead. I changed a lot of terminals but i could not communicate
with the machine. After that i booted from floppies and added a terminal
in order to login to the machine. I got a flashing 888 as i was adding
the second terminal . I rebooted the machine and the terminal was added.
Since today the console displays messages only at boot-time until
the message Multi-user initialization complete is displayed. This seems
to me like a hardware error but i cannot figure out what it can be.
Can anyone help ?
							/P
From: rudy@chukran.austin.ibm.com
Newsgroups: comp.unix.aix
Subject: Re: need help with SPEC 008.espresso benchmark on IBMR2-560F
Keywords: SPEC, 560F
Date: 21 Jul 92 17:36:14 GMT
Reply-To: chukran@austin.vnet.ibm.com(Rudy Chukran)
Organization: IBM Advanced Workstation Division

In article <54377@mentor.cc.purdue.edu>, abe@mace.cc.purdue.edu (Vic Abell) writes:
|> Has anyone run the SPEC 1.0a or 1.2b benchmark 008.espresso on an R2 560F
|> and gotten a number as small as the one IBM reports in the SPEC Newsletter?
|> (I know, I know, I should be running C{INT,FP}92, but my March order has
|> yet to produce a tape by virtue of some bumbling here.)  The best elapsed
|> time I get is 64.0 seconds, while IBM reports 54.3.  Since I can reproduce
|> the other nine results, I don't think some time gobbling process is lurking
|> in the background and snickering while it inflates my run times.  I use
|> the "-O" optimization that IBM reports in the March, 1992 SPEC Newsletter.

This is a wild guess:  Did you try linking these statically?  The AIX FAQ
tells how.   Static linking sometimes speeds up cpu bound processes.
If espresso uses libc or libm, or other libs a lot, this might help.
*********************************************************************
Rudy Chukran                |       EMAIL:            
IBM AIX Technical Consulting| RSCS: CHUKRAN at AUSTIN 
11400 Burnet Rd.            | AWDnet:rudy@chukran.austin.ibm.com    
Internal ZIP 2830           | internet: chukran@austin.vnet.ibm.com
Austin, Texas 78758         |
*********************************************************************
Newsgroups: comp.unix.aix
From: scotte@cdsac.uucp (L. Scott Emmons)
Subject: Re: Need help with mail under AIX 3.1 (or actually I guess it is 3.2).
Date: Tue, 28 Jul 1992 15:25:12 GMT
Organization: Cable Data (U.S. Computer Services), Sacramento, CA
Keywords: AIX, sendmail, MX Records...

In article <8t@byu.edu> ecktons@sirius.byu.edu (Sean Eckton) writes:
>in our nameservice.  The problem I have found is that the RS-6000 doesn't  
>recorgnize MX records!  Does anyone know how to fix this?  I also had the  
>same problem with an IBM RT running AIX 2.2.1.  Did IBM just decide to not  
>support MX records even though in the nameservice documentation it talks  
>about them?  I don't get it!

Take a look at the sendmail configuration file in "/etc/sendmail.cf". You
may need to uncomment the OK tag. On our release of AIX 3.2 this tag came
commented out by default. Once uncommented, this line should be:

	OK MX

to support MX records.


Hope this helps!
-- 
			   L. Scott Emmons
		     csusac.csus.edu!cdsac!scotte
Xref: sparky comp.unix.aix:8017 bit.listserv.aix-l:1227
From: ronald@lowt.phys.tue.nl (Ronald Aarts)
Newsgroups: comp.unix.aix,bit.listserv.aix-l
Subject: PC/NFS daemon version 2 on a RS/6000 ?
Summary: Has anybody successfully ...
Keywords: PC/NFS
Date: 21 Jul 92 09:55:34 GMT
Followup-To: comp.unix.aix

I tried to install the new version of the PC/NFS daemon on our RS/6000
(Aix 3.1.5). I changed the Makefile according to the README-file that
was included on my PC/NFS 4.0 floppies:
  CFLAGS= -g -DUSER_CACHE -DWTMP -DUSE_YP -D_BSD
But it goes wrong with the first file:
           cc -DUSER_CACHE -DWTMP -DUSE_YP -D_BSD -c pcnfsd_svc.c
         405 |                         getrlimit(RLIMIT_NOFILE, &rl);
               ..................................a...................
   a - 1506-045: (S) Undeclared variable.
Is there somebody out there who successfully compiled this daemon on a
RS/6000 ???
--
Ronald Aarts
Eindhoven University of Technology  | Internet: ronald@lowt.phys.tue.nl
Physics Department, P.O. Box 513,   |    Phone: +.31.40.474213
5600 MB Eindhoven, The Netherlands  |      Fax: +.31.40.453587
Newsgroups: comp.unix.aix
From: weiserb@Informatik.TU-Muenchen.DE (Bernhard Weiser)
Subject: MENU progam for AIX 3.1 RS/6000
Originator: weiserb@hphalle5a.informatik.tu-muenchen.de
Organization: Technische Universitaet Muenchen, Germany
Date: Mon, 27 Jul 1992 10:16:45 GMT





>>I am looking for a simple menuing program written in 'C' or a shell
>>script. It should be able to display submenus and run unix commands
>>within the menu.
>
>>It should be ported to the RS/6000 running AIX 3.1.5.
>

Try programing SMIT.

I know, that HAITEC GmbH offers a program which makes it easy
to create a menu for SMIT.

You only have to create a simple text file with the menu structure 
wanted

You get the full functionallity like the build in SMIT menu.

Call, write or fax to the following adress:

HAITEC GmbH
Reitstrasse 4
8212 Uebersee
(West-Germany)

Tel.: 08642/6161
Fax.: 08642/6119

( I don't kown the number for West-Germany. You have to append the number given
above to the telephone number for Germany.


				Berni
Newsgroups: comp.unix.aix
From: stritzi@Physik.TU-Muenchen.DE (Peer Stritzinger)
Subject: unsupported printer at RS/6000
Keywords: printer rs/6000 aix
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Date: Tue, 28 Jul 1992 16:09:33 GMT

I already posted this some time ago, but the answers were no help for my
problem:

I'm trying to connect a NEC P6 to an IBM RS/6000. Some DOS machines use
the P6 as network printer (via PC/TCP lpd-access), so I need transparent
printing (people use Winword and ATM, so almost everything printed is
graphics).

When I print to a file on the DOS machine, put the file to the RS/6000
and say 'cat file > /dev/lp0' I get what I want.

I have configured virtual printers (starting from ASCII, HPII) with the
_d=p (passthrough) parameter. The printout looks fine up to a few lines,
then it gets scrambled.

What am I doing wrong?

--
Peer Stritzinger
Phone: +(49)8141-90613
Internet: stritzi@physik.tu-muenchen.de
Newsgroups: comp.unix.aix
From: pim@cti-software.nl (Pim Zandbergen)
Subject: Re: Reading on RS600 8mm tape written on SUN sparc
Organization: CTI Software BV, The Hague, The Netherlands
Date: Sat, 25 Jul 92 12:41:40 GMT

kevin@shady.UUCP (Kevin Smith) writes:

>:>Make sure the IBM drive's block size is set to 1024 or 0
>:>(variable).

>The tapes were most likely written with an 8k block size.  They can be read
>by using SMIT to change the block size on the drive to match the size the
>tapes were written with (not necessarily 1024) or by changing the block
>size to zero (as C.H.  writes).

You can read (and write) a tape in any blocksize regardless of
how it's set in SMIT using tctl, like in
	tctl -p 5120 -b 1024 -f /dev/rmt0.1 | tar -xvf -

Our 8mm drive is set to blocksize 512, the installation release
notes say this is required for mksysb. But this make your 8mm drive
into a 1.1 GB drive! 

So I use tctl with cpio tar and backup to make sure I can go to 2.3GB.
-- 
Pim Zandbergen                      domain : pim@cti-software.nl
CTI Software BV                     uucp   : uunet!mcsun!sun4nl!ctisbv!pim
Laan Copes van Cattenburch 70       phone  : +31 70 3542302
2585 GD The Hague, The Netherlands  fax    : +31 70 3512837
From: sm@cel.co.uk (salim mehta)
Newsgroups: comp.unix.aix
Subject: 8mm tape drives
Date: 23 Jul 92 13:33:59 GMT
Distribution: comp
Organization: Crosfield Electronics Ltd.

I've seen a lot of discussion about 8mm tape; but not much about the Exabyte
drive itself.

We use Exabyte drives and often get tape jams, infact 30% of our field returns
involve tape jams. Are we unlucky, or do other people experience this as well?

We use a mix of tape brands including:

ExaTape
SONY data grade
SONY video grade
Fuji data grade

The drives are cleaned every 2-4 weeks with the Exabyte cleaning tape. We have
been advised by Exabyte that tape jams are caused by poor loading technique!
They suggest the following procedure:

1) check there is NO tape slack
2) load tape so that it is fully seated into the loading tray
3) close door by pushing *top left hand corner*
4) make sure that the door latches on first attempt
5) if door does NOT latch first time remove tape and repeat from step 2

Any feedback on this topic would be appreciated.

AdvThanksance

--
 ----------------------------------------------------------------------------
 Salim Mehta                                 Crosfield Electronics Ltd
                                             Three Cherry Trees Lane
 Tel:  +44 442 230000  x3450                 Hemel Hempstead
 Fax:  +44 442 232301                        Hertfordshire  HP2 7RH  England
 ----------------------------------------------------------------------------
 sm@crosfield.co.uk, sm@cel.uucp, sm@cel.co.uk, ...!{mcsun,ukc,uunet}!cel!sm
 ============================================================================
From: tmcconne@sedona.intel.com (Tom McConnell)
Newsgroups: comp.unix.aix
Subject: Re: Xlock program for Xstation 120s and 130s.
Date: 29 Jul 92 17:51:56 GMT
Reply-To: tmcconne@sedona.intel.com
Organization: Intel Corporation
Originator: tmcconne@sedona


In article <9207291559.AA21125@ucbvax.Berkeley.EDU>, MCOG@CHVM1.VNET.IBM.COM ("Michael A. Coggins") writes:
> > tim@osiris.usi.utah.edu (Tim Burns) asks about xlock....
> 
> The version of xlock shipped with the AIX 3.2 AIXwindows works on
> my x station 120.  However, keep in mind that xlock can potentially
> put a SERIOUS drain on your network.
> 
> Mickey Coggins  mcog@chvm1.vnet.ibm.com
>                 +41-1-436-7274 or +41-1-436-8525 (fax)
>                 Hohlstrasse 560, CH-8048 Zurich, Switzerland

  The version of xlock you want is the one that accepts the "-remote" option.
This allows a "remote" host to lock one the Xstation's display.

  As far as network load, if you want fancy graphics I agree. However, you can
always run xlock with "-mode blank", which just locks the display, no network
load at all.

  What I really want, of course, is to have IBM provide xlock as a local client
(loaded when the X server is loaded at Xstation boot). Then I could do all the
fancy graphics I want with no network load, since xlock would be running on the
Xstation, not on a remote host :)

    Cheers,

    Tom McConnell


-- 
 Tom McConnell          |     Internet: tmcconne@sedona.intel.com
 Intel, Corp. C3-21     |     Phone: (602)-554-8229
 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
 Chandler, AZ  85226    | their right mind would claim them.
From: woan@soda.berkeley.edu (Ronald Woan)
Newsgroups: comp.unix.aix
Subject: Re: Xlock program for Xstation 120s and 130s.
Date: 29 Jul 1992 16:52:22 GMT
Organization: U.C. Berkeley, CS Undergraduate Association
Distribution: world
NNTP-Posting-Host: soda.berkeley.edu
Keywords: Xlock Xstation

It's pretty easy to hack the standard contrib xlock to work on X Stations.
Just change the authentication routines of main in xlock.c.

-- 
+-----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
From: marca@void.ncsa.uiuc.edu (Marc Andreessen)
Subject: Re: AARRRRGG!  No one can answer this question!!!
Organization: University of Illinois at Urbana
Date: Thu, 23 Jul 1992 04:53:53 GMT

ddt@ccwf.cc.utexas.edu (David Taylor) writes:
: Oh god, I want to kill someone.

Well, that's a productive start.

: Were the IBM developers so boneheaded as to *not* memory
: map the display? 

Believe it or not, many modern graphics displays aren't memory-mapped.

In any case, the Guard Dogs have a valid question: why would you want 
to do this?  Why not open a window?  The whole point behind modern displays 
and their underlying software support is that you don't _have_ to directly
work with screen memory to get something done.  What functionality do you 
hope to gain by doing this?

Marc

-- 
Marc Andreessen
Software Development Group
National Center for Supercomputing Applications
marca@ncsa.uiuc.edu
Newsgroups: comp.unix.aix
From: scotte@cdsac.uucp (L. Scott Emmons)
Subject: Re: 3.2 BSD Line discipline...
Date: Wed, 29 Jul 1992 15:16:15 GMT
Organization: Cable Data (U.S. Computer Services), Sacramento, CA

In article <92210.105840JGROVER@MAINE.MAINE.EDU> JGROVER@MAINE.MAINE.EDU (John Grover) writes:
>I have this set of programs written to use bsd line discipline. The easiest
>way out for me was to  issue stty disp bsd in a shell script before running
>the programs and then stty disp posix afterwards. Now that I've "upgraded"
>to 3.2, after I issue the command, nothing I type is echoed to the screen,
>and carriage returns don't seem to work. Line feeds do, so if I issue
>something like ls -l, the output stair steps down the screen.

Try doing an "stty sane" afterwards...Sounds like you are being left in
noncannonical mode after the program finishes...If an "stty sane" works,
make sure it sets everything properly, as "sane" mode is just a best guess
at reasonable settings. If it still isn't right, you will want to look at
the man pages for "stty" and figure out exactly what modes you want, and
explicitly set them.

Hope this helps.
-- 
			   L. Scott Emmons
		     csusac.csus.edu!cdsac!scotte
Newsgroups: comp.unix.aix
Subject: FOrtran utilities
From: pollack@ucunix.san.uc.edu (Steven Pollack)
Date: Wed, 29 Jul 92 19:21:01 GMT
Organization: University of Cincinnati

I am looking for two simple fortran or fortran/c subroutines which will 

1) return the cpu time used by a process in seconds.

2) return the ascii date as a character variable.

Someone has just got!!!! to have these laying around.  Please?


_______________________________________________________________________
Steven K. Pollack               |
University of Cincinnati        |
Department of Materials Science |   I notice that you are still
  & Engineering                 |   using polymers!
498 Rhodes Hall  ML#12          |     - Lt. Commander Montgomery Scott
Cincinnati, OH 45221-0012       |       U.S.S. Enterprise
spollack@ester.mse.uc.edu       |
________________________________________________________________________
From: rick@ransom.msc.cornell.edu (Rick Cochran)
Newsgroups: comp.unix.aix
Subject: Re: Export list limit
Date: 24 Jul 92 19:43:24 GMT
Organization: Cornell Materials Science Center

In article <PRENER.92Jul24024437@prener.watson.ibm.com>, prener@watson.ibm.com (Dan Prener) writes:
|> You could use netgroups as a work-around.  There may be some limit there,
|> too, as to how many entries are allowed in a netgroup, but that would
|> not be a problem since netgroups can be nested.
|> --
|>                                    Dan Prener (prener@watson.ibm.com)

There was a bug with AIX NIS such that netgroups didn't work.  My impression
was that this was still broken at 3.2.  Does anybody have it working and
if so at what AIX version level?

Of course, you can reach the 1024 character per NIS record "drop dead"
level pretty quickly with fully qualified host names too.

-- 
|Rick Cochran		  607-255-7223		     rick@msc.cornell.edu|
|Cornell Materials Science Center		     rick@crnlmsc2.bitnet|
|E20 Clark Hall, Ithaca, N.Y. 14853	     cornell!msc.cornell.edu!rick|
Newsgroups: comp.unix.aix
From: rick@ransom.msc.cornell.edu (Rick Cochran)
Subject: pty's stolen from/given to rlogin sessions randomly
Keywords: AIX 3.2 rlogin pty
Organization: Cornell Materials Science Center
Date: Thu, 23 Jul 1992 16:54:14 GMT

We have been experiencing these problems more and more frequently lately:

Symptom 1:
Communication with an rlogin session abruptly terminates and cannot be
restored.  Often this occurs just after starting a daemon (e.g. xdm, dqs)
which forks and exits.

Symptom 2:
Just after rlogging in I find that some old process is writing output to
my rlogin session!

Has anybody else seen these problems?

-- 
|Rick Cochran		  607-255-7223		     rick@msc.cornell.edu|
|Cornell Materials Science Center		     rick@crnlmsc2.bitnet|
|E20 Clark Hall, Ithaca, N.Y. 14853	     cornell!msc.cornell.edu!rick|
Newsgroups: comp.unix.aix
From: tim@osiris.usi.utah.edu (Tim Burns)
Subject: Xlock program for Xstation 120s and 130s.
Originator: tim@osiris.usi.utah.edu
Keywords: Xlock Xstation
Reply-To: tim@osiris.usi.utah.edu (Tim Burns)
Organization: School of Engineering and Applied Sciences, UCLA
Date: Wed, 29 Jul 92 14:43:03 GMT

Hello,

A number of users at our site have expressed interest in an "xlock"
program that will lock up remote Xstations.  I have tried the X11R5
xlock and one I picked up via ftp, but neither will work on an 
Xstation.  I am wondering if anyone out there knows of one that will
lock up an Xstation.

Thank you,

Tim Burns

-- 
     *__T__*               No matter how deeply I go down into myself
       _i_                 my God is dark, and like a webbing made
      */m\*                of a hundred roots that drink in silence.

Newsgroups: comp.unix.aix