HDTenEightyP/NetNews huggingface dataset:
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Mouse programming
Organization: Warsaw University Physics Dept.
Date: Fri, 9 Oct 1992 14:07:38 GMT

>>>>> On Mon, 5 Oct 1992 16:24:03 GMT, gay@selkirk.sfu.ca (Ian D. Gay) said:
Ian> stuartw@ccu1.aukuni.ac.nz (Stuart Woolford) writes:
>How do you write a routine in pascal ( or C...asm...etc ) which will be called
>by the standard callback function of the driver ( when a button is pressed, etc
>), and which can still address the programs global variables, the problem is
>that, when the routine is called, DS points at the MOUSE DRIVERS data segment,
>and I at least could not think of an easy way to address the programs global
>data, which will NOT be at a fixed address :-(
Ian> I have used the following as inline assembler with Turbo-C. It works. 
Ian> I couldn't think of a pure C way to do it.
Ian>     push ds
Ian>     mov  ds seg DGROUP

It can be done in C if you use HUGE memory model to compile the
procedure (in HUGE model DS is set on entry to procedure).
Or, if the driver can call procedure pushing flags before the call,
it (the procedure) can be declared as interrupt procedure.
But, anyway, stack size may be a problem (I remember problems with
VDISK which uses local stack of small size, and an interrupt while
VDISK processed its "I/O" sometimes caused crash).
Newsgroups: alt.msdos.programmer
From: cclark@trentu.ca (J. Chris Clark)
Subject: Re: BC++ neophyte question
News-Software: VAX/VMS VNEWS 1.41    
Organization: Trent University Computer Services Department
Date: Thu, 15 Oct 1992 20:43:00 GMT

In article <1992Oct15.070914.27255@CS.ORST.EDU>, saidra@prism.CS.ORST.EDU (Raoul Said) writes...
>	Ok, if I tell BC++ to do a make in the IDE it makes and then links.
>But then if I tell it to make and run it links AGAIN!  How come it does not
>know not to link.  I have the make settings on check auto dependencies and
>run linker after compile.  Am I missing something simple here?  I am not
>modifying any files when it links redundantly.  Thanks....

There's two things which spring to mind off the top of my head.
1)  The second time it isn't actually linking, just checking the dependencies.
    (I don't mean to insult your intelligence, but it is a possibility that
     you just didn't look very closely.  :)

2)  There is a discrepancy between the system clock and the timestamp on the
    files.  Usually this should only occur with source files and thus causing
    a re-compile, not JUST a re-link.  (Since the re-link uses object files
    which theoretically were just written and took their time from the clock.)

A third possibility is that your project file has become corrupted.  This seems
to somehow happen all too frequently to me.  I'll start getting a bunch of
"Exception 13/)d"'s or just error messages which make no sense.  If I delete 
the project file and rebuild it from scratch, this often clears up the problem.

I know this doesn't really answer the question, but...   :)

Chris C.

Newsgroups: alt.msdos.programmer
From: furballs@sequent.com (Paul Penrod)
Subject: MDBM source
Organization: Sequent Computer Systems Inc.
Date: Fri, 16 Oct 92 05:26:42 GMT

Does anyone know where I can find the mdbm, or mdbx source code. I
have the dbm source, but I need the multi-key index capability of
mdbm ?

Thanks in advance.

...Paul

-- 
--------------------------------------------------------------------
            Bureaucracy: noun, plural - Bureaucracies.
         The process of turning energy into solid waste.
---------------------------------------------------------------------
Newsgroups: alt.msdos.programmer
From: d9502001@ccms (Jih-Chung Lee)
Subject: Watcom C9.0/386 C compiler
Organization: National Taiwan University Computer Center
X-Newsreader: Tin 1.1 PL3
Date: Sun, 4 Oct 1992 02:38:01 GMT

Hi,
    I have some questions about Watcom C
       1. Does it support 387 or just emulate ?
       2. Does it support inline asm ?
    every notes will be appreciated.
Thanks in advance.

d9502001@ccms.ntu.edu.tw
Newsgroups: alt.msdos.programmer
From: Bob Zigon <bobz@truevision.com>
Subject: Control a PLC across a LAN
Organization: Truevision
X-Useragent: Nuntius v1.1
Date: Fri, 16 Oct 1992 16:06:20 GMT

I am looking for a software package that would allow me to control a PLC
across
a LAN from a IBM PC. Does such a package exist? The  LAN is already in
place in a lot of
our customer sites. We now want to control a bunch of machine tools with 
a PLC from
across the LAN.

Bob Zigon
bobz@truevision.com
From: kingsley@hpwrce.mayfield.hp.com (Kingsley Morse)
Date: Fri, 9 Oct 1992 15:34:30 GMT
Subject: Re: Please Help
Organization: HP Western Response Center
Newsgroups: alt.msdos.programmer

Oops! My apologies for posting my previous "Please Help" survey to this
group. It was an honest mistake and won't happen again.

Kingsley
Newsgroups: alt.msdos.programmer
From: pstlb@acad2.alaska.edu
Subject: Re: Virus Construction Kit
Organization: University of Alaska
Distribution: usa
Date: Wed, 7 Oct 1992 03:09:42 GMT

In article <1992Oct2.215538.13995@cs.mcgill.ca>, branagh@cs.mcgill.ca 
(Wayne BRANAGH) writes:
> Does anyone have a copy of the Dark Avenger's virus developer's kit
> (called the Mutation Engine)? 
> 
> I saw it mentioned in PC Magazine and I'd really like to see what comes
> in the package (code wise). If it's widely available would someone point
> me to an ftp site or mail me a copy? 
> 
> I'm sure it's shareware :-). 
> 
> Cheers,
> Wayne
> branagh@binkley.cs.mcgill.ca 
> 
> 

gee.... that's JUST what the world needs, more viruses.....

not to say that you'd create one, but there are plenty of assholes out there
that WOULD, give half a chance.....  and this kit, if it exists, is
dangerous.....  

oh well..... would whoever answers the original post please post the location,
so that us good guys can use it to find out what to look for in our
virus-detection programs?  thanx in advance.....
Xref: sparky alt.msdos.programmer:2530 comp.sys.ibm.pc.programmer:477
From: pstlb@acad2.alaska.edu
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer
Subject: virtual device drivers?
Date: 7 Oct 92 03:27:49 GMT
Article-I.D.: acad2.1992Oct6.232749.1
Organization: University of Alaska



  I had read a post, a reply to someone asking about trapping I/O port accesses
under 386 p.mode, and the reply said that it could be done using a virtual
device driver.....  

  My question, then, is this:  how does one write a virtual device driver?  how
is it different from a 'regular' device driver?  and, can it be done with Turbo
Assembler?  

  also, I'd like to know how to switch into protected mode (i.e. an interrupt
call, changing the value of a "special" cpu register, etc.).....  386 protected
mode, not 286.....  all the different ways, if at all possible.....  


  please email me.....  I know it's supposedly bad etiquette, but I have a lot
of homework, which precludes me from checking this newsgroup frequently..... :)

+=============================================================================+
|  requisite quote:  "This universe is *MINE*, and here *I* am God!"          |
|                                               -The Lawnmower Man            |
|                                                (best if said in semi-       |
|                                                demonic voice, and           |
|                                                being in cyberspace          |
|                                                doesn't hurt..... :)         |
+=============================================================================+
Newsgroups: alt.msdos.programmer
From: brace@columbia.eng.hou.compaq.com (Don Brace)
Subject: TSR
Followup-To: brace@compaq.com
Keywords: TSR DOS
Organization: Compaq Computer Corporation
Date: Fri, 16 Oct 1992 18:45:50 GMT

Does anyone have a TSR that will respond to a pop-up message with a carrage
return?

Newsgroups: alt.msdos.programmer
From:  volt@kaskad.msk.su (Shirin Vladimir Voltovich)
Subject: How to destroy BIOS SETUP parople? I have hint...
Date: Tue, 13 Oct 1992 09:38:08 GMT
Reply-To: volt@kaskad.msk.su
Organization: SV KASKAD

Hi,
HINT ME !!!
My students made bad bios parameters  and locked my 15 IBM AT with random
parole in bios set up.
Please help me to destroy bios set up  parol IBM AT 286 !
Now I take out battery, long wait and restart AT, when set up good parameters
and place battery.
This is hard and long way.
..........
But, one student random pressed kbd and restart (!!!) set up !
Parole automaticaly destroyed !!!
..........
Do you know how to do it ?

Simon.  volt@kaskad.msk.su


Newsgroups: alt.msdos.programmer
From: poffen@rushmore (Russ Poffenberger)
Subject: Re: Finding the mouse
Organization: Schlumberger Technologies, ATE division, San Jose, Ca.
X-Newsreader: Tin 1.1 PL4
Date: Fri, 9 Oct 92 19:49:35 GMT

jt@fuw.edu.pl (Jerzy Tarasiuk) writes:
: >>>>> On Tue, 6 Oct 1992 21:22:00 GMT, mortenk@dhhalden.no (MORTEN KNUDSEN) said:
: MK> I'm writing a program that needs to know what port the mouse is
: MK> connected to. Do anybody know how to do this, or is there a .DOC
: MK> file that explains direct mouse programming? I couldn't find it
: MK> in the HELPPC file.
: Mouse is usually connected to one of serial ports known to BIOS (their
: addresses are at 0x40:0,2,4,6; I don't know any mouse driver using
: other port and even if there is any, it must get port address from
: command line or config file...). And: I don't know if there is any
: possibility to send command to mouse (if there is a possibility to
: send command to mouse and get answer, it makes possibility to check
: where is mouse), the only I tried was to receive what mouse sends
: and interprete it. But it should be enough: ask user to move the
: mouse and wait until data received can be detected on any serial
: port, then assume mouse is there. I took decoding algorithm from
: some BYTE or other magazine, don't remember but have a program -
: would you like to look at it ? (it is about 15kB of .ASM source).

Well, MS Windows can detect the mouse. The setup doesn't ask where an MS
compatible mouse is, you just tell it that you have one. I am not sure what
the procedure is, but I have a modem on com1, and mouse on com2. When Windows
comes up, a couple lights flash on the modem, I suspect this is the way
it sees if it is a mouse. In fact, moving the mouse while Windows is making
this check will cause windows to NOT think there is a mouse at all.

Russ Poffenberger               DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies ATE   UUCP:   {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive		CIS:	72401,276
San Jose, Ca. 95110             Voice: (408)437-5254  FAX: (408)437-5246
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: virtual device drivers?
Organization: Warsaw University Physics Dept.
Date: Thu, 8 Oct 1992 17:14:53 GMT

>>>>> On 7 Oct 92 03:27:49 GMT, pstlb@acad2.alaska.edu said:
p>   I had read a post, a reply to someone asking about trapping I/O port accesses
p> under 386 p.mode, and the reply said that it could be done using a virtual
p> device driver.....  
p>   My question, then, is this:  how does one write a virtual device driver?  how
p> is it different from a 'regular' device driver?  and, can it be done with Turbo
Seems someone meant 'driver for managing virtual 8086 mode'.
Of course Turbo Assembler can be used to write such a driver.
p>   also, I'd like to know how to switch into protected mode (i.e. an interrupt
p> call, changing the value of a "special" cpu register, etc.).....  386 protected
BIOS has routine to switch to 286 protected mode, simplest way
to switch to 386 protected mode is far jump or call to 32-bit code
segment (may be little problem, cannot load EIP on this jump because
in 286 PM CPU reads only 16 bit offset) or to 386 Task State Segment
(this should be recomended way, need load Task Register before jump).
Newsgroups: alt.msdos.programmer
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Finding the mouse
Organization: Warsaw University Physics Dept.
Date: Wed, 7 Oct 1992 18:18:57 GMT

>>>>> On Tue, 6 Oct 1992 21:22:00 GMT, mortenk@dhhalden.no (MORTEN KNUDSEN) said:
MK> I'm writing a program that needs to know what port the mouse is
MK> connected to. Do anybody know how to do this, or is there a .DOC
MK> file that explains direct mouse programming? I couldn't find it
MK> in the HELPPC file.
Mouse is usually connected to one of serial ports known to BIOS (their
addresses are at 0x40:0,2,4,6; I don't know any mouse driver using
other port and even if there is any, it must get port address from
command line or config file...). And: I don't know if there is any
possibility to send command to mouse (if there is a possibility to
send command to mouse and get answer, it makes possibility to check
where is mouse), the only I tried was to receive what mouse sends
and interprete it. But it should be enough: ask user to move the
mouse and wait until data received can be detected on any serial
port, then assume mouse is there. I took decoding algorithm from
some BYTE or other magazine, don't remember but have a program -
would you like to look at it ? (it is about 15kB of .ASM source).
Newsgroups: alt.msdos.programmer
From: saidra@prism.CS.ORST.EDU (Raoul Said)
Subject: BC++ neophyte question
Organization: Oregon State University, Computer Science Dept.
Date: Thu, 15 Oct 1992 07:09:14 GMT

	Ok, if I tell BC++ to do a make in the IDE it makes and then links.
But then if I tell it to make and run it links AGAIN!  How come it does not
know not to link.  I have the make settings on check auto dependencies and
run linker after compile.  Am I missing something simple here?  I am not
modifying any files when it links redundantly.  Thanks....
From: psb@matt.ksu.ksu.edu (Jr Phillip S Buckland)
Newsgroups: alt.msdos.programmer
Subject: Re: Hard Disk Classification
Date: 7 Oct 1992 23:48:06 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

m_rheau@pavo.concordia.ca writes:

>I'm posting this message for a friend who has the following
>problem (apologies if this is not the most appropriate usergroup):

>He bought a second-hand hard drive, a Seagate ST-1102A.
>He doesn't know how to configure the hard drive in setup.
>He would like to know cylinders, etc, and even how many megs
>so he doesn't configure it incorrectly.  Does someone out there
>have this model's specs?

	If your friend has access to a FAX machine, have him call SeaFAX
	(Seagate Telephone Technical Support Automated FAX Information
	System) at (408) 438-2620 and request document # 11025.  The call
	must be performed from a touch-tone phone.

	If your friend hasn't access to a FAX, have him call the Seagate
	prerecorded technical information line at (408) 438-8222.  I don't
	recall what information to request, but it would be along the lines
	of technical information for the drive.

>A question of my own: Would configuring it incorrectly be damaging
>in any way to the disk?

	Perhaps.  The drive physically has 965 cylinders and 5 R/W heads,
	but the IDE circuitry considers any cyl/hd/sector information passed
	to it to be the _logical_ cyl/hd/sector rather than the actual
	physical cyl/hd/sector.  Calling either of the two numbers mentioned
	previously will get your friend the correct _logical_ parameters
	needed to use the drive.

>Thanks in advance for any help

	You're welcome.


We read the world wrong		| Phil Buckland
and say that it deceives us.	| psb@eece.ksu.edu
Tagore, from Stray Birds	| psb@matt.ksu.ksu.edu
From: pheffner@fang.att.com (Paul Heffner)
Newsgroups: alt.msdos.programmer
Subject: getopt(3) code
Keywords: getopt
Date: 16 Oct 92 14:09:42 GMT
Organization: AT&T Tax Systems Development, Maitland FL


Sorry folks!

In a followup posting I sent out the getopt code without the referenced
getopt.h file. Here both are again. Hope the other post doesn't screw
up too many people. (The header file isn't too crucial, but the lack
of it may cause anxiety...)


Heff

================ Begin getopt.h ============================
extern int getopt();
extern int optind;
extern char *optarg;
================ Begin getopt.c ============================
/*
**	@(#)getopt.c	2.2 (smail) 1/26/87
*/

/*
 * Here's something you've all been waiting for:  the AT&T public domain
 * source for getopt(3).  It is the code which was given out at the 1985
 * UNIFORUM conference in Dallas.  I obtained it by electronic mail
 * directly from AT&T.  The people there assure me that it is indeed
 * in the public domain.
 *
 * There is no manual page.  That is because the one they gave out at
 * UNIFORUM was slightly different from the current System V Release 2
 * manual page.  The difference apparently involved a note about the
 * famous rules 5 and 6, recommending using white space between an option
 * and its first argument, and not grouping options that have arguments.
 * Getopt itself is currently lenient about both of these things White
 * space is allowed, but not mandatory, and the last option in a group can
 * have an argument.  That particular version of the man page evidently
 * has no official existence, and my source at AT&T did not send a copy.
 * The current SVR2 man page reflects the actual behavor of this getopt.
 * However, I am not about to post a copy of anything licensed by AT&T.
 */

#ifdef BSD
#include <strings.h>
#else
#include <string.h>
#define	index	strchr
#endif

/*LINTLIBRARY*/
#define NULL	0
#define EOF	(-1)
#define ERR(s, c)	if(opterr){\
	extern int write();\
	char errbuf[2];\
	errbuf[0] = c; errbuf[1] = '\n';\
	(void) write(2, argv[0], (unsigned)strlen(argv[0]));\
	(void) write(2, s, (unsigned)strlen(s));\
	(void) write(2, errbuf, 2);}

#include "getopt.h"

int	opterr = 1;
int	optind = 1;
int	optopt;
char	*optarg;

int
getopt(argc, argv, opts)
int	argc;
char	**argv, *opts;
{
	static int sp = 1;
	register int c;
	register char *cp;

	if(sp == 1)
		if(optind >= argc ||
		   argv[optind][0] != '-' || argv[optind][1] == '\0')
			return(EOF);
		else if(strcmp(argv[optind], "--") == NULL) {
			optind++;
			return(EOF);
		}
	optopt = c = argv[optind][sp];
	if(c == ':' || (cp=index(opts, c)) == NULL) {
		ERR(": illegal option -- ", c);
		if(argv[optind][++sp] == '\0') {
			optind++;
			sp = 1;
		}
		return('?');
	}
	if(*++cp == ':') {
		if(argv[optind][sp+1] != '\0')
			optarg = &argv[optind++][sp+1];
		else if(++optind >= argc) {
			ERR(": option requires an argument -- ", c);
			sp = 1;
			return('?');
		} else
			optarg = argv[optind++];
		sp = 1;
	} else {
		if(argv[optind][++sp] == '\0') {
			sp = 1;
			optind++;
		}
		optarg = NULL;
	}
	return(c);
}
Newsgroups: alt.msdos.programmer
From: pynq@quads.uchicago.edu (George Jetson)
Subject: Re: Stack Overflow in Turbo C
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Tue, 6 Oct 1992 17:00:24 GMT

