From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B584F1F4B4 for ; Fri, 25 Sep 2020 04:18:37 +0000 (UTC) Received: from localhost ([::1]:59708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLfBs-0005gI-GX for normalperson@yhbt.net; Fri, 25 Sep 2020 00:18:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLfBp-0005g8-00 for bug-gnulib@gnu.org; Fri, 25 Sep 2020 00:18:33 -0400 Received: from ext140.multitalents.net ([173.164.249.140]:57482 helo=server01.int.multitalents.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLfBm-0007Xi-50 for bug-gnulib@gnu.org; Fri, 25 Sep 2020 00:18:32 -0400 Received: from server01.int.multitalents.net (localhost [127.0.0.1]) by server01.int.multitalents.net (8.15.2/8.13.8) with ESMTP id 08P4IIjQ002222; Thu, 24 Sep 2020 21:18:21 -0700 (PDT) Received: from localhost (tim@localhost) by server01.int.multitalents.net (8.15.2/8.13.8/Submit) with ESMTP id 08P4IH3j002176; Thu, 24 Sep 2020 21:18:18 -0700 (PDT) X-Authentication-Warning: server01.int.multitalents.net: tim owned process doing -bs Date: Thu, 24 Sep 2020 21:18:17 -0700 (PDT) From: Tim Rice X-X-Sender: tim@server01.int.multitalents.net To: bug-gnulib@gnu.org Subject: Re: patch: stdio fix for UnixWare In-Reply-To: Message-ID: References: <2153544.BkxsDORIQK@omega> User-Agent: Alpine 2.11 (UW2 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Received-SPF: pass client-ip=173.164.249.140; envelope-from=tim@multitalents.net; helo=server01.int.multitalents.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 00:18:27 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bruno Haible Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Thu, 24 Sep 2020, Tim Rice wrote: > > Hi Bruno, > > On Fri, 25 Sep 2020, Bruno Haible wrote: > > > Tim Rice wrote: > > > I've attached a patch to address the fact that UnixWare does not have > > > stdio_ext.h but has some __X() stdio helper functions. > > > > In which header file are they declared? Can you show these declarations, > > please? > > > > Bruno > > stdio.h > > extern size_t __fbufsiz(FILE *); > extern int __filbuf(FILE *); > extern int __flbf(FILE *); > extern int __flsbuf(int, FILE *); > extern size_t __fpending(FILE *); > extern void __fpurge(FILE *); > extern int __freadable(FILE *); > extern int __freading(FILE *); > extern int __fwritable(FILE *); > extern int __fwriting(FILE *); > extern void _flushlbf(void); This may be if interest also. (also stdio.h) #define __flbf(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & _IOLBF) #define __freading(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & _IOREAD) #define __fwriting(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & _IOWRT) #define __freadable(p) (__freading(p) && __fpending(p)) #define __fwritable(p) (__fwriting(p) && __fpending(p) < __fbufsiz(p)) #define __fpurge(p) funflush(p) -- Tim Rice Multitalents tim@multitalents.net