![]() |
![]() |
![]() |
Change the name of the user-information file
#include <utmp.h> void utmpname( char * __filename );
libc
The utmpname() function lets you change the name of the file examined from the default file (_PATH_UTMP) to any other file. If the file doesn't exist, this won't be apparent until the first attempt to reference the file is made. This function doesn't open the file. It just closes the old file if it's currently open and saves the new file name.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
endutent(), getutent(), getutid(), getutline(), pututline(), setutent()
login in the Utilities reference
![]() |
![]() |
![]() |