HDTenEightyP/NetNews huggingface dataset:
From: exujlg@exu.ericsson.se (Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157)
Newsgroups: comp.os.os2,comp.os.os2.misc
Subject: Re: Errorlogs under 1.3?
Date: 23 Nov 92 17:32:20 GMT
Organization: Ericsson Network Systems, Inc.
X-Disclaimer: This article was posted by a user at Ericsson.
              Any opinions expressed are strictly those of the
              user and not necessarily those of Ericsson.

In article <exujlg.176.0@exu.ericsson.se> exujlg@exu.ericsson.se (Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157) writes:
>From: exujlg@exu.ericsson.se (Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157)
>Subject: Errorlogs under 1.3?
>Date: Mon, 23 Nov 1992 16:41:08 GMT

>What utility do I use to read the errorlogs under Microsoft's OS/2 1.3 that 
>is shipped with Lan Manager?  I've got an AST Premium SE server that refuses 
>to stay up for more than a 3 day stretch.  I've got an error log entry for 
>each crash, but the logs are binary formatted files.

>Any help would be appreciated?

For once I got instant response from Microsoft - the LOGSHOW utility in the
C:\OS2\SUPPORT directory is used to view the error logs for all the LADDR-
type device drivers.

Regards,
------------------------------------------------------------------------------
Jon L. Gauthier                                 Ericsson Network Systems, Inc
EXU/IS/TP Systems Programmer                                  P.O. Box 833875
+1 214 997-0157                                     Richardson, TX 75083-3875

e-mail:  exujlg@exu.ericsson.se, exu.exujlg@memo.ericsson.se
Geez!  Can I be a .com, huh? huh?  Aw, pleeeaaasssse?
------------------------------------------------------------------------------
Newsgroups: comp.os.os2,comp.os.os2.apps,comp.os.os2.misc
From: Brandon.Vanevery@launchpad.unc.edu (Brandon Vanevery)
Subject: ANY way to do 24-bit graphics under OS/2 2.0?
Organization: University of North Carolina Extended Bulletin Board Service
Distribution: na
Date: Wed, 18 Nov 1992 03:46:08 GMT


Is there ANY KNOWN METHOD of doing 24-bit graphics under OS/2 2.0?

I'll even take suggestions about displaying in a DOS or Windows shell.

Are there ANY MANUFACTURERS WHATSOEVER working on 24-bit drivers for OS/2?
Any expected release times?

Brandon Van Every

--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  laUNChpad.unc.edu or 152.2.22.80
Xref: sparky comp.os.os2:470 comp.os.os2.misc:37442
From: exujlg@exu.ericsson.se (Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157)
Newsgroups: comp.os.os2,comp.os.os2.misc
Subject: Errorlogs under 1.3?
Date: 23 Nov 92 16:41:08 GMT
Organization: Ericsson Network Systems, Inc.
X-Disclaimer: This article was posted by a user at Ericsson.
              Any opinions expressed are strictly those of the
              user and not necessarily those of Ericsson.

What utility do I use to read the errorlogs under Microsoft's OS/2 1.3 that 
is shipped with Lan Manager?  I've got an AST Premium SE server that refuses 
to stay up for more than a 3 day stretch.  I've got an error log entry for 
each crash, but the logs are binary formatted files.

Any help would be appreciated?

------------------------------------------------------------------------------
Jon L. Gauthier                                 Ericsson Network Systems, Inc
EXU/IS/TP Systems Programmer                                  P.O. Box 833875
+1 214 997-0157                                     Richardson, TX 75083-3875

e-mail:  exujlg@exu.ericsson.se, exu.exujlg@memo.ericsson.se
Geez!  Can I be a .com, huh? huh?  Aw, pleeeaaasssse?
------------------------------------------------------------------------------
Xref: sparky comp.os.os2:462 comp.os.os2.misc:37106
From: jdowdal@wam.umd.edu (John Dowdal)
Subject: Re: Rayshade: Targa-24 viewer?
Organization: University of Maryland, College Park
Date: Mon, 16 Nov 1992 15:26:36 GMT

