HDTenEightyP/NetNews huggingface dataset:
From: lpc@dickens.com (Luis P Caamano)
Subject: Re: Looking for info on writing a BACKEND.
Date: Wed, 2 Sep 1992 14:08:22 GMT
Organization: Dickens Data Systems, Inc.

In article <BtwL40.y4@watserv1.uwaterloo.ca> hesse@watserv1.uwaterloo.ca (BJ Cameron - DCS) writes:
>
>I am looking for documentation on writing a backend program for the RS6000.
>The PS/2 version of AIX had an great description in the Tech Ref Vol 2
>(appendix B).  I was wondering if anyone has come across similar info for the
>RS6000?
>Thanks... Bri

Try Infoexplorer, "Printer Backend Overview for Programming."
-- 
---------------------------------------------------------------------------
Luis P. Caamano                    |         lpc@dickens.com
Dickens Data Systems, Inc.         |         uunet!dickens.com!lpc
Atlanta, GA                        |         (404) 475-8860
---------------------------------------------------------------------------
If I think I know it all, I'll stop learning. -myself
The more I learn, the more I know I know nothing. -somebody else
Xref: sparky comp.unix.aix:9214 comp.unix.admin:4795 comp.unix.misc:3438
From: mcramm@dct.ac.uk
Newsgroups: comp.unix.aix,comp.unix.admin,comp.unix.misc
Subject: Re: Reading Sun 8mm tape on RS6000
Date: 31 Aug 92 13:38:18 +0100
Organization: Dundee Institute of Technology

In article <1992Aug28.022854.18481@cactus.org>, craig@cactus.org (Craig T. Anderson) writes:
> In article <1992Aug27.121808.238@dct.ac.uk> mcramm@dct.ac.uk writes:
>>I'm trying to read an 8mm (Exabyte) tape written using tar on a Sun4
>>with (I think) the tape drive set to variable byte per block in hardware.
>>It was written to /dev/nsrmt0 using SunOs4.1.x tar.
>>
>>The problem is that I'm trying to read it on our RS/6000 (Mdl 530) and can't
>>get anything to read bytes from the tape. I've tried using smit, chdev [...]
> 
> No matter what the block size the tape was written with you can read it
> with the following command (works only on 8mm drives):
> 	chdev -l rmt0 -a block_size=0
> 	dd if=/dev/rmt0 bs=256k | tar -tvf -
> 
> -Craig
> -- 
> Craig Anderson     craig@cactus.org

Thanks to everyone else who sent me suggestions. It turns out that we had a
faulty tape. The method given above (chdev.....) *does* work, though the dd 
is redundant - simply using tar is quite effective.

Sorry to have wasted bandwidth.
 Angus M. Marshall, 
 e-mail: MCRAMM@UK.AC.DCT.CC.VAXB           
         MCRAMM@UK.AC.DCT.CLUS                                 // 
         amarshal@uk.ac.dund.mcs                              //
 Phone: (+44 382) 308000 ext. 2265 or (+44 382) 308600    \\ //
                                                           \X/
".. and in the grove, by gate and hill, midst  merry  throng  and  market
clatter -  stood  the  Hall  of  the Mountain Grill, where table strain'd
'neath loaded platter "                             
(from the legend of Beenzon Toste - Hawkwind)      

Newsgroups: comp.unix.aix
From: rob@dinner.asrc.albany.edu (Robert D. Seals)
Subject: Assembly long multiply for mandelspawn, anyone?
Organization: SUNYA - ASRC, Albany, NY
Date: Wed, 26 Aug 92 17:52:58 GMT


Hey,
Has anybody figgered out the POWER assembly code to implement
the fixed point multiply code for mandelspawn? The idea -
like that used in fractint - is to use hardware fixed point
arithmetic to speed up the inner loop multiplies in the
mandelbrot code. Here is the code (note it's compiled
with GCC - the 'inline' keyword) for 68000 and VAX...

#ifdef mc68000
static inline unsigned long fracmult(x,y) unsigned long x,y;
{ unsigned long high;
  asm("mulsl %3,%1,%0" : "=d" (x), "=d" (high): "0" (x), "d" (y));
  return((high<<LEFTBITS) | (x>>RIGHTBITS));
}

static inline unsigned long fracmult2(x,y) unsigned long x,y;
{ unsigned long high;
  asm("mulsl %3,%1,%0" : "=d" (x), "=d" (high): "0" (x), "d" (y));
  return((high<<(LEFTBITS+1)) | (x>>(RIGHTBITS-1)));
}
#endif /* mc68000 */

#ifdef vax  /* VAX code due to Jussi Maki, thanks */
typedef struct 
{ unsigned int i0;
  unsigned int i1;
} int64;

static inline unsigned long fracmult(x,y) unsigned long x,y;
{ int64 r;
  asm("emul %1,%2,$0,%0" : "=g" (r) : "g" (x), "g" (y));
  return((r.i1<<LEFTBITS) | (r.i0>>RIGHTBITS));
}

static inline unsigned long fracmult2(x,y) unsigned long x,y;
{ int64 r;
  asm("emul %1,%2,$0,%0" : "=g" (r) : "g" (x), "g" (y));
  return((r.i1<<LEFTBITS+1) | (r.i0>>RIGHTBITS-1));
}
#endif /* vax */

I hate it when sparc ipcs on the network are faster than my machine...

rob
-- 
------
Crazy, man.
rob@dinner.asrc.albany.edu
From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
Newsgroups: comp.unix.aix
Subject: Re: Need assorted low level helps... -security questions really-
Date: 3 Sep 92 22:40:31 GMT
Organization: IBM AWD, Austin

I sent your questions to a really smart aix security guy.
This is his response:

In article <199209011555.AA12231@cc.ysu.edu> PHD985W@SMSVMA.bitnet ("Patrick H. Day, Systems Programmer") writes:
>1.  Where do you set an inactivity timeout variable?  If a user has been
>    inactive for over 30 minutes, I would like the 560 to drop them.

A rather hard thing to design actually. If we had a real login server
which handled all logins, this would be easy. But we don't and so
it's not. 

	(note from curt - i'm not aware of any unixes that do)

You'd have to modify all the things that do logins - telnet,
rlogin, tsm.  Some shells try to do this, but this can always be
defeated if you're persistent enough.
You also have to clarify what is meant by a login? cron sessions, eg?
Something which has a real control tty?


>2.  Is there a small script file or routine that can be run to limit
>    users to only one login session?  We have users that have accounts
>    logging in on two X-stations to allow those who don't have accounts
>    to use the machine.  IBM gave us a cute little script file that
>    doesn't work.

It's not clear what he wants. (How can someone without an account use the
machine?) But you could always do this as an authentication method which
would simply look at the utmp file to see if the user is already logged
in, and return failure if so. Every user would have to have this 
authentication method in addition to their normal one. 

	(note from curt - secondary auth mechs are already supported in
			aix, so u can already do this)

>3.  I would like to write a script file that would compare the /etc/passwd
>    file and the /etc/security/lastlogin file to give me a user's name,
>    account id and the last date logged in.  Is there a program to
>    unscramble the time_last_login in /etc/security/lastlogin?

I didn't do the lastlogin stuff, but I thought this was like the 
BSD command which could ask for the last login time of an arbitrary
user. If so, this shouldn't be real hard.


>4.  Is there a way to match a users id with the IP address they came in on?

	You could do this by adding an ioctl to the pty driver.

	(note from curt - rlogind already does this doesn't it?  it tells
		you via 'last' or 'who' what machine someone is logged in
		from, rite?)
-- 
--
curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
My views are unrelated to those of IBM     |        Austin, TX
 FICA doesn't help the poor.  It mostly goes to old people with incomes >$40k.
From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
Newsgroups: comp.unix.aix
Subject: Re: Is a CD-ROM fast enough for Info?
Date: 28 Aug 92 16:03:43 GMT
Reply-To: mbeckman@mbeckman.com
Organization: Beckman Software Engineering
X-Mailer: uAccess LITE - Macintosh Release: 1.5v5


In article <714971429@macbeth.cs.duke.edu> (comp.unix.aix), hsg@duke.cs.duke.edu (Henry Greenside) writes:
> 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?
> 

I find it fast enough for graphically-based info (although it helps if you
launch info right away after booting and leave it running). It's not instantaneous,
though, and you get considerably better response time with it disk-resident
(at a cost of about 50MB). However, if you use the man-page feature of info
(type 'man aixterm' for example), as I want to do for quick text-only reference,
you can end up waiting as long a five minutes to get a response!  This is
because InfoExplorer linearly searches the formatted database and extracts
raw text, then converts that to troff. 

So I've extracted my man pages to disk, but use the graphic database off
the CD when I need it. The procedure is somewhat documented in /usr/lpp/bos/bsdadm,
but that has errors in it.  I'll be uploading a complete corrected procedure
to this forum soon.

So I think the best solution, and a reasonable one from a disk space perspective,
is to use the CD, but have the relatively modestly sized (10MB) text extracts
on your HD for instant access via man, apropos, whatis, etc.

  -mel

_____________________________________________________________________
| Mel beckman                  |    Internet: mbeckman@mbeckman.com |
| Beckman Software Engineering |  Compuserve: 75226,2257            |
| 1201 Nilgai Place            |       Voice: 805/647-1641          |
| Ventura, CA 93003            |         Fax: 805/647-3125          |
|______________________________|____________________________________|
 "Internet is big.  Really Big.  It gives the idea of
  infinity much better than infinity itself." 
   (with apologies to Douglas Adams)
From: ccvj@misty.latrobe.edu.au (Vicki Jordan)
Newsgroups: comp.unix.aix
Subject: Re: FTP, etc running very slowly!
Date: 25 Aug 92 23:12:54 GMT
Organization: La Trobe University


In article <1992Aug25.071024.2621@mintaka.lcs.mit.edu> mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
>
>In article <17bp3gINNj9p@agate.berkeley.edu> dcook@garnet.berkeley.edu
>(Dan Cook) writes:
>>
>> I have noticed since I upgraded to AIX 3.2 that all my network
>> interfacing type of processes [...] run very slowly...
>
>Once again:
>
>  mycroft@hal [1]; lscfg -l ent0 -v


...[ stuff deleted]


>Usually you'll get several hundred errors like this:
>
>  ERROR_ID TIMESTAMP  T CL RESOURCE_NAME  ERROR_DESCRIPTION
>  DB3E3DFD 0825030792 P H  ent0           CSMA/CD LAN COMMUNICATIONS LOST
>  ABB81CD5 0825030792 T H  ent0           COMMUNICATION PROTOCOL ERROR
>
>per day (or hour).  This is definitely a sign that something is wrong.
>
>
>Speaking of which, I get these under 3.2 with the above hardware, even
>though I haven't actually observed any problems.  But that's another
>story (I think)...
>
>-- 
> \   Charles Hannum, mycroft@ai.mit.edu
> /\  White heterosexual atheist male (WHAM) pride!

We are running 3.1 at ROS level 28 and are getting many of these errors,
plus terrible nfs performance.

Vicki Jordan
--
-- 
Vicki Jordan                               ccvj@misty.latrobe.edu.au
Computing Services
La Trobe University 
Bundoora Vic 3083 Australia
Newsgroups: comp.unix.aix,bit.listserv.aix-l
From: marc@watson.ibm.com (Marc Auslander)
Subject: Re: Shared Libraries lose under AIX 3.1/X11R5
Date: Tue, 1 Sep 1992 18:12:03 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center, Hawthorne, New York

I don't know about the X build - but maybe I can help with the library side.

First, try dump -H module.  This will show the the libpath and the
library names that will be looked for at load time.  I would expect
that you have the absolute path names in your build tree of the
libraries, rather than the /usr/lib/... locations.

The -Z option can sometimes be used to make cross compiles work.  For
example, if the libraries are supposed to be in /usr/lib/X11.5 at run
time, but are in /mypath/usr/lib/X11.5 at build time,  the options

-L /usr/lib/X11.5 -Z /mypath will get things right.
--


Marc Auslander       (IBM)<marc@marc.watson.ibm.com>      914 784-6699
                     (Internet)<marc@watson.ibm.com>
Newsgroups: comp.unix.aix
From: betty@funky.austin.ibm.com ()
Subject: SMIT and chjfs
Organization: IBM, Austin
Distribution: usa
Date: Fri, 28 Aug 92 15:01:46 GMT

In regard to the question about using a +nnn value for the size in Change
File System size...  This is a known problem due to a limitation in SMIT.
There is no estimation for a correction date.
From: tnr@csd.cri.dk (Torben N. Rasmussen)
Newsgroups: comp.unix.aix
Subject: automount and direct mounts
Summary: problem with direct mount and automounter update 404456
Keywords: automount direct mount
Date: 28 Aug 92 10:25:50 GMT
Organization: Computer Resources International A/S

I have a problem after I have installed the update U404456 which is supposed
to solve the problem with the automounter.

Now it works a little better but not perfect.

I am trying to mount /home as a direct mount:

The output from df is correct:

  hyperion:(pid15806@/home)       0       0   -1%   -       -    /home

When I tries to enter the /home directory:

  # cd /home

I get the following error:

  ksh: /home: 0403-037 The specified path name is not a directory.

The link seems to be created allright:

  ls -l /home
  lrwxrwxrwx   1 root     system        20 Aug 28 12:00 /home -> /tmp_mnt/home

and the directory /tmp_mnt/home is also mounted:

  # df /tmp_mnt/home
  cadillac:/export/cadillac1  745709   13837   98%   -       -    /tmp_mnt/home

Have anyone seen this problem and know what to do about it.

--
From: lwvanels@athena.mit.edu (Lucien W. Van Elsen)
Newsgroups: comp.unix.aix
Subject: Re: LVM Question. How to get Vg_Id from VG Name ?
Date: 26 Aug 92 12:29:10 GMT
Reply-To: lwvanels@MIT.EDU
Followup-To: comp.unix.aix
Organization: Massachusetts Institute of Technology


 manmetha@gauss.rutgers.edu (Rajesh Malhotra) writes:
>	   How do I get information on a volume group using the
>   volume group name? All the routines viz. lvm_queryvg, lvm_varyoffvg,
>   lvm_varyonvg need the Vg_id. What routine would give me a Vg_id,
>   given a Volume Group Name?

This is stored in the CuAt class of the ODM database.  This program
(compiled with cc -o foo foo.c -lodm -lcfg) retrives the unique id for a
given volume group name:

#include <sys/cfgodm.h>
#include <odmi.h>

main(int argc, char *argv[])
{
  struct CuAt *found;
  struct listinfo li;
  char buf[256];

  sprintf(buf,"attribute = vgserial_id and name = %s",argv[1]);

  odm_initialize();
  found = (struct CuAt *) odm_get_obj(CuAt_CLASS,buf,NULL,ODM_FIRST);
  if ((int) found == -1) {
    printf("odm error: %d\n",odmerrno);
    exit(1);
  } else {
    printf ("vg '%s' has unique id '%s'\n", found->name, found->value);
  }
}

		-Lucien

----------------------------------------------------------------------------
Lucien Van Elsen               | lwvanels@mit.edu
			       | The secret to a long life is knowing when
			       | it's time to go..
Newsgroups: comp.unix.aix
From: jona@iscp.bellcore.com (Jon Alperin)
Subject: timed does not adjust clocks correctly
Organization: Bellcore
Distribution: usa
Date: Tue, 25 Aug 92 19:58:46 GMT

 OS: AIX 3.2.2

 I would appreciate it if someone would confirm the following for me:

 I have 2 systems on a token ring, with one system running timed -M (actually a 
startsrc -s timed -a -M), while the other simply runs timed. The second system
should obtain the current time from the first system and use adjtime to
correct its time with the master (over a period of a minute or two).

 When I have the machines in sync, I set the time on the master to 5 minutes 
ahead, using the date command. The second system immediately jumped ahead by 5
minutes to be in sync with the master.

 I then set the second machines time back 3 minutes using the date command.
timedc msite reports that the first machine is the master, and clockdiff
reports that the master is several hundred miliseconds faster than the second
machine. After two minutes (when the timed master broadcasts its time), the
clock on the second machine jumps to the time broadcast on the master (time 
does not adjust, unless you consider 3 minutes time in 1 seconds an adjustment).

 I then set the master time back by 5 minutes, and the second machine 
immediately jumps backwards.

 Could someone confirm that this does in fact happen on AIX 3.2? I know about xntpd,
and am porting it right now, but I have to use timed for a little while longer.
Any information or help is greatly appreciated.

 jon


-- 
Jon Alperin
Bell Communications Research

---> Internet: jona@iscp.bellcore.com
---> Voicenet: (908) 699-8674
---> UUNET: uunet!bcr!jona

* All opinions and stupid questions are my own *
From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
Newsgroups: comp.unix.aix
Subject: Re: Vanishing processes
Date: 24 Aug 92 16:04:19 GMT
Organization: IBM AWD, Austin

In article <2457@cronos.metaphor.com> polk@Metaphor.COM (Ben Polk) writes:

>I posted recently with a description of a problem where at least three
>different processes running on my machine are terminated by AIX.  We
>have verified that a Signal 9 is being sent by the kernel, and that

the only way the kernel ever does this 2 u as far as i know is if
your program mallocs lots of space it never frees, uses up all the
paging space and then the kernel kills it to free up that space.

ps aux will tell you how much paging space your program is using.
.
-- 
curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
My views are unrelated to those of IBM     |        Austin, TX
FICA is a massive wealth transfer from young middle class to old middle class.
From: tim@introl.com (Tim Chase)
Newsgroups: comp.unix.aix
Subject: Re: AIX malloc and fault tolerance
Date: 4 Sep 92 20:21:52 GMT
Organization: Introl Corp.
NNTP-Posting-Host: introl.introl.com

In article <1992Sep3.135156.9166@medtron.medtronic.com> sh0001@israel (Scott Hansohn) writes:
>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?

Yes, Apollo's Aegis version 9.7 behaved this way.  In future versions,
I believe they changed it to the more "traditional" method where the backing
store is also allocated a malloc time, but I believe there was an (possibly)
undocumented option to revert to the old behavior to satify those who
wanted to use sparse arrays, etc.

-- 
Tim Chase		           Introl Corp. Milwaukee, WI USA
Email: tim@introl.com		   Phone: +1 (414) 327-7171
From: starbuck@ucrmath.ucr.edu (aaron greenwood)
Newsgroups: comp.unix.aix
Subject: X-plor installation on aix370
Date: 28 Aug 92 22:17:26 GMT
Article-I.D.: galaxy.22043
Organization: University of California, Riverside

X-plor 3.0 is not supported on the aix370.  But it has been installed.
The source code tape has a directory with files for the aix370.  These
files were donated by users and come with a warning that they have not
been tested.  Does anyone have information on X-plor installation they
would care to share with me.

Thank you,

Aaron J. Greenwood        email:  starbuck@ucrac1.ucr.edu
McPherson lab             tele:   ( 714 ) 787-3397
University of California  FAX:    ( 714 ) 787-3390
Riverside Ca. 92501
From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
Newsgroups: comp.unix.aix
Subject: Re: Where are the #*&^$( MAN pages?
Date: 26 Aug 92 16:21:04 GMT
Reply-To: mbeckman@mbeckman.com
Organization: Beckman Software Engineering
X-Mailer: uAccess LITE - Macintosh Release: 1.5v5


In article <1992Aug25.222818.11370@awdprime.austin.ibm.com> (comp.unix.aix), mbrown@testsys.austin.ibm.com (Mark Brown) writes:
> Mel, there really *aren't* any man pages. The AIX 'man' command
> searches the Info database, gets the hits, *formats* them to look like a
> "manpage", and puts it on the screen.
> 

Mark,

  It turns out there *are* man pages. A procedure is documented in 
/usr/lpp/bos/bsdadm for extracting them in flat file & troff form to the
hard drive. I did it; it works great.  I think I may write up the whole
thing and post it here, because there are a few mistakes in the procedure,
and some incomplete info.  But it took me just a couple of hours (mostly while
the extractor hashed through the CD).

  -mel

_____________________________________________________________________
| Mel beckman                  |    Internet: mbeckman@mbeckman.com |
| Beckman Software Engineering |  Compuserve: 75226,2257            |
| 1201 Nilgai Place            |       Voice: 805/647-1641          |
| Ventura, CA 93003            |         Fax: 805/647-3125          |
|______________________________|____________________________________|
 "Internet is big.  Really Big.  It gives the idea of
  infinity much better than infinity itself." 
   (with apologies to Douglas Adams)
From: PHD985W@SMSVMA.bitnet ("Patrick H. Day, Systems Programmer")
Newsgroups: comp.unix.aix
Subject: Need assorted low level helps...
Date: 1 Sep 92 15:44:16 GMT
Organization: SOUTHWEST MISSOURI STATE UNIVERSITY

1.  Where do you set an inactivity timeout variable?  If a user has been
    inactive for over 30 minutes, I would like the 560 to drop them.

2.  Is there a small script file or routine that can be run to limit
    users to only one login session?  We have users that have accounts
    logging in on two X-stations to allow those who don't have accounts
    to use the machine.  IBM gave us a cute little script file that
    doesn't work.

3.  I would like to write a script file that would compare the /etc/passwd
    file and the /etc/security/lastlogin file to give me a user's name,
    account id and the last date logged in.  Is there a program to
    unscramble the time_last_login in /etc/security/lastlogin?

4.  Is there a way to match a users id with the IP address they came in on?

Thank you

Patrick Day
phd985w@smsvma.edu
Newsgroups: comp.unix.aix,comp.windows.x
From: williams@herky.cs.uiowa.edu (Kent Williams)
Subject: AIX X11R5 / GL library clashes
Date: Fri, 28 Aug 1992 14:44:38 GMT
Reply-To: williams@herky.cs.uiowa.edu (Kent Williams)
Organization: U of Iowa, Iowa City, IA

OK Gentle Gurus, here's another one:

Our application uses GL graphics under AIX.  If you link against the
'official' X libraries on AIX 3.1 (which are R3 :-() there's no problem.
But now I'm linking against X11R5 libraries, and when I run my program I
get the following dynamic linker errors:

Could not load program dge
Symbol AIX_ASYNC in /lib/libgl.a is undefined
Symbol XLookupMapping in /lib/libgl.a is undefined
Could not load library libgl.a[shr.o]
Error was: Exec format error

Now XLookupMapping is in the 3.1 liboldX.a but it's not documented except
in AIX documentation.  I don't think it's anything I care about, since we
don't use the GL event queue, but is it safe to dummy it out?

Also what is this AIX_ASYNC? It appears to be a integer 0, but does it have
any special significance???

Thanks, by the way, to all who replied to my query on shared libraries and X.
Newsgroups: comp.unix.aix
From: jharvey@csulx.weber.edu (Just me)
Subject: AIX & MS-DOS + GIS
Organization: Weber State University, Ogden Utah
Date: Wed, 2 Sep 92 23:06:02 GMT


     I work for the MIS department with the City & Borough of
Juneau, and we are purchasing an IBM RS-6000 220 Unix workstation.
We are interested in running MS-DOS applications on a Novell
network, is there any MS-DOS emulation software for an AIX system?

     We will be running Arc/Info GIS software from X-Windows, will
there be a need to purchase Motif or the Open-Look system???

     Thanks,

     Justin Harvey
     jharvey@csulx.weber.edu
     City & Borough of Juneau
Xref: sparky comp.unix.aix:9127 bit.listserv.aix-l:1402