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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2438 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 2438.


Report 2438 Actions


    Problem Report Number 2438
    Submitter's Classification Specification problem
    State Resolved
    Resolution Permanent Interpretation (PIN)
    Problem Resolution ID PIN.X.0268
    Raised 2005-01-28 02:58
    Updated 2005-02-03 14:25
    Published 2005-02-03 14:25
    Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.2.6
    Test Identification /tset/CAPI.os/dbm/dbm_first/T.dbm_first,4
    /tset/CAPI.os/dbm/dbm_nextk/T.dbm_nextk,4
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open, 1,3,4,6,8,12
    Specification Base Definitions Issue 6
    Location in Spec http://www.opengroup.org/onlinepubs/000095399/functions/dbm_clearerr.html
    Problem Summary dbm_open: implementation of database files
    Problem Text Our implementation of the Berkely DB interface is db(3) compatible, yet
    uses a different on-disk format and naming convention.
    The Austin Group has approved Interpretation AI-042 to permit
    this additional behavior by implementations
    Test Output ************************************************************************
    /tset/CAPI.os/dbm/dbm_first/T.dbm_first 4 Unresolved

    Test Description:
    Base Required Conformance
    A call to datum dbm_firstkey(DBM *db) shall support a maximum datum
    content and search key size of at least 1024 bytes.

    Test Information:
    PREP: Create database
    PREP: Add a record to the database with size 1023
    ERROR: dbm_store failed, errno = 0 (0 - No error)

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_nextk/T.dbm_nextk 4 Unresolved

    Test Description:
    Base Required Conformance
    A call to datum dbm_nextkey(DBM *db) shall support a maximum datum
    content and search key size of at least 1024 bytes.

    Test Information:
    PREP: Create database
    PREP: Add records to the database with max size 1023
    ERROR: dbm_store failed, errno = 0 (0 - No error)

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 1 Failed

    Test Description:
    Base Required Conformance
    A successful call to DBM *dbm_open(const char *file, int open_flags,
    mode_t file_mode) shall open files named file.dir and file.pag and
    return a pointer to the structure for the database file.

    Test Information:
    TEST: dbm_open returns pointer to database structure
    TEST: file.pag opened
    ERROR: open failed, errno = 2 (ENOENT - No such file or directory)

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 3 Unresolved

    Test Description:
    Base Required Conformance
    A successful call to DBM *dbm_open(const char *file, int open_flags,
    mode_t file_mode) with O_WRONLY set in open_flags shall open the
    database files for reading and writing.

    Test Information:
    PREP: Find first available file descriptor
    PREP: Open database with write only access
    PREP: Find next available file descriptor
    ERROR: Expected at least two files to be opened for the database, 1
    opened

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 4 Unresolved

    Test Description:
    Base Required Conformance
    A successful call to DBM *dbm_open(const char *file, int open_flags,
    mode_t file_mode) with O_RDWR set in open_flags shall open the
    database files for reading and writing.

    Test Information:
    PREP: Find first available file descriptor
    PREP: Open database with read/write access
    PREP: Find next available file descriptor
    ERROR: Expected at least two files to be opened for the database, 1
    opened
    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 6 Unresolved

    Test Description:
    Base Required Conformance
    A successful call to DBM *dbm_open(const char *file, int open_flags,
    mode_t file_mode) with non-existent database files and O_CREAT set in
    open_flags shall create new database files with the user ID set to the
    effective user ID of the calling process, the group ID set to the
    group id of the database's parent directory or to the effective group
    ID of the calling process, and the access permissions set to a
    bitwise-AND of file_mode and the complement of the calling process'
    file creation mask.

    Test Information:
    PREP: Create a new database
    PREP: Get parent directories information
    PREP: Get file.pag's information
    ERROR: stat failed, errno = 2 (ENOENT - No such file or directory)

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 8 Unresolved

    Test Description:
    Base Required Conformance
    A successful call to DBM *dbm_open(const char *file, int open_flags,
    mode_t file_mode) with O_TRUNC set in open_flags, when the database
    files exist and write access is granted shall truncate the database
    files to 0 length and leave the mode and owner unchanged.

    Test Information:
    PREP: Create a database
    PREP: Add records to the database
    PREP: Close database
    PREP: Change database ownership
    PREP: Reopen database with O_TRUNC set
    PREP: Read database information
    ERROR: stat failed, errno = 2 (ENOENT - No such file or directory)

    ************************************************************************
    /tset/CAPI.os/dbm/dbm_open/T.dbm_open 12 Failed

    Test Description:
    Base Required Conformance
    A call to DBM *dbm_open(const char *file, int open_flags, mode_t
    file_mode) shall traverse symbolic links in resolving file.

    Test Information:
    PREP: Setup linked files and directories

    TEST: dbm_open with file containing symbolic links
    TEST: Symbolic links followed in pathname resolution
    ERROR: access for ../tmp/dir3/dbm_open12.pag failed, errno = 2 (ENOENT
    - No such file or directory)

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

    Review Information

    Review Type SA Review
    Start Date 2005-01-28 02:58
    Last Updated 2005-02-03 00:30
    Completed 2005-02-03 00:30
    Status Complete
    Review Resolution Permanent Interpretation (PIN)
    Review Conclusion This PR constitutes a Permanent Interpretation against the
    specification

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority