Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_setfree http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_SETFREE

SUMMARY
   d_recfree(SET [,dbn])
   int SET;
   int dbn;

ARGUMENTS
   SET         The set type for which thea read or exclusive lock is to be
               freed.

   dbn         (optional) The number of the database containing the record.

DESCRIPTION
   Function d_setfree frees the read or exclusively locked data files
   associates set type SET. This function can only be executed outside of a
   transaction.Inside transaction, lock are freed by functions d_trend or
   d_trabort.
   This function is present in the single-user version of db_VISTA, but
   performs no action. This allows multi-user applications to link with the
   single-user version for operation on stand-alone computers.

CURRENCY CHANGES
   None.

RETURN CODES

   -2     S_INVSET      Invalid set type. Probably passed a record or field
                        type instead of a set type.

   -24    S_NOTLOCKED   Set type is not locked.

   -29    S_TRFREE      Attempt to free a read lock inside a transaction.

EXAMPLE

    char name{32]; /*author name*/
    /* Print list of authors */
     d_setlock(AUTHOR_LIST,"r");
     for(  d_findfm(AUTHOR_LIST);
          db_status==S_OKAY;
          d_findnm(AUTHOR_LIST))
       {
          d_crread(NAME,name);
          printf("author: %s\n",name);
       }
     d_setfree(AUTHOR_LIST);

See Also: d_freeall d_keyfree d_keylock d_keylstat d_lock

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson