1 INFO-VAX	Sun, 28 Oct 2001	Volume 2001 : Issue 600       Contents: Re: C programming..  Re: C programming..  Re: C programming.. , Re: CLD & error handling from within program Re: Mitnick Uncaged & Re: Promotion at Channel Support Group@ Re: Tuning Oracle RDB 7.0 Server and SQL on Alpha OpenVMS v7.2-1# Re: Windows XP reality check please   F ----------------------------------------------------------------------  % Date: Sun, 28 Oct 2001 02:09:45 -0400 - From: JF Mezei <jfmezei.spamnot@videotron.ca>  Subject: Re: C programming.., Message-ID: <3BDBA128.7D6BDFC7@videotron.ca>   Michael Austin wrote: ) > 2) a c routine that uses lib$get_symbol    #include <descrip.h>  ) $DESCRIPTOR(mysymbol_desc,"SYMBOL_NAME"); - $DESCRIPTOR(mycontents_desc,symbol_contents);   % jf_get_symbol(&mysymbol, &mycontents)     6 /****************************************************/  jf_get_symbol  ( 3                 struct dsc$descriptor_s *simdesc,   0                 struct dsc$descriptor_s *outdesc                 ) 7 /*****************************************************/  {  /*M this routine first gets the value of a symbol in temp_buff and then creates a  copy in memory and* fills the outdesc descriptor appropriatly. */   char temp_buff[256];! $DESCRIPTOR(temp_desc,temp_buff);  int status ; short symbol_len ;  : status = LIB$GET_SYMBOL(simdesc,&temp_desc,&symbol_len,0);: if(status != 1) { temp_buff[0] = 0x00 ; symbol_len = 0 ; }   temp_buff[symbol_len] = 0x00; 4 outdesc->dsc$w_length = symbol_len ; symbol_len ++ ;, outdesc->dsc$a_pointer = malloc(symbol_len);& outdesc->dsc$b_dtype = DSC$K_DTYPE_T ;& outdesc->dsc$b_class = DSC$K_CLASS_S ;4 memcpy(outdesc->dsc$a_pointer,temp_buff,symbol_len); return;  } /* end of jf_get_symbol */   ------------------------------  % Date: Sun, 28 Oct 2001 06:22:27 +0100 2 From: martin@radiogaga.harz.de (Martin Vorlaender) Subject: Re: C programming..; Message-ID: <3bdb9613.524144494f47414741@radiogaga.harz.de>   . Michael Austin (miaustin@bellsouth.net) wrote:7 > my brain is fried... I need a quick example of how to  > F > 1) start a program written in C that accepts 1 command line argument  )  $ program_that_accepts_one_argument == - A      "$device:[dir.ect.ory]PROGRAM_THAT_ACCEPTS_ONE_ARGUMENT.EXE" 1  $ program_that_accepts_one_argument one_argument   ) > 2) a c routine that uses lib$get_symbol    /*
   Warning: 	untested code.  	use at your own risk.' 	uses static variable for return value.  	no argument checks. 	not too much error checking.  */   #define __NEW_STARLET 1 
 use stsdef use descrip  use lib$routines  - /* Not sure how long a symbol value can be */ ! #define RESULTANT_MAX_LENGTH 1024   ) char *get_symbol(const char *symbol_name)  { 6 	static char resultant_string[RESULTANT_MAX_LENGTH+1];) 	struct dsc$descriptor_s symbol_name_dsc; 5 	$DESCRIPTOR(resultant_string_dsc, resultant_string); ! 	unsigned short resultant_length;  	int table_type_indicator; 	unsigned int cond_value;   5 	symbol_name_dsc.dsc$w_length  = strlen(symbol_name); / 	symbol_name_dsc.dsc$b_dtype   = DSC$K_DTYPE_T; / 	symbol_name_dsc.dsc$b_class   = DSC$K_CLASS_S; - 	symbol_name_dsc.dsc$a_pointer = symbol_name;    	cond_value = lib$get_symbol(  		&symbol_name_dsc,  		&resultant_string_dsc, 		&resultant_length, 		&table_type_indicator  	);   % 	if ($VMS_STATUS_SUCCESS(cond_value))  	{, 		resultant_string[resultant_length] = '\0'; 		return resultant_string; 	} 	else  		return NULL; }    cu,    Martin --  G So long, and thanks        | Martin Vorlaender  |  VMS & WNT programmer 4 for all the books...       | work: mv@pdv-systeme.deK In Memoriam Douglas Adams  |       http://www.pdv-systeme.de/users/martinv/ ;             1952-2001      | home: martin@radiogaga.harz.de    ------------------------------  % Date: Sun, 28 Oct 2001 13:49:00 -0500 - From: Michael Austin <miaustin@bellsouth.net>  Subject: Re: C programming..- Message-ID: <3BDC531B.99F54F7B@bellsouth.net>   K Martin Vorlaender, thanks for your answers.  #2 is perfect.  But because my D brain was fried I asked the wrong question #1.  It should have been:  J how does a C program accept a command line argument (such that your answerN works.) However, now that I  have got some sleep, I have found an example that' can be hacked to do what I need it too.    Again, thanks for the answers.   Michael Austin      0 > Michael Austin (miaustin@bellsouth.net) wrote:9 > > my brain is fried... I need a quick example of how to  > > H > > 1) start a program written in C that accepts 1 command line argument > + >  $ program_that_accepts_one_argument == - C >      "$device:[dir.ect.ory]PROGRAM_THAT_ACCEPTS_ONE_ARGUMENT.EXE" 3 >  $ program_that_accepts_one_argument one_argument  > + > > 2) a c routine that uses lib$get_symbol  >  > /* >   Warning: >         untested code. >         use at your own risk. 0 >         uses static variable for return value. >         no argument checks. & >         not too much error checking. > */ >  > #define __NEW_STARLET 1  > use stsdef
 > use descrip  > use lib$routines > / > /* Not sure how long a symbol value can be */ # > #define RESULTANT_MAX_LENGTH 1024  > + > char *get_symbol(const char *symbol_name)  > { ? >         static char resultant_string[RESULTANT_MAX_LENGTH+1]; 2 >         struct dsc$descriptor_s symbol_name_dsc;> >         $DESCRIPTOR(resultant_string_dsc, resultant_string);* >         unsigned short resultant_length;# >         int table_type_indicator; " >         unsigned int cond_value; > > >         symbol_name_dsc.dsc$w_length  = strlen(symbol_name);8 >         symbol_name_dsc.dsc$b_dtype   = DSC$K_DTYPE_T;8 >         symbol_name_dsc.dsc$b_class   = DSC$K_CLASS_S;6 >         symbol_name_dsc.dsc$a_pointer = symbol_name; > & >         cond_value = lib$get_symbol(# >                 &symbol_name_dsc, ( >                 &resultant_string_dsc,$ >                 &resultant_length,' >                 &table_type_indicator  >         ); > . >         if ($VMS_STATUS_SUCCESS(cond_value)) >         { < >                 resultant_string[resultant_length] = '\0';* >                 return resultant_string; >         }  >         else >                 return NULL; > }  >  > cu, 
 >   Martin > --I > So long, and thanks        | Martin Vorlaender  |  VMS & WNT programmer 6 > for all the books...       | work: mv@pdv-systeme.deM > In Memoriam Douglas Adams  |       http://www.pdv-systeme.de/users/martinv/ = >             1952-2001      | home: martin@radiogaga.harz.de    ------------------------------   Date: 28 Oct 2001 06:07:06 GMT- From: djweath@attglobal.net (Dave Weatherall) 5 Subject: Re: CLD & error handling from within program 5 Message-ID: <DTiotGxQ0bj6-pn2-pBKxKvgOnDgr@localhost>   2 On Sat, 27 Oct 2001 00:36:22, "David J. Dachtera"  <djesys.nospam@fsi.net> wrote:   snip...    G > > : %CLI-W-IVKEYW, unrecognized keyword - check validity and spelling 
 > > :  \HUGO\ 5 > > : %TRACE-W-TRACEBACK, symbolic stack dump follows P > > :   image    module    routine             line      rel PC           abs PCU > > :                                             0 FFFFFFFF8006F0C0 FFFFFFFF8006F0C0 U > > :                                             0 FFFFFFFF8006F0C0 FFFFFFFF8006F0C0 U > > :                                             0 FFFFFFFF8006F0C0 FFFFFFFF8006F0C0 U > > :  MIST                                       0 00000000000106B4 00000000000206B4 U > > :  MIST  MIST  P_GET_COMMAND                 27 0000000000000120 0000000000020120 U > > :  MIST  MIST  MIST                          39 00000000000001F8 00000000000201F8 U > > :                                             0 FFFFFFFF855ED178 FFFFFFFF855ED178  > > : RC=    229472  > > F > > I have never used CLD from Pascal but have from C and don't recallF > > having to trap any signals.  Was this an accvio?  Can you post the7 > > few lines before and after line 27 of your program?  > $ > No, it wasn't an ACCVIO, it was a: > G > > : %CLI-W-IVKEYW, unrecognized keyword - check validity and spelling 
 > > :  \HUGO\  > # > ....and it was a warning at that.   C And a very useful one at that... It usually tells you that CLD and  F code are out of step, unless an illegal entity has been entered on the  command line, but you knew that.  B I use LINK /NOTRACE for my production images. But maybe using the F exception handler might address another problem I've got. <exit stage  left with thinking cap on>.    --   Cheers - Dave.   ------------------------------  % Date: Sun, 28 Oct 2001 10:18:38 +0100 ( From: Paul Sture <paul.sture@bluewin.ch> Subject: Re: Mitnick Uncaged- Message-ID: <VA.000004a9.04eac818@bluewin.ch>   : In article <3BD7D0F5.7FC3BD48@127.0.0.1>, Nic Clews wrote: > Paul Sture wrote:  > > P > > In article <rdeininger-2410011412160001@user-2ive7ih.dialup.mindspring.com>, > > Robert Deininger wrote: 9 > > > In article <3BD6EF4A.962E8C6E@127.0.0.1>, Nic Clews % > > > <sendspamhere@127.0.0.1> wrote:  > > > 0 > > > > http://www.python.demon.co.uk/annoy.html > > > O > > > That one is also invisible when viewd with Cyberdog 2.0.  It's not (just)  > > > a Netscape problem.  > > >  > > Also with Konqueror 2.1.1. > I > For the curious this is a black text on a black background page. If you E > have overridden this, or using a browser that does not observe font I > colours and or background colours, you can read it. It is not a problem H > its exploiting a feature. VIEW SOURCE will show you the page. LYNX has
 > no problem!  > U View Source was my first step. The next one was LYNX, which I haven't used more than  T once or twice before. I must have picked some bad examples, as it was a pleasure to % use navigating the rest of your site.  ___ 
 Paul Sture Switzerland    ------------------------------  % Date: Sun, 28 Oct 2001 07:58:05 +0100   From: Paul Sture <paul@sture.ch>/ Subject: Re: Promotion at Channel Support Group - Message-ID: <VA.000004a6.046a19cd@bluewin.ch>   C In article <ttm322sqmplr38@news.supernews.com>, John Vottero wrote: 5 > "Andy O'Mara" <omara@csg-corp.com> wrote in message = > news:1050382847.1004102452328.JavaMail.administrator@lp1...  > > Channel Support Group  >  > [Load of spam deleted] >  > > = > > This email has been sent to info-vax@mvb.saic.com at your & > > request, by Channel Support Group. > >  > N > The above portion of this spam is clearly a lie.  A mailing list did NOT ask, > the Channel Support Group to send it spam. > G That sentence was in the email I got. I replied calling the man a liar.   N > Now that we know what sort of business ethics the Channel Support Group has, > we can all act accordingly.  > N I'll also note that following one of the links crashed Netscape (at work), as O did following the link to get me unsubscribed from his list (different version   of Netscape at home).    ___ 
 Paul Sture Switzerland    ------------------------------  % Date: Sun, 28 Oct 2001 13:39:34 -0500 - From: Michael Austin <miaustin@bellsouth.net> I Subject: Re: Tuning Oracle RDB 7.0 Server and SQL on Alpha OpenVMS v7.2-1 - Message-ID: <3BDC50E4.F66F140E@bellsouth.net>   F So, what is the "real" problem you are trying to solve.  Making imagesC resident only gets you minimal increase in performance that is only C associated with process startup.  You need to look at the code, the G physical layout, the memory utilization, locking contention... the list J goes on.  I had one client that lived with a locking issue for 6 months orI better by randomly selecting a victim and killing the process rather than C looking at the source of the problem which was a poorly implemented D physical design.  The moral is, you need to find out exactly what is5 causing the problem rather than patching the symptom.    Michael Austin Oracle Rdb DBA Consultant  http://www.firstdbasource.com          Andrew Robert wrote:   > Hi everyone, > H > Looking through the RDB/SQL installation manual, I see statements that# > you can load the images resident.  > > > I uncommented the line in sql$startup.com referencing "gosubH > install_images" and added the /resident qualifier to the image install > and install replace lines. > < > This does not appear to work for two reasons. I dumped theF > installed/resident image list and none of the sql images were found. > I > Additionally, the images spit out a message stating that they needed to % > be compiled with a specific switch.  > ' > Has anyone had any success with this?  > E > I am looking to do similar things with the RDB startup but have not  > tackled that yet.    ------------------------------  % Date: Sun, 28 Oct 2001 07:58:06 +0100   From: Paul Sture <paul@sture.ch>, Subject: Re: Windows XP reality check please- Message-ID: <VA.000004a7.046a1d0d@bluewin.ch>   = In article <01KA096TFS7M006XN0@tgmail.tg.nsw.gov.au>,  wrote:  > Paul Anderson wrote: > E > >At least they've finally admitted that those who work with Windoze J > >computers have been wasting a lot of time dealing with poor OS quality. > Q > And still waste a lot of time dealing with the newer version rubbish.  And the  1 > incomptabilities that my colleagues have found.  > J > >Imagine that, having an operating system that doesn't make you reboot. ' > >Gee, where could I get one of those?  > I From over 20 years ago, RT-11, RSTS, DOS/VSE. I am sure others have more  	 examples.   M > I don't think any vendor markets them :-)  I have some machines that run a  O > "legacy" OS which no one talks about.  It's so old that it's only on version  $ > 7.2 (7.3 is available) not 2000.    H I've even got one that thinks 32MB RAM is quite ample. Even with a full = complement of layered software a 1 GB disk is quite adequate.   , > I really should "upgrade" to a PC running N > this 2000 or newer XP so that I can waste as much time at work and keep the H > helpdesk in business.  I must learn to swear as well as my colleagues. > R I believe I saw the comment during the XP launch that it would save us an hour of M lost time per week. 48 weeks x 5 years x hourly rate comes to a nice invoice   figure.   C Multiply by the number of PCs at work and it is indeed a large sum.    ___ 
 Paul Sture Switzerland    ------------------------------   End of INFO-VAX 2001.600 ************************