Displaying 1 result from an estimated 1 matches for "utmpx_to_futmpx".
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...D's logwtmp.c */
static int
+#ifdef __sparcv9
+wtmpx_write(struct logininfo *li, struct futmpx *utx)
+#else
wtmpx_write(struct logininfo *li, struct utmpx *utx)
+#endif
{
struct stat buf;
int fd, ret = 1;
@@ -1167,6 +1183,24 @@
return ret;
}
+#ifdef __sparcv9
+void
+utmpx_to_futmpx(struct utmpx *utx, struct futmpx *futx)
+{
+ strncpy(futx->ut_user, utx->ut_user, sizeof(futx->ut_user));
+ strncpy(futx->ut_id, utx->ut_id, sizeof(futx->ut_id));
+ strncpy(futx->ut_line, utx->ut_line, sizeof(futx->ut_line));
+ futx->ut_pid...