Debian bug report logs - #784 Infelicities in fopen manpage Package: manpages ; Reported by: iwj10@cus.cam.ac.uk (Ian Jackson); 204 days old . ----------------------------------------------------------------------- Message received at debian-bugs: From cus.cam.ac.uk!iwj10 Mon Apr 10 04:29:39 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0ryHf1-0006g5C; Mon, 10 Apr 95 04:29 PDT Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA07133 (5.65c/IDA-1.4.4 for ); Mon, 10 Apr 1995 04:29:24 -0700 Received: by bootes.cus.cam.ac.uk (Smail-3.1.29.0 #30) id m0ryHKr-000C00C; Mon, 10 Apr 95 12:08 BST Received: by chiark id m0ry5ET-0000YjZ (Debian /\oo/\ Smail3.1.29.1 #29.30); Sun, 9 Apr 95 23:13 BST Message-Id: Date: Sun, 9 Apr 95 23:13 BST From: iwj10@cus.cam.ac.uk (Ian Jackson) To: Debian bugs submission address Subject: Infelicities in fopen manpage Package: manpages Version: 1.5-1 The manpage for fopen contains: Reads and writes may be intermixed on read/write streams in any order, and do not require an intermediate seek as in previous versions of stdio. This is not portable to other systems, however, and may not work under Linux (someone should find out and fix this manpage); ANSI C requires that a file positioning function intervene between output and input, unless an input operation encounters end-of-file. Also, the description of fdopen is: The fdopen function associates a stream with the existing file descriptor, fildes. The mode of the stream must be compatible with the mode of the file descriptor. This does not make it clear whether fdopen dup's the file descriptor you give it. In other words, it doesn't tell you whether calling fclose is sufficient to close the underlying file descriptor(s) (it seems that it is - if you try close on the original fd after using fdopen/fclose you get EBADF). Ian. ----------------------------------------------------------------------- Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson) : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#784 ; Package manpages . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov