HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)
b
bwtmps(3C) bwtmps(3C)
WARNINGS
Applications should not access the wtmps and btmps
databases directly, but should use these functions as
the structure written to these databases is a superset of the
utmps structure. updatebwdb() does not
update
/var/adm/wtmp
and /var/adm/btmp
files.
bwtmps(3C) interfaces load shared library
libuseracct.so.1/libuseracct.1
.
Compile/link for Archive Applications (PA-RISC only)
If you use bwtmps(3C) interfaces and compile/link your application archive, please note that bwtmps(3C)
interfaces have a dependency on
libdld.sl that will require a change to the compile/link command:
Compile :
cc -Wl,-a,archive -Wl,-E -Wl,+n -l:libdld.sl -o
outfile source
Or compile with
CCOPTS and LDOPTS:
export CCOPTS="-Wl,-a,archive options -Wl,-E -l:libdld.sl"
export LDOPTS="options -E +n -l:libdld.sl"
cc -o
outfile source
The option -Wl,-a,archive is positionally dependent and should occur at the beginning of the compile
line. For optimum compatibility in future releases, you should avoid using archive libc with other shared
libraries except for
libdld.sl as needed above.
AUTHOR
The bwtmps routines were developed by Hewlett-Packard Company.
FILES
/var/adm/wtmps
/var/adm/btmps
SEE ALSO
getuts(3C), thread_safety(5).
HP-UX 11i Version 2: December 2007 Update − 2 − Hewlett-Packard Company 145