From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.clark.net ([168.143.0.10]) by hawkwind.utcs.utoronto.ca with SMTP id <24629>; Thu, 6 Mar 1997 21:42:46 -0500 Received: from clark.net (culliton@explorer.clark.net [168.143.0.7]) by mail.clark.net (8.8.5/8.6.5) with ESMTP id VAA17495; Thu, 6 Mar 1997 21:42:08 -0500 (EST) From: Tom Culliton Received: (from culliton@localhost) by clark.net (8.8.5/8.7.1) id VAA17192; Thu, 6 Mar 1997 21:42:42 -0500 (EST) Date: Thu, 6 Mar 1997 21:42:42 -0500 Message-Id: <199703070242.VAA17192@clark.net> To: culliton@clark.net, rc@hawkwind.utcs.toronto.edu Subject: Re: /dev/fd -> /proc/self/fd Never mind, I figured it out already. ;-) Here's the patch. And for those who dislike such things, this one doesn't require any new #if's. Tom ;-) ;-) ;-) ------------------------------------------------------------------------ *** ../rc-1.5betadev-1/glom.c Sun Mar 6 22:33:00 1994 --- glom.c Thu Mar 6 21:20:17 1997 *************** *** 347,353 **** walk(n->u[2].p, FALSE); exit(getstatus()); } ! name = nprint("/dev/fd/%d", p[n->u[0].i != rFrom]); efd.fd = p[n->u[0].i != rFrom]; except(eFd, efd, e); close(p[n->u[0].i == rFrom]); --- 347,353 ---- walk(n->u[2].p, FALSE); exit(getstatus()); } ! name = nprint(DEVFD, p[n->u[0].i != rFrom]); efd.fd = p[n->u[0].i != rFrom]; except(eFd, efd, e); close(p[n->u[0].i == rFrom]); *** ../rc-1.5betadev-1/config.h-dist Mon May 25 14:12:57 1992 --- config.h-dist Thu Mar 6 21:14:44 1997 *************** *** 47,55 **** */ /* ! * Define the macro DEVFD if your system supports /dev/fd. ! #define DEVFD */ /* * Define the macro NOLIMITS if your system does not support Berkeley --- 47,56 ---- */ /* ! * Define the macro DEVFD if your system supports /dev/fd or /proc/self/fd. ! #define DEVFD "/dev/fd/%d" + #define DEVFD "/proc/self/fd/%d" */ /* * Define the macro NOLIMITS if your system does not support Berkeley ***************