Date: Mon, 2 Oct 2000 03:28:22 -0700 (PDT) From: barak_enat@yahoo.com To: freebsd-gnats-submit@FreeBSD.org Subject: misc/21697: libedit does not #include <fcntl.h> causing some code in read.c to be ifdef'd out Message-ID: <20001002102822.31B8237B502@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 21697 >Category: misc >Synopsis: libedit does not #include <fcntl.h> 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 <fcntl.h> >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001002102822.31B8237B502>