#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include "gfal_common_errverbose.h"
#include "gfal_types.h"
#include "gfal_common_filedescriptor.h"
Functions | |
int | gfal_add_new_file_desc (gfal_fdesc_container_handle fhandle, gpointer pfile, GError **err) |
gpointer | gfal_get_file_desc (gfal_fdesc_container_handle fhandle, int key, GError **err) |
gboolean | gfal_remove_file_desc (gfal_fdesc_container_handle fhandle, int key, GError **err) |
gfal_fdesc_container_handle | gfal_file_descriptor_handle_create (GDestroyNotify destroyer) |
gfal_file_handle | gfal_file_handle_new (const char *module_name, gpointer fdesc) |
gfal_file_handle | gfal_file_handle_ext_new (const char *module_name, gpointer fdesc, gpointer ext_data) |
gfal_file_handle | gfal_file_handle_bind (gfal_fdesc_container_handle h, int file_desc, GError **err) |
void | gfal_file_handle_lock (gfal_file_handle fh) |
void | gfal_file_handle_unlock (gfal_file_handle fh) |
void | gfal_file_handle_delete (gfal_file_handle fh) |
int gfal_add_new_file_desc | ( | gfal_fdesc_container_handle | fhandle, | |
gpointer | pfile, | |||
GError ** | err | |||
) |
Add the given file handle to the and return a file descriptor
gfal_file_handle gfal_file_handle_bind | ( | gfal_fdesc_container_handle | h, | |
int | file_desc, | |||
GError ** | err | |||
) |
return the file handle associated with the file_desc
void gfal_file_handle_delete | ( | gfal_file_handle | fh | ) |
Delete a gfal_file handle
*
gfal_file_handle gfal_file_handle_ext_new | ( | const char * | module_name, | |
gpointer | fdesc, | |||
gpointer | ext_data | |||
) |
same than gfal_file_handle but with external data storage support
gpointer gfal_get_file_desc | ( | gfal_fdesc_container_handle | fhandle, | |
int | key, | |||
GError ** | err | |||
) |
return the associated file handle for the given file descriptor or NULL if the key is not present and err is set
gboolean gfal_remove_file_desc | ( | gfal_fdesc_container_handle | fhandle, | |
int | key, | |||
GError ** | err | |||
) |
remove the associated file handle associated with the given file descriptor return true if success else false