HDTenEightyP/NetNews huggingface dataset:
From: kitchin@lf.hp.com (Bruce Kitchin)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 libraries thread-safe ?
Date: 17 Dec 1992 21:30:38 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]

Ernst Kloecker (ernst@opal.cs.tu-berlin.de) wrote:

The C library has been pretty well handled by the other responses.
If you compile properly with IBM C Set/2 (set the multithreaded
compile option) you should be completely safe except from your
own multithreaded errors (simultaneous access of shared globals
without semaphore protection).

: Or are the only safe functions the OS-functions in 'bsedos.h' ?
: 
: Or are even those functions not completely thread-safe ?
: 
All functions declared through including os2.h (includes bse*.h,
pm*.h, etc) are safe.  They are part of or attached to the
operating system which is designed for such problems.  They are
not part of the C library.  Again, you can get into trouble due
to sharing your own variables.  But I believe that every Dos, Win, Gpi,
Mou, Kbd, Vio, etc call is atomic to the extent that anything that
it depends on in the system (such as file buffers) are modified
without the chance of another thread getting in.  However, two
DosWrite's in a row may be split by a DosWRite from another thread.

Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: game port in OS/2 using EMX Gnu C
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Fri, 11 Dec 1992 23:25:14 GMT

In article <1g9ebqINN6j5@skeena.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
>does anyone know how to do game port IO under OS/2, using EMX/GCC?

There's a game port driver available via anonymous ftp from
ftp-os2.nmsu.edu.  Look in both /pub/uploads (including
subdirectories) and check the index file /pub/os2/00Index to locate
it.

I believe sample code is included to get you started.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, available from
sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
of Chicago, 60637       | [Read the List, THEN post to ONE OS/2 newsgroup.]
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Date: Mon, 14 Dec 92 09:40:44 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: AT&T enhancements for the DAP CD-ROM disk for $10. Worth it?
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0

In <Bz7L6w.3r8@cs.uiuc.edu> Anil Joshi writes:
>I called the 1-800-3-ibm-os2 the other day to order the DAP CD-ROM. The person
>at the other end asked whether I would like to order the AT&T enhancements
>floppy too for an extra $10. Does somebody know what it contains? Any help
>would be greatly appreciated.

Anil,
  It contains the AT&T (actually USL or Unix Systems Laboratories) class
libraries which are shipped with the USL C++ Language System 3.0 (aka
Cfront 3.0).  The libraries are (1) Iostreams
                                (2) Complex Numbers
                                (3) Tasks
If you are porting C++ applications from a Unix system, then (1) and (3)
may be of interest to you.  (1) is a type-safe replacement to the ANSI-C
printf, scanf, etc. family of functions, and it illustrates (both good
and bad) the effects of multiple inheritance. (2) is useful for Sci/Math
programmers only, and the class library is a "text-book" example of
what can be done with OOP.  (3) is great on Unix systems, since Unix does
not have threads, just processes.  On OS/2, (3) is less useful than
using BeginThread/CreateThread etc. (3) is definitely for Unix porters.
  If you are doing stdio-type of programming, then (1) is also useful.
If you are doing PM programming, it is not.

Cheers,
Martin Lansche   IBM Canada Lab, Toronto Canada
  ________________________________________________________________________
   Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
   numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
   ----------------------------------------------------------------------
   The father made the world for elves and mortals and he gave it into
   the hands of the Lords in the West.  They are blessed, holy and loved,
   except the black one.  He has fallen.  (J.R.R. Tolkien).
  ________________________________________________________________________

Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: I need assistance creating HELP for my app
Date: Wed, 16 Dec 1992 14:59:03 GMT
Organization: PANIX Public Access Unix, NYC

In <BzB4sw.1zq@news.cso.uiuc.edu> cjs33278@uxa.cso.uiuc.edu (Carl+Chris Samos) writes:

>I'm trying to get the helpfile finished for my application, but I'm running
>into a little trouble.  The only trouble I'm having is creating the .IPF file
>that I compile with IPFC.  Currently I'm using Describe (a very nice OS/2
>word processor) to write the help text.  I then save the file in RTF.  My
>coworker wrote a RTF to IPF converter, but it needs a little work.

>So I was wondering if there was some other way to generate a .IPF file.  I'd
>rather not type it by hand, as my app currently has over 250 help pages, and
>it grows daily.

This might work.  Try creating a printer using the IBMNULL driver and then
print to a file.  This should convert your Describe document to ASCII which
can then be converted with a few macros or possibly a Rexx program.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: kumarad@ecf.toronto.edu (KUMARADAS JOSEPH CARL)
Subject: Re: OS/2 libraries thread-safe ?
Organization: University of Toronto, Engineering Computing Facility
Date: Thu, 17 Dec 1992 19:14:08 GMT

In article <1992Dec17.094108.12612@eua.ericsson.se> etxabju@eua.ericsson.se writes:
>In article 26031@cs.tu-berlin.de, ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
>>Hi,
>>
>>what precautions do I have to take when calling C-library functions from
>>different threads in one process ?
>>

While the MS libraries have some functions which are non-rentrant, the IBM 
CSet/2 libraries are all re-entrant from what I understand.

Carl.

Newsgroups: comp.os.os2.programmer
From: harriga@duc.auburn.edu (Greg A. Harris)
Subject: Re: Trouble making ZIP (gnumk362, dmake)
Keywords: gnu make dmake zip
Organization: Auburn University, Alabama
Date: Sun, 13 Dec 1992 13:44:10 GMT

In article <burleigh.724232445@ogre> burleigh@ogre.cica.indiana.edu (Frank Burleigh) writes:
>I'm having trouble building the recent ZIPs with gnu make
>(ftp-os2:/pub/os2/2.0/programming/gnumk362.zip) and dmake 3.8.  Perhaps
>someone could help me?
>[...]
>I tried dmake (ftp-os2:/pub/os2/all/programming/dmake38x.zoo) as well,
>but that seems to want a dmake.ini, a sample of which is not included
>in dmake38x.zoo.  I used -r to suppress the search for dmake.ini, but
>that didn't work either, as in:
>
>D:\temp dmake -r -f makefile.os2 gcc
>f makefile.os2 zips \
>        CC="gcc -O" \

This indicates that the macro MAKE is not defined. If I recall correctly, 
emx-0.8e has a dmake.ini in emx/etc/.  It appears that you should add
the line
 MAKE         = $(MAKECMD) $(MFLAGS)

Here's the dmake.ini that I've been using:
# dmake.ini

__.SILENT := $(.SILENT)
.SILENT   := yes

SHELL       := cmd.exe
SHELLFLAGS  := /c
GROUPSHELL      := $(SHELL)
GROUPFLAGS  := $(SHELLFLAGS)
SHELLMETAS  := *"?<>|&
GROUPSUFFIX := .cmd
DIRSEPSTR   := \\
DIVFILE      = $(TMPFILE:s,/,\)

# .USESHELL :

CC          := gcc
AS          := as
LD          := gcc
AR          := ar
RANLIB      := ar s
RM          := rm

MAKE         = $(MAKECMD) $(MFLAGS)

.c.o :; $(CC) -o $@ $(CFLAGS) -c $<

.SILENT := $(__.SILENT)


--Darrel Hankerson hank@ducvax.auburn.edu

From: kevinl@tisdec.tis.tandy.com
Date: 14 Dec 92 07:45 CST
Newsgroups: comp.os.os2.programmer
Subject: GNU C/C++ for OS/2
Message-ID: <13100003@tisdec.tis.tandy.com>
Nf-ID: #N:tisdec.tis.tandy.com:13100003:000:919
Nf-From: tisdec.tis.tandy.com!kevinl    Dec 14 07:45:00 1992


When using GNU C/C++ for OS/2, I am unable to run the programs it
produces.

Everything compiles and links OK when just compiling a C program,
but when I try to run it, OS/2 stops the program and says it
created a problem and cannot continue.

When I try to link a C++ program I get unresolved externals that
look something like __?????__, where ? represents some character--
some undefined constant I think.

Also, when link386 finishes, it says that the program type is not
specified "assuming WINDOWCOMPAT."  How do I specify the program type?
I tried the /PMTYPE option, but it did not help.  This is really
secondary.  I don't mind the message as long as I can get the programs
to actually _run_.

Has anyone else experienced similar problems?  Any and all help would
be appreciated.
--
Kevin K. Lewis             | My opinions may be unreasonable
kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
From: kristine@cats.ucsc.edu (Kristine Mei Lan Ing)
Newsgroups: comp.os.os2.programmer
Subject: Object Vision for OS/2 forsale
Date: 14 Dec 92 20:31:24 GMT
Organization: University of California, Santa Cruz
NNTP-Posting-Host: am.ucsc.edu


Object Vision for OS/2 for sale.

Original Box, manuals and reg card!

$85.00
Newsgroups: comp.os.os2.programmer
From: mikel@networx.com (Mike Lempriere)
Subject: Re: How do I flush disk buffer?
Organization: NetWorx
X-Newsreader: TIN [version 1.1 PL6]
Date: Wed, 9 Dec 1992 19:26:45 GMT

BJ Hargrave (fattire@vnet.ibm.com) wrote:
: In <1fld47INN8fo@hpscit.sc.hp.com> Bruce Kitchin writes:
: >Mike Lempriere (mikel@networx.com) wrote:
: >: What I really want is simply to tell the dang system to flush the cache
: >: to disk for this one file every now and then.  I'd like to just start
: >: a seperate timer thread that just does a flush call every 15 minutes or
: >: so.
: >:
: 
: Just do a DosResetBuffer(DosBufReset for 16bit) on the file
: handle in question. This will update the dir entry as well as flush out
: the file data. Use with DosOpen file handles.
: -----------------------------------------------------------------------
: BJ Hargrave                     Internet: fattire@vnet.ibm.com
: Boca Raton, FL                  IBMIPNet: bjhar@bjhar.bocaraton.ibm.com

I knew there had to be an easy way!  Thanks a million!
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: sangercd@nextnet.csus.edu (Carl D. Sanger)
Subject: Re: PDK CDROM RAQ (Recently asked Questions)
Organization: California State University Sacramento
Date: Sat, 12 Dec 1992 03:23:00 GMT

In article <1992Dec11.135132.13336@gandalf.UMCS.Maine.EDU> jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin) writes:
>Dear all,
>
>Since my posting to the net regarding the November PDK CDROM, I've
>received a few messages asking a few questions.  Since these questions
>and answers, I think, are valuable to the NET, I'll post...
>
>Q)  How do I order the PDK?
>
>A)  Call 1-800-3IBMOS2.  They know how to deal with it.  The cost is $15
>and you'll need to have your DAP (Developer's Assistance Program) info
>ready.
>
>Q)  For how long can I use this?
>
>A)  For the November PDK, each BETA product on the disk carries it's own 
>time limit.  They are all legally usable until Feb 15, 1993 OR until 
>a GA version of the particular product appears on the market.  So, if 
>the C/C++ Set/2 appears on the market Feb 1, then you can no longer, 
>legally, use the C/C++ beta.  Now, of course if you have one on order, 
>I don't think IBM would be upset if you kept using the BETA until 
>the official copy arrived at your door.  But that's just my opinion.

In addition to the November PDK, IBM also has what the person at 800-3IBM-OS2
called the AT&T developers kit.  It cost $25(U.S.).  She also told me that
it included the C/C++ compiler and development tools.  Beyond that she
didn't know much.  I went ahead and ordered it though.  I was told that it would
be here within a week.  Does anyone know what I bought?

				Thanks,
				Carl S.

-- 
Carl Sanger				|| sangercd@csus.edu
California State University, Sacramento
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Borland C/C++ for OS/2
Keywords: Borland
Date: 18 Dec 92 22:04:06 GMT
Distribution: usa
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Dec14.221038.876@umr.edu> sdrumm@mcs213j.cs.umr.edu (Scott Drumm) writes:
>So what's the latest news on BC++ for OS/2 v2.0...Anybody got a release date?
>(Hopefully by the end of the year?). 

Official word is still "I'm sorry, we can't release that information
at this time."
-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Xref: sparky comp.os.os2.programmer:7049 comp.os.os2.misc:39523
From: louis@oak.ucsc.edu (Louis Goldstein)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: Re: PDK CDROM RAQ (Recently asked Questions)
Date: 16 Dec 1992 00:41:44 GMT
Organization: University of California, Santa Cruz
Distribution: world
Reply-To: louis@arapaho.ucsc.edu
NNTP-Posting-Host: oak.ucsc.edu

In article <1gldu9INNi5d@network.ucsd.edu>, eric@sdphu1.ucsd.edu (Bo Yang) writes:
|> I have a PC without a CD_ROM. I used to use the DOSREAD on our RS/6000 machine
|> (with a CDROM drive and a 3.5" flopydrive) to dump CD-ROM files to DOS diskets 
|> and bring them home to use with PC. Does anyone know if this works with the
|> OS2 PDK CD? 
|> 
|> In other words, can you dump the PDK CD to  DOS formatted floppy disks and
|> install OS/2 with them?
|> 
|> Many thanks.
|> 
|> --Bo
|> 

Yes, most (all?) of the stuff on the PDK can be used as either straight files
(text, bookmanager...), or are available on the CD as disk images which can 
be used to create install floppies.

Enjoy!
Louis
Newsgroups: comp.os.os2.programmer
Subject: Re: How do I flush disk buffer?
From: Dimitri Vulis <DLVGC@CUNYVM.BITNET>
Date: Monday, 14 Dec 1992 02:50:25 EST
Organization: City University of New York/ University Computer Center

I've had a similar problem (keeping the log file in the event the power
goes off) and simply calling fflush(fptr) after every fprintf seems to
commit the data to disk right away. (Including writing over a LAN Server
to a networked disk).  I even wrote a little function wrlog using stdargs
that first passes its args to fprintf(logfptr, then fflush(logfpr)'s.

Of course, fflush _may_ work differently under gcc (I tried this with
both icc and ms c 6.0)

Hope this helps,
Dimitri
Newsgroups: comp.os.os2.programmer
From: msmith@netcom.com (Martin P. Smith)
Subject: Re: Zortech C++
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: na
Date: Sat, 12 Dec 1992 17:17:43 GMT

In article <62784@mimsy.umd.edu> pr@umiacs.umd.edu (Jesus M. Rodriguez) writes:
>
>Well in response to the question about Zortech C++ for OS/2, there is one
>they sent me an offer to get Zortech C++ for OS/2 2.0 for $249.  It is
>a 32-bit compiler.  They also have one that does cross-platform compiling
>it will do Windoze, DOS, NT, OS/2 all for $699.
>
>Jesus
>pr@umiacs.umd.edu

The upgrade version is OS/2 2.0 only. The $699 version will NOT do 32 bit OS/2
and is basically the same compiler that Zortech ALWAYS have shipped with the 
DOS and Windows package. 

The $699 version does NOT do NT. You must buy the NT version ( currently in 
Beta ) to get that option. 

Martin smtih
msmith@netcom.com
From: vohwi-d@acsu.buffalo.edu (David A. Vohwinkel)
Newsgroups: comp.os.os2.programmer
Subject: Communication routines???
Date: 14 Dec 92 20:40:36 GMT
Organization: UB

I want to mess with programming a term program but I would like to find
some already created communications routines and even some transfer 
protocals... I've seen them in assembly and C but it was for Dos.... Does
anyone know of any that are for Os/2 (2.0 is perfered but 1.3 is o.k.) and
where they can be found.???


						Thanks

		
							Dave V
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: X-Windows like mouse/focus behavior (here's how)
Date: Wed, 16 Dec 1992 14:50:17 GMT
Organization: PANIX Public Access Unix, NYC

For those interested, I've seen quite a few requests for this behavior.
Although I haven't tried the below, it should work; no guarantees, however.

The strategy here is to install a system-wide HK_INPUT hook which follows
the WM_MOUSEMOVE messages.  You can easily call WinWindowFromPoint() to
obtain the window handle under the mouse, follow the parent chain until
you reach the top-level window, and call WinSetFocus() to give it the focus.

Anyone want to give it a try?  If so, please post any changes to the above
here and place the source on ftp-os2.nmsu.edu.  Thanks.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
From: mp52+@andrew.cmu.edu (Matthew Edward Patton)
Newsgroups: comp.os.os2.programmer
Subject: BSR 6800 CDROM driver
Date: 13 Dec 92 01:39:19 GMT
Article-I.D.: andrew.Uf_m3bW00WCQ8=pkRI
Organization: Sophomore, H&SS general, Carnegie Mellon, Pittsburgh, PA

A friend of mine asked me to ask around for the availability of a driver
for the BSR 6800 from DAK.  He can't seem to get anything to work.  CAN
someone direct me to a site or provide hints to a workaround?

Thanks from both me and him..
==================================================================
                     Laws of Computer Programming

1. Any given program, by the time it is up and running is obsolete.
2. Any given program costs more and takes longer than planned and budgeted.
3. Inside every large program is a small program struggling to get out.
4. Program complexity grows until it exceeds the capability of the programmer
   who must maintain it.
5. At the source of every error which is blamed on the computer, you will
   find at least two human errors, including the error of blaming it on the
   computer.

Press F4 to exit menu.
Newsgroups: comp.os.os2.programmer,comp.os.os2.networking
From: awerman@panix.com (Aaron Werman)
Subject: How to redirect keyboard input to a (non-changing) OS2 app?
Summary: Can a DOS program act as keyboard input for a character OS2 app?
Date: Sat, 19 Dec 1992 14:27:45 GMT
Organization: PANIX Public Access Unix, NYC

I have a:
- DOS program that calls an I/O routine (I have the source)
- OS2 character mode application (executable)
The DOS program generates input for the OS2. Is there any way that the 
DOS program could act as a keyboard - typing data to the OS2 app?
It seems easy to have the DOS app send data (this could be from a DOS
box or through a serial port from another computer). The problem is how
to get the OS2 app to receive the input. In DOS a keyboard TSR could
do the work - but I dunno how to this in OS2.

Any clues, references, or strategies would be appreciated. I am NOT a
strong OS2 person.

	Thanks in advance,
			Aaron
-- 

Aaron Werman		awerman@panix.com
From: teague@a.cs.okstate.edu (Keith Teague)
Newsgroups: comp.os.os2.programmer
Subject: Re: 11/92 PDK on CD-ROM...
Date: 13 Dec 92 16:37:23 GMT
Article-I.D.: a.1992Dec13.163723.9185
Organization: Oklahoma State University

From article <joiner.724209068@exa>, by joiner@exa.cs.umn.edu (Jay K. Joiner):
> 
> I would recommend reformatting the installation partition to get a clean
> install.  I've created one partition simply to hold my OS/2 system files
> which I can reformat whenever I need to install a new version of the OS.
> You can keep your data and applications on other partitions that don't
> get touched by the system install.
> 

On this same note, is it possible to install IBM TCP/IP, NFS, X, etc., on
a partition separate from the OS and easily install a new copy of the OS
without having to reload the whole network package? I've gone through
this several times - and it's getting kind of old!

Keith Teague
Newsgroups: comp.os.os2.programmer
From: nicolson@odie.ee.wits.ac.za (James Nicolson)
Subject: Customizing EPM 5.51
Organization: Wits Electrical Engineering (Novell Users).
Date: Thu, 17 Dec 1992 08:00:05 GMT

Hi,

I am using EPM v5.51 from software.watson.ibm.com. (Its seems like a really 
good editor)

When it comes to customizing it, I ran into a problem. Even without 
including my own .e files (mystuff.e etc.), the translator (etpm) complains
about the .ex file being bigger than the allowed 64k. Ie. all I am doing is:
  etpm epm
using the macro files as supplied in epmmac.zip.

Am I missing something?

Thanks,

------------
James Nicolson, Department of Electrical Engineering
University of the Witwatersrand, South Africa
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Help hook solution
Date: Wed, 16 Dec 1992 15:05:10 GMT
Organization: PANIX Public Access Unix, NYC

Some time ago, I posted a desperate plea for help with providing help for
message boxes via the help hook (the only possible way to do so).  I did
everything according to the documentation to no avail; I could not get the
"Help" button to work.

Well, the documentation was wrong and has been since OS/2 1.2 (both IBM's
Programming Guide and MS's QuickHelp overviews are incorrect).  They state
that, if you are going to use a help hook, it should be installed PRIOR
to creating the help instance, since it too installs a help hook to perform
its function.  However, if you assume for the moment that it uses the
WinSetHook() function to do so and look in the docs for that, you'll see that
the call installs the hook at the *head* of the hook chain.

That means, for those who don't already see the problem :) , that if I install
A and the HM installs hook B afterwards, the hook chain is B->A; but the HM
never calls the next hook!

When I moved the WinSetHook() to after the WinAssociateHelpInstance() call
everything worked fine.

You would think that *someone* *somewhere* would have found this doc error,
but *AP*p*AR*ently not.  IBM, please fix this.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
From: mhof@iiic.ethz.ch (Markus Alexander Hof)
Subject: Problems with GpiQueryBitmapDimension
Originator: mhof@c12
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Date: Fri, 18 Dec 1992 10:40:20 GMT

Hi,

Got this strange phaenomen using 'GpiQueryBitmapDimension'. I 
always get back 0 for the width as well as for the height. This
cannot be the error of my bitmap handle, because with
'GpiQueryBitmapParameters' I get correct values. Anybody got a 
clue? FYI I use still a 16 bit Compiler under V2.0 GA+SP.

Merry Xmas  Markus

INTERNET: mhof@iiic.ethz.ch