[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-devtools
Subject: Re: HPUX-DEVTOOLS: Problem in using /dev/stdout
From: "Blair Wagner" <blair.wagner () cci-triad ! com>
Date: 2001-10-05 12:19:59
[Download RAW message or body]
Doesn't " /dev/tty " offer the same feature?
Dennis Handly wrote:
>
> >We are using /dev/stdout in out SOLARIS port, but I am unable to
> >find the same on HP. Can anybody help me to sort out this problem.
> Amandeep
>
> There is no such file. There is a pre-opened file STDOUT_FILENO and a
> stream stdout.
>
> >From: Albert Chin-A-Young <china@thewrittenword.com>
> >Why not use fd 0 directly? Should work fine on Solaris too as
> >/dev/stdout is just fd 0.
>
> Never use hardcoded numbers. It is STDOUT_FILENO, 1.
>
> >From: "Amandeep Singh" <asingh@sequencedesign.com>
> >Can anyone suggest me the /dev/stdout equivalent on HP-UX 11.00
>
> There is /dev/tty but this isn't redirected.
>
> -----Original Message-----
> >From: Albert Chin-A-Young <china@thewrittenword.com>
> >>>How about modifying write_placement to send, by *default*, to STDOUT.
>
> Or to take a FILE*.
> _________________________________________________________________
> To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
> with the message UNSUBSCRIBE hpux-devtools
> _________________________________________________________________
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William Blair Wagner Education is not always knowing the answer,
CCITRIAD ..but rather knowing where to look for it!
blair.wagner@ccitriad.com
Senior Development Engineer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE hpux-devtools
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic