HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)
b
bwtmps(3C) bwtmps(3C)
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 com-
pile 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).
Section 3−−74 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: September 2004