globus_xio
4.15
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
builtins
file
globus_xio_file_driver.h
Go to the documentation of this file.
1
/*
2
* Copyright 1999-2006 University of Chicago
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef GLOBUS_XIO_FILE_DRIVER_H
18
#define GLOBUS_XIO_FILE_DRIVER_H
19
23
#include "globus_xio_system.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
140
#define GLOBUS_XIO_FILE_INVALID_HANDLE GLOBUS_XIO_SYSTEM_INVALID_FILE
141
153
typedef
enum
154
{
168
/* int mode */
169
GLOBUS_XIO_FILE_SET_MODE
,
170
178
/* int * mode_out */
179
GLOBUS_XIO_FILE_GET_MODE
,
180
194
/* int flags */
195
GLOBUS_XIO_FILE_SET_FLAGS
,
196
204
/* int * flags_out */
205
GLOBUS_XIO_FILE_GET_FLAGS
,
206
219
/* globus_off_t offset */
220
GLOBUS_XIO_FILE_SET_TRUNC_OFFSET
,
221
229
/* globus_off_t * offset_out */
230
GLOBUS_XIO_FILE_GET_TRUNC_OFFSET
,
231
241
/* globus_xio_system_file_t handle */
242
GLOBUS_XIO_FILE_SET_HANDLE
,
243
252
/* globus_xio_system_file_t * handle_out */
253
GLOBUS_XIO_FILE_GET_HANDLE
,
254
264
/* globus_bool_t use_blocking_io */
265
GLOBUS_XIO_FILE_SET_BLOCKING_IO
,
266
276
/* globus_bool_t * use_blocking_io_out */
277
GLOBUS_XIO_FILE_GET_BLOCKING_IO
,
278
293
/* globus_off_t * in_out_offset,
294
* globus_xio_file_whence_t whence */
295
GLOBUS_XIO_FILE_SEEK
296
}
globus_xio_file_attr_cmd_t
;
297
305
typedef
enum
306
{
308
GLOBUS_XIO_FILE_CREAT
= O_CREAT,
310
GLOBUS_XIO_FILE_EXCL
= O_EXCL,
312
GLOBUS_XIO_FILE_RDONLY
= O_RDONLY,
314
GLOBUS_XIO_FILE_WRONLY
= O_WRONLY,
316
GLOBUS_XIO_FILE_RDWR
= O_RDWR,
318
GLOBUS_XIO_FILE_TRUNC
= O_TRUNC,
320
GLOBUS_XIO_FILE_APPEND
= O_APPEND,
321
#ifdef TARGET_ARCH_CYGWIN
322
GLOBUS_XIO_FILE_BINARY
= O_BINARY,
323
GLOBUS_XIO_FILE_TEXT
= O_TEXT
324
#else
325
326
GLOBUS_XIO_FILE_BINARY = 0,
328
GLOBUS_XIO_FILE_TEXT = 0
329
#endif
330
}
globus_xio_file_flag_t
;
331
342
typedef
enum
343
{
345
GLOBUS_XIO_FILE_IRWXU
= S_IRWXU,
347
GLOBUS_XIO_FILE_IRUSR
= S_IRUSR,
349
GLOBUS_XIO_FILE_IWUSR
= S_IWUSR,
351
GLOBUS_XIO_FILE_IXUSR
= S_IXUSR,
353
GLOBUS_XIO_FILE_IRWXO
= S_IRWXO,
355
GLOBUS_XIO_FILE_IROTH
= S_IROTH,
357
GLOBUS_XIO_FILE_IWOTH
= S_IWOTH,
359
GLOBUS_XIO_FILE_IXOTH
= S_IXOTH,
361
GLOBUS_XIO_FILE_IRWXG
= S_IRWXG,
363
GLOBUS_XIO_FILE_IRGRP
= S_IRGRP,
365
GLOBUS_XIO_FILE_IWGRP
= S_IWGRP,
367
GLOBUS_XIO_FILE_IXGRP
= S_IXGRP
368
}
globus_xio_file_mode_t
;
369
376
typedef
enum
377
{
379
GLOBUS_XIO_FILE_SEEK_SET
= SEEK_SET,
381
GLOBUS_XIO_FILE_SEEK_CUR
= SEEK_CUR,
383
GLOBUS_XIO_FILE_SEEK_END
= SEEK_END
384
}
globus_xio_file_whence_t
;
385
386
#ifdef __cplusplus
387
}
388
#endif
389
390
#endif
/* GLOBUS_XIO_FILE_DRIVER_H */
Generated on Mon Oct 5 2015 14:53:11 for globus_xio by
1.8.1.2