Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!news.misty.com!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: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.c
Subject: Re: C90 fpeek
Date: Sat, 25 Jan 2025 00:52:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20250124165108.87@kylheku.com>
References:
<87plkc6bgm.fsf@nosuchdomain.example.com>
<20250124114602.417@kylheku.com>
Injection-Date: Sat, 25 Jan 2025 01:52:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="25b6f8f1bdf7188549c4f808ba40c56c";
logging-data="2613194"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+to40NcA0gL8xADjw9xI0/1LzSnUAU4LY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:FPPBRBSEoVegG3ulgroK+Xf7NyA=
Bytes: 1978
On 2025-01-24, Chris M. Thomasson wrote:
> On 1/24/2025 11:48 AM, Kaz Kylheku wrote:
>> Unless you non-portably arranged otherwise. E.g. on POSIX
>> we can get the fileno(stream), and use fcntl to set up O_NONBLOCK.
>> Then get(stream) returns EOF, with errno set to EWOULDBLOCK
>> and we whave to clearerr(stream), then poll the fd, and so it goes.
>>
>> Been there done that. Went back there, done that again,
>> and then several more times, like a raging masochist.
>
> Why not use AIO?
In conjunction with stdio buffering? It doesn't seem possible; you have
to go through alternative functions like aio_read, which stdio doesn't
interface with.
A stdio implementation that uses aio_read and friends under the hood
might be interesting.
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca