From a010e6abed2c84e302823c4403ef3782b34bb6f1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 30 Jul 2008 04:58:24 +0000 Subject: * cygwin.din (_getutline): Remove. * lib/bsdlib.cc (login): Make argument const as per linux. (logout): Ditto. * syscalls.cc (getutid): Ditto. (getutline): Ditto. (pututline): Ditto. (getutxent): Add comment mentioning non-thread-safety. (getutxid): Ditto. (getutxline): Ditto. (pututxline): Ditto. * sys/utmp.h: Declare arguments to various functions as const as per linux. Remove bogus _getutline definition. --- winsup/cygwin/include/sys/utmp.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'winsup/cygwin/include/sys/utmp.h') diff --git a/winsup/cygwin/include/sys/utmp.h b/winsup/cygwin/include/sys/utmp.h index 8828d0f88..8a63b348b 100644 --- a/winsup/cygwin/include/sys/utmp.h +++ b/winsup/cygwin/include/sys/utmp.h @@ -1,6 +1,6 @@ /* sys/utmp.h - Copyright 2001, 2004 Red Hat, Inc. + Copyright 2001, 2003, 2004, 2005, 2008 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -34,17 +34,16 @@ struct utmp long ut_addr; }; -extern struct utmp *_getutline (struct utmp *); extern struct utmp *getutent (void); -extern struct utmp *getutid (struct utmp *); -extern struct utmp *getutline (struct utmp *); -extern struct utmp *pututline (struct utmp *); +extern struct utmp *getutid (const struct utmp *); +extern struct utmp *getutline (const struct utmp *); +extern struct utmp *pututline (const struct utmp *); extern void endutent (void); extern void setutent (void); extern void utmpname (const char *); -void login (struct utmp *); -int logout (char *); +void login (const struct utmp *); +int logout (const char *); int login_tty (int); void updwtmp (const char *, const struct utmp *); void logwtmp (const char *, const char *, const char *); -- cgit v1.2.3