From 7f63ec912967d23ad6c69bfe2a3cf3b2e3c86078 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 7 Nov 2002 03:47:57 +0000 Subject: [PATCH] * 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. --- winsup/cygwin/pinfo.h | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index fe36b5a27..dcb814bcc 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -16,7 +16,7 @@ enum { __SIGFLUSH = -2, __SIGSTRACE = -1, - __SIGCOMMUNE = 0, + __SIGUNUSED = 0, __SIGOFFSET = 2 }; @@ -25,17 +25,6 @@ enum #include #include "thread.h" -struct commune_result -{ - char *s; - int n; -}; - -enum picom -{ - PICOM_CMDLINE = 1 -}; - class _pinfo { public: @@ -92,11 +81,6 @@ public: /* Non-zero if process was stopped by a signal. */ char stopsig; - - /* commune */ - pid_t hello_pid; - HANDLE tothem; - HANDLE fromthem; void exit (UINT n, bool norecord = 0) __attribute__ ((noreturn, regparm(2))); @@ -135,19 +119,12 @@ public: } inline void setthread2signal (void *thr) {thread2signal = (pthread *) thr;} - void commune_recv (); - commune_result commune_send (DWORD); - bool alive (); - char *cmdline (size_t &); - - friend void __stdcall set_myself (pid_t, HANDLE); private: struct sigaction sigs[NSIG]; sigset_t sig_mask; /* one set for everything to ignore. */ LONG _sigtodo[NSIG + __SIGOFFSET]; - pthread *thread2signal; // NULL means thread any other means a pthread - CRITICAL_SECTION lock; + pthread *thread2signal; // NULL means means thread any other means a pthread }; class pinfo