#include "glite/data/io/client/iotypes.h"
#include <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
Functions | |
int | glite_posix_open (const char *pathname, int flags, mode_t mode) |
Open a Remote File. | |
int | glite_posix_creat (const char *pathname, mode_t mode) |
Create a Remote File. | |
ssize_t | glite_posix_read (int fd, void *buf, size_t count) |
Read up to count bytes from file descriptor fd into the buffer starting at buf. | |
ssize_t | glite_posix_write (int fd, const void *buf, size_t count) |
Writes up to count bytes to the file referenced by the file descriptor fd from the buffer starting at buf. | |
off_t | glite_posix_lseek (int fd, off_t offset, int whence) |
Set a file read/write pointer. | |
off64_t | glite_posix_lseek64 (int fd, off64_t offset, int whence) |
Set a file read/write pointer. | |
int | glite_posix_fstat (int fd, struct stat *buf) |
Return information about the specified file. | |
int | glite_posix_fstat64 (int fd, struct stat64 *buf) |
Return information about the specified file. | |
int | glite_posix_close (int fd) |
Close the file. | |
int | glite_posix_unlink (const char *pathname) |
Deletes a file on the remote Storage element. | |
glite_handle | glite_filehandle (int fd) |
Returns the file handle associated with the descriptor. | |
Variables | |
int | glite_posix_errno |
Number of last error. |
|
Returns the file handle associated with the descriptor. The returned handle could be used to call glite-io non-posix methods (like glite_fstat), but calling glite_close on a file opened with glite_posix_open may cause an impredictable behavior, so should be avoided in any case
|
|
Close the file.
|
|
Create a Remote File. This call is equivalent to glite_posix_open(pathname, O_CREAT, mode)
|
|
Return information about the specified file.
|
|
Return information about the specified file. To be used for large files
|
|
Set a file read/write pointer.
|
|
Set a file read/write pointer.
|
|
Open a Remote File.
|
|
Read up to count bytes from file descriptor fd into the buffer starting at buf.
|
|
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)
|
|
Writes up to count bytes to the file referenced by the file descriptor fd from the buffer starting at buf.
|
|
Number of last error. Be aware that is not thread safe ! Definition at line 181 of file ioclient-posix.h. |