Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #389828
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Can 'graphics' be a file descriptor? |
| Date | 2025-01-01 01:29 -0800 |
| Organization | None to speak of |
| Message-ID | <87msgaubjj.fsf@nosuchdomain.example.com> (permalink) |
| References | <d0fcbe9e7b29ce6f9a0604058475b0aa9a23d5cb.camel@gmail.com> |
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 */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
Can 'graphics' be a file descriptor? wij <wyniijj5@gmail.com> - 2025-01-01 15:48 +0800
Re: Can 'graphics' be a file descriptor? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-01 08:11 +0000
Re: Can 'graphics' be a file descriptor? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-01 01:29 -0800
Re: Can 'graphics' be a file descriptor? wij <wyniijj5@gmail.com> - 2025-01-01 19:05 +0800
Re: Can 'graphics' be a file descriptor? bart <bc@freeuk.com> - 2025-01-01 12:07 +0000
Re: Can 'graphics' be a file descriptor? wij <wyniijj5@gmail.com> - 2025-01-01 21:40 +0800
Re: Can 'graphics' be a file descriptor? bart <bc@freeuk.com> - 2025-01-02 11:28 +0000
Re: Can 'graphics' be a file descriptor? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-01 19:25 +0000
Re: Can 'graphics' be a file descriptor? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-01 14:33 -0800
Re: Can 'graphics' be a file descriptor? Alexis <flexibeast@gmail.com> - 2025-01-02 10:22 +1100
Re: Can 'graphics' be a file descriptor? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-02 00:50 +0000
Re: Can 'graphics' be a file descriptor? wij <wyniijj5@gmail.com> - 2025-01-02 15:16 +0800
Re: Can 'graphics' be a file descriptor? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-02 13:06 -0800
Re: Can 'graphics' be a file descriptor? BGB <cr88192@gmail.com> - 2025-01-02 16:08 -0600
Re: Can 'graphics' be a file descriptor? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-01-02 23:35 +0000
Re: Can 'graphics' be a file descriptor? BGB <cr88192@gmail.com> - 2025-01-03 00:10 -0600
Re: Can 'graphics' be a file descriptor? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-03 00:07 +0000
Re: Can 'graphics' be a file descriptor? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-01-02 23:24 -0800
csiph-web