Octopus
io_binary.c File Reference

Go to the source code of this file.

Classes

struct  flock
 
struct  timespec
 
struct  stat
 
struct  __mbstate_t
 
struct  _G_fpos_t
 
struct  _G_fpos64_t
 
struct  _IO_FILE
 
struct  ldiv_t
 
struct  lldiv_t
 
struct  __sigset_t
 
struct  timeval
 
struct  fd_set
 
union  __atomic_wide_counter
 
struct  __pthread_internal_list
 
struct  __pthread_internal_slist
 
struct  __pthread_mutex_s
 
struct  __pthread_rwlock_arch_t
 
struct  __pthread_cond_s
 
struct  __once_flag
 
union  pthread_mutexattr_t
 
union  pthread_condattr_t
 
union  pthread_attr_t
 
union  pthread_mutex_t
 
union  pthread_cond_t
 
union  pthread_rwlock_t
 
union  pthread_rwlockattr_t
 
union  pthread_barrier_t
 
union  pthread_barrierattr_t
 
union  multi
 
struct  header_t
 

Typedefs

typedef long int __clock_t
 
typedef unsigned long int __rlim_t
 
typedef unsigned long int __rlim64_t
 
typedef unsigned int __id_t
 
typedef long int __time_t
 
typedef unsigned int __useconds_t
 
typedef long int __suseconds_t
 
typedef long int __suseconds64_t
 
typedef int __daddr_t
 
typedef int __key_t
 
typedef int __clockid_t
 
typedef void * __timer_t
 
typedef long int __blksize_t
 
typedef long int __blkcnt_t
 
typedef long int __blkcnt64_t
 
typedef unsigned long int __fsblkcnt_t
 
typedef unsigned long int __fsblkcnt64_t
 
typedef unsigned long int __fsfilcnt_t
 
typedef unsigned long int __fsfilcnt64_t
 
typedef long int __fsword_t
 
typedef long int __ssize_t
 
typedef long int __syscall_slong_t
 
typedef unsigned long int __syscall_ulong_t
 
typedef __off64_t __loff_t
 
typedef char * __caddr_t
 
typedef long int __intptr_t
 
typedef unsigned int __socklen_t
 
typedef int __sig_atomic_t
 
typedef __mode_t mode_t
 
typedef __off64_t off_t
 
typedef __pid_t pid_t
 
typedef __time_t time_t
 
typedef float float_t
 
typedef double double_t
 
typedef __int8_t int8_t
 
typedef __int16_t int16_t
 
typedef __int32_t int32_t
 
typedef __int64_t int64_t
 
typedef __uint8_t uint8_t
 
typedef __uint16_t uint16_t
 
typedef __uint32_t uint32_t
 
typedef __uint64_t uint64_t
 
typedef __int_least8_t int_least8_t
 
typedef __int_least16_t int_least16_t
 
typedef __int_least32_t int_least32_t
 
typedef __int_least64_t int_least64_t
 
typedef __uint_least8_t uint_least8_t
 
typedef __uint_least16_t uint_least16_t
 
typedef __uint_least32_t uint_least32_t
 
typedef __uint_least64_t uint_least64_t
 
typedef signed char int_fast8_t
 
typedef long int int_fast16_t
 
typedef long int int_fast32_t
 
typedef long int int_fast64_t
 
typedef unsigned char uint_fast8_t
 
typedef unsigned long int uint_fast16_t
 
typedef unsigned long int uint_fast32_t
 
typedef unsigned long int uint_fast64_t
 
typedef long int intptr_t
 
typedef unsigned long int uintptr_t
 
typedef __intmax_t intmax_t
 
typedef __uintmax_t uintmax_t
 
typedef long unsigned int size_t
 
typedef __builtin_va_list __gnuc_va_list
 
typedef struct _G_fpos_t __fpos_t
 
typedef struct _G_fpos64_t __fpos64_t
 
typedef struct _IO_FILE __FILE
 
typedef struct _IO_FILE FILE
 
typedef void _IO_lock_t
 
typedef __gnuc_va_list va_list
 
typedef __ssize_t ssize_t
 
typedef __fpos64_t fpos_t
 
typedef __sigset_t sigset_t
 
typedef __suseconds_t suseconds_t
 
typedef long int __fd_mask
 
typedef __fd_mask fd_mask
 
typedef __blksize_t blksize_t
 
typedef __blkcnt64_t blkcnt_t
 
typedef __fsblkcnt64_t fsblkcnt_t
 
typedef __fsfilcnt64_t fsfilcnt_t
 
typedef struct __pthread_internal_list __pthread_list_t
 
typedef struct __pthread_internal_slist __pthread_slist_t
 
typedef unsigned int __tss_t
 
typedef unsigned long int __thrd_t
 
typedef unsigned long int pthread_t
 
typedef unsigned int pthread_key_t
 
typedef int pthread_once_t
 
typedef union pthread_attr_t pthread_attr_t
 
typedef volatile int pthread_spinlock_t
 
typedef struct __locale_struct * __locale_t
 
typedef __locale_t locale_t
 

Enumerations

enum  {
  _SC_ARG_MAX , _SC_CHILD_MAX , _SC_CLK_TCK , _SC_NGROUPS_MAX ,
  _SC_OPEN_MAX , _SC_STREAM_MAX , _SC_TZNAME_MAX , _SC_JOB_CONTROL ,
  _SC_SAVED_IDS , _SC_REALTIME_SIGNALS , _SC_PRIORITY_SCHEDULING , _SC_TIMERS ,
  _SC_ASYNCHRONOUS_IO , _SC_PRIORITIZED_IO , _SC_SYNCHRONIZED_IO , _SC_FSYNC ,
  _SC_MAPPED_FILES , _SC_MEMLOCK , _SC_MEMLOCK_RANGE , _SC_MEMORY_PROTECTION ,
  _SC_MESSAGE_PASSING , _SC_SEMAPHORES , _SC_SHARED_MEMORY_OBJECTS , _SC_AIO_LISTIO_MAX ,
  _SC_AIO_MAX , _SC_AIO_PRIO_DELTA_MAX , _SC_DELAYTIMER_MAX , _SC_MQ_OPEN_MAX ,
  _SC_MQ_PRIO_MAX , _SC_VERSION , _SC_PAGESIZE , _SC_RTSIG_MAX ,
  _SC_SEM_NSEMS_MAX , _SC_SEM_VALUE_MAX , _SC_SIGQUEUE_MAX , _SC_TIMER_MAX ,
  _SC_BC_BASE_MAX , _SC_BC_DIM_MAX , _SC_BC_SCALE_MAX , _SC_BC_STRING_MAX ,
  _SC_COLL_WEIGHTS_MAX , _SC_EQUIV_CLASS_MAX , _SC_EXPR_NEST_MAX , _SC_LINE_MAX ,
  _SC_RE_DUP_MAX , _SC_CHARCLASS_NAME_MAX , _SC_2_VERSION , _SC_2_C_BIND ,
  _SC_2_C_DEV , _SC_2_FORT_DEV , _SC_2_FORT_RUN , _SC_2_SW_DEV ,
  _SC_2_LOCALEDEF , _SC_PII , _SC_PII_XTI , _SC_PII_SOCKET ,
  _SC_PII_INTERNET , _SC_PII_OSI , _SC_POLL , _SC_SELECT ,
  _SC_UIO_MAXIOV , _SC_IOV_MAX = _SC_UIO_MAXIOV , _SC_PII_INTERNET_STREAM , _SC_PII_INTERNET_DGRAM ,
  _SC_PII_OSI_COTS , _SC_PII_OSI_CLTS , _SC_PII_OSI_M , _SC_T_IOV_MAX ,
  _SC_THREADS , _SC_THREAD_SAFE_FUNCTIONS , _SC_GETGR_R_SIZE_MAX , _SC_GETPW_R_SIZE_MAX ,
  _SC_LOGIN_NAME_MAX , _SC_TTY_NAME_MAX , _SC_THREAD_DESTRUCTOR_ITERATIONS , _SC_THREAD_KEYS_MAX ,
  _SC_THREAD_STACK_MIN , _SC_THREAD_THREADS_MAX , _SC_THREAD_ATTR_STACKADDR , _SC_THREAD_ATTR_STACKSIZE ,
  _SC_THREAD_PRIORITY_SCHEDULING , _SC_THREAD_PRIO_INHERIT , _SC_THREAD_PRIO_PROTECT , _SC_THREAD_PROCESS_SHARED ,
  _SC_NPROCESSORS_CONF , _SC_NPROCESSORS_ONLN , _SC_PHYS_PAGES , _SC_AVPHYS_PAGES ,
  _SC_ATEXIT_MAX , _SC_PASS_MAX , _SC_XOPEN_VERSION , _SC_XOPEN_XCU_VERSION ,
  _SC_XOPEN_UNIX , _SC_XOPEN_CRYPT , _SC_XOPEN_ENH_I18N , _SC_XOPEN_SHM ,
  _SC_2_CHAR_TERM , _SC_2_C_VERSION , _SC_2_UPE , _SC_XOPEN_XPG2 ,
  _SC_XOPEN_XPG3 , _SC_XOPEN_XPG4 , _SC_CHAR_BIT , _SC_CHAR_MAX ,
  _SC_CHAR_MIN , _SC_INT_MAX , _SC_INT_MIN , _SC_LONG_BIT ,
  _SC_WORD_BIT , _SC_MB_LEN_MAX , _SC_NZERO , _SC_SSIZE_MAX ,
  _SC_SCHAR_MAX , _SC_SCHAR_MIN , _SC_SHRT_MAX , _SC_SHRT_MIN ,
  _SC_UCHAR_MAX , _SC_UINT_MAX , _SC_ULONG_MAX , _SC_USHRT_MAX ,
  _SC_NL_ARGMAX , _SC_NL_LANGMAX , _SC_NL_MSGMAX , _SC_NL_NMAX ,
  _SC_NL_SETMAX , _SC_NL_TEXTMAX , _SC_XBS5_ILP32_OFF32 , _SC_XBS5_ILP32_OFFBIG ,
  _SC_XBS5_LP64_OFF64 , _SC_XBS5_LPBIG_OFFBIG , _SC_XOPEN_LEGACY , _SC_XOPEN_REALTIME ,
  _SC_XOPEN_REALTIME_THREADS , _SC_ADVISORY_INFO , _SC_BARRIERS , _SC_BASE ,
  _SC_C_LANG_SUPPORT , _SC_C_LANG_SUPPORT_R , _SC_CLOCK_SELECTION , _SC_CPUTIME ,
  _SC_THREAD_CPUTIME , _SC_DEVICE_IO , _SC_DEVICE_SPECIFIC , _SC_DEVICE_SPECIFIC_R ,
  _SC_FD_MGMT , _SC_FIFO , _SC_PIPE , _SC_FILE_ATTRIBUTES ,
  _SC_FILE_LOCKING , _SC_FILE_SYSTEM , _SC_MONOTONIC_CLOCK , _SC_MULTI_PROCESS ,
  _SC_SINGLE_PROCESS , _SC_NETWORKING , _SC_READER_WRITER_LOCKS , _SC_SPIN_LOCKS ,
  _SC_REGEXP , _SC_REGEX_VERSION , _SC_SHELL , _SC_SIGNALS ,
  _SC_SPAWN , _SC_SPORADIC_SERVER , _SC_THREAD_SPORADIC_SERVER , _SC_SYSTEM_DATABASE ,
  _SC_SYSTEM_DATABASE_R , _SC_TIMEOUTS , _SC_TYPED_MEMORY_OBJECTS , _SC_USER_GROUPS ,
  _SC_USER_GROUPS_R , _SC_2_PBS , _SC_2_PBS_ACCOUNTING , _SC_2_PBS_LOCATE ,
  _SC_2_PBS_MESSAGE , _SC_2_PBS_TRACK , _SC_SYMLOOP_MAX , _SC_STREAMS ,
  _SC_2_PBS_CHECKPOINT , _SC_V6_ILP32_OFF32 , _SC_V6_ILP32_OFFBIG , _SC_V6_LP64_OFF64 ,
  _SC_V6_LPBIG_OFFBIG , _SC_HOST_NAME_MAX , _SC_TRACE , _SC_TRACE_EVENT_FILTER ,
  _SC_TRACE_INHERIT , _SC_TRACE_LOG , _SC_LEVEL1_ICACHE_SIZE , _SC_LEVEL1_ICACHE_ASSOC ,
  _SC_LEVEL1_ICACHE_LINESIZE , _SC_LEVEL1_DCACHE_SIZE , _SC_LEVEL1_DCACHE_ASSOC , _SC_LEVEL1_DCACHE_LINESIZE ,
  _SC_LEVEL2_CACHE_SIZE , _SC_LEVEL2_CACHE_ASSOC , _SC_LEVEL2_CACHE_LINESIZE , _SC_LEVEL3_CACHE_SIZE ,
  _SC_LEVEL3_CACHE_ASSOC , _SC_LEVEL3_CACHE_LINESIZE , _SC_LEVEL4_CACHE_SIZE , _SC_LEVEL4_CACHE_ASSOC ,
  _SC_LEVEL4_CACHE_LINESIZE , _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50 , _SC_RAW_SOCKETS , _SC_V7_ILP32_OFF32 ,
  _SC_V7_ILP32_OFFBIG , _SC_V7_LP64_OFF64 , _SC_V7_LPBIG_OFFBIG , _SC_SS_REPL_MAX ,
  _SC_TRACE_EVENT_NAME_MAX , _SC_TRACE_NAME_MAX , _SC_TRACE_SYS_MAX , _SC_TRACE_USER_EVENT_MAX ,
  _SC_XOPEN_STREAMS , _SC_THREAD_ROBUST_PRIO_INHERIT , _SC_THREAD_ROBUST_PRIO_PROTECT , _SC_MINSIGSTKSZ ,
  _SC_SIGSTKSZ
}
 
enum  {
  _CS_PATH , _CS_V6_WIDTH_RESTRICTED_ENVS , _CS_GNU_LIBC_VERSION , _CS_GNU_LIBPTHREAD_VERSION ,
  _CS_V5_WIDTH_RESTRICTED_ENVS , _CS_V7_WIDTH_RESTRICTED_ENVS , _CS_LFS_CFLAGS = 1000 , _CS_LFS_LDFLAGS ,
  _CS_LFS_LIBS , _CS_LFS_LINTFLAGS , _CS_LFS64_CFLAGS , _CS_LFS64_LDFLAGS ,
  _CS_LFS64_LIBS , _CS_LFS64_LINTFLAGS , _CS_XBS5_ILP32_OFF32_CFLAGS = 1100 , _CS_XBS5_ILP32_OFF32_LDFLAGS ,
  _CS_XBS5_ILP32_OFF32_LIBS , _CS_XBS5_ILP32_OFF32_LINTFLAGS , _CS_XBS5_ILP32_OFFBIG_CFLAGS , _CS_XBS5_ILP32_OFFBIG_LDFLAGS ,
  _CS_XBS5_ILP32_OFFBIG_LIBS , _CS_XBS5_ILP32_OFFBIG_LINTFLAGS , _CS_XBS5_LP64_OFF64_CFLAGS , _CS_XBS5_LP64_OFF64_LDFLAGS ,
  _CS_XBS5_LP64_OFF64_LIBS , _CS_XBS5_LP64_OFF64_LINTFLAGS , _CS_XBS5_LPBIG_OFFBIG_CFLAGS , _CS_XBS5_LPBIG_OFFBIG_LDFLAGS ,
  _CS_XBS5_LPBIG_OFFBIG_LIBS , _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS , _CS_POSIX_V6_ILP32_OFF32_CFLAGS , _CS_POSIX_V6_ILP32_OFF32_LDFLAGS ,
  _CS_POSIX_V6_ILP32_OFF32_LIBS , _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS , _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS , _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS ,
  _CS_POSIX_V6_ILP32_OFFBIG_LIBS , _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS , _CS_POSIX_V6_LP64_OFF64_CFLAGS , _CS_POSIX_V6_LP64_OFF64_LDFLAGS ,
  _CS_POSIX_V6_LP64_OFF64_LIBS , _CS_POSIX_V6_LP64_OFF64_LINTFLAGS , _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS , _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS ,
  _CS_POSIX_V6_LPBIG_OFFBIG_LIBS , _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS , _CS_POSIX_V7_ILP32_OFF32_CFLAGS , _CS_POSIX_V7_ILP32_OFF32_LDFLAGS ,
  _CS_POSIX_V7_ILP32_OFF32_LIBS , _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS , _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS , _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS ,
  _CS_POSIX_V7_ILP32_OFFBIG_LIBS , _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS , _CS_POSIX_V7_LP64_OFF64_CFLAGS , _CS_POSIX_V7_LP64_OFF64_LDFLAGS ,
  _CS_POSIX_V7_LP64_OFF64_LIBS , _CS_POSIX_V7_LP64_OFF64_LINTFLAGS , _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS , _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS ,
  _CS_POSIX_V7_LPBIG_OFFBIG_LIBS , _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS , _CS_V6_ENV , _CS_V7_ENV
}
 

Functions

