From owner-cvs-all Thu Aug 29 16: 6:13 2002 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 8FDB537B400; Thu, 29 Aug 2002 16:06:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 299B143E3B; Thu, 29 Aug 2002 16:06:08 -0700 (PDT) (envelope-from deischen@FreeBSD.org) Received: from freefall.freebsd.org (deischen@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7TN68JU094715; Thu, 29 Aug 2002 16:06:08 -0700 (PDT) (envelope-from deischen@freefall.freebsd.org) Received: (from deischen@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7TN68ou094714; Thu, 29 Aug 2002 16:06:08 -0700 (PDT) Message-Id: <200208292306.g7TN68ou094714@freefall.freebsd.org> From: Daniel Eischen Date: Thu, 29 Aug 2002 16:06:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_accept.c uthread_close.c uthread_connect.c uthread_dup.c uthread_dup2.c uthread_execve.c uthread_exit.c uthread_fcntl.c uthread_fd.c uthread_ioctl.c uthread_read.c uthread_readv.c uthread_recvfrom.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 deischen 2002/08/29 16:06:07 PDT Modified files: lib/libc_r/uthread pthread_private.h uthread_accept.c uthread_close.c uthread_connect.c uthread_dup.c uthread_dup2.c uthread_execve.c uthread_exit.c uthread_fcntl.c uthread_fd.c uthread_ioctl.c uthread_read.c uthread_readv.c uthread_recvfrom.c uthread_recvmsg.c uthread_sendfile.c uthread_sendmsg.c uthread_sendto.c uthread_sig.c uthread_write.c uthread_writev.c Log: Remove much of the dereferencing of the fd table entries to look at file flags and replace it with functions that will avoid null pointer checks. MFC to be done by archie ;-) PR: 42100 Reviewed by: archie, robert MFC after: 3 days Revision Changes Path 1.73 +5 -3 src/lib/libc_r/uthread/pthread_private.h 1.16 +6 -5 src/lib/libc_r/uthread/uthread_accept.c 1.13 +3 -2 src/lib/libc_r/uthread/uthread_close.c 1.13 +4 -4 src/lib/libc_r/uthread/uthread_connect.c 1.11 +2 -2 src/lib/libc_r/uthread/uthread_dup.c 1.14 +2 -2 src/lib/libc_r/uthread/uthread_dup2.c 1.15 +2 -2 src/lib/libc_r/uthread/uthread_execve.c 1.27 +1 -1 src/lib/libc_r/uthread/uthread_exit.c 1.15 +7 -6 src/lib/libc_r/uthread/uthread_fcntl.c 1.22 +16 -0 src/lib/libc_r/uthread/uthread_fd.c 1.12 +8 -3 src/lib/libc_r/uthread/uthread_ioctl.c 1.14 +3 -3 src/lib/libc_r/uthread/uthread_read.c 1.15 +2 -2 src/lib/libc_r/uthread/uthread_readv.c 1.12 +3 -2 src/lib/libc_r/uthread/uthread_recvfrom.c 1.10 +3 -2 src/lib/libc_r/uthread/uthread_recvmsg.c 1.10 +3 -3 src/lib/libc_r/uthread/uthread_sendfile.c 1.10 +3 -2 src/lib/libc_r/uthread/uthread_sendmsg.c 1.12 +3 -2 src/lib/libc_r/uthread/uthread_sendto.c 1.42 +1 -1 src/lib/libc_r/uthread/uthread_sig.c 1.20 +3 -3 src/lib/libc_r/uthread/uthread_write.c 1.20 +2 -2 src/lib/libc_r/uthread/uthread_writev.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message