*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> EvmEventNameMatchStr (3)              
Title
Content
Arch
Section
 

EvmEventNameMatch(3)

Contents


NAME    [Toc]    [Back]

       EvmEventNameMatch, EvmEventNameMatchStr - Match event name

SYNOPSIS    [Toc]    [Back]

       #include <evm/evm.h>

       EvmStatus_t EvmEventNameMatch(
               const char *pattern,
               EvmEvent_t event,
               EvmBoolean_t  *match  );   EvmStatus_t   EvmEventNameMatchStr(

               const char *pattern,
               const char *candidate,
               EvmBoolean_t *match );

OPERANDS    [Toc]    [Back]

       The  event  name  pattern  sought.  The pattern may be any
       valid event name string. It may include  wildcard  characters
  in place of any component.  The event containing the
       event name to be compared against the pattern.  The result
       of  the  match. This operand is set to EvmTRUE if the name
       matches the pattern, and to EvmFALSE if it  does  not.   A
       character string to be matched against the pattern

DESCRIPTION    [Toc]    [Back]

       Because special matching rules apply when deciding whether
       a candidate event name matches a known name, the EVM  name
       matching  functions  should be used for matching purposes,
       rather than the C string comparison  functions  (memcpm(),
       strcmp())  . The EVM functions match an event name against
       a supplied pattern, ignoring any trailing appended  components
  in the candidate name, and correctly matching wildcard
 characters.

       The EvmEventNameMatch function takes an event and an event
       name  pattern  as  input,  and  returns  an  indication of
       whether the event contains a name which matches  the  pattern
  in the match output argument. The pattern may be any
       valid event name string, and  may  also  include  wildcard
       characters  in place of any component. A wildcard * in the
       pattern matches zero or more name components. A ?  matches
       exactly  one  component.  A match occurs if the event name
       matches all components indicated by the pattern,  even  if
       the name has additional trailing elements.

       The  EvmEventNameMatchStr function performs the same check
       as EvmEventNameMatch, but takes a character string as  the
       candidate  event  name,  rather  than extracting it from a
       supplied event.

       Both functions set the match output argument to EvmTRUE if
       the  name  matches the pattern, and to EvmFALSE if it does
       not.

RETURN VALUES    [Toc]    [Back]

       The comparison was successful.  The  value  of  the  match
       operand  indicates  whether  the name matches the pattern.
       The supplied pattern  contains  invalid  characters.   The
       supplied event does not contain a name.



ERRORS    [Toc]    [Back]

       None

LIBRARY    [Toc]    [Back]

       EVM Support Library (libevm.so, libevm.a)

FILES    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Routines: memccpy(3), strcat(3)

       Files: kevm(7)

       Event Management: EVM(5)

       EVM Events: EvmEvent(5)

       Programmer's Guide



                                             EvmEventNameMatch(3)
[ Back ]
 Similar pages
Name OS Title
alPendingEvents IRIX Get total number of event queued in event queue
fnmatch IRIX match filename or pathname
fnmatch Tru64 Match filename patterns
fnmatch Linux match filename or pathname
alCheckEvent IRIX Looks for an event in the event queue and retrieves it.
regexp IRIX Match a regular expression against a string
regexp Tru64 Regular expression compile and match routines
ipsec_keypaircheck Tru64 Checks if public and private keys match
step Tru64 Regular expression compile and match routines
advance Tru64 Regular expression compile and match routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service