HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.sys.sgi
From: gene@vis.toronto.edu (Gene Amdur)
Subject: IRIX 4.0.1 and semaphores
Date: 10 Apr 92 20:21:51 GMT

I've been playing around with a C program that is roughly
equivalent to Sun's trace.  The code that I grabbed from a umontreal.ca
machine uses semaphones in part of its code.  Well there were some
bugs and in the process of fixing them I caused several core dumps
of the program. Now when I try to run the program I get:

error : can't allocate semaphore : No space left on device

from the following two statements:

   /* get two semaphores for the stderr and exit gates */
   if((semid=semget(IPC_PRIVATE, 2, IPC_CREAT)) == -1)
   { fprintf(stderr, "error : can't allocate semaphore : %s\n", 
		strerror(errno));exit(1);}

There is nothing else running on this machine that is using the default
of 25 semaphores.  So it looks to me like an abnormal exit of a program
that has semaphores allocated to it might prevent the semaphores from 
being put back on the available list.  Has anyone else seen this?


While I'm at it I've managed to get commands of the form:

trace <command> to work but if I try to trace a process that is
already executing I don't get anything.  The program uses the following
to do that:

/* open the process id that we want to trace */
if((fd=myopen(forkpid)) ==-1) return 1;

   /* increment semaphore */
   sem.sem_num=GATE_EXIT;
   sem.sem_op=1;
   sem.sem_flg=0;
   semop(semid, &sem, 1);

   /* must stop the process before setting SYSCALL mask */
   fcntl(fd, DFCSTOP)
   fcntl(fd, DFCSENTRYMASK, setmask)

   /* start it up again */
   fcntl(fd, DFCRUN, &val)

   for(;;)
   {
      /* wait for it to stop on the next syscall */
      if (fcntl(fd, DFCWSTOP) == -1) break;
      [...]

what happens is that the last fcntl call goes away and never comes back.
Any hints on how to get this working would be appreciated.  As would anything
about the above semaphore problem.

--gene@vis.toronto.edu
Newsgroups: comp.sys.sgi
From: peter@ml.csiro.au (Peter Campbell)
Subject: stdio write limit
Organization: CSIRO Marine Labs, Hobart TAS, Australia
Date: Wed, 8 Apr 1992 05:11:46 GMT

A really easy one.  When I try to write a buffer of more than 3072 characters 
in length it hangs.  I am still running 3.3.2 (through no fault of my own).
I originally found the problem when I couldn't cat a file of that size.
Rebooting will no doubt fix the problem for now but there must be a way
to prevent it happening again.

Peter Campbell    peter@ml.csiro.au
Xref: sparky comp.sys.sgi:6869 comp.unix.bsd:812
From: cudep@warwick.ac.uk (Ian Dickinson)
Newsgroups: comp.sys.sgi,comp.unix.bsd,comp.unix.question
Subject: Re: Socket, binding to reserve port - SGI, IRIX 4.0.0
Keywords: socket
Date: 14 Apr 92 10:33:23 GMT
Organization: Team Limpid's Meathead With Aptitude - Kunst und Wahnsinn

In article <1992Apr10.190642.193@ll.mit.edu> lebrun@ll.mit.edu (Steven F. LeBrun) writes:
>Is root the only privilege user who can bind sockets to reserved port 
>numbers?  Is there a way of setting up my account so that I can bind
>sockets to reserved port numbers without being given full root
>privileges?

Just get your sysadmin to set up entries in /etc/inetd.conf.
It can open any port number, but can run your process as yourself.

Cheers,
-- 
\/ato - Ian Dickinson - NIC handle: ID17                       if (!take(joke))
vato@csv.warwick.ac.uk  ...!mcsun!uknet!warwick!vato               em = fork();
/I=I/S=Dickinson/OU=CSV/O=Warwick/PRMD=UK.AC/ADMD= /C=GB/
@c=GB@o=University of Warwick@ou=Computing Services@cn=Ian Dickinson
Newsgroups: comp.sys.sgi
From: raytrace@lillee.cs.curtin.edu.au (RayTrace project)
Subject: Display PostScript Previewer version 1.1 available
	Thanks for all the replies. As you have probably seen xpsv
	ftp.cs.curtin.edu.au(134.7.1.1) in area ~ftp/pub/xpsv
Organization: Curtin University of Technology
Date: Mon, 13 Apr 1992 05:16:21 GMT

total 1041
-rw-r--r--   1 raytrace project   532581 Apr 13 12:30 xpsv1.1.tar.Z

This contains source/doc/executables/resources file. Use and enjoy.

Grumbles to me (but remember I am on long service leave :?) )
--

	Andrew Marriott.

