Re: Adding madvise function in cygwin with a #define

2011-01-12 Thread Corinna Vinschen
On Jan 12 13:03, jdzstz - gmail dot com wrote: > Maybe an implementation option could be: > > 1) Standard advices that only has a influence in application > performance, can be executed as current posix_madvise, checking only > the parameters and doing nothing => MADV_NORMAL, MADV_SEQUENTIAL, > M

Re: Adding madvise function in cygwin with a #define

2011-01-12 Thread jdzstz - gmail dot com
I have readed again the Linux man page http://www.kernel.org/doc/man-pages/online/pages/man2/madvise.2.html and perhaps the first text is outdated. At the beginning of man page it says that: "This call does not influence the semantics of the application (except in the case of MADV_DONTNEED), but m

Re: Adding madvise function in cygwin with a #define

2011-01-12 Thread Corinna Vinschen
On Jan 11 20:12, jdzstz - gmail dot com wrote: > I have read cygwin "posix_madvise" code, that is in "mmap.cc" file and > "madvise" linux code and posix especification: > * CYGWIN => mmap.cc file: > http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/src/winsup/cygwin/mmap.cc?cvsroot=src > * LINU

Re: Adding madvise function in cygwin with a #define

2011-01-11 Thread jdzstz - gmail dot com
I have read cygwin "posix_madvise" code, that is in "mmap.cc" file and "madvise" linux code and posix especification: * CYGWIN => mmap.cc file: http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/src/winsup/cygwin/mmap.cc?cvsroot=src * LINUX => madvise man: http://www.kernel.org/doc/man-pages/onl

Re: Adding madvise function in cygwin with a #define

2011-01-11 Thread Eric Blake
On 01/11/2011 04:13 AM, jdzstz - gmail dot com wrote: > Testing a linux application that uses "madvise", varnish cache, I have > realized that in cygwin doesnot exists this function but exists the > alternative "posix_madvise". > > Adding inside configure.ac script: > + AC_DEFINE([madv

Adding madvise function in cygwin with a #define

2011-01-11 Thread jdzstz - gmail dot com
Testing a linux application that uses "madvise", varnish cache, I have realized that in cygwin doesnot exists this function but exists the alternative "posix_madvise". Adding inside configure.ac script: + AC_DEFINE([madvise], [posix_madvise], [In CYGWIN, madvise function is not defi