SET_VERSION(2)
NAME
set_version, get_version − Sets/gets system version for syntax interpretation
SYNOPSIS
set_version (string)
char *string;
get_version (cp)
char cp[16];
DESCRIPTION
The AUX function set_version allows programs to specify the version of UNIX -- Bell UNIX System III or Berkeley 4.1 UNIX -- to be used to define arguments and semantics for certain system and library functions. Valid string arguments are "bell" and "berkeley". The default version is "bell". The selected version is inherited across program invocation, exec(2), and by forked children.
The AUX function get_version returns a string identifying the version of UNIX (Bell UNIX System III or Berkeley UNIX) currently interpreting arguments and semantics for certain system and library functions. It returns either "bell" or "berkeley".
Presently, the functions affected by these calls are nice(2), getprgrp(2), setpgrp(2), and rand(3).