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_setfiles http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
      D_SETFILES

SUMMARY
   d_setfiles(num)
   int num;

ARGUMENTS

   num       The maximum number of open files.

DESCRIPTION
   This function sets the maximum number of files that the db_VISTA runtime
   can have open at one time. Both MS-DOS and UNIX limit the number of files
   that an application program can have open. The default limit for MS-DOS
   is 8 (but is configurable up to 20, possibly more on certain network).
   The limit of UNIX is 20. Thus, if a program opens 6 files and the operating
   system limit is 20, the most num can be is 14 (i.e. the db_VISTA runtime
   can heve 14 of its own files open at time).

   Function d_setfiles should be called before d_open. The default value is
   initially set to 5.

--------------------------------------------------------------------------
Note:
   If num is set too high, then once the operating system limit has been
   reached and db_vista attempts to open another file, error code S_NOFILE
   may be returned by any db_VISTA function which accesses information in the
   database.
--------------------------------------------------------------------------

CURRENCY CHANGES
   None

RETURN CODES

   -48  S_DBCLOSE      Database needs to be closet.

EXAMPLE

    ..
   d_setfiles(14);
   d_open("tims","x");
    ..

See Also: d_setpages

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