DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
OSA reference

Example Group Definition Tables (GDT)

Because some operations (such as get and replaceWithDefault) do not require values for attributes, this table defines groups of attributes so the operation can use a single name to specify more than one attribute. Specifying a value with for a group alias causes an error. See also ``Group definition table (GDT)''.

In this example, two group aliases (id and env) are defined. The id alias will be replaced with the attributes name, userId, and groupId whenever it is encountered on a command line. If the command line were to associate a value with the group alias, an error would result.

GDT example (Tcl)

   set users(groups) {
           {id  {{associatedAttributes {realLifeName userId groupId}}}}
           {env {{associatedAttributes {homeDirectory loginShell}}}}
   }

GDT example (C/C++)

   OSAGroup_t group[] = {
       {"id",      "name uid gid"},
       {"env",     "home shell"}
   };

Next topic: Example Subordinates Definition Tables (SDT)
Previous topic: Example Operation Definition Tables (ODT)

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005