Back to index

im-sdk  12.3.91
Functions
comp-file-operation.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <iiimp-data.h>
#include <iiimp-opcode.h>
#include "iiimp-dataP.h"

Go to the source code of this file.

Functions

static int iiimp_file_operation_open_flags_i2l (int open_flags)
static int iiimp_file_operation_open_flags_l2i (int open_flags)
static int iiimp_file_operation_fcntl_cmd_i2l (int cmd)
static int iiimp_file_operation_fcntl_cmd_l2i (int cmd)
static int iiimp_file_operation_fcntl_setfd_flag_i2l (int flag)
static int iiimp_file_operation_fcntl_setfd_flag_l2i (int flag)
static int iiimp_file_operation_fcntl_flock_type_i2l (int type)
static int iiimp_file_operation_fcntl_flock_type_l2i (int type)
static int iiimp_file_operation_whence_i2l (int whence)
static int iiimp_file_operation_whence_l2i (int whence)
static int iiimp_file_operation_access_amode_i2l (int amode)
static int iiimp_file_operation_access_amode_l2i (int amode)
static int iiimp_file_operation_error_number_i2l (int error_number)
static int iiimp_file_operation_error_number_l2i (int error_number)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_setfd_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor_flags)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_setfl_new (IIIMP_data_s *data_s, IIIMP_card32 file_status_flags)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_flock_new (IIIMP_data_s *data_s, IIIMP_card16 type, IIIMP_card16 whence, IIIMP_card32 start, IIIMP_card32 len)
IIIMP_file_operation_data_statiiimp_file_operation_data_stat_new (IIIMP_data_s *data_s, IIIMP_card32 mode, IIIMP_card32 ino, IIIMP_card32 dev, IIIMP_card32 rdev, IIIMP_card32 nlink, IIIMP_string *user_name, IIIMP_card32 uid, IIIMP_string *group_name, IIIMP_card32 gid, IIIMP_card32 size, IIIMP_card32 atime_tv_sec, IIIMP_card32 atime_tv_nsec, IIIMP_card32 mtime_tv_sec, IIIMP_card32 mtime_tv_nsec, IIIMP_card32 ctime_tv_sec, IIIMP_card32 ctime_tv_nsec, IIIMP_card32 blksize, IIIMP_card32 blocks)
IIIMP_file_operation_data_diriiimp_file_operation_data_dir_new (IIIMP_data_s *data_s, IIIMP_card32 ino, IIIMP_card32 off, IIIMP_string *name)
IIIMP_file_operation_requestiiimp_file_operation_request_close_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor)
IIIMP_file_operation_requestiiimp_file_operation_request_creat_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 mode)
IIIMP_file_operation_requestiiimp_file_operation_request_ftruncate_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_card32 length)
IIIMP_file_operation_requestiiimp_file_operation_request_lseek_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_card32 offset, IIIMP_card32 whence)
IIIMP_file_operation_requestiiimp_file_operation_request_open_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 oflag, IIIMP_card32 mode)
IIIMP_file_operation_requestiiimp_file_operation_request_read_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_card32 length)
IIIMP_file_operation_requestiiimp_file_operation_request_truncate_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 length)
IIIMP_file_operation_requestiiimp_file_operation_request_write_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, size_t buf_nbyte, const uchar_t *buf)
IIIMP_file_operation_requestiiimp_file_operation_request_link_new (IIIMP_data_s *data_s, IIIMP_string *existing_path, IIIMP_string *new_path)
IIIMP_file_operation_requestiiimp_file_operation_request_readlink_new (IIIMP_data_s *data_s, IIIMP_string *path)
IIIMP_file_operation_requestiiimp_file_operation_request_rename_new (IIIMP_data_s *data_s, IIIMP_string *old_path, IIIMP_string *new_path)
IIIMP_file_operation_requestiiimp_file_operation_request_symlink_new (IIIMP_data_s *data_s, IIIMP_string *existing_path, IIIMP_string *new_path)
IIIMP_file_operation_requestiiimp_file_operation_request_unlink_new (IIIMP_data_s *data_s, IIIMP_string *path)
IIIMP_file_operation_requestiiimp_file_operation_request_chmod_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 mode)
IIIMP_file_operation_requestiiimp_file_operation_request_chown_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_string *user_name, IIIMP_card32 user_id, IIIMP_string *group_name, IIIMP_card32 group_id)
IIIMP_file_operation_requestiiimp_file_operation_request_fchmod_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_card32 mode)
IIIMP_file_operation_requestiiimp_file_operation_request_fchown_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_string *user_name, IIIMP_card32 user_id, IIIMP_string *group_name, IIIMP_card32 group_id)
IIIMP_file_operation_requestiiimp_file_operation_request_lchown_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_string *user_name, IIIMP_card32 user_id, IIIMP_string *group_name, IIIMP_card32 group_id)
IIIMP_file_operation_requestiiimp_file_operation_request_utime_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 actime, IIIMP_card32 modtime)
IIIMP_file_operation_requestiiimp_file_operation_request_utimes_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 tv_sec0, IIIMP_card32 tv_usec0, IIIMP_card32 tv_sec1, IIIMP_card32 tv_usec1)
IIIMP_file_operation_requestiiimp_file_operation_request_fstat_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor)
IIIMP_file_operation_requestiiimp_file_operation_request_lstat_new (IIIMP_data_s *data_s, IIIMP_string *path)
IIIMP_file_operation_requestiiimp_file_operation_request_stat_new (IIIMP_data_s *data_s, IIIMP_string *path)
IIIMP_file_operation_requestiiimp_file_operation_request_access_new (IIIMP_data_s *data_s, IIIMP_string *path, IIIMP_card32 amode)
IIIMP_file_operation_requestiiimp_file_operation_request_closedir_new (IIIMP_data_s *data_s, IIIMP_card32 directory_handle)
IIIMP_file_operation_requestiiimp_file_operation_request_opendir_new (IIIMP_data_s *data_s, IIIMP_string *dirname)
IIIMP_file_operation_requestiiimp_file_operation_request_readdir_new (IIIMP_data_s *data_s, IIIMP_card32 directory_handle)
IIIMP_file_operation_requestiiimp_file_operation_request_rewinddir_new (IIIMP_data_s *data_s, IIIMP_card32 directory_handle)
IIIMP_file_operation_requestiiimp_file_operation_request_seekdir_new (IIIMP_data_s *data_s, IIIMP_card32 directory_handle, IIIMP_card32 loc)
IIIMP_file_operation_requestiiimp_file_operation_request_telldir_new (IIIMP_data_s *data_s, IIIMP_card32 directory_handle)
IIIMP_file_operation_requestiiimp_file_operation_request_mkdir_new (IIIMP_data_s *data_s, IIIMP_string *dirname, IIIMP_card32 mode)
IIIMP_file_operation_requestiiimp_file_operation_request_rmdir_new (IIIMP_data_s *data_s, IIIMP_string *dirname)
IIIMP_file_operation_requestiiimp_file_operation_request_fcntl_new (IIIMP_data_s *data_s, IIIMP_card32 file_descriptor, IIIMP_card32 cmd, IIIMP_file_operation_data_fcntl *arg)
IIIMP_file_operation_resultiiimp_file_operation_result_simple_new (IIIMP_data_s *data_s, IIIMP_card32 type, IIIMP_card32 return_value, IIIMP_card32 error_number)
IIIMP_file_operation_resultiiimp_file_operation_result_void_new (IIIMP_data_s *data_s, IIIMP_card32 type)
IIIMP_file_operation_resultiiimp_file_operation_result_read_new (IIIMP_data_s *data_s, IIIMP_card32 error_number, size_t buf_nbyte, const uchar_t *buf)
IIIMP_file_operation_resultiiimp_file_operation_result_readlink_new (IIIMP_data_s *data_s, IIIMP_card32 return_value, IIIMP_card32 error_number, IIIMP_string *path)
IIIMP_file_operation_resultiiimp_file_operation_result_stat_common_new (IIIMP_data_s *data_s, IIIMP_card32 type, IIIMP_card32 return_value, IIIMP_card32 error_number, IIIMP_file_operation_data_stat *stat)
IIIMP_file_operation_resultiiimp_file_operation_result_readdir_new (IIIMP_data_s *data_s, IIIMP_card32 error_number, IIIMP_file_operation_data_dir *dir)
IIIMP_file_operation_resultiiimp_file_operation_result_fcntl_new (IIIMP_data_s *data_s, IIIMP_card32 return_value, IIIMP_card32 error_number, IIIMP_card32 cmd, IIIMP_file_operation_data_fcntl *arg)
static void iiimp_file_operation_data_fcntl_setfd_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *data)
static void iiimp_file_operation_data_fcntl_setfl_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *data)
static void iiimp_file_operation_data_fcntl_flock_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *data)
static void iiimp_file_operation_data_fcntl_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *data)
static void iiimp_file_operation_data_stat_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_stat *data)
static void iiimp_file_operation_data_dir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_data_dir *data)
static void iiimp_file_operation_request_close_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_creat_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_ftruncate_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_lseek_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_open_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_read_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_truncate_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_write_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_link_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_readlink_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_rename_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_symlink_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_unlink_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_chmod_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_chown_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_fchmod_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_fchown_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_lchown_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_utime_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_utimes_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_fstat_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_lstat_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_stat_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_access_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_closedir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_opendir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_readdir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_rewinddir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_seekdir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_telldir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_mkdir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_rmdir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_request_fcntl_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
void iiimp_file_operation_request_delete (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static void iiimp_file_operation_result_simple_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_void_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_read_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_readlink_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_stat_common_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_readdir_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_result_fcntl_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
void iiimp_file_operation_result_delete (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
static void iiimp_file_operation_data_fcntl_setfd_pack (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_data_fcntl_setfl_pack (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_data_fcntl_flock_pack (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_data_stat_pack (IIIMP_data_s *data_s, IIIMP_file_operation_data_stat *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_data_dir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_data_dir *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_close_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_creat_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_ftruncate_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_lseek_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_open_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_read_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_truncate_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_write_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_link_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_readlink_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_rename_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_symlink_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_unlink_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_chmod_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_chown_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_fchmod_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_fchown_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_lchown_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_utime_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_utimes_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_fstat_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_lstat_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_stat_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_access_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_closedir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_opendir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_readdir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_rewinddir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_seekdir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_telldir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_mkdir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_rmdir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_request_fcntl_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
void iiimp_file_operation_request_pack (IIIMP_data_s *data_s, IIIMP_file_operation_request *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_simple_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_void_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_read_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_readlink_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_stat_common_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_readdir_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
static void iiimp_file_operation_result_fcntl_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
void iiimp_file_operation_result_pack (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, size_t *nbyte, uchar_t **ptr)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_setfd_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_setfl_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_data_fcntliiimp_file_operation_data_fcntl_flock_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_data_statiiimp_file_operation_data_stat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_data_diriiimp_file_operation_data_dir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_close_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_creat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_ftruncate_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_lseek_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_open_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_read_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_truncate_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_write_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_link_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_readlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_rename_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_symlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_unlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_chmod_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_chown_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_fchmod_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_fchown_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_lchown_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_utime_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_utimes_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_fstat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_lstat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_stat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_access_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_closedir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_opendir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_readdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_rewinddir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_seekdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_telldir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_mkdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_rmdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_fcntl_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_requestiiimp_file_operation_request_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_simple_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_void_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_read_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_readlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_stat_common_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_readdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_fcntl_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_file_operation_resultiiimp_file_operation_result_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
static const char * fcntl_cmd_setfd_flags_string (int flags)
static void iiimp_file_operation_data_fcntl_setfd_print (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m)
static void iiimp_file_operation_data_fcntl_setfl_print (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m)
static const char * fcntl_cmd_flock_type_string (int type)
static const char * whence_string (int whence)
static void iiimp_file_operation_data_fcntl_flock_print (IIIMP_data_s *data_s, IIIMP_file_operation_data_fcntl *m)
static void iiimp_file_operation_data_stat_print (IIIMP_data_s *data_s, IIIMP_file_operation_data_stat *m)
static void iiimp_file_operation_data_dir_print (IIIMP_data_s *data_s, IIIMP_file_operation_data_dir *m)
static void iiimp_file_operation_request_close_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_creat_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_ftruncate_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_lseek_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_open_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_read_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_truncate_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_write_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_link_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_readlink_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_rename_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_symlink_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_unlink_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_chmod_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_chown_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_fchmod_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_fchown_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_lchown_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_utime_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_utimes_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_fstat_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_lstat_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_stat_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static const char * access_amode_string (int amode)
static void iiimp_file_operation_request_access_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_closedir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_opendir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_readdir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_rewinddir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_seekdir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_telldir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_mkdir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static void iiimp_file_operation_request_rmdir_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
static const char * fcntl_cmd_string (int cmd)
static void iiimp_file_operation_request_fcntl_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *m)
void iiimp_file_operation_request_print (IIIMP_data_s *data_s, IIIMP_file_operation_request *data)
static const char * error_number_string (int error_number)
static void iiimp_file_operation_result_simple_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, const char *name)
static void iiimp_file_operation_result_void_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, const char *name)
static void iiimp_file_operation_result_read_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m)
static void iiimp_file_operation_result_readlink_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m)
static void iiimp_file_operation_result_stat_common_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m, const char *name)
static void iiimp_file_operation_result_opendir_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m)
static void iiimp_file_operation_result_readdir_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m)
static void iiimp_file_operation_result_fcntl_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *m)
void iiimp_file_operation_result_print (IIIMP_data_s *data_s, IIIMP_file_operation_result *data)
IIIMP_openiiimp_open_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 flags, IIIMP_utf8string *filename)
IIIMP_readiiimp_read_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 size)
IIIMP_writeiiimp_write_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 size, void *object)
IIIMP_closeiiimp_close_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id)
IIIMP_seekiiimp_seek_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 offset, IIIMP_card32 whence)
IIIMP_opendiriiimp_opendir_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *dirname)
IIIMP_closediriiimp_closedir_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id)
IIIMP_mkdiriiimp_mkdir_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 mode, IIIMP_utf8string *path)
IIIMP_rmdiriiimp_rmdir_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *path)
IIIMP_symlinkiiimp_symlink_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *dest, IIIMP_utf8string *src)
IIIMP_statiiimp_stat_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *path)
IIIMP_lstatiiimp_lstat_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *path)
IIIMP_fstatiiimp_fstat_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id)
IIIMP_creatiiimp_creat_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 mode, IIIMP_utf8string *path)
IIIMP_lseekiiimp_lseek_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 offset, IIIMP_card32 whence)
IIIMP_unlinkiiimp_unlink_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *path)
IIIMP_renameiiimp_rename_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *old_name, IIIMP_utf8string *new_name)
IIIMP_fcntliiimp_fcntl_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 cmd, IIIMP_card32 arg)
IIIMP_truncateiiimp_truncate_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_utf8string *path, IIIMP_card32 length)
IIIMP_ftruncateiiimp_ftruncate_new (IIIMP_data_s *data_s, IIIMP_card32 ns_id, IIIMP_card32 length)
void iiimp_open_delete (IIIMP_data_s *data_s, IIIMP_open *m)
void iiimp_read_delete (IIIMP_data_s *data_s, IIIMP_read *m)
void iiimp_write_delete (IIIMP_data_s *data_s, IIIMP_write *m)
void iiimp_close_delete (IIIMP_data_s *data_s, IIIMP_close *m)
void iiimp_seek_delete (IIIMP_data_s *data_s, IIIMP_seek *m)
void iiimp_opendir_delete (IIIMP_data_s *data_s, IIIMP_opendir *m)
void iiimp_closedir_delete (IIIMP_data_s *data_s, IIIMP_closedir *m)
void iiimp_mkdir_delete (IIIMP_data_s *data_s, IIIMP_mkdir *m)
void iiimp_rmdir_delete (IIIMP_data_s *data_s, IIIMP_rmdir *m)
void iiimp_symlink_delete (IIIMP_data_s *data_s, IIIMP_symlink *m)
void iiimp_stat_delete (IIIMP_data_s *data_s, IIIMP_stat *m)
void iiimp_fstat_delete (IIIMP_data_s *data_s, IIIMP_fstat *m)
void iiimp_lstat_delete (IIIMP_data_s *data_s, IIIMP_lstat *m)
void iiimp_creat_delete (IIIMP_data_s *data_s, IIIMP_creat *m)
void iiimp_lseek_delete (IIIMP_data_s *data_s, IIIMP_lseek *m)
void iiimp_unlink_delete (IIIMP_data_s *data_s, IIIMP_unlink *m)
void iiimp_rename_delete (IIIMP_data_s *data_s, IIIMP_rename *m)
void iiimp_fcntl_delete (IIIMP_data_s *data_s, IIIMP_fcntl *m)
void iiimp_truncate_delete (IIIMP_data_s *data_s, IIIMP_truncate *m)
void iiimp_ftruncate_delete (IIIMP_data_s *data_s, IIIMP_ftruncate *m)
void iiimp_open_pack (IIIMP_data_s *data_s, IIIMP_open *m, size_t *nbyte, uchar_t **ptr)
void iiimp_read_pack (IIIMP_data_s *data_s, IIIMP_read *m, size_t *nbyte, uchar_t **ptr)
void iiimp_write_pack (IIIMP_data_s *data_s, IIIMP_write *m, size_t *nbyte, uchar_t **ptr)
void iiimp_close_pack (IIIMP_data_s *data_s, IIIMP_close *m, size_t *nbyte, uchar_t **ptr)
void iiimp_seek_pack (IIIMP_data_s *data_s, IIIMP_seek *m, size_t *nbyte, uchar_t **ptr)
void iiimp_opendir_pack (IIIMP_data_s *data_s, IIIMP_opendir *m, size_t *nbyte, uchar_t **ptr)
void iiimp_closedir_pack (IIIMP_data_s *data_s, IIIMP_closedir *m, size_t *nbyte, uchar_t **ptr)
void iiimp_mkdir_pack (IIIMP_data_s *data_s, IIIMP_mkdir *m, size_t *nbyte, uchar_t **ptr)
void iiimp_rmdir_pack (IIIMP_data_s *data_s, IIIMP_rmdir *m, size_t *nbyte, uchar_t **ptr)
void iiimp_symlink_pack (IIIMP_data_s *data_s, IIIMP_symlink *m, size_t *nbyte, uchar_t **ptr)
void iiimp_stat_pack (IIIMP_data_s *data_s, IIIMP_stat *m, size_t *nbyte, uchar_t **ptr)
void iiimp_lstat_pack (IIIMP_data_s *data_s, IIIMP_lstat *m, size_t *nbyte, uchar_t **ptr)
void iiimp_fstat_pack (IIIMP_data_s *data_s, IIIMP_fstat *m, size_t *nbyte, uchar_t **ptr)
void iiimp_creat_pack (IIIMP_data_s *data_s, IIIMP_creat *m, size_t *nbyte, uchar_t **ptr)
void iiimp_lseek_pack (IIIMP_data_s *data_s, IIIMP_lseek *m, size_t *nbyte, uchar_t **ptr)
void iiimp_unlink_pack (IIIMP_data_s *data_s, IIIMP_unlink *m, size_t *nbyte, uchar_t **ptr)
void iiimp_rename_pack (IIIMP_data_s *data_s, IIIMP_rename *m, size_t *nbyte, uchar_t **ptr)
void iiimp_fcntl_pack (IIIMP_data_s *data_s, IIIMP_fcntl *m, size_t *nbyte, uchar_t **ptr)
void iiimp_truncate_pack (IIIMP_data_s *data_s, IIIMP_truncate *m, size_t *nbyte, uchar_t **ptr)
void iiimp_ftruncate_pack (IIIMP_data_s *data_s, IIIMP_ftruncate *m, size_t *nbyte, uchar_t **ptr)
IIIMP_openiiimp_open_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_readiiimp_read_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_writeiiimp_write_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_closeiiimp_close_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_seekiiimp_seek_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_opendiriiimp_opendir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_closediriiimp_closedir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_mkdiriiimp_mkdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_rmdiriiimp_rmdir_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_symlinkiiimp_symlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_statiiimp_stat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_lstatiiimp_lstat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_fstatiiimp_fstat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_creatiiimp_creat_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_lseekiiimp_lseek_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_unlinkiiimp_unlink_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_renameiiimp_rename_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_fcntliiimp_fcntl_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_truncateiiimp_truncate_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
IIIMP_ftruncateiiimp_ftruncate_unpack (IIIMP_data_s *data_s, size_t *nbyte, const uchar_t **ptr, size_t nbyte_max)
void iiimp_open_print (IIIMP_data_s *data_s, IIIMP_open *m)
void iiimp_read_print (IIIMP_data_s *data_s, IIIMP_read *m)
void iiimp_write_print (IIIMP_data_s *data_s, IIIMP_write *m)
void iiimp_close_print (IIIMP_data_s *data_s, IIIMP_close *m)
void iiimp_seek_print (IIIMP_data_s *data_s, IIIMP_seek *m)
void iiimp_opendir_print (IIIMP_data_s *data_s, IIIMP_opendir *m)
void iiimp_closedir_print (IIIMP_data_s *data_s, IIIMP_closedir *m)
void iiimp_mkdir_print (IIIMP_data_s *data_s, IIIMP_mkdir *m)
void iiimp_rmdir_print (IIIMP_data_s *data_s, IIIMP_rmdir *m)
void iiimp_symlink_print (IIIMP_data_s *data_s, IIIMP_symlink *m)
void iiimp_stat_print (IIIMP_data_s *data_s, IIIMP_stat *m)
void iiimp_lstat_print (IIIMP_data_s *data_s, IIIMP_lstat *m)
void iiimp_fstat_print (IIIMP_data_s *data_s, IIIMP_fstat *m)
void iiimp_creat_print (IIIMP_data_s *data_s, IIIMP_creat *m)
void iiimp_lseek_print (IIIMP_data_s *data_s, IIIMP_lseek *m)
void iiimp_unlink_print (IIIMP_data_s *data_s, IIIMP_unlink *m)
void iiimp_rename_print (IIIMP_data_s *data_s, IIIMP_rename *m)
void iiimp_fcntl_print (IIIMP_data_s *data_s, IIIMP_fcntl *m)
void iiimp_truncate_print (IIIMP_data_s *data_s, IIIMP_truncate *m)
void iiimp_ftruncate_print (IIIMP_data_s *data_s, IIIMP_ftruncate *m)

Function Documentation

static const char* access_amode_string ( int  amode) [static]

Definition at line 7792 of file comp-file-operation.c.

{
    switch (amode) {
    case F_OK:
       return "F_OK";
    case X_OK:
       return "X_OK";
    case W_OK:
       return "W_OK";
    case R_OK:
       return "R_OK";
    default:
       return "UNKNOWN";
    }
}

Here is the caller graph for this function:

static const char* error_number_string ( int  error_number) [static]

Definition at line 8088 of file comp-file-operation.c.

{
    switch (error_number) {
    case 0:
       return "NO_ERROR";
#if defined(EPERM)
    case EPERM:
       return "EPERM";
#endif /* EPERM */
#if defined(ENOENT)
    case ENOENT:
       return "ENOENT";
#endif /* ENOENT */
#if defined(EINTR)
    case EINTR:
       return "EINTR";
#endif /* EINTR */
#if defined(EIO)
    case EIO:
       return "EIO";
#endif /* EIO */
#if defined(ENXIO)
    case ENXIO:
       return "ENXIO";
#endif /* ENXIO */
#if defined(EBADF)
    case EBADF:
       return "EBADF";
#endif /* EBADF */
#if defined(EAGAIN)
    case EAGAIN:
       return "EAGAIN";
#endif /* EAGAIN */
#if defined(ENOMEM)
    case ENOMEM:
       return "ENOMEM";
#endif /* ENOMEM */
#if defined(EACCES)
    case EACCES:
       return "EACCES";
#endif /* EACCES */
#if defined(EFAULT)
    case EFAULT:
       return "EFAULT";
#endif /* EFAULT */
#if defined(EBUSY)
    case EBUSY:
       return "EBUSY";
#endif /* EBUSY */
#if defined(EEXIST)
    case EEXIST:
       return "EEXIST";
#endif /* EEXIST */
#if defined(EXDEV)
    case EXDEV:
       return "EXDEV";
#endif /* EXDEV */
#if defined(ENOTDIR)
    case ENOTDIR:
       return "ENOTDIR";
#endif /* ENOTDIR */
#if defined(EISDIR)
    case EISDIR:
       return "EISDIR";
#endif /* EISDIR */
    case EINVAL:
       return "EINVAL";
#if defined(ENFILE)
    case ENFILE:
       return "ENFILE";
#endif /* ENFILE */
#if defined(EMFILE)
    case EMFILE:
       return "EMFILE";
#endif /* EMFILE */
#if defined(ETXTBSY)
    case ETXTBSY:
       return "ETXTBSY";
#endif /* ETXTBSY */
#if defined(EFBIG)
    case EFBIG:
       return "EFBIG";
#endif /* EFBIG */
#if defined(ENOSPC)
    case ENOSPC:
       return "ENOSPC";
#endif /* ENOSPC */
#if defined(EROFS)
    case EROFS:
       return "EROFS";
#endif /* EROFS */
#if defined(EMLINK)
    case EMLINK:
       return "EMLINK";
#endif /* EMLINK */
#if defined(EDEADLK)
    case EDEADLK:
       return "EDEADLK";
#endif /* EDEADLK */
#if defined(ENOLCK)
    case ENOLCK:
       return "ENOLCK";
#endif /* ENOLCK */
#if defined(EDQUOT)
    case EDQUOT:
       return "EDQUOT";
#endif /* EDQUOT */
#if defined(ENAMETOOLONG)
    case ENAMETOOLONG:
       return "ENAMETOOLONG";
#endif /* ENAMETOOLONG */
#if defined(EOVERFLOW)
    case EOVERFLOW:
       return "EOVERFLOW";
#endif /* EOVERFLOW */
#if defined(ENOSYS)
    case ENOSYS:
       return "ENOSYS";
#endif /* ENOSYS */
#if defined(ELOOP)
    case ELOOP:
       return "ELOOP";
#endif /* ELOOP */
    default:
       return "UNKNOWN_ERROR";
    }
}

