src/xcalls/x_close.c File Reference

x_close implementation. More...

#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <misc/debug.h>
#include <core/tx.h>
#include <core/config.h>
#include <core/koa.h>
#include <core/buffer.h>
#include <core/stats.h>
#include <libc/syscalls.h>
#include <core/txdesc.h>
#include <xcalls/xcalls.h>

Go to the source code of this file.

Classes

struct  x_close_commit_args_s

Typedefs

typedef x_close_commit_args_s x_close_commit_args_t

Functions

int XCALL_DEF() x_close (int fildes, int *result)
 Closes a file descriptor.


Detailed Description

x_close implementation.

Definition in file x_close.c.


Function Documentation

int XCALL_DEF() x_close ( int  fildes,
int *  result 
)

Closes a file descriptor.

Execution : deferred

Asynchronous failures: commit

Parameters:
[in] fildes File descriptor.
[out] result Where to store any asynchronous failures.
Returns:
0 on success, or -1 if a synchronous failure occurred (in which case, errno is set appropriately).

Definition at line 74 of file x_close.c.

References x_close_commit_args_s::fd, x_close_commit_args_s::koa, txc_buffer_linear_malloc(), txc_g_koamgr, TXC_INTERNALERROR, TXC_KOA_DESTROY_COMMIT_ACTION_ORDER, txc_koa_detach_fd(), txc_koa_get_sentinel(), txc_koa_lock_alias_cache(), txc_koa_lock_fd(), txc_koa_lookup_fd2koa(), txc_koa_unlock_alias_cache(), txc_koa_unlock_fd(), TXC_R_BUSYSENTINEL, TXC_R_FAILURE, TXC_SENTINEL_ACQUIREONRETRY, txc_sentinel_tryacquire(), txc_stats_txstat_increment, txc_tx_abort_transaction(), txc_tx_get_txd(), txc_tx_get_xactstate(), txc_tx_register_commit_action(), and x_close().


Generated on Wed Dec 9 20:32:41 2009 for xCalls by  doxygen 1.4.7