rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Tom Culliton <culliton@clark.net>
To: culliton@clark.net, rc@hawkwind.utcs.toronto.edu
Subject: Re: /dev/fd -> /proc/self/fd
Date: Thu, 6 Mar 1997 21:42:42 -0500	[thread overview]
Message-ID: <199703070242.VAA17192@clark.net> (raw)

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
***************


             reply	other threads:[~1997-03-07  2:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-07  2:42 Tom Culliton [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-03-07  2:02 Tom Culliton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199703070242.VAA17192@clark.net \
    --to=culliton@clark.net \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).