HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1878 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

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


Report 1878 Actions


    Problem Report Number 1878
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0939
    Raised 1998-03-04 08:00
    Updated 2003-03-13 08:00
    Published 1998-03-06 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.4.2
    Test Identification XPG4.os/ipc/semctl 17 18
    Problem Summary TSD5.008 This interpretation request is for the following assertions: /tset/XPG4.os/ipc/semctl/T.semctl 17 Unresolved /tset/XPG4.os/ipc/semctl/T.semctl 18 Unresolved /tset/XPG4.os/ipc/semop/T.semop 4 Unresolve...
    Problem Text
    This interpretation request is for the following assertions:

    /tset/XPG4.os/ipc/semctl/T.semctl 17 Unresolved
    /tset/XPG4.os/ipc/semctl/T.semctl 18 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 4 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 5 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 7 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 12 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 13 Unresolved
    /tset/XPG4.os/ipc/semop/T.semop 15 Unresolved

    These tests define an mbuf structure like the following:

    private struct mbuf {
    int mtype;
    char mtext[MSGSZ];
    };

    This structure is then used in a call to msgsnd() or msgrcv() as follows:

    if (msgsnd(msgid, (void *)&mbuf, MSGSZ, IPC_NOWAIT) == SYSERROR) { \

    or

    if (msgrcv(msgid, (void *)&mbuf, MSGSZ, 0, IPC_NOWAIT) == SYSERROR) { \


    However, on page 551 of the XPG5 XSH, it states the followwing:

    "DESCRIPTION The msgrcv() function ....

    The argument msgp points to a user-defined buffer that must
    contain first a field of long int that will specify the type of
    the message, and then a data portion that will hold the data
    bytes of the message. ....."

    and on page 554, msgsnd()

    " The structure member mtype is a non-zero positive type long int
    that can be used by the receiving process for message selection."

    The same problem exists in the semop source.

    Test Output
    ************************************************************************
    /tset/XPG4.os/ipc/semctl/T.semctl 17 Unresolved

    Test Description:
    When the process has read permission, a call to
    semctl(semid,semnum,GETNCNT,arg) returns the number of processes which
    are waiting for the value associated with the semaphore referenced by
    semid and semnum to increase from its current value.

    Test Information:
    msgsnd() unexpectedly failed, error: EINVAL

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

    ************************************************************************
    /tset/XPG4.os/ipc/semctl/T.semctl 18 Unresolved

    Test Description:
    When the process has read permission, a call to
    semctl(semid,semnum,GETZCNT,arg) returns the number of processes which
    are waiting for the value associated with the semaphore referenced by
    semid and semnum to become zero.

    Test Information:
    msgsnd() unexpectedly failed, error: EINVAL

    ************************************************************************
    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 4 Unresolved

    Test Description:
    When the calling process has alter permission for the semaphore set
    and sem_op is negative and semval is less than the absolute value of
    sem_op, and the IPC_NOWAIT flag is not set in sem_flag then a
    successful call to semop(semid,sops,nsops) increments the semncnt
    associated with the specified semaphore and suspends the calling
    process awaiting a change in the semval associated with the specified
    semaphore.

    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 5 Unresolved

    Test Description:
    When the process has been suspended awaiting an increase in a
    semaphore value and the value of the semaphore semval is changed such
    that it becomes greater than or equal to the absolute value of the
    sem_op associated with the call to semop(semid,sops,nsops) which
    caused the process to be suspended, then the value of semncnt
    associated with the semaphore is decremented and the absolute value of
    sem_op is subtracted from semval, and the absolute value of sem_op is
    added to the semadj value if the SEM_UNDO flag is set in sem_flg and
    the suspended call shall return zero.

    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 7 Unresolved

    Test Description:
    When the process has been suspended awaiting an increase in a
    semaphore value and the calling process receives a signal that is to
    be caught, then the call to semop(semid,sops,nsops) decrements the
    semncnt value associated with the semaphore, returns -1 and sets
    'errno' to EINTR.
    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 12 Unresolved

    Test Description:
    When the calling process has read permission for the semaphore set and
    sem_op is zero and semval is not zero, and the IPC_NOWAIT flag is not
    set in sem_flag than a successful call to semop(semid,sops,nsops)
    increments the semzcnt associated with the specified semaphore and
    suspends the calling process awaiting a change in the semval
    associated with the specified semaphore.

    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 13 Unresolved

    Test Description:
    When the process has been suspended awaiting zeroing of a semaphore
    value and the value of the semaphore's semval is changed such that it
    becomes zero, then the value of semzcnt associated with the semaphore
    is decremented and the suspended call to semop(semid,sops,nsops)
    returns zero.

    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    ************************************************************************
    /tset/XPG4.os/ipc/semop/T.semop 15 Unresolved

    Test Description:
    When the process has been suspended awaiting zeroing of a semaphore
    value and the calling process receives a signal that is to be caught,
    then the call to semop(semid,sops,nsops) decrements the semzcnt value
    associated with the semaphore, returns -1 and sets errno to EINTR.

    Test Information:
    msgsnd() unexpectedly failed, error: 22 (EINVAL)

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

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    It is accepted that this is a fault in the test suite and it is recommended
    that a waiver is granted on the grounds of a Test Suite Deficiency.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority