Deutsch   English   Français   Italiano  
<87msgaubjj.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Can 'graphics' be a file descriptor?
Date: Wed, 01 Jan 2025 01:29:52 -0800
Organization: None to speak of
Lines: 24
Message-ID: <87msgaubjj.fsf@nosuchdomain.example.com>
References: <d0fcbe9e7b29ce6f9a0604058475b0aa9a23d5cb.camel@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 01 Jan 2025 10:29:57 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b52a82344e56e00245aea888d7eb8d49";
	logging-data="2866658"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19zwyTbeN8oY4PySJOnix6/"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:GKisXEr6O3NFYCQKygP8GGzuh1E=
	sha1:WH7x00PLq+HUz2WnrdwRoi5oIgA=
Bytes: 1785

wij <wyniijj5@gmail.com> writes:
> In recent revision of libwy (a C++ library that wraps Clib functions), I feel
> the so called 'graphics' can be a file descriptor.

A file *descriptor* is a small integer referring to some file-like
entity, used with open/close/read/write.  There's no such thing in
standard C; it's a POSIX concept.

I don't think you're actually working with file descriptors, though it's
hard to tell.

>   if((r=popen(GrSvr,cpid,frd,fwr))!=Ok) {
>     WY_THROW(r);
>   }

popen() is a POSIX function.  It takes two arguments, not four.

The code you posted is C++.  Why are you posting it to comp.lang.c?

[...]

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */