summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/utmp.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-07-30 04:58:24 +0000
committerChristopher Faylor <me@cgf.cx>2008-07-30 04:58:24 +0000
commita010e6abed2c84e302823c4403ef3782b34bb6f1 (patch)
tree85d4a3bc4bc26912d44e8a2486db84fcb7efef03 /winsup/cygwin/include/sys/utmp.h
parentdbfc6f0e7853822a87fb2521f71a856b02c60875 (diff)
downloadcygnal-a010e6abed2c84e302823c4403ef3782b34bb6f1.tar.gz
cygnal-a010e6abed2c84e302823c4403ef3782b34bb6f1.tar.bz2
cygnal-a010e6abed2c84e302823c4403ef3782b34bb6f1.zip
* 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.
Diffstat (limited to 'winsup/cygwin/include/sys/utmp.h')
-rw-r--r--winsup/cygwin/include/sys/utmp.h13
1 files changed, 6 insertions, 7 deletions
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 *);