Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getvec(3C)

acc_vector(4)

putvec(3C)

NAME

putvec − write acc_vector file entry

SYNOPSIS

#include <acc_vec.h>

int putvec (p, f)
struct vector ∗p;
FILE ∗f;

DESCRIPTION

putvec is the inverse of getvec(3C).  Given a pointer to a vector structure created by getvec (or getvecid) putvec writes a line on the stream f, which matches the format of /etc/acc_vector. 

A negative value for either the uid or gid field in the vector structure is treated as a null field. 

DIAGNOSTICS

putvec returns non-zero if an error was detected during its operation, otherwise zero. 

SEE ALSO

getvec(3C), acc_vector(4). 

WARNING

The above routine uses <stdio.h>, which causes it to increase the size of programs, not otherwise using standard I/O, more than might be expected. 

CX/UX Programmer’s Reference Manual

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