* include/cygwin/version.h: Bump API minor number for below export.
* cygwin.din (pututline): New exported function. * syscalls.cc (login): Use pututiline(). (setutent): Open utmp as read/write. (endutent): Check if utmp file is open. (utmpname): call endutent() to close current utmp file. (getutid): Enable all cases, use strncmp() to compare ut_id fields. (pututline): New. * tty.cc (create_tty_master): Set ut_pid to current pid. * fhandler.h (fhandler_serial::vmin_): Declare as size_t. * fhandler_serial.cc (fhandler_serial::raw_read): Use correct type for minchars. (fhandler_serial::ioctl): Set errno if the ClearCommError fails. (fhandler_serial::tcsetattr): Use correct value for vmin_. (fhandler_serial::tcgetattr): Ditto. * fhandler_socket.cc (fhandler_socket::recvmsg): Call if from == NULL WSARecvFrom with fromlen = NULL.
This commit is contained in:
parent
b2c708b47c
commit
c9c5dcf024
|
@ -88,6 +88,7 @@ create_tty_master (int ttynum)
|
|||
cygwin_gethostname (our_utmp.ut_host, sizeof (our_utmp.ut_host));
|
||||
__small_sprintf (our_utmp.ut_line, "tty%d", ttynum);
|
||||
our_utmp.ut_type = USER_PROCESS;
|
||||
our_utmp.ut_pid = myself->pid;
|
||||
myself->ctty = ttynum;
|
||||
login (&our_utmp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue