misc/185791: [patch] devel/lua-posix: remove unsupported function

Kan Sasaki sasaki at fcc.ad.jp
Wed Jan 15 02:20:00 UTC 2014


>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:


More information about the freebsd-bugs mailing list