Re: The patch of boot to open a virtual network interface

2008-08-21 Thread olafBuddenhagen
Hi, On Thu, Aug 21, 2008 at 10:43:03AM +0200, zhengda wrote: > Ben Asselstine wrote: >> On Tue, Aug 19, 2008 at 4:02 PM, zhengda <[EMAIL PROTECTED]> wrote: >>> +case 'f': >>> + dev_file = strstr (arg, "="); >>> + if (dev_file == NULL) >>> + return ARGP_ERR_UNKNOWN; >>> +

Re: The patch of glibc which allows the user to override the pfinet server

2008-08-21 Thread olafBuddenhagen
Hi, On Tue, Aug 19, 2008 at 03:27:06PM +0200, zhengda wrote: > - socket_t server; > + socket_t server = MACH_PORT_NULL; As I already said, this is unnecessary -- it will be assigned unconditionally. > + if (__asprintf (&name, "%s/%d", sock_servs, domain) < 0) > + goto out; In

Re: Some questions about libports and notification of ports

2008-08-21 Thread zhengda
Thomas Bushnell BSG wrote: On Thu, 2008-08-21 at 11:26 +0200, zhengda wrote: In eth-filter, I define a structure struct proxy_info { /* For receiving packets from pfinet. */ struct port_info *pfinet_pi; hurd_ihash_locp_t p_pfinetpi_hashloc; /* For receiving packets from the network i

Re: [PATCH] libfshelp: keep stdin and stdout open

2008-08-21 Thread Roland McGrath
> Well, I'm not sure I entirely understand what is being discussed here; > so pardon me if this is a stupid notion: Is there some fundamental > reason why (active) translators couldn't actually get real stdin/stdout > from the settrans?... For settrans -a, they do. It's great for active debugging

Re: [PATCH] libfshelp: keep stdin and stdout open

2008-08-21 Thread olafBuddenhagen
Hi, On Tue, Aug 19, 2008 at 11:29:28PM -0700, Thomas Bushnell BSG wrote: > On Fri, 2008-08-01 at 21:18 +0100, Samuel Thibault wrote: > > I'd agree on the principle to not leave a nul port for stdin/stdout, > > any other opinion on this? > > I disagree. Translators don't have such ports, and mak

Re: Some questions about libports and notification of ports

2008-08-21 Thread Thomas Bushnell BSG
On Thu, 2008-08-21 at 11:26 +0200, zhengda wrote: > In eth-filter, I define a structure > struct proxy_info > { > /* For receiving packets from pfinet. */ > struct port_info *pfinet_pi; > hurd_ihash_locp_t p_pfinetpi_hashloc; > > /* For receiving packets from the network interface. */ >

Re: Some questions about libports and notification of ports

2008-08-21 Thread zhengda
Thomas Bushnell BSG wrote: On Wed, 2008-08-20 at 22:47 +0200, zhengda wrote: I want to get the confirmation from you about the usage of ports_get_right(), ports_destroy_right() and ports_port_deref(). When I use ports_get_right() to get the receive right of the port, I should always make a s

Re: The patch of boot to open a virtual network interface

2008-08-21 Thread zhengda
Ben Asselstine wrote: On Tue, Aug 19, 2008 at 4:02 PM, zhengda <[EMAIL PROTECTED]> wrote: +case 'f': + dev_file = strstr (arg, "="); + if (dev_file == NULL) + return ARGP_ERR_UNKNOWN; + *dev_file = 0; + add_dev_map (arg, dev_file+1); + break; I'd feel