From owner-freebsd-bugs Mon Oct 2 3:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DAB4337B502 for ; Mon, 2 Oct 2000 03:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA03609; Mon, 2 Oct 2000 03:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 31B8237B502; Mon, 2 Oct 2000 03:28:22 -0700 (PDT) Message-Id: <20001002102822.31B8237B502@hub.freebsd.org> Date: Mon, 2 Oct 2000 03:28:22 -0700 (PDT) From: barak_enat@yahoo.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/21697: libedit does not #include causing some code in read.c to be ifdef'd out Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21697 >Category: misc >Synopsis: libedit does not #include causing some code in read.c to be ifdef'd out >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 02 03:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Barak Enat >Release: >Organization: >Environment: >Description: in libedit the file read.c include some code to handle the case of stdin becoming NON blocking. this is done in the function read__fixio. however, the # if defined(F_SETFL) && defined(O_NDELAY) line is evaluated to false preventing this code from compiling. this is because Cis missing from the compilation. >How-To-Repeat: to see the problem run sh -E, and then execute a program that sets STDIN to NB mode. when the program terminates, sh keeps beeping, since libedit doesn't return STDIN to blocking mode. >Fix: fix the compilation to have #include >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message