Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ libAF(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stanza(4)

libAF(3)  —  Subroutines

NAME

libAF − Provide Attribute File Library functions to manipulate file attributes

SYNOPSIS

#include <AFdefs.h>
void AFclose(
        AFILE_t af ); ATTR_t AFgetatr(
        ENT_t entry,
        char ∗name ); ENT_t AFgetent(
        AFILE_t af,
        char ∗name ); char ∗AFgetval(
        ATTR_t attr ); ATTR_t AFnxtatr(
        ENT_t entry ); ENT_t AFnxtent(
        AFILE_t af ); AFILE_t AFopen(
        char ∗filename,
        int maxrecsiz,
        int maxnumatr );

LIBRARY

Attribute File Library (libAF.a)

Curses Library (libcurses)

PARAMETERS

afSpecifies the attribute file to be closed. 

entry
Specifies the entry name.

name
Specifies the name of an attribute value.

attrSpecifies the attribute value in the attribute list. 

filename
Specifies the attribute filename.

maxrecsiz
Specifies the maximum size of a record in bytes.

maxnumatr
Specifies the maximum number of attributes per record.

dfltPoints to the character name string of an attribute file structure. 

DESCRIPTION

The libAF() functions are provided for programs that use attribute files. These functions perform the following:

AFclose()
Closes the specified attribute file.

AFgetatr()
Gets the attribute value matching name from the attribute list. Returns a pointer entry to the value of name. 

AFgetent()
Finds the first entry in an attribute file which has the specified name.  Returns a pointer af to an attribute structure. 

AFgetval()
Gets the next attribute value from the attribute list for the specified attribute value. Returns a pointer attr to the character string of the first value in the attribute list. 

AFnxtatr()
Gets the next attribute from the entry list for the attribute file entry.  Returns a pointer to an attribute structure. 

AFnxtent()
Gets the next entry from an attribute file. Merges in any default entry that proceeds it. Returns a pointer to an attribute structure.

AFnxtval()
Gets the next attribute value from the attribute list for the current attribute. Returns a pointer to the next string value in the attribute list.

AFopen()
Opens the specified attribute file. Returns a pointer to an attribute file structure.

AFread()
Reads the next entry from an attribute file. Fills in the current attribute table and buffer.

AFrewind()
Moves to the beginning of the specified attribute file.

AFsetdflt()
Sets the default entry name for the specified attribute file.

SEE ALSO

stanza(4)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026