From owner-cvs-src@FreeBSD.ORG Sun Feb 3 15:54:41 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89F5316A418; Sun, 3 Feb 2008 15:54:41 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69D2013C45A; Sun, 3 Feb 2008 15:54:41 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m13FsfMf001011; Sun, 3 Feb 2008 15:54:41 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m13Fsf9B001010; Sun, 3 Feb 2008 15:54:41 GMT (envelope-from phk) Message-Id: <200802031554.m13Fsf9B001010@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 3 Feb 2008 15:54:41 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/sys sendfile.2 src/sys/kern uipc_syscalls.c src/sys/sys socket.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 15:54:41 -0000 phk 2008-02-03 15:54:41 UTC FreeBSD src repository Modified files: lib/libc/sys sendfile.2 sys/kern uipc_syscalls.c sys/sys socket.h Log: Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufs referencing the files VM pages are returned from the network stack, making changes to the file safe. This flag does not guarantee that the data has been transmitted to the other end. Revision Changes Path 1.32 +14 -1 src/lib/libc/sys/sendfile.2 1.266 +42 -1 src/sys/kern/uipc_syscalls.c 1.98 +1 -0 src/sys/sys/socket.h