Here is the caller graph for this function:

static const char* fcntl_cmd_flock_type_string ( int  type) [static]

Definition at line 7312 of file comp-file-operation.c.

{
    switch (type) {
    case F_RDLCK:
       return "F_RDLCK";
    case F_WRLCK:
       return "F_WRLCK";
    case F_UNLCK:
       return "F_UNLCK";
    case F_UNLKSYS:
       return "F_UNLKSYS";
    default:
       return "UNKNOWN";
    }
}

Here is the caller graph for this function:

static const char* fcntl_cmd_setfd_flags_string ( int  flags) [static]

Definition at line 7277 of file comp-file-operation.c.

{
    switch (flags) {
    case FD_CLOEXEC:
       return "FD_CLOEXEC";
    default:
       return "UNKNOWN";
    }
}

Here is the caller graph for this function:

static const char* fcntl_cmd_string ( int  cmd) [static]

Definition at line 7916 of file comp-file-operation.c.

{
    switch (cmd) {
    case F_SETFD:
       return ("F_SETFD");
    case F_SETFL:
       return ("F_SETFL");
    case F_GETLK:
       return ("F_GETLK");
    case F_SETLK:
       return ("F_SETLK");
    case F_SETLKW:
       return ("F_SETLKW");
    default:
       return ("UNKNOWN");
    }
}

Here is the caller graph for this function:

void iiimp_close_delete ( IIIMP_data_s *  data_s,
IIIMP_close m 
)

Definition at line 9096 of file comp-file-operation.c.

{
    if (NULL == m) return;
    free(m);
    return;
}

Here is the caller graph for this function:

IIIMP_close* iiimp_close_new ( IIIMP_data_s *  data_s,
IIIMP_card32  ns_id 
)

Definition at line 8713 of file comp-file-operation.c.

{
    IIIMP_close *    data;

    data = (IIIMP_close *)malloc(sizeof (IIIMP_close));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }
    data->nbyte = 4 + 4;
    data->ns_id = ns_id;

    return data;
}

Here is the caller graph for this function:

void iiimp_close_pack ( IIIMP_data_s *  data_s,
IIIMP_close m,
size_t *  nbyte,
uchar_t **  ptr 
)

Definition at line 9323 of file comp-file-operation.c.

{
    size_t           rest;
    uchar_t *        p;

    rest = *nbyte;
    p = *ptr;

    PUTU32(m->nbyte, rest, p, data_s->byte_swap);
    PUTU32(m->ns_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

void iiimp_close_print ( IIIMP_data_s *  data_s,
IIIMP_close m 
)

Definition at line 10509 of file comp-file-operation.c.

{
    if (NULL == m) return;

    (void)fprintf(data_s->print_fp, "\tns_id = %d\n", m->ns_id);
    (void)fputc('\n', data_s->print_fp);
}

Here is the caller graph for this function:

IIIMP_close* iiimp_close_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 9844 of file comp-file-operation.c.

{
    IIIMP_close *       data;
    size_t              rest;
    const uchar_t *     p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) || (rest < ( 4 + 4))) {
        data_s->status = IIIMP_DATA_INVALID;
        return NULL;
    }

    data = (IIIMP_close *)malloc(nbyte_max);
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }
    GETU32(data->nbyte, rest, p, data_s->byte_swap);
    GETU32(data->ns_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return data;
}

Here is the caller graph for this function:

void iiimp_closedir_delete ( IIIMP_data_s *  data_s,
IIIMP_closedir m 
)

Definition at line 9121 of file comp-file-operation.c.

{
    if (NULL == m) return;
    free(m);
    return;
}

Here is the caller graph for this function:

IIIMP_closedir* iiimp_closedir_new ( IIIMP_data_s *  data_s,
IIIMP_card32  ns_id 
)

Definition at line 8772 of file comp-file-operation.c.

{
    IIIMP_closedir *     data;
    data = (IIIMP_closedir *)malloc(sizeof (IIIMP_closedir));
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }
    data->nbyte = 4 + 4;
    data->ns_id = ns_id;

    return data;
}

Here is the caller graph for this function:

void iiimp_closedir_pack ( IIIMP_data_s *  data_s,
IIIMP_closedir m,
size_t *  nbyte,
uchar_t **  ptr 
)

Definition at line 9392 of file comp-file-operation.c.

{
    size_t              rest;
    uchar_t *           p;

    rest = *nbyte;
    p = *ptr;
    
    PUTU32(m->nbyte, rest, p, data_s->byte_swap);
    PUTU32(m->ns_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

void iiimp_closedir_print ( IIIMP_data_s *  data_s,
IIIMP_closedir m 
)

Definition at line 10546 of file comp-file-operation.c.

{
    if (NULL == m) return;

    (void)fprintf(data_s->print_fp, "\tns_id = %d\n", m->ns_id);
    (void)fputc('\n', data_s->print_fp);
}

Here is the caller graph for this function:

IIIMP_closedir* iiimp_closedir_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 9951 of file comp-file-operation.c.

{
    IIIMP_closedir *    data;
    size_t              rest;
    const uchar_t *     p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) || (rest < (4 + 4))) {
        data_s->status = IIIMP_DATA_INVALID;
        return NULL;
    }

    data = (IIIMP_closedir *)malloc(nbyte_max);
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }
    data->nbyte = nbyte_max;

    GETU32(data->nbyte, rest, p, data_s->byte_swap);
    GETU32(data->ns_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return data;
}

Here is the caller graph for this function:

void iiimp_creat_delete ( IIIMP_data_s *  data_s,
IIIMP_creat m 
)

Definition at line 9184 of file comp-file-operation.c.

{
    if (NULL == m) return;
    iiimp_utf8string_delete(data_s, m->path);
    free(m);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_creat* iiimp_creat_new ( IIIMP_data_s *  data_s,
IIIMP_card32  ns_id,
IIIMP_card32  mode,
IIIMP_utf8string path 
)

Definition at line 8915 of file comp-file-operation.c.

{
    IIIMP_creat *     data;

    data = (IIIMP_creat *)malloc(sizeof (IIIMP_creat));
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }

    data->nbyte = 4 + 4 + 4 + path->nbyte;
    data->ns_id = ns_id;
    data->mode = mode;
    data->path = path;

    return data;
}

Here is the caller graph for this function:

void iiimp_creat_pack ( IIIMP_data_s *  data_s,
IIIMP_creat m,
size_t *  nbyte,
uchar_t **  ptr 
)

Definition at line 9553 of file comp-file-operation.c.

{
    size_t              rest;
    uchar_t *           p;

    rest = *nbyte;
    p = *ptr;
    
    PUTU32(m->nbyte, rest, p, data_s->byte_swap);
    PUTU32(m->ns_id, rest, p, data_s->byte_swap);
    PUTU32(m->mode, rest, p, data_s->byte_swap);
    iiimp_utf8string_pack(data_s, m->path, &rest, &p);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void iiimp_creat_print ( IIIMP_data_s *  data_s,
IIIMP_creat m 
)

Definition at line 10638 of file comp-file-operation.c.

{
    if (NULL == m) return;

    (void)fprintf(data_s->print_fp, "\tns_id = %d\n", m->ns_id);
    (void)fprintf(data_s->print_fp, "\tpath = ");
    iiimp_utf8string_print(data_s, m->path);
    (void)fputc('\n', data_s->print_fp);
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_creat* iiimp_creat_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 10209 of file comp-file-operation.c.

{
    IIIMP_creat *       data;
    size_t              rest;
    const uchar_t *     p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) || (rest < (4 + 4 + 4))) {
        data_s->status = IIIMP_DATA_INVALID;
        return NULL;
    }

    data = (IIIMP_creat *)malloc(nbyte_max);
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }
    data->nbyte = nbyte_max;
    data->path = NULL;

    GETU32(data->nbyte, rest, p, data_s->byte_swap);
    GETU32(data->ns_id, rest, p, data_s->byte_swap);
    GETU32(data->mode, rest, p, data_s->byte_swap);
    data->path = iiimp_utf8string_unpack(data_s, &rest, &p, rest);

    *nbyte = rest;
    *ptr = p;

    return data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void iiimp_fcntl_delete ( IIIMP_data_s *  data_s,
IIIMP_fcntl m 
)

Definition at line 9220 of file comp-file-operation.c.

{
    if (NULL == m) return;
    free(m);
    return;
}

Here is the caller graph for this function:

IIIMP_fcntl* iiimp_fcntl_new ( IIIMP_data_s *  data_s,
IIIMP_card32  ns_id,
IIIMP_card32  cmd,
IIIMP_card32  arg 
)

Definition at line 9005 of file comp-file-operation.c.

{
    IIIMP_fcntl *     data;

    data = (IIIMP_fcntl *)malloc(sizeof (IIIMP_fcntl));
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }

    data->nbyte = 4 + 4 + 4 + 4;
    data->ns_id = ns_id;
    data->cmd = cmd;
    data->arg = arg;

    return data;
}

Here is the caller graph for this function:

void iiimp_fcntl_pack ( IIIMP_data_s *  data_s,
IIIMP_fcntl m,
size_t *  nbyte,
uchar_t **  ptr 
)

Definition at line 9648 of file comp-file-operation.c.

{
    size_t              rest;
    uchar_t *           p;

    rest = *nbyte;
    p = *ptr;
    
    PUTU32(m->nbyte, rest, p, data_s->byte_swap);
    PUTU32(m->ns_id, rest, p, data_s->byte_swap);
    PUTU32(m->cmd, rest, p, data_s->byte_swap);
    PUTU32(m->arg, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

void iiimp_fcntl_print ( IIIMP_data_s *  data_s,
IIIMP_fcntl m 
)

Definition at line 10693 of file comp-file-operation.c.

{   
    if (NULL == m) return;

    (void)fprintf(data_s->print_fp, "\tns_id = %d\n", m->ns_id);
    (void)fprintf(data_s->print_fp, "\tcmd = %d\n", m->cmd);
    (void)fprintf(data_s->print_fp, "\targ = %d\n", m->arg);
    (void)fputc('\n', data_s->print_fp);
}

Here is the caller graph for this function:

IIIMP_fcntl* iiimp_fcntl_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 10360 of file comp-file-operation.c.

{   
    IIIMP_fcntl *       data;
    size_t              rest;
    const uchar_t *     p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) || (rest < (4 + 4 + 4))) {
        data_s->status = IIIMP_DATA_INVALID;
        return NULL;    
    }
    
    data = (IIIMP_fcntl *)malloc(nbyte_max);
    if (NULL == data) {
        data_s->status = IIIMP_DATA_MALLOC_ERROR;
        return NULL;
    }
    data->nbyte = nbyte_max;

    GETU32(data->nbyte, rest, p, data_s->byte_swap);
    GETU32(data->ns_id, rest, p, data_s->byte_swap);
    GETU32(data->cmd, rest, p, data_s->byte_swap);
    GETU32(data->arg, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return data;
}

Here is the caller graph for this function:

static int iiimp_file_operation_access_amode_i2l ( int  amode) [static]

Definition at line 199 of file comp-file-operation.c.

{
    switch (amode) {
    case IIIMP_FILE_OPERATION_ACCESS_F_OK:
       return F_OK;
    case IIIMP_FILE_OPERATION_ACCESS_X_OK:
       return X_OK;
    case IIIMP_FILE_OPERATION_ACCESS_W_OK:
       return W_OK;
    case IIIMP_FILE_OPERATION_ACCESS_R_OK:
       return R_OK;
    default:
       return -1;
    }
}
static int iiimp_file_operation_access_amode_l2i ( int  amode) [static]

Definition at line 218 of file comp-file-operation.c.

{
    switch (amode) {
    case F_OK:
       return IIIMP_FILE_OPERATION_ACCESS_F_OK;
    case X_OK:
       return IIIMP_FILE_OPERATION_ACCESS_X_OK;
    case W_OK:
       return IIIMP_FILE_OPERATION_ACCESS_W_OK;
    case R_OK:
       return IIIMP_FILE_OPERATION_ACCESS_R_OK;
    default:
       return -1;
    }
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_dir_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_dir data 
) [static]

Definition at line 2340 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    iiimp_string_delete(data_s, data->name);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 652 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_dir *       data;
    size_t                         nbyte;

    data = (IIIMP_file_operation_data_dir *)
       malloc(sizeof(IIIMP_file_operation_data_dir));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    nbyte = (4 + 4);
    if (NULL == name) {
       nbyte += 4;
    } else {
       nbyte += name->nbyte;
    }

    data->nbyte = nbyte;
    data->ino = ino;
    data->off = off;
    data->name = name;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_dir_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_dir m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3315 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->ino, rest, p, data_s->byte_swap);
    PUT32(m->off, rest, p, data_s->byte_swap);
    iiimp_string_pack(data_s, m->name, &rest, &p);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_dir_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_dir m 
) [static]

Definition at line 7369 of file comp-file-operation.c.

{
    if (NULL == m) return;
}
IIIMP_file_operation_data_dir* iiimp_file_operation_data_dir_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5024 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_dir *       d;
    size_t                         rest;
    const uchar_t *                p;
    int                                   count;
    int                                   i;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_data_dir *)
       malloc(sizeof (IIIMP_file_operation_data_dir));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GETU32(d->ino, rest, p, data_s->byte_swap);
    GET32(d->off, rest, p, data_s->byte_swap);
    d->name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if (NULL == d->name) {
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl data 
) [static]

Definition at line 2310 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_flock_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl data 
) [static]

Definition at line 2296 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Definition at line 547 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     data;
    size_t                         nbyte;

    data = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof(IIIMP_file_operation_data_fcntl));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    nbyte = (2 + 2 + 4 + 4);

    data->nbyte = nbyte;
    data->value.flock.type = type;
    data->value.flock.whence = whence;
    data->value.flock.start = start;
    data->value.flock.len = len;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_flock_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3237 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;
    int              type;
    int              whence;

    rest = *nbyte;
    p = *ptr;

    type = iiimp_file_operation_fcntl_flock_type_l2i(m->value.flock.type);
    whence = iiimp_file_operation_whence_l2i(m->value.flock.whence);

    PUT16(type, rest, p, data_s->byte_swap);
    PUT16(whence, rest, p, data_s->byte_swap);
    PUT32(m->value.flock.start, rest, p, data_s->byte_swap);
    PUT32(m->value.flock.len, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_flock_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m 
) [static]

Definition at line 7347 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "[%s, %s, %d, %d]",
                fcntl_cmd_flock_type_string(m->value.flock.type),
                whence_string(m->value.flock.whence),
                m->value.flock.start, m->value.flock.len);
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_data_fcntl* iiimp_file_operation_data_fcntl_flock_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 4916 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     d;
    size_t                         rest;
    const uchar_t *                p;
    int                                   type;
    int                                   whence;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (2 + 2 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof (IIIMP_file_operation_data_fcntl));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET16(type, rest, p, data_s->byte_swap);
    d->value.flock.type = iiimp_file_operation_fcntl_flock_type_i2l(type);
    GET16(whence, rest, p, data_s->byte_swap);
    d->value.flock.whence = iiimp_file_operation_whence_i2l(whence);
    GET32(d->value.flock.start, rest, p, data_s->byte_swap);
    GET32(d->value.flock.len, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_setfd_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl data 
) [static]

Definition at line 2268 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}
IIIMP_file_operation_data_fcntl* iiimp_file_operation_data_fcntl_setfd_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_descriptor_flags 
)

Definition at line 499 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     data;
    size_t                         nbyte;

    data = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof(IIIMP_file_operation_data_fcntl));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    nbyte = 4;

    data->nbyte = nbyte;
    data->value.file_descriptor_flags = file_descriptor_flags;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_setfd_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3186 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;
    int              file_descriptor_flags;

    rest = *nbyte;
    p = *ptr;

    file_descriptor_flags =
       iiimp_file_operation_fcntl_setfd_flag_l2i(
           m->value.file_descriptor_flags);

    PUT32(file_descriptor_flags, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_setfd_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m 
) [static]

Definition at line 7290 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "%s",
                fcntl_cmd_setfd_flags_string(m->value.file_descriptor_flags));
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_data_fcntl* iiimp_file_operation_data_fcntl_setfd_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 4843 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     d;
    size_t                         rest;
    const uchar_t *                p;
    int                                   file_descriptor_flags;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < 4)) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof (IIIMP_file_operation_data_fcntl));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(file_descriptor_flags, rest, p, data_s->byte_swap);
    d->value.file_descriptor_flags =
       iiimp_file_operation_fcntl_setfd_flag_l2i(file_descriptor_flags);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_setfl_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl data 
) [static]

Definition at line 2282 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}
IIIMP_file_operation_data_fcntl* iiimp_file_operation_data_fcntl_setfl_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_status_flags 
)

Definition at line 523 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     data;
    size_t                         nbyte;

    data = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof(IIIMP_file_operation_data_fcntl));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    nbyte = 4;

    data->nbyte = nbyte;
    data->value.file_status_flags = file_status_flags;

    return data;
}
static void iiimp_file_operation_data_fcntl_setfl_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3214 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->value.file_status_flags, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_fcntl_setfl_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_fcntl m 
) [static]

Definition at line 7301 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "%d",
                m->value.file_status_flags);
}

Here is the caller graph for this function:

IIIMP_file_operation_data_fcntl* iiimp_file_operation_data_fcntl_setfl_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 4881 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_fcntl *     d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_data_fcntl *)
       malloc(sizeof (IIIMP_file_operation_data_fcntl));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->value.file_status_flags, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_stat_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_stat data 
) [static]

Definition at line 2324 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    iiimp_string_delete(data_s, data->user_name);
    iiimp_string_delete(data_s, data->group_name);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_data_stat* iiimp_file_operation_data_stat_new ( IIIMP_data_s *  data_s,
IIIMP_card32  mode,
IIIMP_card32  ino,
IIIMP_card32  dev,
IIIMP_card32  rdev,
IIIMP_card32  nlink,
IIIMP_string user_name,
IIIMP_card32  uid,
IIIMP_string group_name,
IIIMP_card32  gid,
IIIMP_card32  size,
IIIMP_card32  atime_tv_sec,
IIIMP_card32  atime_tv_nsec,
IIIMP_card32  mtime_tv_sec,
IIIMP_card32  mtime_tv_nsec,
IIIMP_card32  ctime_tv_sec,
IIIMP_card32  ctime_tv_nsec,
IIIMP_card32  blksize,
IIIMP_card32  blocks 
)

Definition at line 577 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_stat *      data;
    size_t                         nbyte;

    data = (IIIMP_file_operation_data_stat *)
       malloc(sizeof(IIIMP_file_operation_data_stat));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    nbyte = (4 + 4 + 4 + 4 + 4);   /* mode + ino + dev + rdev + nlink */
    if (NULL == user_name) {
       nbyte += 4;
    } else {
       nbyte += user_name->nbyte;
    }
    nbyte += 4;                           /* uid */
    if (NULL == group_name) {
       nbyte += 4;
    } else {
       nbyte += group_name->nbyte;
    }
    nbyte += 4;                           /* gid */
    nbyte += 4;                           /* size */
    nbyte += (4 + 4);                     /* atime */
    nbyte += (4 + 4);                     /* mtime */
    nbyte += (4 + 4);                     /* ctime */
    nbyte += (4 + 4);                     /* blksize + blocks */

    data->nbyte = nbyte;
    data->mode = mode;
    data->ino = ino;
    data->dev = dev;
    data->rdev = rdev;
    data->nlink = nlink;
    data->user_name = user_name;
    data->uid = uid;
    data->group_name = group_name;
    data->gid = gid;
    data->size = size;
    data->atime.tv_sec = atime_tv_sec;
    data->atime.tv_nsec = atime_tv_nsec;
    data->mtime.tv_sec = mtime_tv_sec;
    data->mtime.tv_nsec = mtime_tv_nsec;
    data->ctime.tv_sec = ctime_tv_sec;
    data->ctime.tv_nsec = ctime_tv_nsec;
    data->blksize = blksize;
    data->blocks = blocks;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_data_stat_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_stat m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3268 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUTU32(m->mode, rest, p, data_s->byte_swap);
    PUTU32(m->ino, rest, p, data_s->byte_swap);
    PUTU32(m->dev, rest, p, data_s->byte_swap);
    PUTU32(m->rdev, rest, p, data_s->byte_swap);
    PUTU32(m->nlink, rest, p, data_s->byte_swap);
    if (NULL == m->user_name) {
       PUTU32(0, rest, p, data_s->byte_swap);
    } else {
       iiimp_string_pack(data_s, m->user_name, &rest, &p);
    }
    PUT32(m->uid, rest, p, data_s->byte_swap);
    if (NULL == m->group_name) {
       PUTU32(0, rest, p, data_s->byte_swap);
       iiimp_string_pack(data_s, m->group_name, &rest, &p);
    }
    PUT32(m->gid, rest, p, data_s->byte_swap);
    PUT32(m->size, rest, p, data_s->byte_swap);
    PUT32(m->atime.tv_sec, rest, p, data_s->byte_swap);
    PUT32(m->atime.tv_nsec, rest, p, data_s->byte_swap);
    PUT32(m->mtime.tv_sec, rest, p, data_s->byte_swap);
    PUT32(m->mtime.tv_nsec, rest, p, data_s->byte_swap);
    PUT32(m->ctime.tv_sec, rest, p, data_s->byte_swap);
    PUT32(m->ctime.tv_nsec, rest, p, data_s->byte_swap);
    PUT32(m->blksize, rest, p, data_s->byte_swap);
    PUT32(m->blocks, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_data_stat_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_data_stat m 
) [static]

Definition at line 7360 of file comp-file-operation.c.

{
    if (NULL == m) return;
}
IIIMP_file_operation_data_stat* iiimp_file_operation_data_stat_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 4958 of file comp-file-operation.c.

{
    IIIMP_file_operation_data_stat *      d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_data_stat *)
       malloc(sizeof (IIIMP_file_operation_data_stat));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GETU32(d->mode, rest, p, data_s->byte_swap);
    GETU32(d->ino, rest, p, data_s->byte_swap);
    GETU32(d->dev, rest, p, data_s->byte_swap);
    GETU32(d->rdev, rest, p, data_s->byte_swap);
    GETU32(d->nlink, rest, p, data_s->byte_swap);
    d->user_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->user_name) || (rest < (4 + 4))) {
       iiimp_string_delete(data_s, d->user_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->uid, rest, p, data_s->byte_swap);
    d->group_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->group_name) ||
       (rest < (4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4))) {
       iiimp_string_delete(data_s, d->user_name);
       iiimp_string_delete(data_s, d->group_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->gid, rest, p, data_s->byte_swap);
    GET32(d->size, rest, p, data_s->byte_swap);
    GET32(d->atime.tv_sec, rest, p, data_s->byte_swap);
    GET32(d->atime.tv_nsec, rest, p, data_s->byte_swap);
    GET32(d->mtime.tv_sec, rest, p, data_s->byte_swap);
    GET32(d->mtime.tv_nsec, rest, p, data_s->byte_swap);
    GET32(d->ctime.tv_sec, rest, p, data_s->byte_swap);
    GET32(d->ctime.tv_nsec, rest, p, data_s->byte_swap);
    GET32(d->blksize, rest, p, data_s->byte_swap);
    GET32(d->blocks, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int iiimp_file_operation_error_number_i2l ( int  error_number) [static]

Definition at line 237 of file comp-file-operation.c.

{
    switch (error_number) {
    case IIIMP_FILE_OPERATION_ERRNO_NONE:
       return 0;
#if defined(EPERM)
    case IIIMP_FILE_OPERATION_ERRNO_EPERM:
       return EPERM;
#endif /* EPERM */
#if defined(ENOENT)
    case IIIMP_FILE_OPERATION_ERRNO_ENOENT:
       return ENOENT;
#endif /* ENOENT */
#if defined(EINTR)
    case IIIMP_FILE_OPERATION_ERRNO_EINTR:
       return EINTR;
#endif /* EINTR */
#if defined(EIO)
    case IIIMP_FILE_OPERATION_ERRNO_EIO:
       return EIO;
#endif /* EIO */
#if defined(ENXIO)
    case IIIMP_FILE_OPERATION_ERRNO_ENXIO:
       return ENXIO;
#endif /* ENXIO */
#if defined(EBADF)
    case IIIMP_FILE_OPERATION_ERRNO_EBADF:
       return EBADF;
#endif /* EBADF */
#if defined(EAGAIN)
    case IIIMP_FILE_OPERATION_ERRNO_EAGAIN:
       return EAGAIN;
#endif /* EAGAIN */
#if defined(ENOMEM)
    case IIIMP_FILE_OPERATION_ERRNO_ENOMEM:
       return ENOMEM;
#endif /* ENOMEM */
#if defined(EACCES)
    case IIIMP_FILE_OPERATION_ERRNO_EACCES:
       return EACCES;
#endif /* EACCES */
#if defined(EFAULT)
    case IIIMP_FILE_OPERATION_ERRNO_EFAULT:
       return EFAULT;
#endif /* EFAULT */
#if defined(EBUSY)
    case IIIMP_FILE_OPERATION_ERRNO_EBUSY:
       return EBUSY;
#endif /* EBUSY */
#if defined(EEXIST)
    case IIIMP_FILE_OPERATION_ERRNO_EEXIST:
       return EEXIST;
#endif /* EEXIST */
#if defined(EXDEV)
    case IIIMP_FILE_OPERATION_ERRNO_EXDEV:
       return EXDEV;
#endif /* EXDEV */
#if defined(ENOTDIR)
    case IIIMP_FILE_OPERATION_ERRNO_ENOTDIR:
       return ENOTDIR;
#endif /* ENOTDIR */
#if defined(EISDIR)
    case IIIMP_FILE_OPERATION_ERRNO_EISDIR:
       return EISDIR;
#endif /* EISDIR */
    case IIIMP_FILE_OPERATION_ERRNO_EINVAL:
       return EINVAL;
#if defined(ENFILE)
    case IIIMP_FILE_OPERATION_ERRNO_ENFILE:
       return ENFILE;
#endif /* ENFILE */
#if defined(EMFILE)
    case IIIMP_FILE_OPERATION_ERRNO_EMFILE:
       return EMFILE;
#endif /* EMFILE */
#if defined(ETXTBSY)
    case IIIMP_FILE_OPERATION_ERRNO_ETXTBSY:
       return ETXTBSY;
#endif /* ETXTBSY */
#if defined(EFBIG)
    case IIIMP_FILE_OPERATION_ERRNO_EFBIG:
       return EFBIG;
#endif /* EFBIG */
#if defined(ENOSPC)
    case IIIMP_FILE_OPERATION_ERRNO_ENOSPC:
       return ENOSPC;
#endif /* ENOSPC */
#if defined(EROFS)
    case IIIMP_FILE_OPERATION_ERRNO_EROFS:
       return EROFS;
#endif /* EROFS */
#if defined(EMLINK)
    case IIIMP_FILE_OPERATION_ERRNO_EMLINK:
       return EMLINK;
#endif /* EMLINK */
#if defined(EDEADLK)
    case IIIMP_FILE_OPERATION_ERRNO_EDEADLK:
       return EDEADLK;
#endif /* EDEADLK */
#if defined(ENOLCK)
    case IIIMP_FILE_OPERATION_ERRNO_ENOLCK:
       return ENOLCK;
#endif /* ENOLCK */
#if defined(EDQUOT)
    case IIIMP_FILE_OPERATION_ERRNO_EDQUOT:
       return EDQUOT;
#endif /* EDQUOT */
#if defined(ENAMETOOLONG)
    case IIIMP_FILE_OPERATION_ERRNO_ENAMETOOLONG:
       return ENAMETOOLONG;
#endif /* ENAMETOOLONG */
#if defined(EOVERFLOW)
    case IIIMP_FILE_OPERATION_ERRNO_EOVERFLOW:
       return EOVERFLOW;
#endif /* EOVERFLOW */
#if defined(ENOSYS)
    case IIIMP_FILE_OPERATION_ERRNO_ENOSYS:
       return ENOSYS;
#endif /* ENOSYS */
#if defined(ELOOP)
    case IIIMP_FILE_OPERATION_ERRNO_ELOOP:
       return ELOOP;
#endif /* ELOOP */
    default:
       return EINVAL;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_error_number_l2i ( int  error_number) [static]

Definition at line 368 of file comp-file-operation.c.

{
    switch (error_number) {
    case 0:
       return IIIMP_FILE_OPERATION_ERRNO_NONE;
#if defined(EPERM)
    case EPERM:
       return IIIMP_FILE_OPERATION_ERRNO_EPERM;
#endif /* EPERM */
#if defined(ENOENT)
    case ENOENT:
       return IIIMP_FILE_OPERATION_ERRNO_ENOENT;
#endif /* ENOENT */
#if defined(EINTR)
    case EINTR:
       return IIIMP_FILE_OPERATION_ERRNO_EINTR;
#endif /* EINTR */
#if defined(EIO)
    case EIO:
       return IIIMP_FILE_OPERATION_ERRNO_EIO;
#endif /* EIO */
#if defined(ENXIO)
    case ENXIO:
       return IIIMP_FILE_OPERATION_ERRNO_ENXIO;
#endif /* ENXIO */
#if defined(EBADF)
    case EBADF:
       return IIIMP_FILE_OPERATION_ERRNO_EBADF;
#endif /* EBADF */
#if defined(EAGAIN)
    case EAGAIN:
       return IIIMP_FILE_OPERATION_ERRNO_EAGAIN;
#endif /* EAGAIN */
#if defined(ENOMEM)
    case ENOMEM:
       return IIIMP_FILE_OPERATION_ERRNO_ENOMEM;
#endif /* ENOMEM */
#if defined(EACCES)
    case EACCES:
       return IIIMP_FILE_OPERATION_ERRNO_EACCES;
#endif /* EACCES */
#if defined(EFAULT)
    case EFAULT:
       return IIIMP_FILE_OPERATION_ERRNO_EFAULT;
#endif /* EFAULT */
#if defined(EBUSY)
    case EBUSY:
       return IIIMP_FILE_OPERATION_ERRNO_EBUSY;
#endif /* EBUSY */
#if defined(EEXIST)
    case EEXIST:
       return IIIMP_FILE_OPERATION_ERRNO_EEXIST;
#endif /* EEXIST */
#if defined(EXDEV)
    case EXDEV:
       return IIIMP_FILE_OPERATION_ERRNO_EXDEV;
#endif /* EXDEV */
#if defined(ENOTDIR)
    case ENOTDIR:
       return IIIMP_FILE_OPERATION_ERRNO_ENOTDIR;
#endif /* ENOTDIR */
#if defined(EISDIR)
    case EISDIR:
       return IIIMP_FILE_OPERATION_ERRNO_EISDIR;
#endif /* EISDIR */
    case EINVAL:
       return IIIMP_FILE_OPERATION_ERRNO_EINVAL;
#if defined(ENFILE)
    case ENFILE:
       return IIIMP_FILE_OPERATION_ERRNO_ENFILE;
#endif /* ENFILE */
#if defined(EMFILE)
    case EMFILE:
       return IIIMP_FILE_OPERATION_ERRNO_EMFILE;
#endif /* EMFILE */
#if defined(ETXTBSY)
    case ETXTBSY:
       return IIIMP_FILE_OPERATION_ERRNO_ETXTBSY;
#endif /* ETXTBSY */
#if defined(EFBIG)
    case EFBIG:
       return IIIMP_FILE_OPERATION_ERRNO_EFBIG;
#endif /* EFBIG */
#if defined(ENOSPC)
    case ENOSPC:
       return IIIMP_FILE_OPERATION_ERRNO_ENOSPC;
#endif /* ENOSPC */
#if defined(EROFS)
    case EROFS:
       return IIIMP_FILE_OPERATION_ERRNO_EROFS;
#endif /* EROFS */
#if defined(EMLINK)
    case EMLINK:
       return IIIMP_FILE_OPERATION_ERRNO_EMLINK;
#endif /* EMLINK */
#if defined(EDEADLK)
    case EDEADLK:
       return IIIMP_FILE_OPERATION_ERRNO_EDEADLK;
#endif /* EDEADLK */
#if defined(ENOLCK)
    case ENOLCK:
       return IIIMP_FILE_OPERATION_ERRNO_ENOLCK;
#endif /* ENOLCK */
#if defined(EDQUOT)
    case EDQUOT:
       return IIIMP_FILE_OPERATION_ERRNO_EDQUOT;
#endif /* EDQUOT */
#if defined(ENAMETOOLONG)
    case ENAMETOOLONG:
       return IIIMP_FILE_OPERATION_ERRNO_ENAMETOOLONG;
#endif /* ENAMETOOLONG */
#if defined(EOVERFLOW)
    case EOVERFLOW:
       return IIIMP_FILE_OPERATION_ERRNO_EOVERFLOW;
#endif /* EOVERFLOW */
#if defined(ENOSYS)
    case ENOSYS:
       return IIIMP_FILE_OPERATION_ERRNO_ENOSYS;
#endif /* ENOSYS */
#if defined(ELOOP)
    case ELOOP:
       return IIIMP_FILE_OPERATION_ERRNO_ELOOP;
#endif /* ELOOP */
    default:
       return IIIMP_FILE_OPERATION_ERRNO_EINVAL;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_fcntl_cmd_i2l ( int  cmd) [static]

Definition at line 59 of file comp-file-operation.c.

{
    switch (cmd) {
    case IIIMP_FILE_OPERATION_FCNTL_F_SETFD:
       return F_SETFD;
    case IIIMP_FILE_OPERATION_FCNTL_F_SETFL:
       return F_SETFL;
    case IIIMP_FILE_OPERATION_FCNTL_F_GETLK:
       return F_GETLK;
    case IIIMP_FILE_OPERATION_FCNTL_F_SETLK:
       return F_SETLK;
    case IIIMP_FILE_OPERATION_FCNTL_F_SETLKW:
       return F_SETLKW;
    default:
       return -1;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_fcntl_cmd_l2i ( int  cmd) [static]

Definition at line 80 of file comp-file-operation.c.

{
    switch (cmd) {
    case F_SETFD:
       return IIIMP_FILE_OPERATION_FCNTL_F_SETFD;
    case F_SETFL:
       return IIIMP_FILE_OPERATION_FCNTL_F_SETFL;
    case F_GETLK:
       return IIIMP_FILE_OPERATION_FCNTL_F_GETLK;
    case F_SETLK:
       return IIIMP_FILE_OPERATION_FCNTL_F_SETLK;
    case F_SETLKW:
       return IIIMP_FILE_OPERATION_FCNTL_F_SETLKW;
    default:
       return -1;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_fcntl_flock_type_i2l ( int  type) [static]

Definition at line 127 of file comp-file-operation.c.

{
    switch (type) {
    case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_RDLCK:
       return F_RDLCK;
    case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_WRLCK:
       return F_WRLCK;
    case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLCK:
       return F_UNLCK;
    case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLKSYS:
       return F_UNLKSYS;
    default:
       return -1;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_fcntl_flock_type_l2i ( int  type) [static]

Definition at line 146 of file comp-file-operation.c.

{
    switch (type) {
    case F_RDLCK:
       return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_RDLCK;
    case F_WRLCK:
       return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_WRLCK;
    case F_UNLCK:
       return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLCK;
    case F_UNLKSYS:
       return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLKSYS;
    default:
       return -1;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_fcntl_setfd_flag_i2l ( int  flag) [static]

Definition at line 101 of file comp-file-operation.c.

{
    switch (flag) {
    case IIIMP_FILE_OPERATION_FCNTL_SETFD_FLAG_FD_CLOEXEC:
       return FD_CLOEXEC;
    default:
       return 0;
    }
}
static int iiimp_file_operation_fcntl_setfd_flag_l2i ( int  flag) [static]

Definition at line 114 of file comp-file-operation.c.

{
    switch (flag) {
    case FD_CLOEXEC:
       return IIIMP_FILE_OPERATION_FCNTL_SETFD_FLAG_FD_CLOEXEC;
    default:
       return 0;
    }
}

Here is the caller graph for this function:

static int iiimp_file_operation_open_flags_i2l ( int  open_flags) [static]

Definition at line 19 of file comp-file-operation.c.

{
    int       f;

    f = 0;

    if (IIIMP_FILE_OPERATION_OPEN_O_RDONLY & open_flags) f |= O_RDONLY;
    if (IIIMP_FILE_OPERATION_OPEN_O_WRONLY & open_flags) f |= O_WRONLY;
    if (IIIMP_FILE_OPERATION_OPEN_O_RDWR & open_flags) f |= O_RDWR;
    if (IIIMP_FILE_OPERATION_OPEN_O_APPEND & open_flags) f |= O_APPEND;
    if (IIIMP_FILE_OPERATION_OPEN_O_CREAT & open_flags) f |= O_CREAT;
    if (IIIMP_FILE_OPERATION_OPEN_O_TRUNC & open_flags) f |= O_TRUNC;
    if (IIIMP_FILE_OPERATION_OPEN_O_EXCL & open_flags) f |= O_EXCL;

    return f;
}

Here is the caller graph for this function:

static int iiimp_file_operation_open_flags_l2i ( int  open_flags) [static]

Definition at line 39 of file comp-file-operation.c.

{
    int       f;

    f = 0;

    if (O_RDONLY & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_RDONLY;
    if (O_WRONLY & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_WRONLY;
    if (O_RDWR & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_RDWR;
    if (O_APPEND & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_APPEND;
    if (O_CREAT & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_CREAT;
    if (O_TRUNC & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_TRUNC;
    if (O_EXCL & open_flags) f |= IIIMP_FILE_OPERATION_OPEN_O_EXCL;

    return f;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_access_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2650 of file comp-file-operation.c.

{
    iiimp_string_delete(data_s, data->value.access.path);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1551 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    if (NULL == path) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = (path->nbyte + 4);
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_ACCESS;
    data->value_nbyte = value_nbyte;
    data->value.access.path = path;
    data->value.access.amode = amode;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_access_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3984 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;
    int              amode;

    rest = *nbyte;
    p = *ptr;

    amode = iiimp_file_operation_access_amode_l2i(m->value.access.amode);

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    iiimp_string_pack(data_s, m->value.access.path, &rest, &p);
    PUT32(amode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_access_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7811 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\taccess(");
    iiimp_string_print(data_s, m->value.access.path);
    (void)fprintf(data_s->print_fp, ", %s(%d))\n",
                access_amode_string(m->value.access.amode),
                m->value.access.amode);
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_access_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 6117 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;
    int                                   amode;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    d->value.access.path = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.access.path) || (rest < 4)) {
       iiimp_string_delete(data_s, d->value.access.path);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(amode, rest, p, data_s->byte_swap);
    d->value.access.amode = iiimp_file_operation_access_amode_l2i(amode);


    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_chmod_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2521 of file comp-file-operation.c.

{
    iiimp_string_delete(data_s, data->value.chmod.path);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1150 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    if (NULL == path) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = (path->nbyte + 4);
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_CHMOD;
    data->value_nbyte = value_nbyte;
    data->value.chmod.path = path;
    data->value.chmod.mode = mode;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_chmod_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3690 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    iiimp_string_pack(data_s, m->value.chmod.path, &rest, &p);
    PUTU32(m->value.chmod.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_chmod_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7655 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tchmod(");
    iiimp_string_print(data_s, m->value.chmod.path);
    (void)fprintf(data_s->print_fp, ", 0%3o)\n", m->value.chmod.mode);
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_chmod_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5644 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    d->value.chmod.path = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.chmod.path) || (rest < 4)) {
       iiimp_string_delete(data_s, d->value.chmod.path);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GETU32(d->value.chmod.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_chown_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2532 of file comp-file-operation.c.

{
    iiimp_string_delete(data_s, data->value.chown.path);
    iiimp_string_delete(data_s, data->value.chown.user_name);
    iiimp_string_delete(data_s, data->value.chown.group_name);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_chown_new ( IIIMP_data_s *  data_s,
IIIMP_string path,
IIIMP_string user_name,
IIIMP_card32  user_id,
IIIMP_string group_name,
IIIMP_card32  group_id 
)

Definition at line 1186 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    if (NULL == path) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = path->nbyte;
    if (NULL == user_name) {
       value_nbyte += 4;
    } else {
       value_nbyte += user_name->nbyte;
    }
    value_nbyte += 4;
    if (NULL == group_name) {
       value_nbyte += 4;
    } else {
       value_nbyte += group_name->nbyte;
    }
    value_nbyte += 4;
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_CHOWN;
    data->value_nbyte = value_nbyte;
    data->value.chown.path = path;
    data->value.chown.user_name = user_name;
    data->value.chown.user_id = user_id;
    data->value.chown.group_name = group_name;
    data->value.chown.group_id = group_id;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_chown_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3716 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    iiimp_string_pack(data_s, m->value.chown.path, &rest, &p);
    if (NULL == m->value.chown.user_name) {
       PUT32(0, rest, p, data_s->byte_swap);
    } else {
       iiimp_string_pack(data_s, m->value.chown.user_name, &rest, &p);
    }
    PUT32(m->value.chown.user_id, rest, p, data_s->byte_swap);
    if (NULL == m->value.chown.group_name) {
       PUT32(0, rest, p, data_s->byte_swap);
    } else {
       iiimp_string_pack(data_s, m->value.chown.group_name, &rest, &p);
    }
    PUT32(m->value.chown.group_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_chown_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7667 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tchown(");
    iiimp_string_print(data_s, m->value.chown.path);
    (void)fprintf(data_s->print_fp, ", %d (", m->value.chown.user_id);
    iiimp_string_print(data_s, m->value.chown.user_name);
    (void)fprintf(data_s->print_fp, "), %d (", m->value.chown.group_id);
    iiimp_string_print(data_s, m->value.chown.group_name);
    (void)fprintf(data_s->print_fp, "))\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_chown_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5688 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    d->value.chown.path =iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.chown.path) || (rest < 4)) {
       iiimp_string_delete(data_s, d->value.chown.path);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    d->value.chown.user_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.chown.user_name) || (rest < (4 + 4))) {
       iiimp_string_delete(data_s, d->value.chown.path);
       iiimp_string_delete(data_s, d->value.chown.user_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->value.chown.user_id, rest, p, data_s->byte_swap);
    d->value.chown.group_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.chown.group_name) || (rest < 4)) {
       iiimp_string_delete(data_s, d->value.chown.path);
       iiimp_string_delete(data_s, d->value.chown.user_name);
       iiimp_string_delete(data_s, d->value.chown.group_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->value.chown.group_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_close_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2355 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_close_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_descriptor 
)

Definition at line 685 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = 4;
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_CLOSE;
    data->value_nbyte = value_nbyte;
    data->value.close.file_descriptor = file_descriptor;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_close_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3340 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.close.file_descriptor, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_close_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7378 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tclose(%d)\n",
                m->value.close.file_descriptor);
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_close_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5068 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    GET32(d->value.close.file_descriptor, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_closedir_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2661 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_closedir_new ( IIIMP_data_s *  data_s,
IIIMP_card32  directory_handle 
)

Definition at line 1587 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = 4;
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_CLOSEDIR;
    data->value_nbyte = value_nbyte;
    data->value.closedir.directory_handle = directory_handle;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_closedir_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 4013 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.closedir.directory_handle, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_closedir_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7825 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tclosedir(0x%8x)\n",
                m->value.closedir.directory_handle);
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_closedir_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 6164 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    GET32(d->value.closedir.directory_handle, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_creat_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2369 of file comp-file-operation.c.

{
    iiimp_string_delete(data_s, data->value.creat.path);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 714 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    if (NULL == path) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = (path->nbyte + 4);
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_CREAT;
    data->value_nbyte = value_nbyte;
    data->value.creat.path = path;
    data->value.creat.mode = mode;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_creat_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3365 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    iiimp_string_pack(data_s, m->value.creat.path, &rest, &p);
    PUT32(m->value.creat.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_creat_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7389 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tcreat(");
    iiimp_string_print(data_s, m->value.creat.path);
    (void)fprintf(data_s->print_fp, ", 0%03o)\n", m->value.creat.mode);
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_creat_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5105 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    d->value.creat.path = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.creat.path || (rest < 4))) {
       iiimp_string_delete(data_s, d->value.creat.path);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GETU32(d->value.creat.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void iiimp_file_operation_request_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
)

Definition at line 2775 of file comp-file-operation.c.

{
    if (NULL == data) return;

    switch(data->type) {
    case IIIMP_FILE_OPERATION_CLOSE:
       iiimp_file_operation_request_close_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_CREAT:
       iiimp_file_operation_request_creat_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_FTRUNCATE:
       iiimp_file_operation_request_ftruncate_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_LSEEK:
       iiimp_file_operation_request_lseek_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_OPEN:
       iiimp_file_operation_request_open_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_READ:
       iiimp_file_operation_request_read_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_TRUNCATE:
       iiimp_file_operation_request_truncate_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_WRITE:
       iiimp_file_operation_request_write_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_LINK:
       iiimp_file_operation_request_link_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_READLINK:
       iiimp_file_operation_request_readlink_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_RENAME:
       iiimp_file_operation_request_rename_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_SYMLINK:
       iiimp_file_operation_request_symlink_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_UNLINK:
       iiimp_file_operation_request_unlink_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_CHMOD:
       iiimp_file_operation_request_chmod_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_CHOWN:
       iiimp_file_operation_request_chown_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_FCHMOD:
       iiimp_file_operation_request_fchmod_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_FCHOWN:
       iiimp_file_operation_request_fchown_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_LCHOWN:
       iiimp_file_operation_request_lchown_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_UTIME:
       iiimp_file_operation_request_utime_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_UTIMES:
       iiimp_file_operation_request_utimes_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_FSTAT:
       iiimp_file_operation_request_fstat_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_LSTAT:
       iiimp_file_operation_request_lstat_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_STAT:
       iiimp_file_operation_request_stat_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_ACCESS:
       iiimp_file_operation_request_access_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_CLOSEDIR:
       iiimp_file_operation_request_closedir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_OPENDIR:
       iiimp_file_operation_request_opendir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_READDIR:
       iiimp_file_operation_request_readdir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_REWINDDIR:
       iiimp_file_operation_request_rewinddir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_SEEKDIR:
       iiimp_file_operation_request_seekdir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_TELLDIR:
       iiimp_file_operation_request_telldir_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_MKDIR:
       iiimp_file_operation_request_mkdir_delete(data_s, data);
       break;
    case IIIMP_FILE_OPERATION_RMDIR:
       iiimp_file_operation_request_rmdir_delete(data_s, data);
       break;

    case IIIMP_FILE_OPERATION_FCNTL:
       iiimp_file_operation_request_fcntl_delete(data_s, data);
       break;

    default:
       break;
    }
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchmod_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2545 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fchmod_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_descriptor,
IIIMP_card32  mode 
)

Definition at line 1240 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = (4 + 4);
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_FCHMOD;
    data->value_nbyte = value_nbyte;
    data->value.fchmod.file_descriptor = file_descriptor;
    data->value.fchmod.mode = mode;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchmod_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3753 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.fchmod.file_descriptor, rest, p, data_s->byte_swap);
    PUTU32(m->value.fchmod.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchmod_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7683 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tfchmod(%d, 0%3o)\n",
                m->value.fchmod.file_descriptor, m->value.fchmod.mode);
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fchmod_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5750 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    GET32(d->value.fchmod.file_descriptor, rest, p, data_s->byte_swap);
    GETU32(d->value.fchmod.mode, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchown_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2559 of file comp-file-operation.c.

{
    iiimp_string_delete(data_s, data->value.fchown.user_name);
    iiimp_string_delete(data_s, data->value.fchown.group_name);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fchown_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_descriptor,
IIIMP_string user_name,
IIIMP_card32  user_id,
IIIMP_string group_name,
IIIMP_card32  group_id 
)

Definition at line 1271 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = 4;
    if (NULL == user_name) {
       value_nbyte += 4;
    } else {
       value_nbyte += user_name->nbyte;
    }
    value_nbyte += 4;
    if (NULL == group_name) {
       value_nbyte += 4;
    } else {
       value_nbyte += group_name->nbyte;
    }
    value_nbyte += 4;
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_FCHOWN;
    data->value_nbyte = value_nbyte;
    data->value.fchown.file_descriptor = file_descriptor;
    data->value.fchown.user_name = user_name;
    data->value.fchown.user_id = user_id;
    data->value.fchown.group_name = group_name;
    data->value.fchown.group_id = group_id;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchown_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3779 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.fchown.file_descriptor, rest, p, data_s->byte_swap);
    if (NULL == m->value.fchown.user_name) {
       PUT32(0, rest, p, data_s->byte_swap);
    } else {
       iiimp_string_pack(data_s, m->value.fchown.user_name, &rest, &p);
    }
    PUT32(m->value.fchown.user_id, rest, p, data_s->byte_swap);
    if (NULL == m->value.fchown.group_name) {
       PUT32(0, rest, p, data_s->byte_swap);
    } else {
       iiimp_string_pack(data_s, m->value.fchown.group_name, &rest, &p);
    }
    PUT32(m->value.fchown.group_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_fchown_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7694 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tfchown(%d, %d (",
                m->value.fchown.file_descriptor,
                m->value.fchown.user_id);
    iiimp_string_print(data_s, m->value.fchown.user_name);
    (void)fprintf(data_s->print_fp, "), %d (", m->value.fchown.group_id);
    iiimp_string_print(data_s, m->value.fchown.group_name);
    (void)fprintf(data_s->print_fp, "))\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fchown_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 5788 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < (4 + 4 + 4 + 4))) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    GET32(d->value.fchown.file_descriptor, rest, p, data_s->byte_swap);
    d->value.fchown.user_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.fchown.user_name) || (rest < (4 + 4))) {
       iiimp_string_delete(data_s, d->value.fchown.user_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->value.fchown.user_id, rest, p, data_s->byte_swap);
    d->value.fchown.group_name = iiimp_string_unpack(data_s, &rest, &p, rest);
    if ((NULL == d->value.fchown.group_name) || (rest < 4)) {
       iiimp_string_delete(data_s, d->value.fchown.user_name);
       iiimp_string_delete(data_s, d->value.fchown.group_name);
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }
    GET32(d->value.fchown.group_id, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_fcntl_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2764 of file comp-file-operation.c.

{
    iiimp_file_operation_data_fcntl_delete(data_s, data->value.fcntl.arg);
    free(data);
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1838 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    if (NULL == arg) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = (4 + 4 + arg->nbyte);
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_FCNTL;
    data->value_nbyte = value_nbyte;
    data->value.fcntl.file_descriptor = file_descriptor;
    data->value.fcntl.cmd = cmd;
    data->value.fcntl.arg = arg;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fcntl_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 4215 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;
    int              cmd;

    rest = *nbyte;
    p = *ptr;

    cmd = iiimp_file_operation_fcntl_cmd_l2i(m->value.fcntl.cmd);

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.fcntl.file_descriptor, rest, p, data_s->byte_swap);
    PUT32(cmd, rest, p, data_s->byte_swap);

    switch (m->value.fcntl.cmd) {
    case F_SETFD:
       iiimp_file_operation_data_fcntl_setfd_pack(data_s, m->value.fcntl.arg,
                                             &rest, &p);
       break;
    case F_SETFL:
       iiimp_file_operation_data_fcntl_setfl_pack(data_s, m->value.fcntl.arg,
                                             &rest, &p);
       break;
    case F_GETLK:
    case F_SETLK:
    case F_SETLKW:
       iiimp_file_operation_data_fcntl_flock_pack(data_s, m->value.fcntl.arg,
                                             &rest, &p);
       break;
    default:
       break;
    }

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_fcntl_print ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m 
) [static]

Definition at line 7937 of file comp-file-operation.c.

{
    if (NULL == m) return;
    (void)fprintf(data_s->print_fp, "\tfcntl(%d, %s, ",
                m->value.fcntl.file_descriptor,
                fcntl_cmd_string(m->value.fcntl.cmd));

    switch (m->value.fcntl.cmd) {
    case F_SETFD:
       iiimp_file_operation_data_fcntl_setfd_print(data_s, m->value.fcntl.arg);
       break;
    case F_SETFL:
       iiimp_file_operation_data_fcntl_setfl_print(data_s, m->value.fcntl.arg);
       break;
    case F_GETLK:
    case F_SETLK:
    case F_SETLKW:
       iiimp_file_operation_data_fcntl_flock_print(data_s, m->value.fcntl.arg);
       break;
    default:
       (void)fprintf(data_s->print_fp, "UNKNOWN");
       break;
    }
    (void)fprintf(data_s->print_fp, ")\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fcntl_unpack ( IIIMP_data_s *  data_s,
size_t *  nbyte,
const uchar_t **  ptr,
size_t  nbyte_max 
)

Definition at line 6478 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * d;
    size_t                         rest;
    const uchar_t *                p;
    int                                   cmd;

    rest = nbyte_max;
    p = *ptr;

    if ((*nbyte < rest) ||  (rest < 4)) {
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    d = (IIIMP_file_operation_request *)
       malloc(sizeof (IIIMP_file_operation_request));
    if (NULL == d) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    GET32(d->type, rest, p, data_s->byte_swap);
    GET32(d->value_nbyte, rest, p, data_s->byte_swap);
    GET32(d->value.fcntl.file_descriptor, rest, p, data_s->byte_swap);
    GET32(cmd, rest, p, data_s->byte_swap);
    d->value.fcntl.cmd = iiimp_file_operation_fcntl_cmd_i2l(cmd);

    switch (d->value.fcntl.cmd) {
    case F_SETFD:
       d->value.fcntl.arg =
           iiimp_file_operation_data_fcntl_setfd_unpack(data_s, &rest,
                                                  &p, rest);
       break;
    case F_SETFL:
       d->value.fcntl.arg =
           iiimp_file_operation_data_fcntl_setfl_unpack(data_s, &rest,
                                                  &p, rest);
       break;
    case F_GETLK:
    case F_SETLK:
    case F_SETLKW:
       d->value.fcntl.arg =
           iiimp_file_operation_data_fcntl_flock_unpack(data_s, &rest,
                                                  &p, rest);
       break;
    default:
       d->value.fcntl.arg = NULL;
       break;
    }
    if (NULL == d->value.fcntl.arg) {
       free(d);
       data_s->status = IIIMP_DATA_INVALID;
       return NULL;
    }

    *nbyte = rest;
    *ptr = p;

    return d;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void iiimp_file_operation_request_fstat_delete ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request data 
) [static]

Definition at line 2614 of file comp-file-operation.c.

{
#if defined(lint) && defined(HAVE_NOTE_H)
    NOTE(ARGUNUSED(data_s))
#endif /* lint && HAVE_NOTE_H */

    free(data);
    return;
}

Here is the caller graph for this function:

IIIMP_file_operation_request* iiimp_file_operation_request_fstat_new ( IIIMP_data_s *  data_s,
IIIMP_card32  file_descriptor 
)

Definition at line 1454 of file comp-file-operation.c.

{
    IIIMP_file_operation_request * data;
    size_t                         nbyte;
    size_t                         value_nbyte;

    data = (IIIMP_file_operation_request *)
       malloc(sizeof(IIIMP_file_operation_request));
    if (NULL == data) {
       data_s->status = IIIMP_DATA_MALLOC_ERROR;
       return NULL;
    }

    value_nbyte = 4;
    nbyte = (4 + 4 + value_nbyte);

    data->nbyte = nbyte;
    data->type = IIIMP_FILE_OPERATION_FSTAT;
    data->value_nbyte = value_nbyte;
    data->value.fstat.file_descriptor = file_descriptor;
    data->next = NULL;

    return data;
}

Here is the caller graph for this function:

static void iiimp_file_operation_request_fstat_pack ( IIIMP_data_s *  data_s,
IIIMP_file_operation_request m,
size_t *  nbyte,
uchar_t **  ptr 
) [static]

Definition at line 3909 of file comp-file-operation.c.

{
    uchar_t * p;
    size_t    rest;
    int              i;

    rest = *nbyte;
    p = *ptr;

    PUT32(m->type, rest, p, data_s->byte_swap);
    PUT32(m->value_nbyte, rest, p, data_s->byte_swap);
    PUT32(m->value.fstat.file_descriptor, rest, p, data_s->byte_swap);

    *nbyte = rest;
    *ptr = p;

    return;
}

Here is the caller graph for this function: