* 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.
This commit is contained in:
Christopher Faylor
2008-07-30 04:58:24 +00:00
parent dbfc6f0e78
commit a010e6abed
6 changed files with 36 additions and 16 deletions

View File

@ -506,7 +506,7 @@ out:
fh->get_name ());
else
{
#if 0
#if 1
/* FIXME: This code is not quite correct. There's no better solution
so far but to make simple assumptions based on WriteQuotaAvailable. */
@ -531,7 +531,7 @@ out:
that. This means that a pipe could still block since you could
be trying to write more to the pipe than is available in the
buffer but that is the hazard of select(). */
else if (fpli.WriteQuotaAvailable)
else if (fpli.WriteQuotaAvailable = (fpli.OutboundQuota - fpli.ReadDataAvailable))
{
select_printf ("%s, ready for write: size %lu, avail %lu",
fh->get_name (),