Re: Fdescfs updates--coming to a devfs near you!

2000-09-18 Thread Adrian Filipi-Martin
On Tue, 19 Sep 2000, Bruce Evans wrote: > On Sun, 17 Sep 2000, Adrian Filipi-Martin wrote: > > > I recently ran into revelant problem with /dev/stdout, while > > working on some software under linux that expected /dev/stdout as an > > argument instead of using stdout. > > > > Using the

Re: Fdescfs updates--coming to a devfs near you!

2000-09-18 Thread Bruce Evans
On Sun, 17 Sep 2000, Adrian Filipi-Martin wrote: > I recently ran into revelant problem with /dev/stdout, while > working on some software under linux that expected /dev/stdout as an > argument instead of using stdout. > > Using the device file breaks, if the process is suid to a non

RE: superduperopen(3) (was: Fdescfs updates--coming to a devfs near you!)

2000-09-17 Thread Tony Johnson
f Of Gerhard Sittig Sent: Sunday, September 17, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Re: superduperopen(3) (was: Fdescfs updates--coming to a devfs near you!) On Sun, Sep 17, 2000 at 20:36 +0200, Peter van Dijk wrote: > On Sat, Sep 16, 2000 at 10:04:47AM +0200, Gerhard Sittig wrote: &g

Re: superduperopen(3) (was: Fdescfs updates--coming to a devfs near you!)

2000-09-17 Thread Gerhard Sittig
On Sun, Sep 17, 2000 at 20:36 +0200, Peter van Dijk wrote: > On Sat, Sep 16, 2000 at 10:04:47AM +0200, Gerhard Sittig wrote: > > > > > > [ ... how to find separating chars not used in filenames ... ] > > > > e.g. > > superduperopen("file1&file2", "a+", SDO_TEEFILES) > > superduperopen("file1&fi

Re: Fdescfs updates--coming to a devfs near you!

2000-09-17 Thread Adrian Filipi-Martin
On Thu, 14 Sep 2000, Ben Smithurst wrote: > Poul-Henning Kamp wrote: > > > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > > is bogus. It looks like something which happened "because we can" more > > than something which has a legitimate need. > > You think adding

Re: superduperopen(3) (was: Fdescfs updates--coming to a devfs near you!)

2000-09-17 Thread Peter van Dijk
On Sat, Sep 16, 2000 at 10:04:47AM +0200, Gerhard Sittig wrote: > > > How much sense does it make to think about implementing tee and > select methods this way? Like "open file1 and file2 and write to > both of them whatever I give to you" and "give me data coming in > from whatever file is in

Re: superduperopen(3) (was: Fdescfs updates--coming to a devfs near you!)

2000-09-16 Thread Gerhard Sittig
using Brian's post since I don't have the original around ... On Sat, Sep 16, 2000 at 03:49 +0100, Brian Somers wrote: > > [ attribution missing, is it Poul-Henning Kamp's text? ] > > > The majority of these programs could be handled by adding > > knowledge of "-" as a magic filename to fopen(3

Re: Fdescfs updates--coming to a devfs near you!

2000-09-15 Thread Brian Somers
> The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). [.] > I would argue that the programs and the scripts that call them are > already broken, but hey... So (just to add fuel to the mass opposition), do this without temporary files:

Re: Fdescfs updates--coming to a devfs near you!

2000-09-15 Thread Robert Watson
On Thu, 14 Sep 2000, Julian Elischer wrote: > I've never thought of a use for fdescfs... I used /dev/fd/1 just yesterday for a third-party precompiled binary that insists on outputting to a file specified on the command line. Slapping in /dev/fd/1 lets me stuff the command in a pipe chain. Same

Re: Fdescfs updates--coming to a devfs near you!

2000-09-15 Thread Bjoern Fischer
On Thu, Sep 14, 2000 at 02:37:06PM +0200, Poul-Henning Kamp wrote: [...] > The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). > > At the same time I would really love if we implemented "|.*" to mean > "do an popen(3)" instead. This would

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Warner Losh
In message <[EMAIL PROTECTED]> Garrett Wollman writes: : It's required if we ever get around to supporting secure set-id shell : scripts. (I think this was the rationale for originally introducing : it.) It also helps when bogus programs refuse to read from the : standard input. I'd like to see

Re: "!.*" [ was: Fdescfs updates--coming to a devfs near you! ]

2000-09-14 Thread patl
On 14-Sep-00 at 05:37, Poul-Henning Kamp ([EMAIL PROTECTED]) wrote: > >You think adding a hack to every program to support "-" to mean > >stdout/stdin is better? > > The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). > > At the same time

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Garance A Drosihn
At 11:48 AM +0200 9/14/00, Poul-Henning Kamp wrote: >I must admit that I think in general that /dev/std{in,out,err} >and /dev/fd is bogus. It looks like something which happened >"because we can" more than something which has a legitimate need. > >If anything I would propose we ditch it... I thi

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Donn Miller
On Thu, 14 Sep 2000, John Baldwin wrote: > Poul-Henning Kamp wrote: > > In message <[EMAIL PROTECTED]>, Peter Pentchev writes > > > > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > > is bogus. It looks like something which happened "because we can" more > > than so

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread John Baldwin
Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Peter Pentchev writes > : > >On Thu, Sep 14, 2000 at 01:12:10AM -0700, Julian Elischer wrote: > >> I've never thought of a use for fdescfs... > > > >Well.. just a trivial example - imagine a program which takes a filename > >as an argument

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Ben Smithurst
Garrett Wollman wrote: > [/dev/stdin] also helps when bogus programs refuse to read from the > standard input. Or if you want to read more than one file, one of which is standard input. e.g. gzip -dc oldlogs.*.gz | cat /dev/stdin todays-log | log-analyzer ... Of course that will work with "-"

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Garrett Wollman
< said: > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > is bogus. It looks like something which happened "because we can" more > than something which has a legitimate need. It's required if we ever get around to supporting secure set-id shell scripts. (I think th

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Frank Mayhar
Poul-Henning Kamp wrote: > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > is bogus. It looks like something which happened "because we can" more > than something which has a legitimate need. I strongly disagree. I actually have a script that I use daily which requi

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Robert Withro w writes: > >[EMAIL PROTECTED] said: >:- The majority of these programs could be handled by adding knowledge of >:- "-" as a magic filename to fopen(3). > >Suppose I *want* a filename called "-"? My tough luck, huh? ./- Very few programs understand

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Mike Meyer
Poul-Henning Kamp writes: > In message <[EMAIL PROTECTED]>, Ben Smithurs > t writes: > >Poul-Henning Kamp wrote: > > > >> I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > >> is bogus. It looks like something which happened "because we can" more > >> than something whic

/proc & /dev/std* [Was: Fdescfs updates--coming to a devfs near you!]

2000-09-14 Thread Konstantin Chuguev
Johnny Eriksson wrote: > > [EMAIL PROTECTED] said: > > :- The majority of these programs could be handled by adding knowledge of > > :- "-" as a magic filename to fopen(3). > > > > Suppose I *want* a filename called "-"? My tough luck, huh? > > Could you settle for "./-"? > I think any "magic"

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Johnny Eriksson
> [EMAIL PROTECTED] said: > :- The majority of these programs could be handled by adding knowledge of > :- "-" as a magic filename to fopen(3). > > Suppose I *want* a filename called "-"? My tough luck, huh? Could you settle for "./-"? > Robert Withrow -- (+1 978 288 8256) > [EMAIL PROTECTED]

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Robert Withrow
[EMAIL PROTECTED] said: :- The majority of these programs could be handled by adding knowledge of :- "-" as a magic filename to fopen(3). Suppose I *want* a filename called "-"? My tough luck, huh? I *like* /dev/stdin. It's orthogonal! -- Robert Withrow -- (+1 978 288 8256) [EMAIL PROTECTE

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Peter van Dijk
On Thu, Sep 14, 2000 at 02:37:06PM +0200, Poul-Henning Kamp wrote: [snip] > The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). > > At the same time I would really love if we implemented "|.*" to mean > "do an popen(3)" instead. Heh, and

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Ben Smithurs t writes: >Poul-Henning Kamp wrote: > >> I must admit that I think in general that /dev/std{in,out,err} and /dev/fd >> is bogus. It looks like something which happened "because we can" more >> than something which has a legitimate need. > >You think ad

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Ben Smithurst
Poul-Henning Kamp wrote: > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > is bogus. It looks like something which happened "because we can" more > than something which has a legitimate need. You think adding a hack to every program to support "-" to mean stdout/std

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Peter Pentchev writes : >On Thu, Sep 14, 2000 at 01:12:10AM -0700, Julian Elischer wrote: >> I've never thought of a use for fdescfs... > >Well.. just a trivial example - imagine a program which takes a filename >as an argument; imagine yourself trying to pipe somet

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Peter Pentchev
On Thu, Sep 14, 2000 at 01:12:10AM -0700, Julian Elischer wrote: > I've never thought of a use for fdescfs... Well.. just a trivial example - imagine a program which takes a filename as an argument; imagine yourself trying to pipe something into it - passing /dev/fd/0 as a filename to process wou

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Julian Elischer
I've never thought of a use for fdescfs... -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the

Fdescfs updates--coming to a devfs near you!

2000-09-13 Thread Chris Costello
Over the past few months, I've been working on the /dev/fd file system ("fdescfs"). After weeks of occasionally-hacking and putting it off, I've finalized a patch for fdescfs. What this patch changes: + fdesc_allocvp() becomes curproc-free as a `struct proc' pointer is passed as the n