www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/12/07:53:05

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Subject: Egor's daemon - missed a file
From: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
To: cygwin-patches AT cygwin DOT com, cygwin-developers AT cygwin DOT com
X-Mailer: Evolution/0.13 (Preview Release)
Date: 12 Sep 2001 21:53:38 +1000
Message-Id: <1000295620.30375.73.camel@lifelesswks>
Mime-Version: 1.0
X-OriginalArrivalTime: 12 Sep 2001 11:40:29.0840 (UTC) FILETIME=[B946E100:01C13B7F]

--=-zTic9Ak/P4ZfWtgPISch
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

this belongs in include/cygwin

--=-zTic9Ak/P4ZfWtgPISch
Content-Type: text/x-c
Content-Disposition: attachment; filename=cygserver.h
Content-ID: <1000295600 DOT 30340 DOT 71 DOT camel AT lifelesswks>
Content-Transfer-Encoding: 7bit

/* cygserver.h

   Copyright 2001 Red Hat Inc.

   Written by Egor Duda <deo AT logos-m DOT 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
;


--=-zTic9Ak/P4ZfWtgPISch--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019