From owner-cvs-all Thu Jan 30 3:46:27 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B437037B401; Thu, 30 Jan 2003 03:46:26 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A30F43F43; Thu, 30 Jan 2003 03:46:26 -0800 (PST) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0UBkQbv077292; Thu, 30 Jan 2003 03:46:26 -0800 (PST) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0UBkPeu077291; Thu, 30 Jan 2003 03:46:25 -0800 (PST) Message-Id: <200301301146.h0UBkPeu077291@repoman.freebsd.org> From: "Tim J. Robbins" Date: Thu, 30 Jan 2003 03:46:25 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio gets.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tjr 2003/01/30 03:46:25 PST Modified files: lib/libc/stdio gets.c Log: Lock stdin on entry, unlock on return, use __sgetc() instead of getchar() to avoid locking the stream for each character and to avoid input being scattered among multiple threads. Revision Changes Path 1.14 +9 -5 src/lib/libc/stdio/gets.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message