From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 15 02:20:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8615ED41 for ; Wed, 15 Jan 2014 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6107D1939 for ; Wed, 15 Jan 2014 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0F2K0bZ092547 for ; Wed, 15 Jan 2014 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0F2K0lV092546; Wed, 15 Jan 2014 02:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 15 Jan 2014 02:20:00 GMT Resent-Message-Id: <201401150220.s0F2K0lV092546@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kan Sasaki Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0E02889 for ; Wed, 15 Jan 2014 02:11:35 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AE06818D7 for ; Wed, 15 Jan 2014 02:11:35 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0F2BZqP013755 for ; Wed, 15 Jan 2014 02:11:35 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0F2BZFB013742; Wed, 15 Jan 2014 02:11:35 GMT (envelope-from nobody) Message-Id: <201401150211.s0F2BZFB013742@oldred.freebsd.org> Date: Wed, 15 Jan 2014 02:11:35 GMT From: Kan Sasaki To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/185791: [patch] devel/lua-posix: remove unsupported function X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2014 02:20:00 -0000 >Number: 185791 >Category: misc >Synopsis: [patch] devel/lua-posix: remove unsupported function >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 15 02:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Kan Sasaki >Release: FreeBSD 9.2-STABLE amd64 >Organization: >Environment: >Description: Remove unsupported function 'fdatasync.' >How-To-Repeat: >Fix: Patch attached with submission follows: Index: files/patch-ext__posix__posix.c =================================================================== --- files/patch-ext__posix__posix.c (revision 339685) +++ files/patch-ext__posix__posix.c (working copy) @@ -1,5 +1,5 @@ ---- ./ext/posix/posix.c.orig 2013-09-09 09:15:14.000000000 +0200 -+++ ./ext/posix/posix.c 2014-01-10 15:21:47.831554392 +0100 +--- ./ext/posix/posix.c.orig 2013-09-09 16:15:14.000000000 +0900 ++++ ./ext/posix/posix.c 2014-01-15 11:00:23.000000000 +0900 @@ -68,6 +68,10 @@ #include "lauxlib.h" #include "lua52compat.h" @@ -11,3 +11,31 @@ #ifndef STREQ # define STREQ(a, b) (strcmp (a, b) == 0) #endif +@@ -3697,6 +3701,7 @@ + return pushresult(L, fsync(fd), NULL); + } + ++#if 0 + #if _POSIX_VERSION >= 200112L + /*** + synchronize a file's in-core state with storage device without metadata +@@ -3712,6 +3717,7 @@ + return pushresult(L, fdatasync(fd), NULL); + } + #endif ++#endif + + /*** + reposition read/write file offset +@@ -3771,9 +3777,11 @@ + MENTRY( Perrno ), + MENTRY( Pexec ), + MENTRY( Pexecp ), ++#if 0 + #if _POSIX_VERSION >= 200112L + MENTRY( Pfdatasync ), + #endif ++#endif + MENTRY( Pfcntl ), + MENTRY( Pfileno ), + MENTRY( Pfiles ), >Release-Note: >Audit-Trail: >Unformatted: