~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/os0file.h

  • Committer: Brian Aker
  • Date: 2010-12-18 10:14:05 UTC
  • mfrom: (2008.1.3 clean)
  • Revision ID: brian@tangent.org-20101218101405-qjbse29shi9coklg
Merge of user identifier work

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
#define OS_WIN95        2       /*!< Microsoft Windows 95 */
178
178
#define OS_WINNT        3       /*!< Microsoft Windows NT 3.x */
179
179
#define OS_WIN2000      4       /*!< Microsoft Windows 2000 */
 
180
#define OS_WINXP        5       /*!< Microsoft Windows XP
 
181
                                or Windows Server 2003 */
 
182
#define OS_WINVISTA     6       /*!< Microsoft Windows Vista
 
183
                                or Windows Server 2008 */
 
184
#define OS_WIN7         7       /*!< Microsoft Windows 7
 
185
                                or Windows Server 2008 R2 */
 
186
 
180
187
 
181
188
extern ulint    os_n_file_reads;
182
189
extern ulint    os_n_file_writes;
194
201
used to register file creation, opening, closing and renaming.
195
202
2) register_pfs_file_io_begin() and register_pfs_file_io_end() are
196
203
used to register actual file read, write and flush */
197
 
# define register_pfs_file_open_begin(locker, key, op, name,            \
 
204
# define register_pfs_file_open_begin(state, locker, key, op, name,     \
198
205
                                      src_file, src_line)               \
199
206
do {                                                                    \
200
207
        if (PSI_server) {                                               \
201
208
                locker = PSI_server->get_thread_file_name_locker(       \
202
 
                        key, op, name, &locker);                        \
 
209
                        state, key, op, name, &locker);                 \
203
210
                if (locker) {                                           \
204
211
                        PSI_server->start_file_open_wait(               \
205
212
                                locker, src_file, src_line);            \
215
222
        }                                                               \
216
223
} while (0)
217
224
 
218
 
# define register_pfs_file_io_begin(locker, file, count, op,            \
 
225
# define register_pfs_file_io_begin(state, locker, file, count, op,     \
219
226
                                    src_file, src_line)                 \
220
227
do {                                                                    \
221
228
        if (PSI_server) {                                               \
222
229
                locker = PSI_server->get_thread_file_descriptor_locker( \
223
 
                        file, op);                                      \
 
230
                        state, file, op);                               \
224
231
                if (locker) {                                           \
225
232
                        PSI_server->start_file_wait(                    \
226
233
                                locker, count, src_file, src_line);     \
368
375
 
369
376
/***********************************************************************//**
370
377
Gets the operating system version. Currently works only on Windows.
371
 
@return OS_WIN95, OS_WIN31, OS_WINNT, or OS_WIN2000 */
 
378
@return OS_WIN95, OS_WIN31, OS_WINNT, OS_WIN2000, OS_WINXP, OS_WINVISTA,
 
379
OS_WIN7. */
372
380
UNIV_INTERN
373
381
ulint
374
382
os_get_os_version(void);
383
391
/***********************************************************************//**
384
392
Creates a temporary file.  This function is like tmpfile(3), but
385
393
the temporary file is created in the MySQL temporary directory.
386
 
On Netware, this function is like tmpfile(3), because the C run-time
387
 
library of Netware does not expose the delete-on-close flag.
388
394
@return temporary file handle, or NULL on error */
389
395
 
390
396
FILE*
1166
1172
        os_file_stat_t* stat_info);     /*!< information of a file in a
1167
1173
                                        directory */
1168
1174
 
1169
 
#if !defined(UNIV_HOTBACKUP) && !defined(__NETWARE__)
 
1175
#if !defined(UNIV_HOTBACKUP)
1170
1176
/*********************************************************************//**
1171
1177
Creates a temporary file that will be deleted on close.
1172
1178
This function is defined in ha_innodb.cc.
1175
1181
int
1176
1182
innobase_mysql_tmpfile(void);
1177
1183
/*========================*/
1178
 
#endif /* !UNIV_HOTBACKUP && !__NETWARE__ */
 
1184
#endif /* !UNIV_HOTBACKUP */
1179
1185
 
1180
1186
 
1181
1187
#if defined(LINUX_NATIVE_AIO)