[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: stdout?

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-01-26 15:40:50 CET

On Fri, Jan 26, 2001 at 08:37:57AM -0600, Ben Collins-Sussman wrote:
> Kevin Pilch-Bisson <kevin@pilch-bisson.net> writes:
> > Anyway try status = apr_put_os_file(&file, &STDOUT_FILENO, pool). My
> > guess is that your segfault was because you casted an int to a pointer,
> > and then the filedes assignment dereferenced that pointer.
> Uh, this won't compile. You can't place an `&' in front of int, can you?
> diff.c:52: invalid lvalue in unary `&'
> I can't find any reference to STDOUT_FILENO in apr, except in apr.hw,
> which is a win32-specific file. What the heck is this thing? :)
> Well, I checked in `svn diff' now, so somebody feel free to make
> client/diff.c work correctly. :)
> ____________________________________________________________
Well you can place an & in from for an int, but not in front of a
literal, which is what STD_FILENO is since it is #defined. I'll take a
look at it, and let you know what I find.

Kevin Pilch-Bisson
PGP Public Key At http://pgp.pilch-bisson.net

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:20 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.