In article <1992Nov15.224013.1436@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
>In article <mortenk.72.721864053@dhhalden.no> mortenk@dhhalden.no (MORTEN KNUDSEN) writes:
>>In article <1992Nov13.114236.7135@rz.uni-karlsruhe.de> "leo richardson" <UKI6@DKAUNI2.BITNET> writes:
>>>Hi,
>>>
>>>I have Rayshade for OS2.  The readme tells that this program outputs
>>>the Targa-24 format. Where can I get a viewer for Targa-24 pictures?
>>>
>>I think CSHOW will do the trick.
>
>Doesn't CSHOW quantize the picture down to an 8-bit VGA/sVGA image?

I've found a nice "kludge" to view Targa's and to greatly reduce their
size while producing a better image than cshow.  Using the JPEG 3
compression program:
cjpeg -Q 85 -o targa.tga jpeg.jpg
djpeg -G jpeg.jpg gif.gif
This produces a 256 color .GIF file and a small 24 bit JPEG file....
The .GIF views MUCH better than the Targa.
This uses all free, easy to use software...

John



Newsgroups: comp.os.os2,comp.os.os2.misc,comp.sys.ibm.pc.hardware
From: hb@vpnet.chi.il.us (hank barta)
Subject: Re: HELP Gateway 2000/Diamond Speedstar
Keywords: HELP!
Organization: Vpnet Public Access
Date: Wed, 18 Nov 1992 15:26:22 GMT

In article <Bxu3Br.JEt@ccu.umanitoba.ca> dscott@ccu.umanitoba.ca (Doug Scott) writes:
>In <1992Nov7.231239.27501@u.washington.edu> rene@hardy.u.washington.edu (Rene Magritte) writes:
>
>> 
>> 
>> 
>>	Help gratefully accepted!! 
>
>>  	An almost-very satistfied user of OS/2 2.0!
>
>
>Hey, the solution is in the new README that came with the CSD.
>Make a startup.cmd file that contians
>
>start /fs /dos setmode.bat
>
>then a dos batch file setmode.bat which contains
>
>c:\video\vmode 35k
>exit
>
>Check the README file. Its a little beeter explained and has better
>spelling tham I.

   I tried this with a Gateay 2000, Diamond Speedstar and their
   monitor (Crystal Scan 1024i)

   I found that I had to set the monitor type to "fixed" to get
   1024x768 and thus I needed the following two statements to
   get 1024x768 under MS-DOS.

      VMODE MONITOR
      VMODE 38

   And so I put these in a file setmode.bat as described above.
   However, this did not solve the problem. I can see the .bat 
   file execute (after the workplace shell starts) and it changes
   the full screen dos session to 1024x768, however when it exits,
   it seems like the mode returns to the previous setings with a
   violent case of the swimmies.

   If anyone has gotten this combination to work properly, please
   let me know!

>
>PS. I don't think you have to undo your changes. Just boot to does to do the 
>editting. I guess.........

   Fortunately I saved a copy of the VGA display.dll and use the FAT
   file system. I just booted MS-DOS from floppy, restored the VGA
   display.dll and OS/2 came up properly with the 640x480 screen.

   thanks,
   hank
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.os.os2,comp.os.os2.misc
Date: Fri, 20 Nov 1992 14:40:04 -0500 
From: Rahul Verma <worm+@CMU.EDU>
Subject: Re: Questions on OS2 2.0 from a _potential_ user. HELP !!!!

Excerpts from netnews.comp.os.os2: 19-Nov-92 Re: Questions on OS2 2.0
fr.. by Steve Luzynski@po.cwru.e 
> If you really have your heart set on Stacker there should be an OS/2 version 
> in commercial release real soon now. (I believe beta testing is wrapping up 
> as we speak..)

Not quite. They are starting the beta testing of Stacker for OS/2 soon
but have not yet started,
------------------------------------------------------------------------
Rahul Verma            |    This message made of 100% recycled electrons.
worm+@cmu.edu          |      
------------------------------------------------------------------------
From: @prism.cs.orst.edu
Newsgroups: comp.os.os2.programmer
Subject: VIOCOLORREG questions
Date: 19 Nov 92 02:16:33 GMT
Article-I.D.: flop.1eete1INNnj6
Distribution: world
Organization: CS Dept, Oregon State University
NNTP-Posting-Host: prism.cs.orst.edu

OK, I posted a similar question a week or two ago and got absolutely no
response. So here it comes again because I know SOMEONE has to have an
answer...

I am writing a full screen application using Vio calls and I need to muck
about with the VGA's DAC registers. In looking through the header files I
found the structure VIOCOLORREG and thought that it would let me change
the values of the DAC. So I looked for the function call that would take
this structure and do something important with it. The functions are
VioGetState and VioSetState. The problem seems to be that these functions
can also take 5 other structures, with seemingly no differences aside from
their size (in some cases) and the value of type. Now I suppose that type
is the key value here, but I have no idea of what is needed and/or if this
is the correct idea or not anyway.

I really need an answer here.

Thanks
Keith
Xref: sparky comp.os.os2.programmer:6596 comp.os.os2.apps:8514
From: fearick@physci.uct.ac.za (Roger Fearick)
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
Subject: New version of f2c on hobbes
Date: 21 Nov 92 09:35:55 GMT
Article-I.D.: physci.fearick.76.722338555
Organization: Physics Department, University of Cape Town

Hi all,

I have posted a new version of f2c to hobbes (aka ftp-os2.nmsu.edu)
in directory pub/uploads.

Here is the file f2c.txt, also posted to hobbes:

f2c is a FORTRAN to C converter, available from netlib@research.att.com.

f2c has been ported to OS/2 2.0 to provide a route to 32-bit FORTRAN 
programming for those who use the GNU C compiler. The version uploaded
is the latest available from netlib (f2c of 22 July 1992, libraries of
27 October 1992).

The archive f2cb.zip has libraries for the gcc/2 and emx0.8e versions 
of the GNU compiler.
Users of other compilers will have to compile the f2c libraries, libi77 ad
libf77, with their compilers in order to use f2c. This might entail some
additional modifications to the source code.

The following files have been uploaded:
f2cb.zip 	--  OS/2 v2.0 binaries of f2c, with libraries for
                    gcc/2 and emx0.8e
f2cs.zip        --  Patched source code of the above.

These files must be unzipped with Info-Zip's unzip 5.x.

Suggested directory: pub/os2/2.0/programming, to replace version currently
                     there.


Roger 


Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
Dept. of Physics              *
University of Cape Town       *
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
Subject: Re: qsort() in gcc does not do indirect sorting?
Organization: University of Maine, Department of Computer Science
Date: Sun, 15 Nov 1992 23:01:07 GMT

In article <1e44n6INN49u@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
>In article <1e3ejjINNdf4@pollux.usc.edu> ckhung@pollux.usc.edu (Chao-Kuei Hung) writes:
>:
>:int cmp(const int *i, const int *j)
>:{
>:    return(data[*i].x < data[*j].x ? -1 : 1);
>:}
>
>
>BZZZZZT! How will cmp() ever show that data[*i].x == data[*j].x??
>Your cmp() can never return 0 to show that the two are equal. Perhaps
>this worked on other platforms, because that particular sort didn't
>matter if  a==b. I think the sort is getting into an infinite loop
>because of this.
>
>This works in EMX/GCC:
>
>int
>cmp (const int * i, const int * j)
>{
>	if (data[*i].x == data[*j].x)
>	  return 0;
>	if (data[*i]].x < data[*j].x)
>	  return -1;
>	return 1;
>}

Better yet, 
  return (data[*j].x - data[*i].x);

Jeff

-- 
--------------------------------------
jurlwin@gandalf.umcs.maine.edu

Newsgroups: comp.os.os2.programmer
From: etxabju@eua.ericsson.se (Anders Bjurman)
Subject: Re: Nested Comments in IBM C Set/2
Reply-To: etxabju@eua.ericsson.se
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Date: Mon, 23 Nov 1992 10:53:37 GMT

In article 721870314@volga.Berkeley.EDU, c9e-aw@volga (Claudio Fahey) writes:
>Does anybody know if the IBM C Set/2 compiler can be
>setup to support nested comments?  It sure is a pain
>uncommenting my comments when I want to comment a large
>section of code.
>

How about

#if 0

	... code to comment out ...


#endif

---
             __________________________________________________________
 `"""'     _/  RF Anders Bjurman,              Memo: eri.etx.etxabju   \_
  O O   __/    Ericsson Telecom AB             Anders.Bjurman@eua.se     \
   >  _/       S-125 25 Alvsjo, Sweden         +46 8 727 49 80          _/
   o   \_______________________________________________________________/
From: I18BC@CUNYVM.BITNET (CUNY/Spartacus)
Newsgroups: comp.os.os2.programmer
Subject: Re: BC++ for OS/2 announced - NOT!
Date: 22 Nov 92 15:38:45 GMT
Article-I.D.: CUNYVM.92327.103845I18BC
Organization: City University of New York/ University Computer Center

In article <KEISU.92Nov19074601@lludd.sics.se>, keisu@sics.se (Torbj|rn Keisu)
says:
>that
>BC++ for OS/2 will be released in January. He also said that Borland won't
>produce a OS/2 version of BP until
>1) the BC++ version is finished, launched and evaluated.
>2) its clear that there really is an OS/2 market.
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>/tk

  <sigh>

-------
------------------------------+      All The Best,
Reply To:                     |
     I18BC@CunyVM.Cuny.Edu    |      Edward Galarza,
     I18BC@CunyVM.BitNet      |      Brooklyn College Of The
     IRC: Spartacus           |      City University Of New York
------------------------------+
Date: Tue, 17 Nov 92 15:47:57 +0100
From: Roman_Grzondziel@freax.fido.de (Roman Grzondziel)
Subject: Re: OS/2 memory management (ARGH!)
Newsgroups: comp.os.os2.programmer
X-Comment-To: (Marten Feldtmann)
Organization: High End Point: 

>> Now watch what is happening with your memory! After few clicks the
>> system has only 512 kb free store left and begins to expand the swap file.
>> It seems like you can fill up any partition (no matter how large) this
>> way :) The memory is being freed but not before I quit the application.
MF>
MF>  I found this too! On my computer I found another strange thing with the
MF> memory of OS/2. My computer has 16MB, starting Beta-OS/2 (clock.exe,
MF> alarm.exe and bitfax.exe as background programs) just leaves 4MB
MF> (printed by memsiz) to my applications -- well, where is the memory?

I guess it is some kind of "lazy" memory management. Like the system
is reading the DLLs needed for some applications (which already happens
while booting) and the memory is not being released unless there are
only 512 kb left. This improves the performance of the system and the
applications as well.

These are only wild guesses (my old Amiga did this sort of things, that's
why ;)), so please correct me if I'm wrong :)

    adios

        Roman

2:242/9.11@fido.org
roman_grzondziel@freax.fido.de
From: jal@mdavcr.mda.ca (John Lloyd)
Newsgroups: comp.os.os2.programmer
Subject: Re: IBM Developer's Workset/2 - who knows what's in it?
Date: 20 Nov 92 23:31:56 GMT
Organization: MacDonald Dettwiler, 13800 Commerce Parkway, Richmond, BC, Canada  V6V 2J3

So, now we Canucks now know how much it costs (workset/2).  How much
disk and/or RAM is required/recommended to install it?

Thanks

please reply to jal@mda.ca since my mailer doesn't.


John
From: @prism.cs.orst.edu
Newsgroups: comp.os.os2.programmer
Subject: Re: Using the mouse in a Vio graphics screen...
Date: 20 Nov 92 21:02:13 GMT
Article-I.D.: flop.1ejjolINNp1o
Organization: CS Dept, Oregon State University
NNTP-Posting-Host: prism.cs.orst.edu

In article <1992Nov20.103146.8785@fzi.de> auhl@fzi.de writes:
>Obviously you are one of the lucky people with documentation about
>the MOU/KBD/VIO interface. Can you give some pointers to good literature
>about that theme?
>
>Thanks, Axel.

Actually, I don't have one single book on the 16bit API's. That's why I keep
on posting so many quesitons here...

Keith
From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
Newsgroups: comp.os.os2.programmer
Subject: Re: getchar() without <enter> in emx gcc?
Distribution: world
Date: Sat, 21 Nov 92 22:30:43 MET
Organization: Private

In article <1992Nov21.154701.16804@grebyn.com> richk@grebyn.com (Richard Krehbiel) writes:
>How do you read a single character from the keyboard without requiring
>hitting ENTER, and without echo?
>
>Specifically, this is in emx gcc 0.8e.  I'm incuding what I'm trying
>now, but it doesn't work.  It does in Unix, which I thought the termio
>interface in emx was supposed to emulate.
>
>        setbuf(stdin, NULL);
>        ioctl(0, TCGETA, &tio);
>        tio.c_lflag &= ~(ICANON | ECHO);
>        tio.c_cc[VMIN] = 1;
>        tio.c_cc[VTIME] = 0;
>        tio.c_cc[VEOL] = 0;
>        ioctl(0, TCSETA, &tio);
>
>After this, characters are still automatically echoed and buffered,
>etc.

First, check the EMXDEV.DOC file. You will find 

a) _read_char()

b) TERMIO which allows things like the above

Unfortunately, TERMIO is sometimes tricky to work with. I would
suggest you to look at/try the /emx/test/termio.c sample code and
figure out how it works.

Kai Uwe Rommel

--
/* Kai Uwe Rommel                                      Muenchen, Germany *
 * rommel@jonas.ucrc.sub.org                       Phone +49 89 723 4101 *
 * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams
Newsgroups: comp.os.os2.programmer
From: "robert fielder" <robert.fielder@canrem.com>
Subject: ibm developer's works
Reply-To: "robert fielder" <robert.fielder@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 23 Nov 92 19:57:50 EST


JL>So, now we Canucks now know how much it costs (workset/2).  How much
JL>disk and/or RAM is required/recommended to install it?

John:

Lots of disk.  About 30 Mb on my system.

I am running an 80386sx 20 Mhz system with 9 Mb RAM.  I could wish for
more RAM, or an 8514a video card, but all in all it is workable.  Not
what I would use to recompile a 500,000 line program, but
otherwise......

Robert

Entered on Mon  11-23-1992  18:57:23 from Brampton, Ontario, Canada
---
  DeLuxe 1.26b #502  I find push buttons very depressing......
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
From: francis@vnet.ibm.com (Tim Francis)
Date: Wed, 18 Nov 92 16:50:57 EST
Subject: Re: Command in REXX to execute the text in a variable?
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1992Nov18.111554.1243@galaxy.gov.bc.ca>,
sasmith@galaxy.gov.bc.ca writes:
>
>In article <widow.722104795@camelot>, widow@camelot.bradley.edu (Shaun Burnett) writes:
>
>> 	xxxxx Program,Filename
>>
>> 	where xxxxx is a command that would pass "f:\utils\unzip -v
>> 	g:\aoc.zip" to an environment shell (DOS or OS/2).
>>
>> 	Any help would be greatly appreciated.  I haven't found a
>> 	"quick reference" that describes all the commands on one page,
>    How about
>
>       interpret Filename Program
>
>    The REXX interpret command should handle this.

Yes, Interpret will handle this, but is unnecessary.  One of the beauties
of REXX is that unrecognized commands get passed onto the command shell
automatically.  Thus, you can do the following:

Cmd = 'ERASE'
File = 'D:\This\is\my\file'
Cmd File

There's actually very little that REQUIRES the use of interpret.  It's
a little like GOTO -- very powerful, very easy to misuse.  You could
use interpret to execute a REXX command dynamically, for example.  The
following program will allow you to type in (and execute) any REXX
commands.  Try it - it's useful for learning new REXX commands.

/**/
do forever
  parse pull cmd
  interpret cmd
end

-tim
Xref: sparky comp.os.os2.programmer:6458 comp.os.os2.apps:8320
From: ochealth@unixg.ubc.ca (ochealth)
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
Subject: Re: qsort() in gcc does not do indirect sorting?
Date: 16 Nov 92 00:32:13 GMT
Article-I.D.: iskut.1e6q6dINN7cp
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: unixg.ubc.ca

In article <1992Nov15.230107.29374@gandalf.UMCS.Maine.EDU> jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin) writes:
:In article <1e44n6INN49u@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
:>In article <1e3ejjINNdf4@pollux.usc.edu> ckhung@pollux.usc.edu (Chao-Kuei Hung) writes:
:>:
:>:int cmp(const int *i, const int *j)
:>:{
:>:    return(data[*i].x < data[*j].x ? -1 : 1);
:>:}
:>
:>
:>BZZZZZT! How will cmp() ever show that data[*i].x == data[*j].x??
:>Your cmp() can never return 0 to show that the two are equal. Perhaps
:>this worked on other platforms, because that particular sort didn't
:>matter if  a==b. I think the sort is getting into an infinite loop
:>because of this.
:>
:>This works in EMX/GCC:
:>
:>int
:>cmp (const int * i, const int * j)
:>{
:>	if (data[*i].x == data[*j].x)
:>	  return 0;
:>	if (data[*i]].x < data[*j].x)
:>	  return -1;
:>	return 1;
:>}
:
:Better yet, 
:  return (data[*j].x - data[*i].x);


I know, but my ANSI reference says compare() should only return -1, 0, or 1.
for < = >, but maybe that's wrong.

:
:Jeff
:
:-- 
:--------------------------------------
:jurlwin@gandalf.umcs.maine.edu
:


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
From: pstevens@Metaphor.COM (Paul Stevens)
Newsgroups: comp.os.os2.programmer
Subject: Re: sprintf() hangs application
Date: 23 Nov 92 22:11:11 GMT
Reply-To: pstevens@Metaphor.COM (Paul Stevens)
Organization: m4

In article <1992Nov17.190901.16350@panix.com>, os2man@panix.com (Larry Salomon Jr.) writes:
|> For some reason, a call to sprintf() instead one of my routines
|> (called getTempName()) hangs my PM application (using C-Set/2 from
|> CD ROM to compile).
|> 
|> Since sprintf() calls malloc() I decided to allocate 100 bytes before
|> calling sprintf() (and immediately free the 100 bytes), and - sure enough -
|> the app hung on the malloc() call.
|> 
|> It sounds like something is getting trashed somewhere, but I don't make
|> any calls to malloc() (I use my own home-grown routines, which I am 99%
|> sure are correct) so it's not like the run-time is suffering from memory
|> fragmentation.
|> 
|> If *anyone* has any ideas what's going on, *please* let me know, since this
|> is a "show stopper."
|> 

We had a situation like this that was caused because someone was using
an uninitialized semaphore handle (value of 0) and requesting that 
semaphore.  Turns out that 0 is indeed a valid handle and is, in fact,
the sem that the C runtime library uses!  Finding this was *not*
easy (a lot of digging with the kernel debugger).  Good Luck!

Oh, yeah, this is only true if you are using the multi-threaded
C library (the sem is used to sync access to global structures for
each calling thread).

I think this is a major bad architectural choice to allow 0 as a
legal semaphore handle, and then to find that it will be used by
something as pervasive as the C runtime library.
+------------------------------------------------------------------------+

   Paul Stevens                        {apple|decwrl}!metaphor!pstevens
   Metaphor Computer Systems           pstevens@metaphor.com
   Mountain View, CA