void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) __attribute__((__nothrow__
 
void __leaf__ __attribute__ ((__noreturn__))
 
void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) __attribute__((__nothrow__
 
void __assert (const char *__assertion, const char *__file, int __line) __attribute__((__nothrow__
 
int * __errno_location (void)
 
int fcntl (int __fd, int __cmd,...) __asm__("" "fcntl64")
 
int open (const char *__file, int __oflag,...) __asm__("" "open64") __attribute__((__nonnull__(1)))
 
int openat (int __fd, const char *__file, int __oflag,...) __asm__("" "openat64") __attribute__((__nonnull__(2)))
 
int creat (const char *__file, mode_t __mode) __asm__("" "creat64") __attribute__((__nonnull__(1)))
 
int lockf (int __fd, int __cmd, __off64_t __len) __asm__("" "lockf64")
 
int posix_fadvise (int __fd, __off64_t __offset, __off64_t __len, int __advise) __asm__("" "posix_fadvise64") __attribute__((__nothrow__
 
int posix_fallocate (int __fd, __off64_t __offset, __off64_t __len) __asm__("" "posix_fallocate64")
 
int __fpclassify (double __value) __attribute__((__nothrow__
 
int __leaf__ __attribute__ ((__const__))
 
int __signbit (double __value) __attribute__((__nothrow__
 
int __isinf (double __value) __attribute__((__nothrow__
 
int __finite (double __value) __attribute__((__nothrow__
 
int __isnan (double __value) __attribute__((__nothrow__
 
int __iseqsig (double __x, double __y) __attribute__((__nothrow__
 
int __issignaling (double __value) __attribute__((__nothrow__
 
double acos (double __x) __attribute__((__nothrow__
 
double __acos (double __x) __attribute__((__nothrow__
 
double asin (double __x) __attribute__((__nothrow__
 
double __asin (double __x) __attribute__((__nothrow__
 
double atan (double __x) __attribute__((__nothrow__
 
double __atan (double __x) __attribute__((__nothrow__
 
double atan2 (double __y, double __x) __attribute__((__nothrow__
 
double __atan2 (double __y, double __x) __attribute__((__nothrow__
 
double cos (double __x) __attribute__((__nothrow__
 
double __cos (double __x) __attribute__((__nothrow__
 
double sin (double __x) __attribute__((__nothrow__
 
double __sin (double __x) __attribute__((__nothrow__
 
double tan (double __x) __attribute__((__nothrow__
 
double __tan (double __x) __attribute__((__nothrow__
 
double cosh (double __x) __attribute__((__nothrow__
 
double __cosh (double __x) __attribute__((__nothrow__
 
double sinh (double __x) __attribute__((__nothrow__
 
double __sinh (double __x) __attribute__((__nothrow__
 
double tanh (double __x) __attribute__((__nothrow__
 
double __tanh (double __x) __attribute__((__nothrow__
 
double acosh (double __x) __attribute__((__nothrow__
 
double __acosh (double __x) __attribute__((__nothrow__
 
double asinh (double __x) __attribute__((__nothrow__
 
double __asinh (double __x) __attribute__((__nothrow__
 
double atanh (double __x) __attribute__((__nothrow__
 
double __atanh (double __x) __attribute__((__nothrow__
 
double exp (double __x) __attribute__((__nothrow__
 
double __exp (double __x) __attribute__((__nothrow__
 
double frexp (double __x, int *__exponent) __attribute__((__nothrow__
 
double __frexp (double __x, int *__exponent) __attribute__((__nothrow__
 
double ldexp (double __x, int __exponent) __attribute__((__nothrow__
 
double __ldexp (double __x, int __exponent) __attribute__((__nothrow__
 
double log (double __x) __attribute__((__nothrow__
 
double __log (double __x) __attribute__((__nothrow__
 
double log10 (double __x) __attribute__((__nothrow__
 
double __log10 (double __x) __attribute__((__nothrow__
 
double modf (double __x, double *__iptr) __attribute__((__nothrow__
 
double __modf (double __x, double *__iptr) __attribute__((__nothrow__
 
double __leaf__ __attribute__ ((__nonnull__(2)))
 
double expm1 (double __x) __attribute__((__nothrow__
 
double __expm1 (double __x) __attribute__((__nothrow__
 
double log1p (double __x) __attribute__((__nothrow__
 
double __log1p (double __x) __attribute__((__nothrow__
 
double logb (double __x) __attribute__((__nothrow__
 
double __logb (double __x) __attribute__((__nothrow__
 
double exp2 (double __x) __attribute__((__nothrow__
 
double __exp2 (double __x) __attribute__((__nothrow__
 
double log2 (double __x) __attribute__((__nothrow__
 
double __log2 (double __x) __attribute__((__nothrow__
 
double pow (double __x, double __y) __attribute__((__nothrow__
 
double __pow (double __x, double __y) __attribute__((__nothrow__
 
double sqrt (double __x) __attribute__((__nothrow__
 
double __sqrt (double __x) __attribute__((__nothrow__
 
double hypot (double __x, double __y) __attribute__((__nothrow__
 
double __hypot (double __x, double __y) __attribute__((__nothrow__
 
double cbrt (double __x) __attribute__((__nothrow__
 
double __cbrt (double __x) __attribute__((__nothrow__
 
double ceil (double __x) __attribute__((__nothrow__
 
double __ceil (double __x) __attribute__((__nothrow__
 
double fabs (double __x) __attribute__((__nothrow__
 
double __fabs (double __x) __attribute__((__nothrow__
 
double floor (double __x) __attribute__((__nothrow__
 
double __floor (double __x) __attribute__((__nothrow__
 
double fmod (double __x, double __y) __attribute__((__nothrow__
 
double __fmod (double __x, double __y) __attribute__((__nothrow__
 
int isinf (double __value) __attribute__((__nothrow__
 
int finite (double __value) __attribute__((__nothrow__
 
double drem (double __x, double __y) __attribute__((__nothrow__
 
double __drem (double __x, double __y) __attribute__((__nothrow__
 
double significand (double __x) __attribute__((__nothrow__
 
double __significand (double __x) __attribute__((__nothrow__
 
double copysign (double __x, double __y) __attribute__((__nothrow__
 
double __copysign (double __x, double __y) __attribute__((__nothrow__
 
double nan (const char *__tagb) __attribute__((__nothrow__
 
double __nan (const char *__tagb) __attribute__((__nothrow__
 
int isnan (double __value) __attribute__((__nothrow__
 
double j0 (extern double lgamma_r(double)
 
int remove (const char *__filename) __attribute__((__nothrow__
 
int rename (const char *__old, const char *__new) __attribute__((__nothrow__
 
int renameat (int __oldfd, const char *__old, int __newfd, const char *__new) __attribute__((__nothrow__
 
int fclose (FILE *__stream)
 
FILEtmpfile (void)
 
size_t __ctype_get_mb_cur_max (void)
 
static __inline __uint32_t __bswap_32 (__uint32_t __bsx)
 
static __extension__ __inline __uint64_t __bswap_64 (__uint64_t __bsx)
 
static __inline __uint16_t __uint16_identity (__uint16_t __x)
 
static __inline __uint32_t __uint32_identity (__uint32_t __x)
 
static __inline __uint64_t __uint64_identity (__uint64_t __x)
 
int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout)
 
int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask)
 
long int random (void)
 
int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) __attribute__((__nothrow__
 
int __leaf__ __attribute__ ((__nonnull__(1, 2)))
 
int srandom_r (unsigned int __seed, struct random_data *__buf) __attribute__((__nothrow__
 
int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) __attribute__((__nothrow__
 
int __leaf__ __attribute__ ((__nonnull__(2, 4)))
 
int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) __attribute__((__nothrow__
 
int rand (void)
 
int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__((__nothrow__
 
int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__((__nothrow__
 
int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__((__nothrow__
 
int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__((__nothrow__
 
int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__((__nothrow__
 
int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__((__nothrow__
 
int srand48_r (long int __seedval, struct drand48_data *__buffer) __attribute__((__nothrow__
 
int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) __attribute__((__nothrow__
 
int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) __attribute__((__nothrow__
 
__uint32_t arc4random (void)
 
int strcoll_l (const char *__s1, const char *__s2, locale_t __l) __attribute__((__nothrow__
 
int __leaf__ __attribute__ ((__pure__))
 
long int pathconf (const char *__path, int __name) __attribute__((__nothrow__
 
long int __leaf__ __attribute__ ((__nonnull__(1)))
 
long int fpathconf (int __fd, int __name) __attribute__((__nothrow__
 
long int sysconf (int __name) __attribute__((__nothrow__
 
size_t confstr (int __name, char *__buf, size_t __len) __attribute__((__nothrow__
 
size_t __leaf__ __attribute__ ((__access__(__write_only__, 2, 3)))
 
__pid_t getpid (void)
 
static void inf_error (const char *msg)
 
static void endian_convert (const int size, char *aa)
 
static void convert (multi *in, multi *out, int t_in, int t_out)
 
static void init_header (header_t *hp)
 
static int check_header (header_t *hp, int *correct_endianness)
 
void io_write_header (const int64_t *np, int *type, int *ierr, int *iio, char *fname)
 
void write_binary (const int64_t *np, void *ff, int *type, int *ierr, int *iio, int *nhd, int *flpe, char *fname)
 
void io_read_header (header_t *hp, int *correct_endianness, int *ierr, int *iio, char *fname)
 
void read_binary (const int64_t *np, const int64_t *offset, byte *ff, int *output_type, int *ierr, int *iio, char *fname)
 
void get_info_binary (int64_t *np, int *type, int64_t *file_size, int *ierr, int *iio, char *fname)
 

Variables

 __fsid_t
 
int __leaf__
 
FILEstdin
 
FILEstdout
 
FILEstderr
 
 div_t
 
static const int64_t base_size_of [6] = {4, 8, 4, 8, 4, 8}
 
static const int64_t is_integer [6] = {0, 0, 0, 0, 1, 1}
 

Typedef Documentation

◆ __clock_t

typedef long int __clock_t

Definition at line 169 of file io_binary.c.

◆ __rlim_t

typedef unsigned long int __rlim_t

Definition at line 170 of file io_binary.c.

◆ __rlim64_t

typedef unsigned long int __rlim64_t

Definition at line 171 of file io_binary.c.

◆ __id_t

typedef unsigned int __id_t

Definition at line 172 of file io_binary.c.

◆ __time_t

typedef long int __time_t

Definition at line 173 of file io_binary.c.

◆ __useconds_t

typedef unsigned int __useconds_t

Definition at line 174 of file io_binary.c.

◆ __suseconds_t

typedef long int __suseconds_t

Definition at line 175 of file io_binary.c.

◆ __suseconds64_t

typedef long int __suseconds64_t

Definition at line 176 of file io_binary.c.

◆ __daddr_t

typedef int __daddr_t

Definition at line 178 of file io_binary.c.

◆ __key_t

typedef int __key_t

Definition at line 179 of file io_binary.c.

◆ __clockid_t

typedef int __clockid_t

Definition at line 182 of file io_binary.c.

◆ __timer_t

typedef void* __timer_t

Definition at line 185 of file io_binary.c.

◆ __blksize_t

typedef long int __blksize_t

Definition at line 188 of file io_binary.c.

◆ __blkcnt_t

typedef long int __blkcnt_t

Definition at line 193 of file io_binary.c.

◆ __blkcnt64_t

typedef long int __blkcnt64_t

Definition at line 194 of file io_binary.c.

◆ __fsblkcnt_t

typedef unsigned long int __fsblkcnt_t

Definition at line 197 of file io_binary.c.

◆ __fsblkcnt64_t

typedef unsigned long int __fsblkcnt64_t

Definition at line 198 of file io_binary.c.

◆ __fsfilcnt_t

typedef unsigned long int __fsfilcnt_t

Definition at line 201 of file io_binary.c.

◆ __fsfilcnt64_t

typedef unsigned long int __fsfilcnt64_t

Definition at line 202 of file io_binary.c.

◆ __fsword_t

typedef long int __fsword_t

Definition at line 205 of file io_binary.c.

◆ __ssize_t

typedef long int __ssize_t

Definition at line 207 of file io_binary.c.

◆ __syscall_slong_t

typedef long int __syscall_slong_t

Definition at line 210 of file io_binary.c.

◆ __syscall_ulong_t

typedef unsigned long int __syscall_ulong_t

Definition at line 212 of file io_binary.c.

◆ __loff_t

Definition at line 216 of file io_binary.c.

◆ __caddr_t

typedef char* __caddr_t

Definition at line 217 of file io_binary.c.

◆ __intptr_t

typedef long int __intptr_t

Definition at line 220 of file io_binary.c.

◆ __socklen_t

typedef unsigned int __socklen_t

Definition at line 223 of file io_binary.c.

◆ __sig_atomic_t

typedef int __sig_atomic_t

Definition at line 228 of file io_binary.c.

◆ mode_t

typedef __mode_t mode_t

Definition at line 257 of file io_binary.c.

◆ off_t

typedef __off64_t off_t

Definition at line 265 of file io_binary.c.

◆ pid_t

typedef __pid_t pid_t

Definition at line 267 of file io_binary.c.

◆ time_t

typedef __time_t time_t

Definition at line 286 of file io_binary.c.

◆ float_t

typedef float float_t

Definition at line 418 of file io_binary.c.

◆ double_t

typedef double double_t

Definition at line 419 of file io_binary.c.

◆ int8_t

typedef __int8_t int8_t

Definition at line 1325 of file io_binary.c.

◆ int16_t

typedef __int16_t int16_t

Definition at line 1326 of file io_binary.c.

◆ int32_t

typedef __int32_t int32_t

Definition at line 1327 of file io_binary.c.

◆ int64_t

typedef __int64_t int64_t

Definition at line 1328 of file io_binary.c.

◆ uint8_t

typedef __uint8_t uint8_t

Definition at line 1334 of file io_binary.c.

◆ uint16_t

Definition at line 1335 of file io_binary.c.

◆ uint32_t

Definition at line 1336 of file io_binary.c.

◆ uint64_t

Definition at line 1337 of file io_binary.c.

◆ int_least8_t

Definition at line 1344 of file io_binary.c.

◆ int_least16_t

Definition at line 1345 of file io_binary.c.

◆ int_least32_t

Definition at line 1346 of file io_binary.c.

◆ int_least64_t

Definition at line 1347 of file io_binary.c.

◆ uint_least8_t

Definition at line 1350 of file io_binary.c.

◆ uint_least16_t

Definition at line 1351 of file io_binary.c.

◆ uint_least32_t

Definition at line 1352 of file io_binary.c.

◆ uint_least64_t

Definition at line 1353 of file io_binary.c.

◆ int_fast8_t

typedef signed char int_fast8_t

Definition at line 1359 of file io_binary.c.

◆ int_fast16_t

typedef long int int_fast16_t

Definition at line 1361 of file io_binary.c.

◆ int_fast32_t

typedef long int int_fast32_t

Definition at line 1362 of file io_binary.c.

◆ int_fast64_t

typedef long int int_fast64_t

Definition at line 1363 of file io_binary.c.

◆ uint_fast8_t

typedef unsigned char uint_fast8_t

Definition at line 1365 of file io_binary.c.

◆ uint_fast16_t

typedef unsigned long int uint_fast16_t

Definition at line 1367 of file io_binary.c.

◆ uint_fast32_t

typedef unsigned long int uint_fast32_t

Definition at line 1368 of file io_binary.c.

◆ uint_fast64_t

typedef unsigned long int uint_fast64_t

Definition at line 1369 of file io_binary.c.

◆ intptr_t

typedef long int intptr_t

Definition at line 1371 of file io_binary.c.

◆ uintptr_t

typedef unsigned long int uintptr_t

Definition at line 1374 of file io_binary.c.

◆ intmax_t

Definition at line 1376 of file io_binary.c.

◆ uintmax_t

Definition at line 1377 of file io_binary.c.

◆ size_t

typedef long unsigned int size_t

Definition at line 1391 of file io_binary.c.

◆ __gnuc_va_list

typedef __builtin_va_list __gnuc_va_list

Definition at line 1397 of file io_binary.c.

◆ __fpos_t

typedef struct _G_fpos_t __fpos_t

◆ __fpos64_t

typedef struct _G_fpos64_t __fpos64_t

◆ __FILE

typedef struct _IO_FILE __FILE

Definition at line 1441 of file io_binary.c.

◆ FILE

typedef struct _IO_FILE FILE

Definition at line 1450 of file io_binary.c.

◆ _IO_lock_t

typedef void _IO_lock_t

Definition at line 1462 of file io_binary.c.

◆ va_list

Definition at line 1521 of file io_binary.c.

◆ ssize_t

typedef __ssize_t ssize_t

Definition at line 1523 of file io_binary.c.

◆ fpos_t

typedef __fpos64_t fpos_t

Definition at line 1525 of file io_binary.c.

◆ sigset_t

Definition at line 2235 of file io_binary.c.

◆ suseconds_t

Definition at line 2264 of file io_binary.c.

◆ __fd_mask

typedef long int __fd_mask

Definition at line 2270 of file io_binary.c.

◆ fd_mask

typedef __fd_mask fd_mask

Definition at line 2290 of file io_binary.c.

◆ blksize_t

Definition at line 2312 of file io_binary.c.

◆ blkcnt_t

Definition at line 2314 of file io_binary.c.

◆ fsblkcnt_t

Definition at line 2318 of file io_binary.c.

◆ fsfilcnt_t

Definition at line 2322 of file io_binary.c.

◆ __pthread_list_t

◆ __pthread_slist_t

◆ __tss_t

typedef unsigned int __tss_t

Definition at line 2425 of file io_binary.c.

◆ __thrd_t

typedef unsigned long int __thrd_t

Definition at line 2426 of file io_binary.c.

◆ pthread_t

typedef unsigned long int pthread_t

Definition at line 2436 of file io_binary.c.

◆ pthread_key_t

typedef unsigned int pthread_key_t

Definition at line 2458 of file io_binary.c.

◆ pthread_once_t

typedef int pthread_once_t

Definition at line 2462 of file io_binary.c.

◆ pthread_attr_t

Definition at line 2471 of file io_binary.c.

◆ pthread_spinlock_t

typedef volatile int pthread_spinlock_t

Definition at line 2512 of file io_binary.c.

◆ __locale_t

typedef struct __locale_struct* __locale_t

Definition at line 3070 of file io_binary.c.

◆ locale_t

Definition at line 3073 of file io_binary.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_SC_ARG_MAX 
_SC_CHILD_MAX 
_SC_CLK_TCK 
_SC_NGROUPS_MAX 
_SC_OPEN_MAX 
_SC_STREAM_MAX 
_SC_TZNAME_MAX 
_SC_JOB_CONTROL 
_SC_SAVED_IDS 
_SC_REALTIME_SIGNALS 
_SC_PRIORITY_SCHEDULING 
_SC_TIMERS 
_SC_ASYNCHRONOUS_IO 
_SC_PRIORITIZED_IO 
_SC_SYNCHRONIZED_IO 
_SC_FSYNC 
_SC_MAPPED_FILES 
_SC_MEMLOCK 
_SC_MEMLOCK_RANGE 
_SC_MEMORY_PROTECTION 
_SC_MESSAGE_PASSING 
_SC_SEMAPHORES 
_SC_SHARED_MEMORY_OBJECTS 
_SC_AIO_LISTIO_MAX 
_SC_AIO_MAX 
_SC_AIO_PRIO_DELTA_MAX 
_SC_DELAYTIMER_MAX 
_SC_MQ_OPEN_MAX 
_SC_MQ_PRIO_MAX 
_SC_VERSION 
_SC_PAGESIZE 
_SC_RTSIG_MAX 
_SC_SEM_NSEMS_MAX 
_SC_SEM_VALUE_MAX 
_SC_SIGQUEUE_MAX 
_SC_TIMER_MAX 
_SC_BC_BASE_MAX 
_SC_BC_DIM_MAX 
_SC_BC_SCALE_MAX 
_SC_BC_STRING_MAX 
_SC_COLL_WEIGHTS_MAX 
_SC_EQUIV_CLASS_MAX 
_SC_EXPR_NEST_MAX 
_SC_LINE_MAX 
_SC_RE_DUP_MAX 
_SC_CHARCLASS_NAME_MAX 
_SC_2_VERSION 
_SC_2_C_BIND 
_SC_2_C_DEV 
_SC_2_FORT_DEV 
_SC_2_FORT_RUN 
_SC_2_SW_DEV 
_SC_2_LOCALEDEF 
_SC_PII 
_SC_PII_XTI 
_SC_PII_SOCKET 
_SC_PII_INTERNET 
_SC_PII_OSI 
_SC_POLL 
_SC_SELECT 
_SC_UIO_MAXIOV 
_SC_IOV_MAX 
_SC_PII_INTERNET_STREAM 
_SC_PII_INTERNET_DGRAM 
_SC_PII_OSI_COTS 
_SC_PII_OSI_CLTS 
_SC_PII_OSI_M 
_SC_T_IOV_MAX 
_SC_THREADS 
_SC_THREAD_SAFE_FUNCTIONS 
_SC_GETGR_R_SIZE_MAX 
_SC_GETPW_R_SIZE_MAX 
_SC_LOGIN_NAME_MAX 
_SC_TTY_NAME_MAX 
_SC_THREAD_DESTRUCTOR_ITERATIONS 
_SC_THREAD_KEYS_MAX 
_SC_THREAD_STACK_MIN 
_SC_THREAD_THREADS_MAX 
_SC_THREAD_ATTR_STACKADDR 
_SC_THREAD_ATTR_STACKSIZE 
_SC_THREAD_PRIORITY_SCHEDULING 
_SC_THREAD_PRIO_INHERIT 
_SC_THREAD_PRIO_PROTECT 
_SC_THREAD_PROCESS_SHARED 
_SC_NPROCESSORS_CONF 
_SC_NPROCESSORS_ONLN 
_SC_PHYS_PAGES 
_SC_AVPHYS_PAGES 
_SC_ATEXIT_MAX 
_SC_PASS_MAX 
_SC_XOPEN_VERSION 
_SC_XOPEN_XCU_VERSION 
_SC_XOPEN_UNIX 
_SC_XOPEN_CRYPT 
_SC_XOPEN_ENH_I18N 
_SC_XOPEN_SHM 
_SC_2_CHAR_TERM 
_SC_2_C_VERSION 
_SC_2_UPE 
_SC_XOPEN_XPG2 
_SC_XOPEN_XPG3 
_SC_XOPEN_XPG4 
_SC_CHAR_BIT 
_SC_CHAR_MAX 
_SC_CHAR_MIN 
_SC_INT_MAX 
_SC_INT_MIN 
_SC_LONG_BIT 
_SC_WORD_BIT 
_SC_MB_LEN_MAX 
_SC_NZERO 
_SC_SSIZE_MAX 
_SC_SCHAR_MAX 
_SC_SCHAR_MIN 
_SC_SHRT_MAX 
_SC_SHRT_MIN 
_SC_UCHAR_MAX 
_SC_UINT_MAX 
_SC_ULONG_MAX 
_SC_USHRT_MAX 
_SC_NL_ARGMAX 
_SC_NL_LANGMAX 
_SC_NL_MSGMAX 
_SC_NL_NMAX 
_SC_NL_SETMAX 
_SC_NL_TEXTMAX 
_SC_XBS5_ILP32_OFF32 
_SC_XBS5_ILP32_OFFBIG 
_SC_XBS5_LP64_OFF64 
_SC_XBS5_LPBIG_OFFBIG 
_SC_XOPEN_LEGACY 
_SC_XOPEN_REALTIME 
_SC_XOPEN_REALTIME_THREADS 
_SC_ADVISORY_INFO 
_SC_BARRIERS 
_SC_BASE 
_SC_C_LANG_SUPPORT 
_SC_C_LANG_SUPPORT_R 
_SC_CLOCK_SELECTION 
_SC_CPUTIME 
_SC_THREAD_CPUTIME 
_SC_DEVICE_IO 
_SC_DEVICE_SPECIFIC 
_SC_DEVICE_SPECIFIC_R 
_SC_FD_MGMT 
_SC_FIFO 
_SC_PIPE 
_SC_FILE_ATTRIBUTES 
_SC_FILE_LOCKING 
_SC_FILE_SYSTEM 
_SC_MONOTONIC_CLOCK 
_SC_MULTI_PROCESS 
_SC_SINGLE_PROCESS 
_SC_NETWORKING 
_SC_READER_WRITER_LOCKS 
_SC_SPIN_LOCKS 
_SC_REGEXP 
_SC_REGEX_VERSION 
_SC_SHELL 
_SC_SIGNALS 
_SC_SPAWN 
_SC_SPORADIC_SERVER 
_SC_THREAD_SPORADIC_SERVER 
_SC_SYSTEM_DATABASE 
_SC_SYSTEM_DATABASE_R 
_SC_TIMEOUTS 
_SC_TYPED_MEMORY_OBJECTS 
_SC_USER_GROUPS 
_SC_USER_GROUPS_R 
_SC_2_PBS 
_SC_2_PBS_ACCOUNTING 
_SC_2_PBS_LOCATE 
_SC_2_PBS_MESSAGE 
_SC_2_PBS_TRACK 
_SC_SYMLOOP_MAX 
_SC_STREAMS 
_SC_2_PBS_CHECKPOINT 
_SC_V6_ILP32_OFF32 
_SC_V6_ILP32_OFFBIG 
_SC_V6_LP64_OFF64 
_SC_V6_LPBIG_OFFBIG 
_SC_HOST_NAME_MAX 
_SC_TRACE 
_SC_TRACE_EVENT_FILTER 
_SC_TRACE_INHERIT 
_SC_TRACE_LOG 
_SC_LEVEL1_ICACHE_SIZE 
_SC_LEVEL1_ICACHE_ASSOC 
_SC_LEVEL1_ICACHE_LINESIZE 
_SC_LEVEL1_DCACHE_SIZE 
_SC_LEVEL1_DCACHE_ASSOC 
_SC_LEVEL1_DCACHE_LINESIZE 
_SC_LEVEL2_CACHE_SIZE 
_SC_LEVEL2_CACHE_ASSOC 
_SC_LEVEL2_CACHE_LINESIZE 
_SC_LEVEL3_CACHE_SIZE 
_SC_LEVEL3_CACHE_ASSOC 
_SC_LEVEL3_CACHE_LINESIZE 
_SC_LEVEL4_CACHE_SIZE 
_SC_LEVEL4_CACHE_ASSOC 
_SC_LEVEL4_CACHE_LINESIZE 
_SC_IPV6 
_SC_RAW_SOCKETS 
_SC_V7_ILP32_OFF32 
_SC_V7_ILP32_OFFBIG 
_SC_V7_LP64_OFF64 
_SC_V7_LPBIG_OFFBIG 
_SC_SS_REPL_MAX 
_SC_TRACE_EVENT_NAME_MAX 
_SC_TRACE_NAME_MAX 
_SC_TRACE_SYS_MAX 
_SC_TRACE_USER_EVENT_MAX 
_SC_XOPEN_STREAMS 
_SC_THREAD_ROBUST_PRIO_INHERIT 
_SC_THREAD_ROBUST_PRIO_PROTECT 
_SC_MINSIGSTKSZ 
_SC_SIGSTKSZ 

Definition at line 3607 of file io_binary.c.

◆ anonymous enum

anonymous enum
Enumerator
_CS_PATH 
_CS_V6_WIDTH_RESTRICTED_ENVS 
_CS_GNU_LIBC_VERSION 
_CS_GNU_LIBPTHREAD_VERSION 
_CS_V5_WIDTH_RESTRICTED_ENVS 
_CS_V7_WIDTH_RESTRICTED_ENVS 
_CS_LFS_CFLAGS 
_CS_LFS_LDFLAGS 
_CS_LFS_LIBS 
_CS_LFS_LINTFLAGS 
_CS_LFS64_CFLAGS 
_CS_LFS64_LDFLAGS 
_CS_LFS64_LIBS 
_CS_LFS64_LINTFLAGS 
_CS_XBS5_ILP32_OFF32_CFLAGS 
_CS_XBS5_ILP32_OFF32_LDFLAGS 
_CS_XBS5_ILP32_OFF32_LIBS 
_CS_XBS5_ILP32_OFF32_LINTFLAGS 
_CS_XBS5_ILP32_OFFBIG_CFLAGS 
_CS_XBS5_ILP32_OFFBIG_LDFLAGS 
_CS_XBS5_ILP32_OFFBIG_LIBS 
_CS_XBS5_ILP32_OFFBIG_LINTFLAGS 
_CS_XBS5_LP64_OFF64_CFLAGS 
_CS_XBS5_LP64_OFF64_LDFLAGS 
_CS_XBS5_LP64_OFF64_LIBS 
_CS_XBS5_LP64_OFF64_LINTFLAGS 
_CS_XBS5_LPBIG_OFFBIG_CFLAGS 
_CS_XBS5_LPBIG_OFFBIG_LDFLAGS 
_CS_XBS5_LPBIG_OFFBIG_LIBS 
_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 
_CS_POSIX_V6_ILP32_OFF32_CFLAGS 
_CS_POSIX_V6_ILP32_OFF32_LDFLAGS 
_CS_POSIX_V6_ILP32_OFF32_LIBS 
_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 
_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 
_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 
_CS_POSIX_V6_ILP32_OFFBIG_LIBS 
_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 
_CS_POSIX_V6_LP64_OFF64_CFLAGS 
_CS_POSIX_V6_LP64_OFF64_LDFLAGS 
_CS_POSIX_V6_LP64_OFF64_LIBS 
_CS_POSIX_V6_LP64_OFF64_LINTFLAGS 
_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 
_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 
_CS_POSIX_V6_LPBIG_OFFBIG_LIBS 
_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 
_CS_POSIX_V7_ILP32_OFF32_CFLAGS 
_CS_POSIX_V7_ILP32_OFF32_LDFLAGS 
_CS_POSIX_V7_ILP32_OFF32_LIBS 
_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS 
_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS 
_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS 
_CS_POSIX_V7_ILP32_OFFBIG_LIBS 
_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS 
_CS_POSIX_V7_LP64_OFF64_CFLAGS 
_CS_POSIX_V7_LP64_OFF64_LDFLAGS 
_CS_POSIX_V7_LP64_OFF64_LIBS 
_CS_POSIX_V7_LP64_OFF64_LINTFLAGS 
_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS 
_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 
_CS_POSIX_V7_LPBIG_OFFBIG_LIBS 
_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 
_CS_V6_ENV 
_CS_V7_ENV 

Definition at line 4075 of file io_binary.c.

Function Documentation

◆ __assert_fail()

void __assert_fail ( const char *  __assertion,
const char *  __file,
unsigned int  __line,
const char *  __function 
)

◆ __attribute__() [1/8]

void __leaf__ __attribute__ ( (__noreturn__)  )

◆ __assert_perror_fail()

void __assert_perror_fail ( int  __errnum,
const char *  __file,
unsigned int  __line,
const char *  __function 
)

◆ __assert()

void __assert ( const char *  __assertion,
const char *  __file,
int  __line 
)

◆ __errno_location()

int * __errno_location ( void  )

Definition at line 88 of file io_binary.c.

◆ fcntl()

int fcntl ( int  __fd,
int  __cmd,
  ... 
)

◆ open()

int open ( const char *  __file,
int  __oflag,
  ... 
)

◆ openat()

int openat ( int  __fd,
const char *  __file,
int  __oflag,
  ... 
)

◆ creat()

int creat ( const char *  __file,
mode_t  __mode 
)

◆ lockf()

int lockf ( int  __fd,
int  __cmd,
__off64_t  __len 
)

◆ posix_fadvise()

int posix_fadvise ( int  __fd,
__off64_t  __offset,
__off64_t  __len,
int  __advise 
)

◆ posix_fallocate()

int posix_fallocate ( int  __fd,
__off64_t  __offset,
__off64_t  __len 
)

◆ __fpclassify()

int __fpclassify ( double  __value)

◆ __attribute__() [2/8]

int __leaf__ __attribute__ ( (__const__)  )

◆ __signbit()

int __signbit ( double  __value)

◆ __isinf()

int __isinf ( double  __value)

◆ __finite()

int __finite ( double  __value)

◆ __isnan()

int __isnan ( double  __value)

◆ __iseqsig()

int __iseqsig ( double  __x,
double  __y 
)

◆ __issignaling()

int __issignaling ( double  __value)

◆ acos()

double acos ( double  __x)

◆ __acos()

double __acos ( double  __x)

◆ asin()

double asin ( double  __x)

◆ __asin()

double __asin ( double  __x)

◆ atan()

double atan ( double  __x)

◆ __atan()

double __atan ( double  __x)

◆ atan2()

double atan2 ( double  __y,
double  __x 
)

◆ __atan2()

double __atan2 ( double  __y,
double  __x 
)

◆ cos()

double cos ( double  __x)

◆ __cos()

double __cos ( double  __x)

◆ sin()

double sin ( double  __x)

◆ __sin()

double __sin ( double  __x)

◆ tan()

double tan ( double  __x)

◆ __tan()

double __tan ( double  __x)

◆ cosh()

double cosh ( double  __x)

◆ __cosh()

double __cosh ( double  __x)

◆ sinh()

double sinh ( double  __x)

◆ __sinh()

double __sinh ( double  __x)

◆ tanh()

double tanh ( double  __x)

◆ __tanh()

double __tanh ( double  __x)

◆ acosh()

double acosh ( double  __x)

◆ __acosh()

double __acosh ( double  __x)

◆ asinh()

double asinh ( double  __x)

◆ __asinh()

double __asinh ( double  __x)

◆ atanh()

double atanh ( double  __x)

◆ __atanh()

double __atanh ( double  __x)

◆ exp()

double exp ( double  __x)

◆ __exp()

double __exp ( double  __x)

◆ frexp()

double frexp ( double  __x,
int *  __exponent 
)

◆ __frexp()

double __frexp ( double  __x,
int *  __exponent 
)

◆ ldexp()

double ldexp ( double  __x,
int  __exponent 
)

◆ __ldexp()

double __ldexp ( double  __x,
int  __exponent 
)

◆ log()

double log ( double  __x)

◆ __log()

double __log ( double  __x)

◆ log10()

double log10 ( double  __x)

◆ __log10()

double __log10 ( double  __x)

◆ modf()

double modf ( double  __x,
double *  __iptr 
)

◆ __modf()

double __modf ( double  __x,
double *  __iptr 
)

◆ __attribute__() [3/8]

double __leaf__ __attribute__ ( (__nonnull__(2))  )

◆ expm1()

double expm1 ( double  __x)

◆ __expm1()

double __expm1 ( double  __x)

◆ log1p()

double log1p ( double  __x)

◆ __log1p()

double __log1p ( double  __x)

◆ logb()

double logb ( double  __x)

◆ __logb()

double __logb ( double  __x)

◆ exp2()

double exp2 ( double  __x)

◆ __exp2()

double __exp2 ( double  __x)

◆ log2()

double log2 ( double  __x)

◆ __log2()

double __log2 ( double  __x)

◆ pow()

double pow ( double  __x,
double  __y 
)

◆ __pow()

double __pow ( double  __x,
double  __y 
)

◆ sqrt()

double sqrt ( double  __x)

◆ __sqrt()

double __sqrt ( double  __x)

◆ hypot()

double hypot ( double  __x,
double  __y 
)

◆ __hypot()

double __hypot ( double  __x,
double  __y 
)

◆ cbrt()

double cbrt ( double  __x)

◆ __cbrt()

double __cbrt ( double  __x)

◆ ceil()

double ceil ( double  __x)

◆ __ceil()

double __ceil ( double  __x)

◆ fabs()

double fabs ( double  __x)

◆ __fabs()

double __fabs ( double  __x)

◆ floor()

double floor ( double  __x)

◆ __floor()

double __floor ( double  __x)

◆ fmod()

double fmod ( double  __x,
double  __y 
)

◆ __fmod()

double __fmod ( double  __x,
double  __y 
)

◆ isinf()

int isinf ( double  __value)

◆ finite()

int finite ( double  __value)

◆ drem()

double drem ( double  __x,
double  __y 
)

◆ __drem()

double __drem ( double  __x,
double  __y 
)

◆ significand()

double significand ( double  __x)

◆ __significand()

double __significand ( double  __x)

◆ copysign()

double copysign ( double  __x,
double  __y 
)

◆ __copysign()

double __copysign ( double  __x,
double  __y 
)

◆ nan()

double nan ( const char *  __tagb)

◆ __nan()

double __nan ( const char *  __tagb)

◆ isnan()

int isnan ( double  __value)

◆ j0()

double j0 ( extern double lgamma_r (  double)

Definition at line 595 of file io_binary.c.

◆ remove()

int remove ( const char *  __filename)

◆ rename()

int rename ( const char *  __old,
const char *  __new 
)

◆ renameat()

int renameat ( int  __oldfd,
const char *  __old,
int  __newfd,
const char *  __new 
)

◆ fclose()

int fclose ( FILE __stream)

◆ tmpfile()

FILE * tmpfile ( void  )

Definition at line 1550 of file io_binary.c.

◆ __ctype_get_mb_cur_max()

size_t __ctype_get_mb_cur_max ( void  )

Definition at line 1969 of file io_binary.c.

◆ __bswap_32()

static __inline __uint32_t __bswap_32 ( __uint32_t  __bsx)
static

Definition at line 2171 of file io_binary.c.

◆ __bswap_64()

static __extension__ __inline __uint64_t __bswap_64 ( __uint64_t  __bsx)
static

Definition at line 2181 of file io_binary.c.

◆ __uint16_identity()

static __inline __uint16_t __uint16_identity ( __uint16_t  __x)
static

Definition at line 2193 of file io_binary.c.

◆ __uint32_identity()

static __inline __uint32_t __uint32_identity ( __uint32_t  __x)
static

Definition at line 2199 of file io_binary.c.

◆ __uint64_identity()

static __inline __uint64_t __uint64_identity ( __uint64_t  __x)
static

Definition at line 2205 of file io_binary.c.

◆ select()

int select ( int  __nfds,
fd_set *__restrict  __readfds,
fd_set *__restrict  __writefds,
fd_set *__restrict  __exceptfds,
struct timeval *__restrict  __timeout 
)

◆ pselect()

int pselect ( int  __nfds,
fd_set *__restrict  __readfds,
fd_set *__restrict  __writefds,
fd_set *__restrict  __exceptfds,
const struct timespec *__restrict  __timeout,
const __sigset_t *__restrict  __sigmask 
)

◆ random()

long int random ( void  )

Definition at line 2539 of file io_binary.c.

◆ random_r()

int random_r ( struct random_data *__restrict  __buf,
int32_t *__restrict  __result 
)

◆ __attribute__() [4/8]

int __leaf__ __attribute__ ( (__nonnull__(1, 2))  )

Definition at line 1934 of file getopt_f.c.

◆ srandom_r()

int srandom_r ( unsigned int  __seed,
struct random_data *  __buf 
)

◆ initstate_r()

int initstate_r ( unsigned int  __seed,
char *__restrict  __statebuf,
size_t  __statelen,
struct random_data *__restrict  __buf 
)

◆ __attribute__() [5/8]

int __leaf__ __attribute__ ( (__nonnull__(2, 4))  )

◆ setstate_r()

int setstate_r ( char *__restrict  __statebuf,
struct random_data *__restrict  __buf 
)

◆ rand()

int rand ( void  )

Definition at line 2591 of file io_binary.c.

◆ drand48_r()

int drand48_r ( struct drand48_data *__restrict  __buffer,
double *__restrict  __result 
)

◆ erand48_r()

int erand48_r ( unsigned short int  __xsubi[3],
struct drand48_data *__restrict  __buffer,
double *__restrict  __result 
)

◆ lrand48_r()

int lrand48_r ( struct drand48_data *__restrict  __buffer,
long int *__restrict  __result 
)

◆ nrand48_r()

int nrand48_r ( unsigned short int  __xsubi[3],
struct drand48_data *__restrict  __buffer,
long int *__restrict  __result 
)

◆ mrand48_r()

int mrand48_r ( struct drand48_data *__restrict  __buffer,
long int *__restrict  __result 
)

◆ jrand48_r()

int jrand48_r ( unsigned short int  __xsubi[3],
struct drand48_data *__restrict  __buffer,
long int *__restrict  __result 
)

◆ srand48_r()

int srand48_r ( long int  __seedval,
struct drand48_data *  __buffer 
)

◆ seed48_r()

int seed48_r ( unsigned short int  __seed16v[3],
struct drand48_data *  __buffer 
)

◆ lcong48_r()

int lcong48_r ( unsigned short int  __param[7],
struct drand48_data *  __buffer 
)

◆ arc4random()

__uint32_t arc4random ( void  )

Definition at line 2675 of file io_binary.c.

◆ strcoll_l()

int strcoll_l ( const char *  __s1,
const char *  __s2,
locale_t  __l 
)

◆ __attribute__() [6/8]

int __leaf__ __attribute__ ( (__pure__)  )

Definition at line 3078 of file io_binary.c.

◆ pathconf()

long int pathconf ( const char *  __path,
int  __name 
)

◆ __attribute__() [7/8]

long int __leaf__ __attribute__ ( (__nonnull__(1))  )

◆ fpathconf()

long int fpathconf ( int  __fd,
int  __name 
)

◆ sysconf()

long int sysconf ( int  __name)

◆ confstr()

size_t confstr ( int  __name,
char *  __buf,
size_t  __len 
)

◆ __attribute__() [8/8]

size_t __leaf__ __attribute__ ( (__access__(__write_only__, 2, 3))  )

◆ getpid()

__pid_t getpid ( void  )

Definition at line 4238 of file io_binary.c.

◆ inf_error()

static void inf_error ( const char *  msg)
inlinestatic

Definition at line 4613 of file io_binary.c.

◆ endian_convert()

static void endian_convert ( const int  size,
char *  aa 
)
inlinestatic

Definition at line 4626 of file io_binary.c.

◆ convert()

static void convert ( multi in,
multi out,
int  t_in,
int  t_out 
)
static

Definition at line 5131 of file io_binary.c.

◆ init_header()

static void init_header ( header_t hp)
inlinestatic

Definition at line 4666 of file io_binary.c.

◆ check_header()

static int check_header ( header_t hp,
int *  correct_endianness 
)
inlinestatic

Definition at line 4682 of file io_binary.c.

◆ io_write_header()

void io_write_header ( const int64_t np,
int *  type,
int *  ierr,
int *  iio,
char *  fname 
)

Definition at line 4726 of file io_binary.c.

◆ write_binary()

void write_binary ( const int64_t np,
void *  ff,
int *  type,
int *  ierr,
int *  iio,
int *  nhd,
int *  flpe,
char *  fname 
)

Definition at line 4831 of file io_binary.c.

◆ io_read_header()

void io_read_header ( header_t hp,
int *  correct_endianness,
int *  ierr,
int *  iio,
char *  fname 
)

Definition at line 4929 of file io_binary.c.

◆ read_binary()

void read_binary ( const int64_t np,
const int64_t offset,
byte *  ff,
int *  output_type,
int *  ierr,
int *  iio,
char *  fname 
)

Definition at line 4981 of file io_binary.c.

◆ get_info_binary()

void get_info_binary ( int64_t np,
int *  type,
int64_t file_size,
int *  ierr,
int *  iio,
char *  fname 
)

Definition at line 5203 of file io_binary.c.

Variable Documentation

◆ __fsid_t

Definition at line 168 of file io_binary.c.

◆ __leaf__

long int __leaf__

Definition at line 373 of file io_binary.c.

◆ stdin

FILE* stdin
extern

◆ stdout

FILE* stdout
extern

◆ stderr

FILE* stderr
extern

◆ div_t

Definition at line 1949 of file io_binary.c.

◆ base_size_of

const int64_t base_size_of[6] = {4, 8, 4, 8, 4, 8}
static

Definition at line 4610 of file io_binary.c.

◆ is_integer

const int64_t is_integer[6] = {0, 0, 0, 0, 1, 1}
static

Definition at line 4611 of file io_binary.c.