#include "glite/data/io/client/iotypes.h"
#include <fcntl.h>
Go to the source code of this file.
Defines | |
#define | GLITE_IO_SD_TYPE "org.glite.gliteIO" |
#define | GLITE_IO_SD_ENV "GLITE_SD_GLITEIO_TYPE" |
#define | GLITE_IO_URL_PREFIX "gliteio://" |
#define | TOOL_USER_VERBOSE "__GLITE_IO_VERBOSE" |
Functions | |
bool | is_gliteio_url (const char *string) |
Check if string is in form "gliteio://...". | |
int | glite_io_initialize (const char *endpoint, const bool encryptdata) |
Initialize the service. | |
void | glite_io_finalize () |
Finalize a service. | |
glite_handle | glite_open (const char *pathname, glite_int32 flags, glite_int32 mode, glite_int64 size, glite_result *result) |
Open a Remote File. | |
glite_handle | glite_creat (const char *pathname, glite_int32 mode, glite_int64 size, glite_result *result) |
Create a Remote File. | |
glite_int32 | glite_read (glite_handle fh, void *buf, glite_int32 count) |
Read the file. | |
glite_int32 | glite_write (glite_handle fh, const void *buf, glite_int32 count) |
Write to the file. | |
glite_int64 | glite_lseek (glite_handle fh, glite_int64 offset, glite_int32 whence) |
Set a file read/write pointer. | |
glite_int32 | glite_fstat (glite_handle fh, struct glite_stat *buf) |
Get Information about the file associated with the given handle. | |
glite_int32 | glite_close (glite_handle fh) |
Close the file. | |
glite_int32 | glite_unlink (const char *pathname) |
Deletes a file on the remote Storage element. | |
glite_int32 | glite_error (glite_handle fh) |
Get the Last GLite Error code associated to a File Handle. | |
const char * | glite_strerror (glite_result error) |
Get a string representing a GLite Error code TODO Define GLite Error Codes (now the aiod ones are used) . |
|
Definition at line 29 of file ioclient.h. |
|
Definition at line 26 of file ioclient.h. |
|
Definition at line 32 of file ioclient.h. |
|
Definition at line 35 of file ioclient.h. |
|
Close the file.
|
|
Create a Remote File. This call is equivalent to glite_open(name, O_CREAT, mode, server, options)
|
|
Get the Last GLite Error code associated to a File Handle.
|
|
Get Information about the file associated with the given handle.
|
|
Finalize a service.
|
|
Initialize the service.
|
|
Set a file read/write pointer.
|
|
Open a Remote File.
|
|
Read the file.
|
|
Get a string representing a GLite Error code TODO Define GLite Error Codes (now the aiod ones are used)
|
|
Deletes a file on the remote Storage element.
That replica information will be removed from the Logical File System and an attempt is made to remove the physical instance, but if that fails no error are returned. In case that replica is the last one, also the file logical name and GUID will be removed, so they can be reused later TODO Define GLite Error Codes (now the aiod ones are used)
|
|
Write to the file.
|
|
Check if string is in form "gliteio://...".
|