In article <JT.92Oct6152841@fizyk1.fuw.edu.pl> jt@fuw.edu.pl (Jerzy Tarasiuk) writes:
>>>>>> On 4 Oct 92 12:12:17 CDT, haydedr@wkuvx1.bitnet said:
>h> In article <WAYNE.92Oct4013500@dew.cs.odu.edu>, wayne@dew.cs.odu.edu (C Wayne Huling) writes:
>> I am using turbo C, and am having a stack overflow, my books tell me how to 
>> find the problem, but now how to solve the problem.  Any suggestions?
>h> Well, you could increase your stack size.  To do this in Turbo C++
>...
>h> extern unsigned _stklen = 543210U;
			      ^^^^^^^
>
>Note unsigned has range from 0 to 0xFFFF(=65535U), don't try use
>bigger values because compiler will truncate high-order bits. 

Over in AFU, they blame this sort of thing on its being September again...

I think 543210 is obviously a placeholder - it is not to be taken
seriously.  It would have been clearer, I suppose to have written:

	123456789U

************************************************************************
A note to new readers:  the weasely :-) symbol is frowned upon in this
group.  Any questions, see Phil Gustafson who will gladly rearrange your
diodes for you.
			- From the AFU FAQ -

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Newsgroups: alt.msdos.programmer
From: romania@cs.concordia.ca (GOUDIE ray)
Subject: Programmer's reference book?
Organization: Computer Science, Concordia University, Montreal, Quebec
Date: Thu, 15 Oct 1992 18:41:35 GMT


   Hello.  I'm new to the world of IBM programming and I was wondering what is
the best programmer's reference manual, in your opinion.  I have lots of
experience programming on my Amiga, and now I want to master my PC.  Please
reply to this.  I will post a summary of the best.  Thank you.

							-Ray.

-- 
Ray Goudie; Montreal, Quebec, Canada
romania@cs.concordia.ca			aa1412@freenet.lorain.oberlin.edu       ad278@yfn.ysu.edu			ap415@cleveland.freenet.edu
rgoudie@heartland.bradley.edu		usr5965a@tso.uc.edu
===============================================================================
Lines: 14
Date: Fri,  9 Oct 92 08:16:53 MDT
Newsgroups: alt.snowmobiles
Subject: Testing:  If your bored go ahead and read it.
Distribution: na
Organization: Brigham Young University, Provo UT USA
From: bigdog@bones.et.byu.edu (Dan Canfield)

Ok, got flaky problems with my posting software, so I am testing 
this out after having made some adjustments.

Oh yea, SNOW!!!

Dan Canfield
bigdog@bones.caedm.byu.edu

DoD #0071,RP90
'89 FJ1200
'89 Indy707
------------------------------------------------------------------
"Excuss me while I kiss the sky" - Jimi Hendrix
------------------------------------------------------------------
Newsgroups: alt.snowmobiles
From: v088j4k4@ubvmsb.cc.buffalo.edu (MAIL EXCLUSIVELY FROM..CHET)
Newsgroups: alt.snowmobiles
Subject: Parts Catalog
Keywords: Snow!
Date: 11 Oct 92 01:25:00 GMT
Organization: University at Buffalo
News-Software: VAX/VMS VNEWS 1.41


	Does anyone know of a company that sells parts soley for snowmobiles?
If you know of such a catalog, please post or e-mail me the address! Thanks in
advance.
						Jon
------------------------------------------------------------------------------
V088J4K4@UBVMS.CC.BUFFALO.EDU				THINK SNOW!!!!!
V088J4K4@UBVMS.BITNET
STATE UNIVERSITY OF NEW YORK AT BUFFALO			GO BILLS!!!
------------------------------------------------------------------------------
Newsgroups: alt.snowmobiles