--------------------------------------------+----------------------------------
* Internet: raytrace@cutmcvax.cs.curtin.edu.au                                *
*                                                                             *
* Mail   : School of Computer Science         | Tel: +619 351 7680            *
*          Curtin University of Technology    | Fax: +619 351 2819            *
*          Kent Street, Bentley                                               *
*          Western Australia, 6102                                            *
--------------------------------------------+----------------------------------
From: deng@bnl.gov (dp)
Newsgroups: comp.sys.sgi
Subject: Gnuemacs shell problem
Date: 8 Apr 92 20:26:46 GMT
Distribution: comp
Organization: ().:.()

********************************
Warning: no access to tty (Bad file number).
Thus no job control in this shell.
stty: : Inappropriate IOCTL operation
********************************

I wanted to use the shell but had the problem above, how to avoid this
problem?

Thanks

Dong-Ping
Newsgroups: comp.sys.sgi
Subject: Indigo animation
From: wsimpson@uwpg02.uwinnipeg.ca
Date: 8 APR 92 10:47:57 CST
Organization: University of Winnipeg

I am planning to buy an Indigo XS24 system.  It will be used in standalone
mode to create moving stimuli for experiments on vision.  Any help in
answering the following questions would be greatly appreciated.

1.  Precise timing (down to ms) is important.  For example, I need to know
that the stimulus is moving at 60 pixels per sec (2D translational motion)
precisely.  I will also need precise response times (stimulus presented,
observer hits key when he makes sensory decision).  Is precise timing
possible on Indigo?

2.  I would like to be able to present 2D translation using hardware
scrolling or any other technique at 60 Hz frame rate (i.e. scroll in the
vertical blanking interval).  Is this possible?

3.  What sort of frame rates are possible for 3D motion relative to fairly
simple scenes (with Z-buffer)?

4.  I do not use colour in my experiments, but I do need lots of grey
levels.  Would there be any performance benefits for animation of grey scale
images vs 24bit colour?  (i.e. would XS be better than XS24 for speed?)

Thanks very much for any help.

Bil Simpson
wsimpson@uwpg02.uwinnipeg.ca
Newsgroups: comp.sys.sgi
From: dweber@ncsa.uiuc.edu (Daniel Weber)
Subject: BLAS library and C?
Originator: dweber@nvs.ncsa.uiuc.edu
Reply-To: dweber@ncsa.uiuc.edu
Organization: National Center for Supercomputing Applications
Date: Fri, 10 Apr 1992 15:33:46 GMT


Is it possible to call the BLAS subroutines directly from a C program?  I
have a program that would really benefit from the use of these optimized
routines but I can't figure out if it would be possible to use them in a C
program.  I tried linking the program with -lblas and -lm but it still 
couldn't find the routines I wanted.  Any suggestions?

I have called FORTRAN routines from C before, so I know that can be done.
Is there something special about the BLAS library?  Do I need a special
include file?


				Thanks,
				-daniel weber
				dweber@ncsa.uiuc.edu

Newsgroups: comp.sys.sgi
From: sharon@ted.jsc.nasa.gov (Sharon Goza)
Subject: putenv, getenv
Organization: nasa-jsc
Date: Wed, 8 Apr 1992 13:15:08 GMT

Since upgrading our systems to 4.0.1, we've noticed a problem with putenv and
getenv.  If you compile the following program with cc -ansiposix the putenv and
getenv do not work.  Has anyone had any similar problems?

-----------------------------------------------------------------
#include <stdio.h>

main()
{

	putenv("TESTV=testv");
	printf("%s",getenv("TESTV");
}
-----------------------------------------------------------------

the printf prints (null).  If I compile without the -ansiposix, the program
works.  We are using the -ansiposix to get our popen commands to work.


Sharon Goza
sharon@ted.jsc.nasa.gov
Newsgroups: comp.sys.sgi
From: rck@fangio.asd.sgi.com (Robert Keller)
Subject: Re: Trying to run fsn (fusion)
Organization: Silicon Graphics, Inc., Mountain View, CA
Date: Thu, 9 Apr 1992 02:19:52 GMT

lipman@oasys.dt.navy.mil (Robert Lipman) writes:
>I just picked up fsn (fusion) from sgi.com.  
:
>Do I need 4.0?

yes.

...robert
Newsgroups: comp.sys.sgi
From: pav@cs.rice.edu (Phuong Vu)
Subject: modem on Indigo questions
Organization: Rice University, Houston
Date: Mon, 13 Apr 1992 13:39:16 GMT

I have a standalone Indigo (not directly connected to any network)
and I have several questions that I need some help with:

- why is it that everytime I want to mount my floppy drive to read
or write a diskette to bring to/from work, I have to login as root.
I really have to login as root, becoming superuser via su is not
enough.  It won't let me mount the floppy drive.  It works but just
a bit inconvenient.

- what is the recommended way to dial out using a modem.  I have a 
Telebit T2500 modem connected to my serial port 1.  I modified the 
/etc/inittab file as indicated in the Indigo Personal Network Admin 
Guide.  I have tried using cu:

        cu -s 9600 -l /dev/ttyd1
or      cu -s 9600 -l /dev/ttym1

without any success.  Both cases indicated something like NO DEVICE AVAILABLE.
I have tried to use kermit:

        set mode hayes
        set line /dev/ttyd1
        set speed 9600

and it works OK for me, except that I have to become superuser to be able
to do the "set line /dev/ttyd1".  I can do that, it's just a bit inconvenient.

I really rather use SLIP but due to security reason of the systems that I
am dialing into, that is not doable.  Does anyone have a suggestion on how
to get SLIP like functionality so I can telnet and ftp from my machine
without having SLIP running on the remote machine.

- Is it possible for me to use the cdrom drive on my Indigo with my PC ?
What do I need to get in terms of extra hardware/software for my PC to be 
able to read cdrom from my PC ?  I can go buy a complete cdrom set up 
for about $500 but that seems like a waste of money.  I am sure somebody
must have done this before.

Thanks in advance for your help.

   Phuong Vu
   CRPC / CITI
   Rice University
   P.O. Box 1892
   Houston, TX  77251-1892
   Tel: (713) 527-4643
   FAX: (713) 285-5136
   Email: pav@rice.edu

Newsgroups: comp.sys.sgi
From: markb@solbourne.com (Mark W. Bradley)
Subject: Re: wired tape drive problem, help?
Keywords: tape drive
Organization: Solbourne Computer Systems
Date: Thu, 9 Apr 1992 16:36:50 GMT

In article <jam5310@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
>In <12025@tamsun.tamu.edu> system@silly.tamu.edu writes:
>
>Hmm; do you have  a CIPHER 540S tape drive (look at mt stat output)?
>These drives are *very* sensitive to static electricity, and tend to
>hang when zapped with relatively low voltages (one of the reasons we
>don't ship them any more).  Ground yourself before touching the cartridge
>or tape chassis, and see if that helps.
>
>
>Definitely sounds like the static problem, except that your hinv
>shows a QIC-150 drive.  I've not seen the static problem on those
>drives.  Perhaps the drive isn't quite seated, and when you
>change a cartridge, the bus gets glitched?
>--

If it is a Cipher 540S, there was a fix put in by Cipher for us at SGI
about 3.5 yr. ago that essentially grounded the tape cartridge to the
drive chassis to eliminate the problem of ESD zapping the heads and the
logic of the drive.

If a QIC150, however, it's likely an Archive drive.  These didn't suffer
the degree of ESD susceptibility of the Cipher, but none-the-less are
'zappable'.  There may be outher causes of problems like these, such as
capacitance at the interface at the rear of the drive (arcing possible)
or other electrical causes.  Could also be that the drive is buggy or
beginning to fail.

Try grounding yourself and the cartridge in your hand to the system
by touching the system with your hand as you insert the tape.  If the
problem persists, it is not a staticy tape, but is likely requiring
more attention from trained personnel.

						markb

-- 
Mark Bradley   (DoD#1100)		  Faster, faster, until the thrill
I/O, EMI & Mgmt./Systems Engr.		of speed overcomes the fear of death.
Solbourne Computer, Inc.			--Hunter S. Thompson

Newsgroups: comp.sys.sgi
From: fsset@bach.lerc.nasa.gov (Scott E. Townsend)
Subject: scrsave whole-screen bug
Originator: fsset@bach.lerc.nasa.gov
Organization: Nasa Lewis Research Center ( Cleveland )
Distribution: usa
Date: Tue, 7 Apr 1992 21:06:12 GMT

I understand that at least VGX boxes have problems with whole-screen saves.
Could someone give me a list of configurations which do / don't work so I
can do my workaround based upon getgdesc() or something similar?

My apologies if this is a FAQ, I haven't seen this reported here in a while.
The old posting is gone, and I don't remember what configurations have the
problem.

-- 
---------------------------------------------------------------------------
Scott Townsend,  Sverdrup Technology Inc.  NASA Lewis Research Center Group
fsset@bach.lerc.nasa.gov
From: rainer@sfb256.iam.uni-bonn.de ( Rainer Kleinrensing)
Newsgroups: comp.sys.sgi
Subject: Indigo: X-session abort via 'xprop'
Date: 8 Apr 92 09:39:55 GMT
Organization: Applied Math, University of Bonn, Germany

Hello there,
we have several Indigos and some other workstations here in our institute.
Today I discovered that I can terminate a session on one of those
Indigos *without* having to log in there and *without* having to know
a password.
I simply log on to, let's say, out Convex and type:

   xprop -display indi1:0 -root -remove _SGI_SESSION_PROPERTY

and the session on indi1 is terminated, all the editor files are probably
last and so on. Is this behaviour designed into xdm or is there a way to
turn it off ?
Simply denying access to the X display from our Convex won't work, because
the users need that (for displaying Convex X applications).
I think this is a security hole.
Any suggestions ?

	Rainer Kleinrensing                rainer@sfb256.iam.uni-bonn.de
	Institute for Applied Mathematics 
	Bonn University
	Wegelerstr. 6 
	W5300 Bonn
	Germany

	Phone: +49-228-73-3427  Fax: +49-228-73-7864
From: zursch@whizkid.corp.sgi.com (Jeff Zurschmeide)
Newsgroups: comp.sys.sgi
Subject: Re: Break-in through lp, nuucp accounts
Date: 7 Apr 92 21:11:09 GMT
Reply-To: zursch@whizkid.corp.sgi.com (Jeff Zurschmeide)
Organization: Silicon Graphics, Inc.

I'll be working on the next revision of the  Site Administration Guide this summer,
and I'll include a section on plugging holes in the /etc/passwd file. There's already
a fairly comprehensive section on system security in the standard UNIX
model in that book today. 

JZ
Newsgroups: comp.sys.sgi
From: ajit@ender.asd.sgi.com (Ajit Mayya)
Subject: Re: ERROR rmtgetb recv
Keywords: dump, dec, sgi
Reply-To: ajit@sgi.com
Organization: Silicon Graphics, Inc., Mountain View, CA.
Date: Fri, 17 Apr 1992 18:08:50 GMT

In article <84245@bu.edu>, jdh@bu-pub.bu.edu (Jason Heirtzler) writes:
> Has anyone seen this error?  The machines are
> 
> 	sgi - indigo running 4.0.1 (same problem on 4.0.3)
> 	dec - a decstation-3100 ultrix 4.2
> 
> sgi#  dump 0fds dec:/dev/rmt0h 54000 6000 /dev/usr
>   DUMP: Date of this level 0 dump: Mon Apr 13 16:46:24 1992
>   DUMP: Date of last level 0 dump: the epoch
>   DUMP: Dumping /dev/rusr (/usr) to /dev/rmt0h on host dec.bu.edu
>   DUMP: mapping (Pass I) [regular files]
>   DUMP: mapping (Pass II) [directories]
>   DUMP: estimated 336593 tape blocks on 0.19 tape(s).
>   DUMP: dumping (Pass III) [directories]
>   DUMP: Couldn't read from remote tape
>   DUMP: ERROR rmtgetb recv, disconnecting from dec.bu.edu
>   DUMP: write failed
>   DUMP: Tape write error 0 feet into tape 1
>   DUMP: NEEDS ATTENTION: Do you want to restart?: ("yes" or "no")

	Dump starts up /etc/rmt (via rcmd) on the remote machine. It
	seems that /etc/rmt is probably dying on the decstation putting
	the socket in the "can't receive more" state. dump tries to
	read the status and gets back zero bytes while doing a
	non-blocking read on the socket. See if the /etc/rmt program on the
	decstation is mysteriously dying.


ajit
Newsgroups: comp.sys.sgi
From: stanj@ferrari.corp.sgi.com (Stan Jensen)
Subject: Re: Video Cable Length
Followup-To: comp.sys.sgi
Organization: Silicon Graphics, Inc.
Date: Thu, 9 Apr 1992 20:36:19 GMT

In article <jall3l4@zuni.esd.sgi.com>, olson@anchor.esd.sgi.com (Dave Olson) writes:
|> In <29953@adm.brl.mil> parker@adms15.fnal.gov (Anthony Parker) writes:
|> |       I'm not sure if this is the place to ask this, but I
|> |    am interested in finding out the limit on the length of
|> |    the video cable for a 4D/25. We have a situation where
|> |    a 15ft. cable would make life much easier by letting the
|> |    monitor/keyboard set farther away from the existing
|> |    ethernet connection. They have told us we cannot extend
|> |    the ethernet. I have seen premade cables available in
|> |    lengths of 15 ft. Is it okay to use one of these cables
|> |    on the machine, what would be the result/consequences ?
|> 
|> SGI has (or had at one time) a 75 foot monitor cable on the
|> price list.  With a decent cable, this is about as far
|> as you can get without getting pretty fuzzy; I've heard
|> that with an extremely high quality cable, you can get to
|> about 100 feet.  Your limits may vary.
|> 
|> EIA 423 should have no problems with up to 100 feet either,
|> since the mouse is at 4800 baud, and the keyboard at 600.
|> --
|> Let no one tell me that silence gives consent,  |   Dave Olson
|> because whoever is silent dissents.             |   Silicon Graphics, Inc.
|>     Maria Isabel Barreno                        |   olson@sgi.com

Dave's right (of course). We now have 75' "Remote Kits" (for keyboard/mouse
and monitor) for the following products:

	MKTG. CODE	DESCRIPTION
	X5-VKC1		4D/2X
	X5-VKC2		4D/3X
	X5-VKC3		Indigo
	X4-VKC1		Crimson/300/400
and
	X4-PXC75	Crimson/300/400 extension cable for Gfx peripherals
			(Spaceballs, Dials & buttons, & Stereoview)

These are available from your local SGI Sales Rep or from my group, SGI 
Express (1-800-800-7441).
-----------------------------------------------------------------------------
Stan Jensen, Systems Engineer   ..!{decwrl, ucbvax, uunet}!corp.sgi.com!stanj
Silicon Graphics Inc., M/S 11-120                         Phone:(415)335-7361
P.O. Box 7311, 2011 No. Shoreline Blvd.                   FAX:  (415)962-1589
Mt. View, CA  94039-7311                                    "I (heart) Tonks"
-----------------------------------------------------------------------------
Newsgroups: comp.sys.sgi
From: doctor@kronos.arc.nasa.gov (Terry Fong)
Subject: making default lp printing dump to lpr
Summary: how can I setup the default lp printer 
Keywords: lp, lpr
Organization: NASA/ARC Information Sciences Division
Date: Mon, 13 Apr 1992 20:17:37 GMT

Hi there!

Can anyone tell me if it is possible to configure a default lp printer
to route files to lpr? In other words, so that any file printed to lp
actually gets printed using an lpr printer?

I currently have several SGI's on the same network as a Sun running
a lpr spooler and can print via lpr to that Sun's printer. However, I
would like applications which print via lp by default (such as
Showcase) to be able to print as well (without having to dump the
output into a file, and then print the file via lpr).

-Terry Fong
NASA Ames Research Center


-- 
_______________________________________________________________________________
 "You do not understand anything     | Terry Fong <terry@ptolemy.arc.nasa.gov>
  until you understand it in more    | NASA Ames, M/S 269-3, Moffett Field, CA
  than one way..." -- Marvin Minsky  | (415) 604-6063, FTS-464-6063
Newsgroups: comp.sys.sgi
From: tg@utstat.uucp (Tom Glinos)
Subject: Re: update on inst problem -- weirder and weirder (LONG)
Organization: University of Toronto, Dept. of Statistics
Date: Wed, 8 Apr 1992 13:55:00 GMT

In article <j97cfr4@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
>|  unix: dks0d4s7 (/CDROM): Media error: Unrecovered data block read error,
>| 	ASQ=0x6,. Block #160096 (195072).
>
>ASQ is the Additional Sense Qualifier.  So a read command (0x28) is
>failing, and request sense is returning sense key 3 (Media error), 
>Additional Sense Code 0x11 (Unrecovered ...), and ASQ of 6.  The ASQ
>is supposed to provide addtional information.  SCSI 2 says that 
>0x11/0x6 means "CIRC Unrecovered Error".  I can't lay my hands on 
>my CD-ROm manual at the moment, but I suspect it would say the same,
>since it is supposed to be SCSI 2 compliant.

Dave has now given administrators who have a CD drive a real strong hint
as to what to do to help themselves in the future.

[1] Get a copy of the SCSI-2 specs.
[2] Get a copy of the CD-ROM manual.
-- 
=================
"Life is so much more meaningful if you take the time to hunt down and strangle 
twits who post blather to inappropriate newsgroups." Henry Spencer
From: Aurelius@cup.portal.com (Mark Christian Barnes)
Newsgroups: comp.sys.sgi
Subject: Re: Is there a Standard preprocessor method of determining 4.0
Date: 8 Apr 92 05:36:08 GMT
Article-I.D.: cup.57067
Distribution: usa
Organization: The Portal System (TM)

| Hello SGI & Friends...
| I've got a large code that needs a small amount of diddling in the
| conversion to 4.0.1, but we have anumber of sites that may be
| remaining at 3.3.2.  I've ifdeffed the code with my OWN preprocessor
| symbol, but it just hit me that there may be a more efficient method
| SGI or one of the users out there in Irisland has
| set up for how to do this.  If there was already tsomething around,
| the makefile could be greatly simplified.
| Since I can't read the net very often, email responses would be MUCH
| appreciated.
| Steve Dahmen

 I have found that __sgi is not defined in IRiX 3.3.2, but only in

IRiX 4.0.1. Hope this helps.

				Aurelius@cup.portal.com