Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Thu, 31 May 2001 15:15:53 +0200 From: Corinna Vinschen To: cygdev Subject: Re: [RFD]: Egor's proposal for a Cygwin server process Message-ID: <20010531151553.J1870@cygbert.vinschen.de> Reply-To: cygdev Mail-Followup-To: cygdev References: <20010531124452 DOT G1870 AT cygbert DOT vinschen DOT de> <041801c0e9c0$23a3e4b0$0200a8c0 AT lifelesswks> <20010531145957 DOT H1870 AT cygbert DOT vinschen DOT de> <04f601c0e9d2$21217a60$0200a8c0 AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <04f601c0e9d2$21217a60$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Thu, May 31, 2001 at 11:03:46PM +1000 On Thu, May 31, 2001 at 11:03:46PM +1000, Robert Collins wrote: > From: "Corinna Vinschen" > > int > > seteuid (uid_t uid) > > { > > if (os_being_run == winNT) > > { > > cygsrv_message msg; > > msg.set_message_type (CYGSRV_SETEUID); > > msg.add_ulong_parameter (uid); > > msg.call_cygwin_server (); > > return msg.get_int_result (); > > } > > ... > > } > > I presume you use NT only there because seteuid was your example? It's just an example and setuid is completely senseless on 9x/ME. > > and the cygsrv_message class would implement the actual protocol. > > And the interface to that is an API. Sure it's a private API, but all > the same it's an API. Thats what I'm suggesting should be clearly > setout. (Not necessarily on day 1, but before I get back into IPC :]) Sure. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.