This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Egor's daemon - missed a file
- To: cygwin-patches at cygwin dot com, cygwin-developers at cygwin dot com
- Subject: Egor's daemon - missed a file
- From: Robert Collins <robert dot collins at itdomain dot com dot au>
- Date: 12 Sep 2001 21:53:38 +1000
this belongs in include/cygwin
/* cygserver.h
Copyright 2001 Red Hat Inc.
Written by Egor Duda <deo@logos-m.ru>
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#define MAX_REQUEST_SIZE 128
#define CYGWIN_SERVER_VERSION_MAJOR 1
#define CYGWIN_SERVER_VERSION_API 1
#define CYGWIN_SERVER_VERSION_MINOR 0
#define CYGWIN_SERVER_VERSION_PATCH 0
struct request_header
{
DWORD cb;
DWORD req_id;
DWORD error_code;
}
#ifdef __GNUC__
__attribute__ ((packed))
#endif
;
extern void cygserver_init ();
extern int cygserver_request (struct request_header*);
#define INIT_REQUEST(req,id) \
(req).header.cb = sizeof (req); \
(req).header.req_id = id;
#define CYGSERVER_REQUEST_GET_VERSION 1
#define CYGSERVER_REQUEST_ATTACH_TTY 2
struct request_get_version
{
struct request_header header;
DWORD major, api, minor, patch;
}
#ifdef __GNUC__
__attribute__ ((packed))
#endif
;
struct request_attach_tty
{
struct request_header header;
DWORD pid, master_pid;
HANDLE from_master, to_master;
}
#ifdef __GNUC__
__attribute__ ((packed))
#endif
;