Problem Report 0032 Details

Help Show help | Quick Search | Click here to view your privileges

This page provides all information on Problem Report 0032 and all reviews you are authorized to see.


Report 0032 Actions


    Problem Report Number 0032
    Submitter's Classification Specification problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.PX.0015
    Raised 2006-10-14 02:00
    Updated 2006-10-23 21:10
    Published 2006-10-23 21:10
    Product Standard PSE52 Realtime Controller 1003.1-2003 System
    Certification Program POSIX Certified by IEEE and The Open Group
    Test Suite VSRT-PSE version 5.3.6
    Test Identification rt.os/ioprim/fcntl/T.fcntl.1,2
    Specification PSE52 Realtime Controller 1003.1-2003 System Product Standard
    Location in Spec http://www.opengroup.org/onlinepubs/009695399/functions/fcntl.html
    Problem Summary fcntl() specifications always require the FD_CLOEXEC flag even when
    exec() is not supported in PSE52.
    Problem Text The fcntl() specifications mention that the FD_CLOEXEC flag is to be
    supported by both the F_DUPFD and F_SETFD commands. The FD_CLEXEC flag
    is strictly related to the usage of the exec() function. However the
    exec() function is not required for a PSE52 conforming system so it
    would be logical that the fcntl() function describes the handling of
    the FD_CLOEXEC flag as optional and depending on an optional
    functionality, but it does not...
    Test Output
    ***********************************************************************
    *
    /tset/rt.os/ioprim/fcntl/T.fcntl 1 Failed


    Test Description:
    If _POSIX_SHARED_MEMORY_OBJECTS is defined:
    A call to fcntl(fildes, F_DUPFD, arg) when fildes refers to
    a shared
    memory object shall act as follows:
    a. A new file descriptor is returned;
    b. The returned file descriptor is the lowest numbered
    descriptor
    greater than or equal to arg;
    c. The returned file descriptor describes the same open file
    description as the original descriptor fildes;
    d. The returned file descriptor has the FD_CLOEXEC flag
    clear.


    Test Information:
    FD_CLOEXEC flag is set



    ***********************************************************************
    *


    ***********************************************************************
    *
    /tset/rt.os/ioprim/fcntl/T.fcntl 2 Failed


    Test Description:
    If _POSIX_SHARED_MEMORY_OBJECTS is defined:
    A call to fcntl(fildes, F_GETFD, arg) when fildes refers to
    a shared
    memory object shall return the file descriptor flags for
    fildes.


    Test Information:
    FD_CLOEXEC flag is set



    Review Information

    Review Type SA Review
    Start Date 2006-10-14 02:00
    Last Updated 2006-10-17 17:05
    Completed 2006-10-17 17:05
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion The claim that PSE52 should allow support for FD_CLOEXEC to be optional
    is perfectly reasonable, and would be grounds for requesting a waiver
    for a test that failed because FD_CLOEXEC could not be set.

    However, that is not what has happened in this test. At the point at
    which the failure occurs, the test has already successfully set
    FD_CLOEXEC for a file descriptor. It then duplicates the fd using
    fcntl(F_DUPFD) and checks that the new fd does not have FD_CLOEXEC set
    (i.e. that the FD_CLOEXEC setting has not been propagated to the
    duplicate fd). On this implementation the setting has been propagated,
    contrary to the requirements of POSIX.1.

    This waiver request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority