~ubuntu-branches/ubuntu/hardy/sqlite3/hardy

« back to all changes in this revision

Viewing changes to src/os.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2007-05-17 02:01:42 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20070517020142-o79d5uduuhfbtknv
Tags: 3.3.17-1
* New upstream release.
* Use minor version as well in sqlite3.pc (closes: #424235).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
** Figure out if we are dealing with Unix, Windows, or some other
22
22
** operating system.
23
23
*/
 
24
#if defined(OS_OTHER)
 
25
# if OS_OTHER==1
 
26
#   undef OS_UNIX
 
27
#   define OS_UNIX 0
 
28
#   undef OS_WIN
 
29
#   define OS_WIN 0
 
30
#   undef OS_OS2
 
31
#   define OS_OS2 0
 
32
# else
 
33
#   undef OS_OTHER
 
34
# endif
 
35
#endif
24
36
#if !defined(OS_UNIX) && !defined(OS_OTHER)
25
37
# define OS_OTHER 0
26
38
# ifndef OS_WIN
74
86
#endif
75
87
 
76
88
/*
 
89
** The default size of a disk sector
 
90
*/
 
91
#ifndef SQLITE_DEFAULT_SECTOR_SIZE
 
92
# define SQLITE_DEFAULT_SECTOR_SIZE 512
 
93
#endif
 
94
 
 
95
/*
77
96
** Temporary files are named starting with this prefix followed by 16 random
78
97
** alphanumeric characters, and no file extension. They are stored in the
79
98
** OS's standard temporary file directory, and are deleted prior to exit.
216
235
  int (*xUnlock)(OsFile*, int);
217
236
  int (*xLockState)(OsFile *id);
218
237
  int (*xCheckReservedLock)(OsFile *id);
 
238
  int (*xSectorSize)(OsFile *id);
219
239
};
220
240
 
221
241
/*
346
366
char *sqlite3OsFullPathname(const char*);
347
367
int sqlite3OsIsDirWritable(char*);
348
368
int sqlite3OsSyncDirectory(const char*);
 
369
int sqlite3OsSectorSize(OsFile *id);
349
370
int sqlite3OsTempFileName(char*);
350
371
int sqlite3OsRandomSeed(char*);
351
372
int sqlite3OsSleep(int ms);
426
447
#endif
427
448
 
428
449
 
429
 
#ifdef _SQLITE_OS_C_
 
450
#if defined(_SQLITE_OS_C_) || defined(SQLITE_AMALGAMATION)
430
451
  /*
431
452
  ** The os.c file implements the global virtual function table.
 
453
  ** We have to put this file here because the initializers
 
454
  ** (ex: sqlite3OsRandomSeed) are macros that are about to be
 
455
  ** redefined.
432
456
  */
433
457
  struct sqlite3OsVtbl sqlite3Os = {
434
458
    IF_DISKIO( sqlite3OsOpenReadWrite ),