[comp.sys.sun] Sun-Spots Digest, v7n11

Sun-Spots-Request@Rice.edu (William LeFebvre) (11/10/88)

SUN-SPOTS DIGEST        Wednesday, 9 November 1988     Volume 7 : Issue 11

Today's Topics:
                        SQL Query with Sun UNIFY?
                     How do I create a virtual Panel?
                       set cursor color in canvas?
                            win_inputnegevent?
                           multi-colored icons?
                multi-precision arithmetics and overflow?
                            Huge icons on Sun
               How can I change the SUN logo in the eeprom?
                Does Tops really not work with Sun OS 4.0?
                           RCS sources question
                      plotting comparable to PGPLOT?
                kcl for sunos 4.0 (sun386, sun3 and sun4)?
                              BBS on a Sun?
                          RSS calculation in 4.0

Send contributions to:  sun-spots@rice.edu
Send subscription add/delete requests to:  sun-spots-request@rice.edu
Bitnet readers can subscribe directly with the CMS command:
    TELL LISTSERV AT RICE SUBSCRIBE SUNSPOTS My Full Name
Recent backissues are available via anonymous FTP from "titan.rice.edu".
For volume X, issue Y, "get sun-spots/vXnY".  They are also accessible
through the archive server:  mail the request "send sun-spots vXnY" to
"archive-server@rice.edu" or mail the word "help" to the same address
for more information.

----------------------------------------------------------------------

Date:    2 Nov 88 18:46:55 GMT
From:    fedsys!scotty!dna@kodak.com (Dave Albertson)
Subject: SQL Query with Sun UNIFY?
Reply-To: scotty!dna@rutgers.edu (Dave Albertson)

Greetings. I am looking for some help in regards to an SQL query problem I
am having using Sun UNIFY. I am working on a Sun 3/260 running SunOS
version 3.5 and Sun UNIFY version 2.0.

The problem occurs in using the ERIC procedure call "query_open" to open a
query scan. Both the query and scan parameters are valid, yet I am
experiencing a "timeout" error after a delay of about 30 seconds.
Specifically, my program will exit with a status of 99, and the errlog
file will record the following entry:

	Program: unknown
	Calling function: error
	Offending function: see Notes
	  Status: 0
	Errno: 4
	Notes: RPC error: timeout
	(prognum 1073741837, request sql_select())

No other database activity is going on during this time.  Any suggestions
as to the cause of the problem are greatly appreciated.  Thanks in
advance.

Dave Albertson
-- 
UUCP:..!rutgers!rochester!kodak!fedsys!alvar!dna

------------------------------

Date:    3 Nov 88 04:29:24 GMT
From:    flee@shire.cs.psu.edu (Felix Lee)
Subject: How do I create a virtual Panel?

I want to have a large number of Panel items arranged in rows and columns
(as in a spreadsheet), but I don't want the overhead of creating thousands
of Panel items.  I am trying to create just one screen of Panel items,
changing the items when the user scrolls the window, but I can't find the
magic needed to handle the scrolling.

How do I take control of the scrollbar in a Panel?  Do I have to interpose
a handler?  Should I use a Canvas instead (building Panel-like items
myself)?  Is there an easier way?

Felix Lee	flee@shire.cs.psu.edu	*!psuvax1!shire!flee

------------------------------

Date:    2 Nov 88 20:21:00 GMT
From:    mkhaw@teknowledge-vaxc.arpa (Mike Khaw)
Subject: set cursor color in canvas?

What's a good way to set the color of the mouse cursor in a color canvas
subwindow?  I've used cursor_set(cursor, CURSOR_OP, ...) with just about
every reasonable rasterop I could think of, and some off the wall ones,
and the only one that seems to work as I'd expect is PIX_SRC^PIX_DST, but
the only rasterop that >>>sets<<< the color of the cursor puts it within a
white rectangle, and my canvas background isn't set to white.

I know crosshair cursors have a color attribute, but I can't use a
crosshair cursor in this canvas.

Thanks,
Mike Khaw
-- 
internet: mkhaw@teknowledge.arpa
uucp:	  {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge.arpa
hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303

------------------------------

Date:    Wed, 2 Nov 88 11:27:39 PST
From:    brent%sprite.Berkeley.EDU@ginger.berkeley.edu (Brent Welch)
Subject: win_inputnegevent?

We're porting an application from suntools to X11, and are unable to find
documentation for "win_inputnegevent" and a related constant IM_NEGEVENT.
My old, old, memories of suntools programming is that this has to do with
button-up events.  Does IM_NEGEVENT mean "give me button-up events"?  Does
win_inputnegevent(&event) return 1 if the event is a button-up event?
Thanks.  Reply to me as this is probably un-interesting.

	Brent Welch
	brent%sprite@ginger.Berkeley.EDU

------------------------------

Date:    Wed, 2 Nov 88 14:46:35 PST
From:    jimmy@bevsun.bev.lbl.gov (Jimmy Guggemos)
Subject: multi-colored icons?

Does anyone know how to make and use 8-bit deep multi-color icons for the
sun 3/60c?  [[ Doesn't the icon inherit the color table of its window?
I've seen color icons, so I know it's do-able.  --wnl ]]

------------------------------

Date:    Wed, 2 Nov 88 12:48:15 PST
From:    pom%and.s1.gov@mordor.s1.gov
Subject: multi-precision arithmetics and overflow?

Can somebody help me (point me to right manual) with following two
questions, please?

1) How can I call from c the multi-precision arithmetic library such as
used e.g. in the dc program

2) How can I trap overflows (in c.programs) ? 
[[ According to the manual page for signals, an "IEEE floating point
overflow" causes a SIGFPE to be sent to the process.  So, by catching
SIGFPE you can catch that and other IEEE fp exceptional conditions.
Integer overflow is (I believe) not detectable in C.  --wnl ]]

Is either of these two different when Fppa is used?
[[ #2 probably is.  I understand that there is this very handy manual
buried somewhere in the Sun documentation entitled something like
"Programmers guide to Floating Point".  It should have some of this
information.  --wnl ]]

------------------------------

Date:    Wed, 2 Nov 88 13:53:28 PST
From:    jjung%sal45.usc.edu@oberon.usc.edu (John Jung)
Subject: Huge icons on Sun

Today, I saw someone have two huge pictures on his Sun terminal, and two
smaller (and hacked off) pictures (same picture). When I asked this person
how he did it, he said "I don't know, a friend of mine gave it to me."

Well, I asked him to e-mail me a copy of the picture (which he did). He
told me to set my defaults (via DefaultsEditor) to have the Root_pattern
hold the name of the picture. He said this was a big icon, and everytime I
use Suntools, I'll see the picture.

I did this, and sure enough, the picture shows up every time I goto
Suntools.

My questions are these :

	1) How was this done?
	2) Is there anyway to transfer the icon to a normal micro-computer
	     format (like .MAC)?

If it's of any help, I'm using a Sun 3/50.

Thanks in advance.
	John

------------------------------

Date:    Thu, 3 Nov 88 01:42 N
From:    <DIMITRI@CGEUGE51.BITNET>
Subject: How can I change the SUN logo in the eeprom?

I was trying to change the SUN logo and banner of a 3/50, but it seems
that I am missing something.  In the manual it says that the banner and
logo can be defined by the user. The banner is at possitions 0x68-0xb7 and
the banner selector flag at 0x20. Also the logo selector flag is at 0x18f
while the custom logo can be defined in 0x290 - 0x48f.  That is what the
manual says!

When I set everything as needed, I do get the banner but not the logo. It
seems that the logo flag is not checked at all and only the banner flag
makes a difference. That is, no matter what the logo flag is, is the
banner flag is not 0x12 the SUN logo and banner comes out, while if it is
0x12 I do get my banner but not the logo.

Does anybody knows what is the problem and why I cannot get my custom logo
printed?

dimitri

dimitri@cgeuge51.bitnet           | Dimitri Konstantas
dimitri@cui.unige.ch              | University of Geneva
mcvax!cernvax!cui!dimitri         |

------------------------------

Date:    2 Nov 88 20:32:21 GMT
From:    novavax!proxftl!tkloss@bikini.cis.ufl.edu (Teresa Kloss)
Subject: Does Tops really not work with Sun OS 4.0?

We upgraded our Sun to OS rev 4.0 and we just learned from Tops customer
support that it doesn't work with 4.0, they don't know how to make it work
with 4.0, that there won't be anything before February at the earliest,
and we shouldn't waste our time.

Does anyone know a better answer than this?

[[ "Tops" should not to be confused with my freely distributable program
called "top", the latest version of which does run under 4.0.  --wnl ]]

------------------------------

Date:    Wed, 2 Nov 88 14:37:36 PST
From:    John Bossert <bossert@athens.thalatta.com>
Subject: RCS sources question

If anyone has the sources to RCS for Suns (doesn't have "diff3" built-in,
ergo no AT&T proprietary code), I'd appreciate a note.  It seems that the
appropriate tape in our rack got moved into the "scratch" section :-(

Thanks in advance.

	John Bossert
	bossert@Thalatta.COM

------------------------------

Date:    Wed, 02 Nov 88 20:21 EST
From:    UJIGGS@UNC.BITNET
Subject: plotting comparable to PGPLOT?

I am looking for a plotting package/interface for Sun workstations that is
comparable to PGPLOT on a VAX or the subroutine calls that are available
when programming on a Tektronix terminal (but I do NOT want to use Sun's
Tektronix emulutor - yuk).  Does anyone know if PGPLOT or something
comparable is available in a Sunwindows environment?  I am not yet on the
general mailing list for Sun-Spots, so please reply directly if possible
to UJIGGS@UNC on bitnet.

	-Thanks, mdg

------------------------------

Date:    Wed, 2 Nov 88 23:53:51 EST
From:    jsol%bu-pub.BU.EDU@bu-it.bu.edu (Jon Solomon)
Subject: kcl for sunos 4.0 (sun386, sun3 and sun4)?

I am looking for a distribution of KCL for Sun archetectures. Does anyone
know if kcl has been ported to SUNOS 4.0 (all 3 archetectures)....?

--jsol
p.s. thx.

------------------------------

Date:    Wed, 2 Nov 88 13:26:46 EST
From:    garvin@ncsuvx.ncsu.edu (Michael A. Garvin)
Subject: BBS on a Sun?

I'm looking for a simple BBS system to run on a Sun workstation (OS 3.4)
to use as a file server so that clients can download or upload AutoCAD,
text, etc. documents for use.  It really just needs to be able to do file
transfers, although a comment to SYSOP would be necessary so that files
uploaded can be documented.  Any help is appreciated.

garvin@ncsuvx.ncsu.edu    Michael Garvin    NCSU Computing Center

------------------------------

Date:    Wed, 2 Nov 88 16:50:20 EST
From:    Rayan Zachariassen <rayan@ai.toronto.edu>
Subject: RSS calculation in 4.0

Some time ago I noticed that the RSS values reported by the kernel were
rather unusual, in particular they were sometimes larger than the process
size.  In the September 88 STB there is a bug report saying that RSS is no
longer the actual resident set size, but "a measure of the number of
active hardware translations" for the process, "which could be smaller
than the number of physical pages resident".  Obviously it can also be
larger than the number of physical pages resident (the reported value can,
that is), which means there must be something else going on than just the
count of page table entries allocated to the process.  My first thought
was actually that what is being counted is the number of pages referenced
per time unit, but that doesn't seem right.

Can anyone explain this phenomenon properly, and indicate how to use the
new RSS measure to determine things like code locality, thrashing, etc. ?
The old RSS value used to be quite helpful in this regard.

To show what I mean, here is a filtered "ps axl" output that shows the
processes on my home machine with RSS > SZ:

      F UID   PID  PPID CP PRI NI  SZ  RSS WCHAN    STAT TT  TIME COMMAND
   8001   0    68     1  0   1  0  56  184 select   S    ?   2:48 portmap
   8001   0    77     1  0   1  0  72   96 select   S    ?   2:05 syslogd
 408001   0   140     1  0  -5  0  56  144 Sysbase  D    ?   2:43 nimd -c 1980 
   8001   0   146     1  0   1  0  88  200 select   S    ?   5:12 /ai/etc/x25ne
   8001   0   184     1  8   5  0 208  248 child    S    ?   2:55 cron
   8001   0   203     1  0   1  0  72   96 select   S    ?   1:29 inetd
   8001   0  2450     1  0   1  0  72   80 select   S    ?   0:07 /usr/lib/lpd
   8001   0  7501     1  0   1  0 256  288 select   S    ?   0:49 xterm -geomet
   8001   0  7502     1  0   1  0 160  184 select   S    ?   0:01 xload -geomet
   8001 714  9209     1  0   1  0 128  160 select   S    ?   0:00 xclock -geome
   8001   0  9210     1 10   1  0 176  328 select   S    ?   0:47 xterm -iconic
   8001 529 10500     1  0   1  0 120  168 select   S    ?   0:00 xclock -geome
   8001   0 10501     1  0   1  0 272  288 select   S    ?   0:07 xterm -geomet
   8001 508 11536     1  0   1  0 120  152 select   S    ?   0:00 xclock -geome
 408001   0 11659     1  3   1  0  72   96 socket   S    ?  52:28 in.rwhod
 408001   1 12509   228  0   1  0  72  160 socket   S    ?   0:00 /ai/lib/mail/
   8001   0 12531   184  9   5  0  32  104 child    S    ?   0:00 sh -c su uucp
   8001  66 12533 12531 15   5  0  32  112 child    S    ?   0:00 su -c /usr/li
   8201  66 12535 12533 12  15  0 128  464 pause    S    ?   0:00 /usr/lib/uucp
 408001   0 14932     1  5   1  0  56   88 socket   I    ?   0:56 /ai/lib/image
   8001 133 16596     1  0   1  0 136  144 select   S    ?   0:17 xbiff -rv -ge
   8001 133 16597     1  0   1  0 120  168 select   S    ?   0:09 xclock -geome
   8201 133 16598 16595  0  15  0  48  112 pause    S    ?   0:10 /local/share/
   8001   0 27002     1  0   1  0 112  168 select   S    ?   6:42 gated
   8001   0 28683     1  1   1  0 280  400 select   S    ?  14:26 named
   8201 133 16611     1  4  15  0 232  336 pause    S    p1  2:45 sysline -qhir
   8201   9  7510     1  0  15  0  56   72 pause    I    p2  0:00 biff y
   8221   0  8045  7503  0  15  0 168  392 pause    I    p2  0:09 -u (tcsh)
   8021   0 11903  8045  5   3  0 176  336 Sysbase  I    p2  0:04 vi icomm_tcp.
   8021   0 12448  8045  0   3  0 360  512          T    p2  0:00 dbx /ai/lib/i
   8001   0 12504   203  0   1  0  56  272 select   S    p3  0:00 in.rlogind
   8001 165 12505 12504  1   3  0  64  384 Sysbase  S    p3  0:00 -csh (csh)
   8201 165 12519     1  4  15  0  56  224 pause    I    p3  0:00 biff y
   8021 165 12520 12505 11   3  0  88  344          T    p3  0:00 mail
   8201 506  8630  8629  3  15  0  64  192 pause    S    p4  0:00 -csh (csh)
   8001 506 12530  8630 28   3  0 120  456 Sysbase  S    p4  0:00 rn
   8201 194  8701     1  0  15  0  56   64 pause    I    p5  0:00 biff y
   8001 201 12508  9836 32   3  0 168  472 Sysbase  S    p6  0:02 vi outgoing
   8001 129 11978 11973  0   1  0 112  232 select   S    p8  0:00 twm
   8001 129 11984 11973  0   1  0 120  160 select   S    p8  0:00 xclock -geome
   8001 129 11987 11973  0   1  0 232  464 select   S    p8  0:01 xmh -flag -ic
   8201 749 10851 10850  0  15  0  64  264 pause    I    p9  0:01 -csh (csh)
   8001 749 12449 10851 10   3  0  96  248 Sysbase  I    p9  0:00 /na/bin.sparc
   8001 714 11234  9217  7   3  0 160  312 Sysbase  S    pa  0:15 vi pictures.t
   8201   7  9918  9913  2  15  0 136  344 pause    S    pb  0:05 -tcsh (tcsh)
   8201   7  9940     1  2  15  0 224  344 pause    S    pb  0:02 sysline -qhiD
      1   7 12537  9918 98  49  0 208  464          R    pb  0:01 ps axl
   8021 152 11223 10996  3   3  0 160  240 Sysbase  I    pd  0:04 vi -r paper
   8001 156 11025 11024  0   3  0  64  200 Sysbase  I    pe  0:01 -csh (csh)
   8201 529 10524 10501  1  15  0  64  200 pause    S    q1  0:00 -sh (csh)
   8001 529 12524 10524 14   5  0  88  360 child    S    q1  0:00 mail
   8201 529 12526 12524 20  15  0  64  368 pause    S    q1  0:00 sh -c /ai/bin
   8001 529 12529 12526 10   3  0  56  232 Sysbase  S    q1  0:00 /ai/bin/less
   8201 751  4806     1  0  15  0  72  112 pause    I    q3  0:00 biff y
   8001 184 11722 11721  3   3  0  64  160 Sysbase  I    q4  0:00 -csh (csh)
   8201 184 11746     1  0  15  0  56  168 pause    I    q4  0:00 biff y
   8201 169 11478     1  0  15  0  56  160 pause    I    q5  0:00 biff y
   8201 707 11472 11471  0  15  0 136  288 pause    I    q6  0:01 -tcsh (tcsh)
   8201 707 11490     1  0  15  0  56   64 pause    I    q6  0:00 biff -w y
   8001 707 12461 11472  4   3  0  64  296 Sysbase  S    q6  0:00 /usr/games/mi
   8201 189 11514     1  0  15  0  56   64 pause    I    q7  0:00 biff y
   8001   0 12280   203  0   1  0  56  232 select   S    qb  0:01 in.rlogind
 408001 903 12427 12281  2   3  0  64  232 Sysbase  S    qb  0:00 csri
   8001 903 12429 12427  0  25  0  64  128          R    qb  0:00 csri
   8001   0 11982 11973  6   1  0 256  304 select   S    qc  0:01 xterm -geomet
   8001 129 12412 12012  0   3  0 160  392 Sysbase  S    qc  0:00 vi stats.c

------------------------------

End of SUN-Spots Digest
***********************