* Event Flags and C
@ 2000-08-30 4:00 rcyoung
2000-08-29 4:00 ` Rick Cadruvi
2000-08-30 4:00 ` Brian Schenkenberger, VAXman-
0 siblings, 2 replies; 3+ messages in thread
From: rcyoung @ 2000-08-30 4:00 UTC (permalink / raw)
Does anyone have an example of using C to create,set,check, and clear
event flags under OpenVMS?
Respond to rcyoung@groupz.net if possible.
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Event Flags and C
2000-08-30 4:00 Event Flags and C rcyoung
@ 2000-08-29 4:00 ` Rick Cadruvi
2000-08-30 4:00 ` Brian Schenkenberger, VAXman-
1 sibling, 0 replies; 3+ messages in thread
From: Rick Cadruvi @ 2000-08-29 4:00 UTC (permalink / raw)
Here's a simple example I am writing right now to use sys$setef.
long sys$setef();
long main()
{
long status;
status = sys$setef (13); /* Set Event Flag 13 */
return (status);
}
It's that simple and the others are not any harder.
Rick...
rcyoung@groupz.net wrote:
>
> Does anyone have an example of using C to create,set,check, and clear
> event flags under OpenVMS?
>
> Respond to rcyoung@groupz.net if possible.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Event Flags and C
2000-08-30 4:00 Event Flags and C rcyoung
2000-08-29 4:00 ` Rick Cadruvi
@ 2000-08-30 4:00 ` Brian Schenkenberger, VAXman-
1 sibling, 0 replies; 3+ messages in thread
From: Brian Schenkenberger, VAXman- @ 2000-08-30 4:00 UTC (permalink / raw)
In article <8oj7gc$fqc$1@nnrp1.deja.com>, rcyoung@groupz.net writes:
>Does anyone have an example of using C to create,set,check, and clear
>event flags under OpenVMS?
>
>Respond to rcyoung@groupz.net if possible.
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
#include <stdio.h>
#include <starlet.h>
#include <descrip.h>
#define SYS$ASCEFC sys$ascefc
#define SYS$SETEF sys$setef
#define SYS$CLREF sys$clref
#define SYS$READEF sys$readef
main()
{
long VMSsts, EFstate;
$DESCRIPTOR(EFcluster,"MY_EVENT_FLAGS");
if (!((VMSsts=SYS$ASCEFC(64,&EFcluster,0,0))&1)) return VMSsts;
if (!((VMSsts=SYS$SETEF(64))&1)) return VMSsts;
if (!((VMSsts=SYS$READEF(64,&EFstate))&1)) return VMSsts;
printf("%08X\n",EFstate);
if (!((VMSsts=SYS$CLREF(64))&1)) return VMSsts;
if (!((VMSsts=SYS$READEF(64,&EFstate))&1)) return VMSsts;
printf("%08X\n",EFstate);
}
Simple enuf?
--
VAXman- OpenVMS APE certification number: AAA-0001 VAXman(at)TMESIS(dot)COM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-30 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-30 4:00 Event Flags and C rcyoung
2000-08-29 4:00 ` Rick Cadruvi
2000-08-30 4:00 ` Brian Schenkenberger, VAXman-
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox