summaryrefslogtreecommitdiff
path: root/libc/misc/utmp/utxent.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-15 15:29:14 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:24 +0200
commit84135275cfeebc0b233c1c96eeada4d4178a0b18 (patch)
treee733a09d70c81dcaaac73d25fd24cee8bd77a622 /libc/misc/utmp/utxent.c
parenta1281bdca476155f51bd5427c10ac1bb3e889423 (diff)
utent.c, wtent.c: move functions from utxent.c
before the change (threads enabled) text data bss dec hex filename 1107 8 408 1523 5f3 libc/misc/utmp/utent.os 152 0 0 152 98 libc/misc/utmp/wtent.os 240 0 0 240 f0 libc/misc/utmp/utxent.os after the change text data bss dec hex filename 1072 8 408 1488 5d0 libc/misc/utmp/utent.os 157 0 0 157 9d libc/misc/utmp/wtent.os 200 0 0 200 c8 libc/misc/utmp/utxent.os The smaller size on utent.os is unexpected, could be due to better inlining/not inlining Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/utmp/utxent.c')
-rw-r--r--libc/misc/utmp/utxent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/utmp/utxent.c b/libc/misc/utmp/utxent.c
index a0e80a662..71157ccd8 100644
--- a/libc/misc/utmp/utxent.c
+++ b/libc/misc/utmp/utxent.c
@@ -13,6 +13,7 @@
#include <utmpx.h>
#include <utmp.h>
+#if 0 /* moved to utent.c */
void setutxent(void)
{
setutent ();
@@ -48,10 +49,12 @@ int utmpxname (const char *new_ut_name)
return utmpname (new_ut_name);
}
+/* moved to wtent.c */
void updwtmpx (const char *wtmpx_file, const struct utmpx *utmpx)
{
updwtmp (wtmpx_file, (const struct utmp *) utmpx);
}
+#endif
/* Copy the information in UTMPX to UTMP. */
void getutmp (const struct utmpx *utmpx, struct utmp *utmp)
@@ -104,4 +107,3 @@ void getutmpx (const struct utmp *utmp, struct utmpx *utmpx)
utmpx->ut_time = utmp->ut_time;
#endif
}
-