Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #389835

Re: Can 'graphics' be a file descriptor?

From Alexis <flexibeast@gmail.com>
Newsgroups comp.lang.c
Subject Re: Can 'graphics' be a file descriptor?
Date 2025-01-02 10:22 +1100
Organization A noiseless patient Spider
Message-ID <87r05mdsqz.fsf@gmail.com> (permalink)
References <d0fcbe9e7b29ce6f9a0604058475b0aa9a23d5cb.camel@gmail.com> <87msgaubjj.fsf@nosuchdomain.example.com> <0bfa49a6d580546ab2db91aeac7627afb19e492d.camel@gmail.com> <87ikqytb9d.fsf@nosuchdomain.example.com>

Show all headers | View raw


Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Why do you insist on referring to "file descriptors"?  That's a specific
> term with a specific meaning: a small integer value used in POSIX I/O
> (not in standard C).

Indeed; cf. https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_141:

> 3.141 File Descriptor
> 
> A per-process unique, non-negative integer used to identify an open
> file for the purpose of file access. The values 0, 1, and 2 have
> special meaning and conventional uses, and are referred to as standard
> input, standard output, and standard error, respectively. Programs
> usually take their input from standard input, and write output on
> standard output. Diagnostic messages are usually written on standard
> error. The value of a newly-created file descriptor is from zero to
> {OPEN_MAX}-1. A file descriptor can have a value greater than or equal
> to {OPEN_MAX} if the value of {OPEN_MAX} has decreased (see sysconf)
> since the file descriptor was opened. File descriptors may also be
> used to implement message catalog descriptors and directory streams;
> see also 3.241 Open File Description. 


Alexis.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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