adbgen — Generate adb Script


/usr/lib/adb/adbgen [-m model] filename.adb...


Use the adbgen command to write adb(1) macros that do not contain hard-coded dependencies on structure member offsets. The input to adbgen is a file named filename.adb that contains the following elements.

  • Header information.

  • A null line.

  • The name of a structure.

  • An adb script.

adbgen deals with one structure only per file; all member names are assumed to be in this structure. The output of adbgen is an adb script in filename. adbgen generates a C program that determines structure member offsets and sizes, which in turn generate the adb script.

The header lines up to the null line are copied verbatim into the generated C program. Typically, these are ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.