Merge "Fix <utmp.h> declarations."
am: 60752a2eea * commit '60752a2eeab8cd0b344b27c67a47e30628962211': Fix <utmp.h> declarations.
This commit is contained in:
commit
6e780f2f47
@ -97,8 +97,9 @@ struct utmp
|
||||
__BEGIN_DECLS
|
||||
|
||||
int utmpname(const char*);
|
||||
void setutent();
|
||||
struct utmp* getutent();
|
||||
void setutent(void);
|
||||
struct utmp* getutent(void);
|
||||
void endutent(void);
|
||||
|
||||
int login_tty(int);
|
||||
|
||||
|
@ -23,3 +23,9 @@ TEST(utmp, login_tty) {
|
||||
// This test just checks that we're exporting the symbol independently.
|
||||
ASSERT_EQ(-1, login_tty(-1));
|
||||
}
|
||||
|
||||
TEST(utmp, setutent_getutent_endutent) {
|
||||
setutent();
|
||||
getutent();
|
||||
endutent();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user