On Wed, 13 Apr 2011, Cedric BAIL wrote:

> On Wed, Apr 13, 2011 at 8:36 PM, Vincent Torri <vto...@univ-evry.fr> wrote:
>> On Wed, 13 Apr 2011, Vincent Torri wrote:
>>> are you sure that O_CLOEXEC and ACCESSPERMS are portable ?

http://www.kernel.org/doc/man-pages/online/pages/man2/open.2.html

"the Linux-specific O_CLOEXEC flag, etc..."

        O_CLOEXEC (Since Linux 2.6.23)

hum, not really portable.

> I hope they are. It's a pretty basic feature, being able to
> automatically close a fd on exec. As for ACCESSPERMS it's just a macro
> that should be provided by any unix system (would only means something
> on them, but not much in the considered case).

it's not defined in OpenSolaris.

>> and that MAP_POPULATE does not need a too recent linux kernel ?
>
> It will be available at least on all 2.6 kernel. I don't know for other.

http://linux.die.net/man/2/mmap

MAP_POPULATE (since Linux 2.5.46)

and it's not defined in OpenSolaris.

So all those 3 macro are not portable at all.


Vincent

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to