BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kstruct_setinfo - override the info in a structure entry

LIBRARY CALL

int kstruct_setinfo(
   int    type,
   const char *name,
   ssize_t  size,
   int   (*read_struct) PROTO((
      int,
      kaddr,
      int)),
   int   (*write_struct) PROTO((
      int,
      kaddr,
      int)),
   int   (*compare_struct) PROTO((
      kaddr,
      kaddr,
      int)),
   void  (*free_struct) PROTO((
      kaddr,
      int, 
      int)))

INPUT

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

This module is used to override the information currently stored within a structure entry.

The name, size, read and write structure can be overridden. If a non-NULL name is passed in then the current structure name is replaced. If the size is not -1 then the structure size is replaced. If the read or write structure routines are not NULL then the respective routines are replaced.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/kstruct.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.