* 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:
@ -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 (),
|
||||
|
Reference in New Issue
Block a user