* 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
35d51d3bf2
commit
7f63ec9129
|
@ -16,7 +16,7 @@ enum
|
|||
{
|
||||
__SIGFLUSH = -2,
|
||||
__SIGSTRACE = -1,
|
||||
__SIGCOMMUNE = 0,
|
||||
__SIGUNUSED = 0,
|
||||
__SIGOFFSET = 2
|
||||
};
|
||||
|
||||
|
@ -25,17 +25,6 @@ enum
|
|||
#include <sys/resource.h>
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue