GNUnet 0.22.2
disk.h File Reference

Internal DISK related helper functions. More...

#include "gnunet_common.h"
#include "gnunet_util_lib.h"
Include dependency graph for disk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum GNUNET_GenericReturnValue GNUNET_DISK_internal_file_handle_ (const struct GNUNET_DISK_FileHandle *fh, int *dst)
 Retrieve OS file handle. More...
 

Detailed Description

Internal DISK related helper functions.

Author
Nils Durner

Definition in file disk.h.

Function Documentation

◆ GNUNET_DISK_internal_file_handle_()

enum GNUNET_GenericReturnValue GNUNET_DISK_internal_file_handle_ ( const struct GNUNET_DISK_FileHandle fh,
int *  dst 
)

Retrieve OS file handle.

Parameters
fhGNUnet file descriptor
dstdestination buffer
Returns
GNUNET_OK on success, GNUNET_SYSERR otherwise

Definition at line 1638 of file disk.c.

1640{
1641 if (NULL == fh)
1642 return GNUNET_SYSERR;
1643 *dst = fh->fd;
1644 return GNUNET_OK;
1645}
@ GNUNET_OK
@ GNUNET_SYSERR
int fd
File handle on Unix-like systems.

References GNUNET_DISK_FileHandle::fd, GNUNET_OK, and GNUNET_SYSERR.

Referenced by GNUNET_NETWORK_fdset_handle_set(), and start_process().

Here is the caller graph for this function: