Skip to content

Instantly share code, notes, and snippets.

@ytomino
Last active November 4, 2020 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytomino/e79f3157ff6d0b291502 to your computer and use it in GitHub Desktop.
Save ytomino/e79f3157ff6d0b291502 to your computer and use it in GitHub Desktop.
i686-pc-linux-gnu
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
package C.alloca is
pragma Preelaborate;
function alloca (size : stddef.size_t) return void_ptr;
pragma Import (C, alloca, "alloca");
ALLOCA_H : constant := 1;
end C.alloca;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm.unistd is
pragma Preelaborate;
-- _ASM_X86_UNISTD_H (empty)
X32_SYSCALL_BIT : constant := 1073741824;
end C.asm.unistd;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm.unistd_32 is
pragma Preelaborate;
ASM_X86_UNISTD_32_H : constant := 1;
NR_llseek : constant := 140;
NR_newselect : constant := 142;
NR_sysctl : constant := 149;
NR_accept4 : constant := 364;
NR_access : constant := 33;
NR_acct : constant := 51;
NR_add_key : constant := 286;
NR_adjtimex : constant := 124;
NR_afs_syscall : constant := 137;
NR_alarm : constant := 27;
NR_bdflush : constant := 134;
NR_bind : constant := 361;
NR_bpf : constant := 357;
NR_break : constant := 17;
NR_brk : constant := 45;
NR_capget : constant := 184;
NR_capset : constant := 185;
NR_chdir : constant := 12;
NR_chmod : constant := 15;
NR_chown : constant := 182;
NR_chown32 : constant := 212;
NR_chroot : constant := 61;
NR_clock_adjtime : constant := 343;
NR_clock_getres : constant := 266;
NR_clock_gettime : constant := 265;
NR_clock_nanosleep : constant := 267;
NR_clock_settime : constant := 264;
NR_clone : constant := 120;
NR_close : constant := 6;
NR_connect : constant := 362;
NR_copy_file_range : constant := 377;
NR_creat : constant := 8;
NR_create_module : constant := 127;
NR_delete_module : constant := 129;
NR_dup : constant := 41;
NR_dup2 : constant := 63;
NR_dup3 : constant := 330;
NR_epoll_create : constant := 254;
NR_epoll_create1 : constant := 329;
NR_epoll_ctl : constant := 255;
NR_epoll_pwait : constant := 319;
NR_epoll_wait : constant := 256;
NR_eventfd : constant := 323;
NR_eventfd2 : constant := 328;
NR_execve : constant := 11;
NR_execveat : constant := 358;
NR_exit : constant := 1;
NR_exit_group : constant := 252;
NR_faccessat : constant := 307;
NR_fadvise64 : constant := 250;
NR_fadvise64_64 : constant := 272;
NR_fallocate : constant := 324;
NR_fanotify_init : constant := 338;
NR_fanotify_mark : constant := 339;
NR_fchdir : constant := 133;
NR_fchmod : constant := 94;
NR_fchmodat : constant := 306;
NR_fchown : constant := 95;
NR_fchown32 : constant := 207;
NR_fchownat : constant := 298;
NR_fcntl : constant := 55;
NR_fcntl64 : constant := 221;
NR_fdatasync : constant := 148;
NR_fgetxattr : constant := 231;
NR_finit_module : constant := 350;
NR_flistxattr : constant := 234;
NR_flock : constant := 143;
NR_fork : constant := 2;
NR_fremovexattr : constant := 237;
NR_fsetxattr : constant := 228;
NR_fstat : constant := 108;
NR_fstat64 : constant := 197;
NR_fstatat64 : constant := 300;
NR_fstatfs : constant := 100;
NR_fstatfs64 : constant := 269;
NR_fsync : constant := 118;
NR_ftime : constant := 35;
NR_ftruncate : constant := 93;
NR_ftruncate64 : constant := 194;
NR_futex : constant := 240;
NR_futimesat : constant := 299;
NR_get_kernel_syms : constant := 130;
NR_get_mempolicy : constant := 275;
NR_get_robust_list : constant := 312;
NR_get_thread_area : constant := 244;
NR_getcpu : constant := 318;
NR_getcwd : constant := 183;
NR_getdents : constant := 141;
NR_getdents64 : constant := 220;
NR_getegid : constant := 50;
NR_getegid32 : constant := 202;
NR_geteuid : constant := 49;
NR_geteuid32 : constant := 201;
NR_getgid : constant := 47;
NR_getgid32 : constant := 200;
NR_getgroups : constant := 80;
NR_getgroups32 : constant := 205;
NR_getitimer : constant := 105;
NR_getpeername : constant := 368;
NR_getpgid : constant := 132;
NR_getpgrp : constant := 65;
NR_getpid : constant := 20;
NR_getpmsg : constant := 188;
NR_getppid : constant := 64;
NR_getpriority : constant := 96;
NR_getrandom : constant := 355;
NR_getresgid : constant := 171;
NR_getresgid32 : constant := 211;
NR_getresuid : constant := 165;
NR_getresuid32 : constant := 209;
NR_getrlimit : constant := 76;
NR_getrusage : constant := 77;
NR_getsid : constant := 147;
NR_getsockname : constant := 367;
NR_getsockopt : constant := 365;
NR_gettid : constant := 224;
NR_gettimeofday : constant := 78;
NR_getuid : constant := 24;
NR_getuid32 : constant := 199;
NR_getxattr : constant := 229;
NR_gtty : constant := 32;
NR_idle : constant := 112;
NR_init_module : constant := 128;
NR_inotify_add_watch : constant := 292;
NR_inotify_init : constant := 291;
NR_inotify_init1 : constant := 332;
NR_inotify_rm_watch : constant := 293;
NR_io_cancel : constant := 249;
NR_io_destroy : constant := 246;
NR_io_getevents : constant := 247;
NR_io_setup : constant := 245;
NR_io_submit : constant := 248;
NR_ioctl : constant := 54;
NR_ioperm : constant := 101;
NR_iopl : constant := 110;
NR_ioprio_get : constant := 290;
NR_ioprio_set : constant := 289;
NR_ipc : constant := 117;
NR_kcmp : constant := 349;
NR_kexec_load : constant := 283;
NR_keyctl : constant := 288;
NR_kill : constant := 37;
NR_lchown : constant := 16;
NR_lchown32 : constant := 198;
NR_lgetxattr : constant := 230;
NR_link : constant := 9;
NR_linkat : constant := 303;
NR_listen : constant := 363;
NR_listxattr : constant := 232;
NR_llistxattr : constant := 233;
NR_lock : constant := 53;
NR_lookup_dcookie : constant := 253;
NR_lremovexattr : constant := 236;
NR_lseek : constant := 19;
NR_lsetxattr : constant := 227;
NR_lstat : constant := 107;
NR_lstat64 : constant := 196;
NR_madvise : constant := 219;
NR_mbind : constant := 274;
NR_membarrier : constant := 375;
NR_memfd_create : constant := 356;
NR_migrate_pages : constant := 294;
NR_mincore : constant := 218;
NR_mkdir : constant := 39;
NR_mkdirat : constant := 296;
NR_mknod : constant := 14;
NR_mknodat : constant := 297;
NR_mlock : constant := 150;
NR_mlock2 : constant := 376;
NR_mlockall : constant := 152;
NR_mmap : constant := 90;
NR_mmap2 : constant := 192;
NR_modify_ldt : constant := 123;
NR_mount : constant := 21;
NR_move_pages : constant := 317;
NR_mprotect : constant := 125;
NR_mpx : constant := 56;
NR_mq_getsetattr : constant := 282;
NR_mq_notify : constant := 281;
NR_mq_open : constant := 277;
NR_mq_timedreceive : constant := 280;
NR_mq_timedsend : constant := 279;
NR_mq_unlink : constant := 278;
NR_mremap : constant := 163;
NR_msync : constant := 144;
NR_munlock : constant := 151;
NR_munlockall : constant := 153;
NR_munmap : constant := 91;
NR_name_to_handle_at : constant := 341;
NR_nanosleep : constant := 162;
NR_nfsservctl : constant := 169;
NR_nice : constant := 34;
NR_oldfstat : constant := 28;
NR_oldlstat : constant := 84;
NR_oldolduname : constant := 59;
NR_oldstat : constant := 18;
NR_olduname : constant := 109;
NR_open : constant := 5;
NR_open_by_handle_at : constant := 342;
NR_openat : constant := 295;
NR_pause : constant := 29;
NR_perf_event_open : constant := 336;
NR_personality : constant := 136;
NR_pipe : constant := 42;
NR_pipe2 : constant := 331;
NR_pivot_root : constant := 217;
NR_pkey_alloc : constant := 381;
NR_pkey_free : constant := 382;
NR_pkey_mprotect : constant := 380;
NR_poll : constant := 168;
NR_ppoll : constant := 309;
NR_prctl : constant := 172;
NR_pread64 : constant := 180;
NR_preadv : constant := 333;
NR_preadv2 : constant := 378;
NR_prlimit64 : constant := 340;
NR_process_vm_readv : constant := 347;
NR_process_vm_writev : constant := 348;
NR_prof : constant := 44;
NR_profil : constant := 98;
NR_pselect6 : constant := 308;
NR_ptrace : constant := 26;
NR_putpmsg : constant := 189;
NR_pwrite64 : constant := 181;
NR_pwritev : constant := 334;
NR_pwritev2 : constant := 379;
NR_query_module : constant := 167;
NR_quotactl : constant := 131;
NR_read : constant := 3;
NR_readahead : constant := 225;
NR_readdir : constant := 89;
NR_readlink : constant := 85;
NR_readlinkat : constant := 305;
NR_readv : constant := 145;
NR_reboot : constant := 88;
NR_recvfrom : constant := 371;
NR_recvmmsg : constant := 337;
NR_recvmsg : constant := 372;
NR_remap_file_pages : constant := 257;
NR_removexattr : constant := 235;
NR_rename : constant := 38;
NR_renameat : constant := 302;
NR_renameat2 : constant := 353;
NR_request_key : constant := 287;
NR_restart_syscall : constant := 0;
NR_rmdir : constant := 40;
NR_rt_sigaction : constant := 174;
NR_rt_sigpending : constant := 176;
NR_rt_sigprocmask : constant := 175;
NR_rt_sigqueueinfo : constant := 178;
NR_rt_sigreturn : constant := 173;
NR_rt_sigsuspend : constant := 179;
NR_rt_sigtimedwait : constant := 177;
NR_rt_tgsigqueueinfo : constant := 335;
NR_sched_get_priority_max : constant := 159;
NR_sched_get_priority_min : constant := 160;
NR_sched_getaffinity : constant := 242;
NR_sched_getattr : constant := 352;
NR_sched_getparam : constant := 155;
NR_sched_getscheduler : constant := 157;
NR_sched_rr_get_interval : constant := 161;
NR_sched_setaffinity : constant := 241;
NR_sched_setattr : constant := 351;
NR_sched_setparam : constant := 154;
NR_sched_setscheduler : constant := 156;
NR_sched_yield : constant := 158;
NR_seccomp : constant := 354;
NR_select : constant := 82;
NR_sendfile : constant := 187;
NR_sendfile64 : constant := 239;
NR_sendmmsg : constant := 345;
NR_sendmsg : constant := 370;
NR_sendto : constant := 369;
NR_set_mempolicy : constant := 276;
NR_set_robust_list : constant := 311;
NR_set_thread_area : constant := 243;
NR_set_tid_address : constant := 258;
NR_setdomainname : constant := 121;
NR_setfsgid : constant := 139;
NR_setfsgid32 : constant := 216;
NR_setfsuid : constant := 138;
NR_setfsuid32 : constant := 215;
NR_setgid : constant := 46;
NR_setgid32 : constant := 214;
NR_setgroups : constant := 81;
NR_setgroups32 : constant := 206;
NR_sethostname : constant := 74;
NR_setitimer : constant := 104;
NR_setns : constant := 346;
NR_setpgid : constant := 57;
NR_setpriority : constant := 97;
NR_setregid : constant := 71;
NR_setregid32 : constant := 204;
NR_setresgid : constant := 170;
NR_setresgid32 : constant := 210;
NR_setresuid : constant := 164;
NR_setresuid32 : constant := 208;
NR_setreuid : constant := 70;
NR_setreuid32 : constant := 203;
NR_setrlimit : constant := 75;
NR_setsid : constant := 66;
NR_setsockopt : constant := 366;
NR_settimeofday : constant := 79;
NR_setuid : constant := 23;
NR_setuid32 : constant := 213;
NR_setxattr : constant := 226;
NR_sgetmask : constant := 68;
NR_shutdown : constant := 373;
NR_sigaction : constant := 67;
NR_sigaltstack : constant := 186;
NR_signal : constant := 48;
NR_signalfd : constant := 321;
NR_signalfd4 : constant := 327;
NR_sigpending : constant := 73;
NR_sigprocmask : constant := 126;
NR_sigreturn : constant := 119;
NR_sigsuspend : constant := 72;
NR_socket : constant := 359;
NR_socketcall : constant := 102;
NR_socketpair : constant := 360;
NR_splice : constant := 313;
NR_ssetmask : constant := 69;
NR_stat : constant := 106;
NR_stat64 : constant := 195;
NR_statfs : constant := 99;
NR_statfs64 : constant := 268;
NR_stime : constant := 25;
NR_stty : constant := 31;
NR_swapoff : constant := 115;
NR_swapon : constant := 87;
NR_symlink : constant := 83;
NR_symlinkat : constant := 304;
NR_sync : constant := 36;
NR_sync_file_range : constant := 314;
NR_syncfs : constant := 344;
NR_sysfs : constant := 135;
NR_sysinfo : constant := 116;
NR_syslog : constant := 103;
NR_tee : constant := 315;
NR_tgkill : constant := 270;
NR_time : constant := 13;
NR_timer_create : constant := 259;
NR_timer_delete : constant := 263;
NR_timer_getoverrun : constant := 262;
NR_timer_gettime : constant := 261;
NR_timer_settime : constant := 260;
NR_timerfd_create : constant := 322;
NR_timerfd_gettime : constant := 326;
NR_timerfd_settime : constant := 325;
NR_times : constant := 43;
NR_tkill : constant := 238;
NR_truncate : constant := 92;
NR_truncate64 : constant := 193;
NR_ugetrlimit : constant := 191;
NR_ulimit : constant := 58;
NR_umask : constant := 60;
NR_umount : constant := 22;
NR_umount2 : constant := 52;
NR_uname : constant := 122;
NR_unlink : constant := 10;
NR_unlinkat : constant := 301;
NR_unshare : constant := 310;
NR_uselib : constant := 86;
NR_userfaultfd : constant := 374;
NR_ustat : constant := 62;
NR_utime : constant := 30;
NR_utimensat : constant := 320;
NR_utimes : constant := 271;
NR_vfork : constant := 190;
NR_vhangup : constant := 111;
NR_vm86 : constant := 166;
NR_vm86old : constant := 113;
NR_vmsplice : constant := 316;
NR_vserver : constant := 273;
NR_wait4 : constant := 114;
NR_waitid : constant := 284;
NR_waitpid : constant := 7;
NR_write : constant := 4;
NR_writev : constant := 146;
end C.asm.unistd_32;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm is
pragma Preelaborate;
end C.asm;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.errno is
pragma Preelaborate;
EADDRINUSE : constant := 98;
EADDRNOTAVAIL : constant := 99;
EADV : constant := 68;
EAFNOSUPPORT : constant := 97;
EALREADY : constant := 114;
EBADE : constant := 52;
EBADFD : constant := 77;
EBADMSG : constant := 74;
EBADR : constant := 53;
EBADRQC : constant := 56;
EBADSLT : constant := 57;
EBFONT : constant := 59;
ECANCELED : constant := 125;
ECHRNG : constant := 44;
ECOMM : constant := 70;
ECONNABORTED : constant := 103;
ECONNREFUSED : constant := 111;
ECONNRESET : constant := 104;
EDEADLK : constant := 35;
EDEADLOCK : constant := 35;
EDESTADDRREQ : constant := 89;
EDOTDOT : constant := 73;
EDQUOT : constant := 122;
EHOSTDOWN : constant := 112;
EHOSTUNREACH : constant := 113;
EHWPOISON : constant := 133;
EIDRM : constant := 43;
EILSEQ : constant := 84;
EINPROGRESS : constant := 115;
EISCONN : constant := 106;
EISNAM : constant := 120;
EKEYEXPIRED : constant := 127;
EKEYREJECTED : constant := 129;
EKEYREVOKED : constant := 128;
EL2HLT : constant := 51;
EL2NSYNC : constant := 45;
EL3HLT : constant := 46;
EL3RST : constant := 47;
ELIBACC : constant := 79;
ELIBBAD : constant := 80;
ELIBEXEC : constant := 83;
ELIBMAX : constant := 82;
ELIBSCN : constant := 81;
ELNRNG : constant := 48;
ELOOP : constant := 40;
EMEDIUMTYPE : constant := 124;
EMSGSIZE : constant := 90;
EMULTIHOP : constant := 72;
ENAMETOOLONG : constant := 36;
ENAVAIL : constant := 119;
ENETDOWN : constant := 100;
ENETRESET : constant := 102;
ENETUNREACH : constant := 101;
ENOANO : constant := 55;
ENOBUFS : constant := 105;
ENOCSI : constant := 50;
ENODATA : constant := 61;
ENOKEY : constant := 126;
ENOLCK : constant := 37;
ENOLINK : constant := 67;
ENOMEDIUM : constant := 123;
ENOMSG : constant := 42;
ENONET : constant := 64;
ENOPKG : constant := 65;
ENOPROTOOPT : constant := 92;
ENOSR : constant := 63;
ENOSTR : constant := 60;
ENOSYS : constant := 38;
ENOTCONN : constant := 107;
ENOTEMPTY : constant := 39;
ENOTNAM : constant := 118;
ENOTRECOVERABLE : constant := 131;
ENOTSOCK : constant := 88;
ENOTUNIQ : constant := 76;
EOPNOTSUPP : constant := 95;
EOVERFLOW : constant := 75;
EOWNERDEAD : constant := 130;
EPFNOSUPPORT : constant := 96;
EPROTO : constant := 71;
EPROTONOSUPPORT : constant := 93;
EPROTOTYPE : constant := 91;
EREMCHG : constant := 78;
EREMOTE : constant := 66;
EREMOTEIO : constant := 121;
ERESTART : constant := 85;
ERFKILL : constant := 132;
ESHUTDOWN : constant := 108;
ESOCKTNOSUPPORT : constant := 94;
ESRMNT : constant := 69;
ESTALE : constant := 116;
ESTRPIPE : constant := 86;
ETIME : constant := 62;
ETIMEDOUT : constant := 110;
ETOOMANYREFS : constant := 109;
EUCLEAN : constant := 117;
EUNATCH : constant := 49;
EUSERS : constant := 87;
EWOULDBLOCK : constant := 11;
EXFULL : constant := 54;
-- _ASM_GENERIC_ERRNO_H (empty)
end C.asm_generic.errno;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.errno_base is
pragma Preelaborate;
E2BIG : constant := 7;
EACCES : constant := 13;
EAGAIN : constant := 11;
EBADF : constant := 9;
EBUSY : constant := 16;
ECHILD : constant := 10;
EDOM : constant := 33;
EEXIST : constant := 17;
EFAULT : constant := 14;
EFBIG : constant := 27;
EINTR : constant := 4;
EINVAL : constant := 22;
EIO : constant := 5;
EISDIR : constant := 21;
EMFILE : constant := 24;
EMLINK : constant := 31;
ENFILE : constant := 23;
ENODEV : constant := 19;
ENOENT : constant := 2;
ENOEXEC : constant := 8;
ENOMEM : constant := 12;
ENOSPC : constant := 28;
ENOTBLK : constant := 15;
ENOTDIR : constant := 20;
ENOTTY : constant := 25;
ENXIO : constant := 6;
EPERM : constant := 1;
EPIPE : constant := 32;
ERANGE : constant := 34;
EROFS : constant := 30;
ESPIPE : constant := 29;
ESRCH : constant := 3;
ETXTBSY : constant := 26;
EXDEV : constant := 18;
-- _ASM_GENERIC_ERRNO_BASE_H (empty)
end C.asm_generic.errno_base;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.ioctl is
pragma Preelaborate;
IOCSIZE_MASK : constant := 1073676288;
IOCSIZE_SHIFT : constant := 16;
IOC_IN : constant := 1073741824;
IOC_INOUT : constant := 3221225472;
IOC_OUT : constant := 2147483648;
-- _ASM_GENERIC_IOCTL_H (empty)
-- _IO (function macro)
-- _IOC (function macro)
-- _IOC_DIR (function macro)
IOC_DIRBITS : constant := 2;
IOC_DIRMASK : constant := 3;
IOC_DIRSHIFT : constant := 30;
IOC_NONE : constant := 0;
-- _IOC_NR (function macro)
IOC_NRBITS : constant := 8;
IOC_NRMASK : constant := 255;
IOC_NRSHIFT : constant := 0;
IOC_READ : constant := 2;
-- _IOC_SIZE (function macro)
IOC_SIZEBITS : constant := 14;
IOC_SIZEMASK : constant := 16383;
IOC_SIZESHIFT : constant := 16;
-- _IOC_TYPE (function macro)
IOC_TYPEBITS : constant := 8;
-- _IOC_TYPECHECK (function macro)
IOC_TYPEMASK : constant := 255;
IOC_TYPESHIFT : constant := 8;
IOC_WRITE : constant := 1;
-- _IOR (function macro)
-- _IOR_BAD (function macro)
-- _IOW (function macro)
-- _IOWR (function macro)
-- _IOWR_BAD (function macro)
-- _IOW_BAD (function macro)
end C.asm_generic.ioctl;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.ioctls is
pragma Preelaborate;
FIOASYNC : constant := 21586;
FIOCLEX : constant := 21585;
FIONBIO : constant := 21537;
FIONCLEX : constant := 21584;
FIONREAD : constant := 21531;
FIOQSIZE : constant := 21600;
TCFLSH : constant := 21515;
TCGETA : constant := 21509;
TCGETS : constant := 21505;
-- TCGETS2 (unparsible)
TCGETX : constant := 21554;
TCSBRK : constant := 21513;
TCSBRKP : constant := 21541;
TCSETA : constant := 21510;
TCSETAF : constant := 21512;
TCSETAW : constant := 21511;
TCSETS : constant := 21506;
-- TCSETS2 (unparsible)
TCSETSF : constant := 21508;
-- TCSETSF2 (unparsible)
TCSETSW : constant := 21507;
-- TCSETSW2 (unparsible)
TCSETX : constant := 21555;
TCSETXF : constant := 21556;
TCSETXW : constant := 21557;
TCXONC : constant := 21514;
TIOCCBRK : constant := 21544;
TIOCCONS : constant := 21533;
TIOCEXCL : constant := 21516;
TIOCGDEV : constant := 2147767346;
TIOCGETD : constant := 21540;
TIOCGEXCL : constant := 2147767360;
TIOCGICOUNT : constant := 21597;
TIOCGLCKTRMIOS : constant := 21590;
TIOCGPGRP : constant := 21519;
TIOCGPKT : constant := 2147767352;
TIOCGPTLCK : constant := 2147767353;
TIOCGPTN : constant := 2147767344;
TIOCGRS485 : constant := 21550;
TIOCGSERIAL : constant := 21534;
TIOCGSID : constant := 21545;
TIOCGSOFTCAR : constant := 21529;
TIOCGWINSZ : constant := 21523;
TIOCINQ : constant := 21531;
TIOCLINUX : constant := 21532;
TIOCMBIC : constant := 21527;
TIOCMBIS : constant := 21526;
TIOCMGET : constant := 21525;
TIOCMIWAIT : constant := 21596;
TIOCMSET : constant := 21528;
TIOCNOTTY : constant := 21538;
TIOCNXCL : constant := 21517;
TIOCOUTQ : constant := 21521;
TIOCPKT : constant := 21536;
TIOCPKT_DATA : constant := 0;
TIOCPKT_DOSTOP : constant := 32;
TIOCPKT_FLUSHREAD : constant := 1;
TIOCPKT_FLUSHWRITE : constant := 2;
TIOCPKT_IOCTL : constant := 64;
TIOCPKT_NOSTOP : constant := 16;
TIOCPKT_START : constant := 8;
TIOCPKT_STOP : constant := 4;
TIOCSBRK : constant := 21543;
TIOCSCTTY : constant := 21518;
TIOCSERCONFIG : constant := 21587;
TIOCSERGETLSR : constant := 21593;
TIOCSERGETMULTI : constant := 21594;
TIOCSERGSTRUCT : constant := 21592;
TIOCSERGWILD : constant := 21588;
TIOCSERSETMULTI : constant := 21595;
TIOCSERSWILD : constant := 21589;
TIOCSER_TEMT : constant := 1;
TIOCSETD : constant := 21539;
TIOCSIG : constant := 1074025526;
TIOCSLCKTRMIOS : constant := 21591;
TIOCSPGRP : constant := 21520;
TIOCSPTLCK : constant := 1074025521;
TIOCSRS485 : constant := 21551;
TIOCSSERIAL : constant := 21535;
TIOCSSOFTCAR : constant := 21530;
TIOCSTI : constant := 21522;
TIOCSWINSZ : constant := 21524;
TIOCVHANGUP : constant := 21559;
-- __ASM_GENERIC_IOCTLS_H (empty)
end C.asm_generic.ioctls;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.socket is
pragma Preelaborate;
SCM_TIMESTAMP : constant := 29;
SCM_TIMESTAMPING : constant := 37;
SCM_TIMESTAMPNS : constant := 35;
SCM_WIFI_STATUS : constant := 41;
SOL_SOCKET : constant := 1;
SO_ACCEPTCONN : constant := 30;
SO_ATTACH_BPF : constant := 50;
SO_ATTACH_FILTER : constant := 26;
SO_ATTACH_REUSEPORT_CBPF : constant := 51;
SO_ATTACH_REUSEPORT_EBPF : constant := 52;
SO_BINDTODEVICE : constant := 25;
SO_BPF_EXTENSIONS : constant := 48;
SO_BROADCAST : constant := 6;
SO_BSDCOMPAT : constant := 14;
SO_BUSY_POLL : constant := 46;
SO_CNX_ADVICE : constant := 53;
SO_DEBUG : constant := 1;
SO_DETACH_BPF : constant := 27;
SO_DETACH_FILTER : constant := 27;
SO_DOMAIN : constant := 39;
SO_DONTROUTE : constant := 5;
SO_ERROR : constant := 4;
SO_GET_FILTER : constant := 26;
SO_INCOMING_CPU : constant := 49;
SO_KEEPALIVE : constant := 9;
SO_LINGER : constant := 13;
SO_LOCK_FILTER : constant := 44;
SO_MARK : constant := 36;
SO_MAX_PACING_RATE : constant := 47;
SO_NOFCS : constant := 43;
SO_NO_CHECK : constant := 11;
SO_OOBINLINE : constant := 10;
SO_PASSCRED : constant := 16;
SO_PASSSEC : constant := 34;
SO_PEEK_OFF : constant := 42;
SO_PEERCRED : constant := 17;
SO_PEERNAME : constant := 28;
SO_PEERSEC : constant := 31;
SO_PRIORITY : constant := 12;
SO_PROTOCOL : constant := 38;
SO_RCVBUF : constant := 8;
SO_RCVBUFFORCE : constant := 33;
SO_RCVLOWAT : constant := 18;
SO_RCVTIMEO : constant := 20;
SO_REUSEADDR : constant := 2;
SO_REUSEPORT : constant := 15;
SO_RXQ_OVFL : constant := 40;
SO_SECURITY_AUTHENTICATION : constant := 22;
SO_SECURITY_ENCRYPTION_NETWORK : constant := 24;
SO_SECURITY_ENCRYPTION_TRANSPORT : constant := 23;
SO_SELECT_ERR_QUEUE : constant := 45;
SO_SNDBUF : constant := 7;
SO_SNDBUFFORCE : constant := 32;
SO_SNDLOWAT : constant := 19;
SO_SNDTIMEO : constant := 21;
SO_TIMESTAMP : constant := 29;
SO_TIMESTAMPING : constant := 37;
SO_TIMESTAMPNS : constant := 35;
SO_TYPE : constant := 3;
SO_WIFI_STATUS : constant := 41;
-- __ASM_GENERIC_SOCKET_H (empty)
end C.asm_generic.socket;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic.sockios is
pragma Preelaborate;
FIOGETOWN : constant := 35075;
FIOSETOWN : constant := 35073;
SIOCATMARK : constant := 35077;
SIOCGPGRP : constant := 35076;
SIOCGSTAMP : constant := 35078;
SIOCGSTAMPNS : constant := 35079;
SIOCSPGRP : constant := 35074;
-- __ASM_GENERIC_SOCKIOS_H (empty)
end C.asm_generic.sockios;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.asm_generic is
pragma Preelaborate;
end C.asm_generic;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.auxv is
pragma Preelaborate;
AT_BASE : constant := 7;
AT_BASE_PLATFORM : constant := 24;
AT_CLKTCK : constant := 17;
AT_DCACHEBSIZE : constant := 19;
AT_EGID : constant := 14;
AT_ENTRY : constant := 9;
AT_EUID : constant := 12;
AT_EXECFD : constant := 2;
AT_EXECFN : constant := 31;
AT_FLAGS : constant := 8;
AT_FPUCW : constant := 18;
AT_GID : constant := 13;
AT_HWCAP : constant := 16;
AT_HWCAP2 : constant := 26;
AT_ICACHEBSIZE : constant := 20;
AT_IGNORE : constant := 1;
AT_IGNOREPPC : constant := 22;
AT_L1D_CACHESHAPE : constant := 35;
AT_L1I_CACHESHAPE : constant := 34;
AT_L2_CACHESHAPE : constant := 36;
AT_L3_CACHESHAPE : constant := 37;
AT_NOTELF : constant := 10;
AT_NULL : constant := 0;
AT_PAGESZ : constant := 6;
AT_PHDR : constant := 3;
AT_PHENT : constant := 4;
AT_PHNUM : constant := 5;
AT_PLATFORM : constant := 15;
AT_RANDOM : constant := 25;
AT_SECURE : constant := 23;
AT_SYSINFO : constant := 32;
AT_SYSINFO_EHDR : constant := 33;
AT_UCACHEBSIZE : constant := 21;
AT_UID : constant := 11;
end C.bits.auxv;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package body C.bits.byteswap is
function bswap_32 (bsx : unsigned_int) return unsigned_int is
begin
return builtin_bswap32 (bsx);
end bswap_32;
function bswap_64 (bsx : types.uint64_t) return types.uint64_t is
begin
return builtin_bswap64 (bsx);
end bswap_64;
end C.bits.byteswap;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.byteswap is
pragma Preelaborate;
function bswap_32 (bsx : unsigned_int) return unsigned_int;
pragma Convention (C, bswap_32);
pragma Inline (bswap_32);
function bswap_64 (bsx : types.uint64_t) return types.uint64_t;
pragma Convention (C, bswap_64);
pragma Inline (bswap_64);
BITS_BYTESWAP_H : constant := 1;
-- __bswap_constant_16 (function macro)
-- __bswap_constant_32 (function macro)
-- __bswap_constant_64 (function macro)
end C.bits.byteswap;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.byteswap_16 is
pragma Preelaborate;
-- __bswap_16 (function macro)
end C.bits.byteswap_16;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
package C.bits.confname is
pragma Preelaborate;
type enum_d2723f9c is (qPC_LINK_MAX, qPC_MAX_CANON, qPC_MAX_INPUT,
qPC_NAME_MAX, qPC_PATH_MAX, qPC_PIPE_BUF, qPC_CHOWN_RESTRICTED,
qPC_NO_TRUNC, qPC_VDISABLE, qPC_SYNC_IO, qPC_ASYNC_IO, qPC_PRIO_IO,
qPC_SOCK_MAXBUF, qPC_FILESIZEBITS, qPC_REC_INCR_XFER_SIZE,
qPC_REC_MAX_XFER_SIZE, qPC_REC_MIN_XFER_SIZE, qPC_REC_XFER_ALIGN,
qPC_ALLOC_SIZE_MIN, qPC_SYMLINK_MAX, qPC_2_SYMLINKS);
for enum_d2723f9c use (qPC_LINK_MAX => 0, qPC_MAX_CANON => 1,
qPC_MAX_INPUT => 2, qPC_NAME_MAX => 3, qPC_PATH_MAX => 4,
qPC_PIPE_BUF => 5, qPC_CHOWN_RESTRICTED => 6, qPC_NO_TRUNC => 7,
qPC_VDISABLE => 8, qPC_SYNC_IO => 9, qPC_ASYNC_IO => 10,
qPC_PRIO_IO => 11, qPC_SOCK_MAXBUF => 12, qPC_FILESIZEBITS => 13,
qPC_REC_INCR_XFER_SIZE => 14, qPC_REC_MAX_XFER_SIZE => 15,
qPC_REC_MIN_XFER_SIZE => 16, qPC_REC_XFER_ALIGN => 17,
qPC_ALLOC_SIZE_MIN => 18, qPC_SYMLINK_MAX => 19, qPC_2_SYMLINKS => 20);
pragma Convention (C, enum_d2723f9c);
for enum_d2723f9c'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_d2723f9c, signed_int);
type enum_d63868b2 is (qSC_ARG_MAX, qSC_CHILD_MAX, qSC_CLK_TCK,
qSC_NGROUPS_MAX, qSC_OPEN_MAX, qSC_STREAM_MAX, qSC_TZNAME_MAX,
qSC_JOB_CONTROL, qSC_SAVED_IDS, qSC_REALTIME_SIGNALS,
qSC_PRIORITY_SCHEDULING, qSC_TIMERS, qSC_ASYNCHRONOUS_IO,
qSC_PRIORITIZED_IO, qSC_SYNCHRONIZED_IO, qSC_FSYNC, qSC_MAPPED_FILES,
qSC_MEMLOCK, qSC_MEMLOCK_RANGE, qSC_MEMORY_PROTECTION,
qSC_MESSAGE_PASSING, qSC_SEMAPHORES, qSC_SHARED_MEMORY_OBJECTS,
qSC_AIO_LISTIO_MAX, qSC_AIO_MAX, qSC_AIO_PRIO_DELTA_MAX,
qSC_DELAYTIMER_MAX, qSC_MQ_OPEN_MAX, qSC_MQ_PRIO_MAX, qSC_VERSION,
qSC_PAGESIZE, qSC_RTSIG_MAX, qSC_SEM_NSEMS_MAX, qSC_SEM_VALUE_MAX,
qSC_SIGQUEUE_MAX, qSC_TIMER_MAX, qSC_BC_BASE_MAX, qSC_BC_DIM_MAX,
qSC_BC_SCALE_MAX, qSC_BC_STRING_MAX, qSC_COLL_WEIGHTS_MAX,
qSC_EQUIV_CLASS_MAX, qSC_EXPR_NEST_MAX, qSC_LINE_MAX, qSC_RE_DUP_MAX,
qSC_CHARCLASS_NAME_MAX, qSC_2_VERSION, qSC_2_C_BIND, qSC_2_C_DEV,
qSC_2_FORT_DEV, qSC_2_FORT_RUN, qSC_2_SW_DEV, qSC_2_LOCALEDEF, qSC_PII,
qSC_PII_XTI, qSC_PII_SOCKET, qSC_PII_INTERNET, qSC_PII_OSI, qSC_POLL,
qSC_SELECT, qSC_UIO_MAXIOV, qSC_PII_INTERNET_STREAM,
qSC_PII_INTERNET_DGRAM, qSC_PII_OSI_COTS, qSC_PII_OSI_CLTS,
qSC_PII_OSI_M, qSC_T_IOV_MAX, qSC_THREADS, qSC_THREAD_SAFE_FUNCTIONS,
qSC_GETGR_R_SIZE_MAX, qSC_GETPW_R_SIZE_MAX, qSC_LOGIN_NAME_MAX,
qSC_TTY_NAME_MAX, qSC_THREAD_DESTRUCTOR_ITERATIONS,
qSC_THREAD_KEYS_MAX, qSC_THREAD_STACK_MIN, qSC_THREAD_THREADS_MAX,
qSC_THREAD_ATTR_STACKADDR, qSC_THREAD_ATTR_STACKSIZE,
qSC_THREAD_PRIORITY_SCHEDULING, qSC_THREAD_PRIO_INHERIT,
qSC_THREAD_PRIO_PROTECT, qSC_THREAD_PROCESS_SHARED,
qSC_NPROCESSORS_CONF, SC_NPROCESSORS_ONLN, qSC_PHYS_PAGES,
qSC_AVPHYS_PAGES, qSC_ATEXIT_MAX, qSC_PASS_MAX, qSC_XOPEN_VERSION,
qSC_XOPEN_XCU_VERSION, qSC_XOPEN_UNIX, qSC_XOPEN_CRYPT,
qSC_XOPEN_ENH_I18N, qSC_XOPEN_SHM, qSC_2_CHAR_TERM, qSC_2_C_VERSION,
qSC_2_UPE, qSC_XOPEN_XPG2, qSC_XOPEN_XPG3, qSC_XOPEN_XPG4,
qSC_CHAR_BIT, qSC_CHAR_MAX, qSC_CHAR_MIN, qSC_INT_MAX, qSC_INT_MIN,
qSC_LONG_BIT, qSC_WORD_BIT, qSC_MB_LEN_MAX, qSC_NZERO, qSC_SSIZE_MAX,
qSC_SCHAR_MAX, qSC_SCHAR_MIN, qSC_SHRT_MAX, qSC_SHRT_MIN,
qSC_UCHAR_MAX, qSC_UINT_MAX, qSC_ULONG_MAX, qSC_USHRT_MAX,
qSC_NL_ARGMAX, qSC_NL_LANGMAX, qSC_NL_MSGMAX, qSC_NL_NMAX,
qSC_NL_SETMAX, qSC_NL_TEXTMAX, qSC_XBS5_ILP32_OFF32,
qSC_XBS5_ILP32_OFFBIG, qSC_XBS5_LP64_OFF64, qSC_XBS5_LPBIG_OFFBIG,
qSC_XOPEN_LEGACY, qSC_XOPEN_REALTIME, qSC_XOPEN_REALTIME_THREADS,
qSC_ADVISORY_INFO, qSC_BARRIERS, qSC_BASE, qSC_C_LANG_SUPPORT,
qSC_C_LANG_SUPPORT_R, qSC_CLOCK_SELECTION, qSC_CPUTIME,
qSC_THREAD_CPUTIME, qSC_DEVICE_IO, qSC_DEVICE_SPECIFIC,
qSC_DEVICE_SPECIFIC_R, qSC_FD_MGMT, qSC_FIFO, qSC_PIPE,
qSC_FILE_ATTRIBUTES, qSC_FILE_LOCKING, qSC_FILE_SYSTEM,
qSC_MONOTONIC_CLOCK, qSC_MULTI_PROCESS, qSC_SINGLE_PROCESS,
qSC_NETWORKING, qSC_READER_WRITER_LOCKS, qSC_SPIN_LOCKS, qSC_REGEXP,
qSC_REGEX_VERSION, qSC_SHELL, qSC_SIGNALS, qSC_SPAWN,
qSC_SPORADIC_SERVER, qSC_THREAD_SPORADIC_SERVER, qSC_SYSTEM_DATABASE,
qSC_SYSTEM_DATABASE_R, qSC_TIMEOUTS, qSC_TYPED_MEMORY_OBJECTS,
qSC_USER_GROUPS, qSC_USER_GROUPS_R, qSC_2_PBS, qSC_2_PBS_ACCOUNTING,
qSC_2_PBS_LOCATE, qSC_2_PBS_MESSAGE, qSC_2_PBS_TRACK, qSC_SYMLOOP_MAX,
qSC_STREAMS, qSC_2_PBS_CHECKPOINT, qSC_V6_ILP32_OFF32,
qSC_V6_ILP32_OFFBIG, qSC_V6_LP64_OFF64, qSC_V6_LPBIG_OFFBIG,
qSC_HOST_NAME_MAX, qSC_TRACE, qSC_TRACE_EVENT_FILTER,
qSC_TRACE_INHERIT, qSC_TRACE_LOG, qSC_LEVEL1_ICACHE_SIZE,
qSC_LEVEL1_ICACHE_ASSOC, qSC_LEVEL1_ICACHE_LINESIZE,
qSC_LEVEL1_DCACHE_SIZE, qSC_LEVEL1_DCACHE_ASSOC,
qSC_LEVEL1_DCACHE_LINESIZE, qSC_LEVEL2_CACHE_SIZE,
qSC_LEVEL2_CACHE_ASSOC, qSC_LEVEL2_CACHE_LINESIZE,
qSC_LEVEL3_CACHE_SIZE, qSC_LEVEL3_CACHE_ASSOC,
qSC_LEVEL3_CACHE_LINESIZE, qSC_LEVEL4_CACHE_SIZE,
qSC_LEVEL4_CACHE_ASSOC, qSC_LEVEL4_CACHE_LINESIZE, qSC_IPV6,
qSC_RAW_SOCKETS, qSC_V7_ILP32_OFF32, qSC_V7_ILP32_OFFBIG,
qSC_V7_LP64_OFF64, qSC_V7_LPBIG_OFFBIG, qSC_SS_REPL_MAX,
qSC_TRACE_EVENT_NAME_MAX, qSC_TRACE_NAME_MAX, qSC_TRACE_SYS_MAX,
qSC_TRACE_USER_EVENT_MAX, qSC_XOPEN_STREAMS,
qSC_THREAD_ROBUST_PRIO_INHERIT, qSC_THREAD_ROBUST_PRIO_PROTECT);
for enum_d63868b2 use (qSC_ARG_MAX => 0, qSC_CHILD_MAX => 1,
qSC_CLK_TCK => 2, qSC_NGROUPS_MAX => 3, qSC_OPEN_MAX => 4,
qSC_STREAM_MAX => 5, qSC_TZNAME_MAX => 6, qSC_JOB_CONTROL => 7,
qSC_SAVED_IDS => 8, qSC_REALTIME_SIGNALS => 9,
qSC_PRIORITY_SCHEDULING => 10, qSC_TIMERS => 11,
qSC_ASYNCHRONOUS_IO => 12, qSC_PRIORITIZED_IO => 13,
qSC_SYNCHRONIZED_IO => 14, qSC_FSYNC => 15, qSC_MAPPED_FILES => 16,
qSC_MEMLOCK => 17, qSC_MEMLOCK_RANGE => 18,
qSC_MEMORY_PROTECTION => 19, qSC_MESSAGE_PASSING => 20,
qSC_SEMAPHORES => 21, qSC_SHARED_MEMORY_OBJECTS => 22,
qSC_AIO_LISTIO_MAX => 23, qSC_AIO_MAX => 24,
qSC_AIO_PRIO_DELTA_MAX => 25, qSC_DELAYTIMER_MAX => 26,
qSC_MQ_OPEN_MAX => 27, qSC_MQ_PRIO_MAX => 28, qSC_VERSION => 29,
qSC_PAGESIZE => 30, qSC_RTSIG_MAX => 31, qSC_SEM_NSEMS_MAX => 32,
qSC_SEM_VALUE_MAX => 33, qSC_SIGQUEUE_MAX => 34, qSC_TIMER_MAX => 35,
qSC_BC_BASE_MAX => 36, qSC_BC_DIM_MAX => 37, qSC_BC_SCALE_MAX => 38,
qSC_BC_STRING_MAX => 39, qSC_COLL_WEIGHTS_MAX => 40,
qSC_EQUIV_CLASS_MAX => 41, qSC_EXPR_NEST_MAX => 42, qSC_LINE_MAX => 43,
qSC_RE_DUP_MAX => 44, qSC_CHARCLASS_NAME_MAX => 45,
qSC_2_VERSION => 46, qSC_2_C_BIND => 47, qSC_2_C_DEV => 48,
qSC_2_FORT_DEV => 49, qSC_2_FORT_RUN => 50, qSC_2_SW_DEV => 51,
qSC_2_LOCALEDEF => 52, qSC_PII => 53, qSC_PII_XTI => 54,
qSC_PII_SOCKET => 55, qSC_PII_INTERNET => 56, qSC_PII_OSI => 57,
qSC_POLL => 58, qSC_SELECT => 59, qSC_UIO_MAXIOV => 60,
qSC_PII_INTERNET_STREAM => 61, qSC_PII_INTERNET_DGRAM => 62,
qSC_PII_OSI_COTS => 63, qSC_PII_OSI_CLTS => 64, qSC_PII_OSI_M => 65,
qSC_T_IOV_MAX => 66, qSC_THREADS => 67,
qSC_THREAD_SAFE_FUNCTIONS => 68, qSC_GETGR_R_SIZE_MAX => 69,
qSC_GETPW_R_SIZE_MAX => 70, qSC_LOGIN_NAME_MAX => 71,
qSC_TTY_NAME_MAX => 72, qSC_THREAD_DESTRUCTOR_ITERATIONS => 73,
qSC_THREAD_KEYS_MAX => 74, qSC_THREAD_STACK_MIN => 75,
qSC_THREAD_THREADS_MAX => 76, qSC_THREAD_ATTR_STACKADDR => 77,
qSC_THREAD_ATTR_STACKSIZE => 78, qSC_THREAD_PRIORITY_SCHEDULING => 79,
qSC_THREAD_PRIO_INHERIT => 80, qSC_THREAD_PRIO_PROTECT => 81,
qSC_THREAD_PROCESS_SHARED => 82, qSC_NPROCESSORS_CONF => 83,
SC_NPROCESSORS_ONLN => 84, qSC_PHYS_PAGES => 85,
qSC_AVPHYS_PAGES => 86, qSC_ATEXIT_MAX => 87, qSC_PASS_MAX => 88,
qSC_XOPEN_VERSION => 89, qSC_XOPEN_XCU_VERSION => 90,
qSC_XOPEN_UNIX => 91, qSC_XOPEN_CRYPT => 92, qSC_XOPEN_ENH_I18N => 93,
qSC_XOPEN_SHM => 94, qSC_2_CHAR_TERM => 95, qSC_2_C_VERSION => 96,
qSC_2_UPE => 97, qSC_XOPEN_XPG2 => 98, qSC_XOPEN_XPG3 => 99,
qSC_XOPEN_XPG4 => 100, qSC_CHAR_BIT => 101, qSC_CHAR_MAX => 102,
qSC_CHAR_MIN => 103, qSC_INT_MAX => 104, qSC_INT_MIN => 105,
qSC_LONG_BIT => 106, qSC_WORD_BIT => 107, qSC_MB_LEN_MAX => 108,
qSC_NZERO => 109, qSC_SSIZE_MAX => 110, qSC_SCHAR_MAX => 111,
qSC_SCHAR_MIN => 112, qSC_SHRT_MAX => 113, qSC_SHRT_MIN => 114,
qSC_UCHAR_MAX => 115, qSC_UINT_MAX => 116, qSC_ULONG_MAX => 117,
qSC_USHRT_MAX => 118, qSC_NL_ARGMAX => 119, qSC_NL_LANGMAX => 120,
qSC_NL_MSGMAX => 121, qSC_NL_NMAX => 122, qSC_NL_SETMAX => 123,
qSC_NL_TEXTMAX => 124, qSC_XBS5_ILP32_OFF32 => 125,
qSC_XBS5_ILP32_OFFBIG => 126, qSC_XBS5_LP64_OFF64 => 127,
qSC_XBS5_LPBIG_OFFBIG => 128, qSC_XOPEN_LEGACY => 129,
qSC_XOPEN_REALTIME => 130, qSC_XOPEN_REALTIME_THREADS => 131,
qSC_ADVISORY_INFO => 132, qSC_BARRIERS => 133, qSC_BASE => 134,
qSC_C_LANG_SUPPORT => 135, qSC_C_LANG_SUPPORT_R => 136,
qSC_CLOCK_SELECTION => 137, qSC_CPUTIME => 138,
qSC_THREAD_CPUTIME => 139, qSC_DEVICE_IO => 140,
qSC_DEVICE_SPECIFIC => 141, qSC_DEVICE_SPECIFIC_R => 142,
qSC_FD_MGMT => 143, qSC_FIFO => 144, qSC_PIPE => 145,
qSC_FILE_ATTRIBUTES => 146, qSC_FILE_LOCKING => 147,
qSC_FILE_SYSTEM => 148, qSC_MONOTONIC_CLOCK => 149,
qSC_MULTI_PROCESS => 150, qSC_SINGLE_PROCESS => 151,
qSC_NETWORKING => 152, qSC_READER_WRITER_LOCKS => 153,
qSC_SPIN_LOCKS => 154, qSC_REGEXP => 155, qSC_REGEX_VERSION => 156,
qSC_SHELL => 157, qSC_SIGNALS => 158, qSC_SPAWN => 159,
qSC_SPORADIC_SERVER => 160, qSC_THREAD_SPORADIC_SERVER => 161,
qSC_SYSTEM_DATABASE => 162, qSC_SYSTEM_DATABASE_R => 163,
qSC_TIMEOUTS => 164, qSC_TYPED_MEMORY_OBJECTS => 165,
qSC_USER_GROUPS => 166, qSC_USER_GROUPS_R => 167, qSC_2_PBS => 168,
qSC_2_PBS_ACCOUNTING => 169, qSC_2_PBS_LOCATE => 170,
qSC_2_PBS_MESSAGE => 171, qSC_2_PBS_TRACK => 172,
qSC_SYMLOOP_MAX => 173, qSC_STREAMS => 174,
qSC_2_PBS_CHECKPOINT => 175, qSC_V6_ILP32_OFF32 => 176,
qSC_V6_ILP32_OFFBIG => 177, qSC_V6_LP64_OFF64 => 178,
qSC_V6_LPBIG_OFFBIG => 179, qSC_HOST_NAME_MAX => 180, qSC_TRACE => 181,
qSC_TRACE_EVENT_FILTER => 182, qSC_TRACE_INHERIT => 183,
qSC_TRACE_LOG => 184, qSC_LEVEL1_ICACHE_SIZE => 185,
qSC_LEVEL1_ICACHE_ASSOC => 186, qSC_LEVEL1_ICACHE_LINESIZE => 187,
qSC_LEVEL1_DCACHE_SIZE => 188, qSC_LEVEL1_DCACHE_ASSOC => 189,
qSC_LEVEL1_DCACHE_LINESIZE => 190, qSC_LEVEL2_CACHE_SIZE => 191,
qSC_LEVEL2_CACHE_ASSOC => 192, qSC_LEVEL2_CACHE_LINESIZE => 193,
qSC_LEVEL3_CACHE_SIZE => 194, qSC_LEVEL3_CACHE_ASSOC => 195,
qSC_LEVEL3_CACHE_LINESIZE => 196, qSC_LEVEL4_CACHE_SIZE => 197,
qSC_LEVEL4_CACHE_ASSOC => 198, qSC_LEVEL4_CACHE_LINESIZE => 199,
qSC_IPV6 => 235, qSC_RAW_SOCKETS => 236, qSC_V7_ILP32_OFF32 => 237,
qSC_V7_ILP32_OFFBIG => 238, qSC_V7_LP64_OFF64 => 239,
qSC_V7_LPBIG_OFFBIG => 240, qSC_SS_REPL_MAX => 241,
qSC_TRACE_EVENT_NAME_MAX => 242, qSC_TRACE_NAME_MAX => 243,
qSC_TRACE_SYS_MAX => 244, qSC_TRACE_USER_EVENT_MAX => 245,
qSC_XOPEN_STREAMS => 246, qSC_THREAD_ROBUST_PRIO_INHERIT => 247,
qSC_THREAD_ROBUST_PRIO_PROTECT => 248);
pragma Convention (C, enum_d63868b2);
function qSC_IOV_MAX return enum_d63868b2 renames qSC_UIO_MAXIOV;
for enum_d63868b2'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_d63868b2, signed_int);
type enum_2e5a2b7c is (qCS_PATH, qCS_V6_WIDTH_RESTRICTED_ENVS,
qCS_GNU_LIBC_VERSION, qCS_GNU_LIBPTHREAD_VERSION,
qCS_V5_WIDTH_RESTRICTED_ENVS, qCS_V7_WIDTH_RESTRICTED_ENVS,
qCS_LFS_CFLAGS, qCS_LFS_LDFLAGS, qCS_LFS_LIBS, qCS_LFS_LINTFLAGS,
qCS_LFS64_CFLAGS, qCS_LFS64_LDFLAGS, qCS_LFS64_LIBS,
qCS_LFS64_LINTFLAGS, qCS_XBS5_ILP32_OFF32_CFLAGS,
qCS_XBS5_ILP32_OFF32_LDFLAGS, qCS_XBS5_ILP32_OFF32_LIBS,
qCS_XBS5_ILP32_OFF32_LINTFLAGS, qCS_XBS5_ILP32_OFFBIG_CFLAGS,
qCS_XBS5_ILP32_OFFBIG_LDFLAGS, qCS_XBS5_ILP32_OFFBIG_LIBS,
qCS_XBS5_ILP32_OFFBIG_LINTFLAGS, qCS_XBS5_LP64_OFF64_CFLAGS,
qCS_XBS5_LP64_OFF64_LDFLAGS, qCS_XBS5_LP64_OFF64_LIBS,
qCS_XBS5_LP64_OFF64_LINTFLAGS, qCS_XBS5_LPBIG_OFFBIG_CFLAGS,
qCS_XBS5_LPBIG_OFFBIG_LDFLAGS, qCS_XBS5_LPBIG_OFFBIG_LIBS,
qCS_XBS5_LPBIG_OFFBIG_LINTFLAGS, qCS_POSIX_V6_ILP32_OFF32_CFLAGS,
qCS_POSIX_V6_ILP32_OFF32_LDFLAGS, qCS_POSIX_V6_ILP32_OFF32_LIBS,
qCS_POSIX_V6_ILP32_OFF32_LINTFLAGS, qCS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
qCS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, qCS_POSIX_V6_ILP32_OFFBIG_LIBS,
qCS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, qCS_POSIX_V6_LP64_OFF64_CFLAGS,
qCS_POSIX_V6_LP64_OFF64_LDFLAGS, qCS_POSIX_V6_LP64_OFF64_LIBS,
qCS_POSIX_V6_LP64_OFF64_LINTFLAGS, qCS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
qCS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, qCS_POSIX_V6_LPBIG_OFFBIG_LIBS,
qCS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, qCS_POSIX_V7_ILP32_OFF32_CFLAGS,
qCS_POSIX_V7_ILP32_OFF32_LDFLAGS, qCS_POSIX_V7_ILP32_OFF32_LIBS,
qCS_POSIX_V7_ILP32_OFF32_LINTFLAGS, qCS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
qCS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, qCS_POSIX_V7_ILP32_OFFBIG_LIBS,
qCS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, qCS_POSIX_V7_LP64_OFF64_CFLAGS,
qCS_POSIX_V7_LP64_OFF64_LDFLAGS, qCS_POSIX_V7_LP64_OFF64_LIBS,
qCS_POSIX_V7_LP64_OFF64_LINTFLAGS, qCS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
qCS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, qCS_POSIX_V7_LPBIG_OFFBIG_LIBS,
qCS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, qCS_V6_ENV, qCS_V7_ENV);
for enum_2e5a2b7c use (qCS_PATH => 0, qCS_V6_WIDTH_RESTRICTED_ENVS => 1,
qCS_GNU_LIBC_VERSION => 2, qCS_GNU_LIBPTHREAD_VERSION => 3,
qCS_V5_WIDTH_RESTRICTED_ENVS => 4, qCS_V7_WIDTH_RESTRICTED_ENVS => 5,
qCS_LFS_CFLAGS => 1000, qCS_LFS_LDFLAGS => 1001, qCS_LFS_LIBS => 1002,
qCS_LFS_LINTFLAGS => 1003, qCS_LFS64_CFLAGS => 1004,
qCS_LFS64_LDFLAGS => 1005, qCS_LFS64_LIBS => 1006,
qCS_LFS64_LINTFLAGS => 1007, qCS_XBS5_ILP32_OFF32_CFLAGS => 1100,
qCS_XBS5_ILP32_OFF32_LDFLAGS => 1101,
qCS_XBS5_ILP32_OFF32_LIBS => 1102,
qCS_XBS5_ILP32_OFF32_LINTFLAGS => 1103,
qCS_XBS5_ILP32_OFFBIG_CFLAGS => 1104,
qCS_XBS5_ILP32_OFFBIG_LDFLAGS => 1105,
qCS_XBS5_ILP32_OFFBIG_LIBS => 1106,
qCS_XBS5_ILP32_OFFBIG_LINTFLAGS => 1107,
qCS_XBS5_LP64_OFF64_CFLAGS => 1108,
qCS_XBS5_LP64_OFF64_LDFLAGS => 1109, qCS_XBS5_LP64_OFF64_LIBS => 1110,
qCS_XBS5_LP64_OFF64_LINTFLAGS => 1111,
qCS_XBS5_LPBIG_OFFBIG_CFLAGS => 1112,
qCS_XBS5_LPBIG_OFFBIG_LDFLAGS => 1113,
qCS_XBS5_LPBIG_OFFBIG_LIBS => 1114,
qCS_XBS5_LPBIG_OFFBIG_LINTFLAGS => 1115,
qCS_POSIX_V6_ILP32_OFF32_CFLAGS => 1116,
qCS_POSIX_V6_ILP32_OFF32_LDFLAGS => 1117,
qCS_POSIX_V6_ILP32_OFF32_LIBS => 1118,
qCS_POSIX_V6_ILP32_OFF32_LINTFLAGS => 1119,
qCS_POSIX_V6_ILP32_OFFBIG_CFLAGS => 1120,
qCS_POSIX_V6_ILP32_OFFBIG_LDFLAGS => 1121,
qCS_POSIX_V6_ILP32_OFFBIG_LIBS => 1122,
qCS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS => 1123,
qCS_POSIX_V6_LP64_OFF64_CFLAGS => 1124,
qCS_POSIX_V6_LP64_OFF64_LDFLAGS => 1125,
qCS_POSIX_V6_LP64_OFF64_LIBS => 1126,
qCS_POSIX_V6_LP64_OFF64_LINTFLAGS => 1127,
qCS_POSIX_V6_LPBIG_OFFBIG_CFLAGS => 1128,
qCS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS => 1129,
qCS_POSIX_V6_LPBIG_OFFBIG_LIBS => 1130,
qCS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS => 1131,
qCS_POSIX_V7_ILP32_OFF32_CFLAGS => 1132,
qCS_POSIX_V7_ILP32_OFF32_LDFLAGS => 1133,
qCS_POSIX_V7_ILP32_OFF32_LIBS => 1134,
qCS_POSIX_V7_ILP32_OFF32_LINTFLAGS => 1135,
qCS_POSIX_V7_ILP32_OFFBIG_CFLAGS => 1136,
qCS_POSIX_V7_ILP32_OFFBIG_LDFLAGS => 1137,
qCS_POSIX_V7_ILP32_OFFBIG_LIBS => 1138,
qCS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS => 1139,
qCS_POSIX_V7_LP64_OFF64_CFLAGS => 1140,
qCS_POSIX_V7_LP64_OFF64_LDFLAGS => 1141,
qCS_POSIX_V7_LP64_OFF64_LIBS => 1142,
qCS_POSIX_V7_LP64_OFF64_LINTFLAGS => 1143,
qCS_POSIX_V7_LPBIG_OFFBIG_CFLAGS => 1144,
qCS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS => 1145,
qCS_POSIX_V7_LPBIG_OFFBIG_LIBS => 1146,
qCS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS => 1147, qCS_V6_ENV => 1148,
qCS_V7_ENV => 1149);
pragma Convention (C, enum_2e5a2b7c);
for enum_2e5a2b7c'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_2e5a2b7c, signed_int);
-- _CS_GNU_LIBC_VERSION (repeating itself)
-- _CS_GNU_LIBPTHREAD_VERSION (repeating itself)
-- _CS_LFS64_CFLAGS (repeating itself)
-- _CS_LFS64_LDFLAGS (repeating itself)
-- _CS_LFS64_LIBS (repeating itself)
-- _CS_LFS64_LINTFLAGS (repeating itself)
-- _CS_LFS_CFLAGS (repeating itself)
-- _CS_LFS_LDFLAGS (repeating itself)
-- _CS_LFS_LIBS (repeating itself)
-- _CS_LFS_LINTFLAGS (repeating itself)
-- _CS_PATH (repeating itself)
-- _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFF32_CFLAGS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFF32_LDFLAGS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFF32_LIBS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFFBIG_LIBS (repeating itself)
-- _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS (repeating itself)
-- _CS_POSIX_V6_LP64_OFF64_CFLAGS (repeating itself)
-- _CS_POSIX_V6_LP64_OFF64_LDFLAGS (repeating itself)
-- _CS_POSIX_V6_LP64_OFF64_LIBS (repeating itself)
-- _CS_POSIX_V6_LP64_OFF64_LINTFLAGS (repeating itself)
-- _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS (repeating itself)
-- _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS (repeating itself)
-- _CS_POSIX_V6_LPBIG_OFFBIG_LIBS (repeating itself)
-- _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS (repeating itself)
-- _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFF32_CFLAGS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFF32_LDFLAGS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFF32_LIBS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFFBIG_LIBS (repeating itself)
-- _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS (repeating itself)
-- _CS_POSIX_V7_LP64_OFF64_CFLAGS (repeating itself)
-- _CS_POSIX_V7_LP64_OFF64_LDFLAGS (repeating itself)
-- _CS_POSIX_V7_LP64_OFF64_LIBS (repeating itself)
-- _CS_POSIX_V7_LP64_OFF64_LINTFLAGS (repeating itself)
-- _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS (repeating itself)
-- _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS (repeating itself)
-- _CS_POSIX_V7_LPBIG_OFFBIG_LIBS (repeating itself)
-- _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS (repeating itself)
-- _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_V5_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_V6_ENV (repeating itself)
-- _CS_V6_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_V7_ENV (repeating itself)
-- _CS_V7_WIDTH_RESTRICTED_ENVS (repeating itself)
-- _CS_XBS5_ILP32_OFF32_CFLAGS (repeating itself)
-- _CS_XBS5_ILP32_OFF32_LDFLAGS (repeating itself)
-- _CS_XBS5_ILP32_OFF32_LIBS (repeating itself)
-- _CS_XBS5_ILP32_OFF32_LINTFLAGS (repeating itself)
-- _CS_XBS5_ILP32_OFFBIG_CFLAGS (repeating itself)
-- _CS_XBS5_ILP32_OFFBIG_LDFLAGS (repeating itself)
-- _CS_XBS5_ILP32_OFFBIG_LIBS (repeating itself)
-- _CS_XBS5_ILP32_OFFBIG_LINTFLAGS (repeating itself)
-- _CS_XBS5_LP64_OFF64_CFLAGS (repeating itself)
-- _CS_XBS5_LP64_OFF64_LDFLAGS (repeating itself)
-- _CS_XBS5_LP64_OFF64_LIBS (repeating itself)
-- _CS_XBS5_LP64_OFF64_LINTFLAGS (repeating itself)
-- _CS_XBS5_LPBIG_OFFBIG_CFLAGS (repeating itself)
-- _CS_XBS5_LPBIG_OFFBIG_LDFLAGS (repeating itself)
-- _CS_XBS5_LPBIG_OFFBIG_LIBS (repeating itself)
-- _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS (repeating itself)
-- _PC_2_SYMLINKS (repeating itself)
-- _PC_ALLOC_SIZE_MIN (repeating itself)
-- _PC_ASYNC_IO (repeating itself)
-- _PC_CHOWN_RESTRICTED (repeating itself)
-- _PC_FILESIZEBITS (repeating itself)
-- _PC_LINK_MAX (repeating itself)
-- _PC_MAX_CANON (repeating itself)
-- _PC_MAX_INPUT (repeating itself)
-- _PC_NAME_MAX (repeating itself)
-- _PC_NO_TRUNC (repeating itself)
-- _PC_PATH_MAX (repeating itself)
-- _PC_PIPE_BUF (repeating itself)
-- _PC_PRIO_IO (repeating itself)
-- _PC_REC_INCR_XFER_SIZE (repeating itself)
-- _PC_REC_MAX_XFER_SIZE (repeating itself)
-- _PC_REC_MIN_XFER_SIZE (repeating itself)
-- _PC_REC_XFER_ALIGN (repeating itself)
-- _PC_SOCK_MAXBUF (repeating itself)
-- _PC_SYMLINK_MAX (repeating itself)
-- _PC_SYNC_IO (repeating itself)
-- _PC_VDISABLE (repeating itself)
-- _SC_2_CHAR_TERM (repeating itself)
-- _SC_2_C_BIND (repeating itself)
-- _SC_2_C_DEV (repeating itself)
-- _SC_2_C_VERSION (repeating itself)
-- _SC_2_FORT_DEV (repeating itself)
-- _SC_2_FORT_RUN (repeating itself)
-- _SC_2_LOCALEDEF (repeating itself)
-- _SC_2_PBS (repeating itself)
-- _SC_2_PBS_ACCOUNTING (repeating itself)
-- _SC_2_PBS_CHECKPOINT (repeating itself)
-- _SC_2_PBS_LOCATE (repeating itself)
-- _SC_2_PBS_MESSAGE (repeating itself)
-- _SC_2_PBS_TRACK (repeating itself)
-- _SC_2_SW_DEV (repeating itself)
-- _SC_2_UPE (repeating itself)
-- _SC_2_VERSION (repeating itself)
-- _SC_ADVISORY_INFO (repeating itself)
-- _SC_AIO_LISTIO_MAX (repeating itself)
-- _SC_AIO_MAX (repeating itself)
-- _SC_AIO_PRIO_DELTA_MAX (repeating itself)
-- _SC_ARG_MAX (repeating itself)
-- _SC_ASYNCHRONOUS_IO (repeating itself)
-- _SC_ATEXIT_MAX (repeating itself)
-- _SC_AVPHYS_PAGES (repeating itself)
-- _SC_BARRIERS (repeating itself)
-- _SC_BASE (repeating itself)
-- _SC_BC_BASE_MAX (repeating itself)
-- _SC_BC_DIM_MAX (repeating itself)
-- _SC_BC_SCALE_MAX (repeating itself)
-- _SC_BC_STRING_MAX (repeating itself)
-- _SC_CHARCLASS_NAME_MAX (repeating itself)
-- _SC_CHAR_BIT (repeating itself)
-- _SC_CHAR_MAX (repeating itself)
-- _SC_CHAR_MIN (repeating itself)
-- _SC_CHILD_MAX (repeating itself)
-- _SC_CLK_TCK (repeating itself)
-- _SC_CLOCK_SELECTION (repeating itself)
-- _SC_COLL_WEIGHTS_MAX (repeating itself)
-- _SC_CPUTIME (repeating itself)
-- _SC_C_LANG_SUPPORT (repeating itself)
-- _SC_C_LANG_SUPPORT_R (repeating itself)
-- _SC_DELAYTIMER_MAX (repeating itself)
-- _SC_DEVICE_IO (repeating itself)
-- _SC_DEVICE_SPECIFIC (repeating itself)
-- _SC_DEVICE_SPECIFIC_R (repeating itself)
-- _SC_EQUIV_CLASS_MAX (repeating itself)
-- _SC_EXPR_NEST_MAX (repeating itself)
-- _SC_FD_MGMT (repeating itself)
-- _SC_FIFO (repeating itself)
-- _SC_FILE_ATTRIBUTES (repeating itself)
-- _SC_FILE_LOCKING (repeating itself)
-- _SC_FILE_SYSTEM (repeating itself)
-- _SC_FSYNC (repeating itself)
-- _SC_GETGR_R_SIZE_MAX (repeating itself)
-- _SC_GETPW_R_SIZE_MAX (repeating itself)
-- _SC_HOST_NAME_MAX (repeating itself)
-- _SC_INT_MAX (repeating itself)
-- _SC_INT_MIN (repeating itself)
-- _SC_IOV_MAX (repeating itself)
-- _SC_IPV6 (repeating itself)
-- _SC_JOB_CONTROL (repeating itself)
-- _SC_LEVEL1_DCACHE_ASSOC (repeating itself)
-- _SC_LEVEL1_DCACHE_LINESIZE (repeating itself)
-- _SC_LEVEL1_DCACHE_SIZE (repeating itself)
-- _SC_LEVEL1_ICACHE_ASSOC (repeating itself)
-- _SC_LEVEL1_ICACHE_LINESIZE (repeating itself)
-- _SC_LEVEL1_ICACHE_SIZE (repeating itself)
-- _SC_LEVEL2_CACHE_ASSOC (repeating itself)
-- _SC_LEVEL2_CACHE_LINESIZE (repeating itself)
-- _SC_LEVEL2_CACHE_SIZE (repeating itself)
-- _SC_LEVEL3_CACHE_ASSOC (repeating itself)
-- _SC_LEVEL3_CACHE_LINESIZE (repeating itself)
-- _SC_LEVEL3_CACHE_SIZE (repeating itself)
-- _SC_LEVEL4_CACHE_ASSOC (repeating itself)
-- _SC_LEVEL4_CACHE_LINESIZE (repeating itself)
-- _SC_LEVEL4_CACHE_SIZE (repeating itself)
-- _SC_LINE_MAX (repeating itself)
-- _SC_LOGIN_NAME_MAX (repeating itself)
-- _SC_LONG_BIT (repeating itself)
-- _SC_MAPPED_FILES (repeating itself)
-- _SC_MB_LEN_MAX (repeating itself)
-- _SC_MEMLOCK (repeating itself)
-- _SC_MEMLOCK_RANGE (repeating itself)
-- _SC_MEMORY_PROTECTION (repeating itself)
-- _SC_MESSAGE_PASSING (repeating itself)
-- _SC_MONOTONIC_CLOCK (repeating itself)
-- _SC_MQ_OPEN_MAX (repeating itself)
-- _SC_MQ_PRIO_MAX (repeating itself)
-- _SC_MULTI_PROCESS (repeating itself)
-- _SC_NETWORKING (repeating itself)
-- _SC_NGROUPS_MAX (repeating itself)
-- _SC_NL_ARGMAX (repeating itself)
-- _SC_NL_LANGMAX (repeating itself)
-- _SC_NL_MSGMAX (repeating itself)
-- _SC_NL_NMAX (repeating itself)
-- _SC_NL_SETMAX (repeating itself)
-- _SC_NL_TEXTMAX (repeating itself)
-- _SC_NPROCESSORS_CONF (repeating itself)
-- _SC_NZERO (repeating itself)
-- _SC_OPEN_MAX (repeating itself)
-- _SC_PAGESIZE (repeating itself)
-- _SC_PAGE_SIZE (repeating itself)
-- _SC_PASS_MAX (repeating itself)
-- _SC_PHYS_PAGES (repeating itself)
-- _SC_PII (repeating itself)
-- _SC_PII_INTERNET (repeating itself)
-- _SC_PII_INTERNET_DGRAM (repeating itself)
-- _SC_PII_INTERNET_STREAM (repeating itself)
-- _SC_PII_OSI (repeating itself)
-- _SC_PII_OSI_CLTS (repeating itself)
-- _SC_PII_OSI_COTS (repeating itself)
-- _SC_PII_OSI_M (repeating itself)
-- _SC_PII_SOCKET (repeating itself)
-- _SC_PII_XTI (repeating itself)
-- _SC_PIPE (repeating itself)
-- _SC_POLL (repeating itself)
-- _SC_PRIORITIZED_IO (repeating itself)
-- _SC_PRIORITY_SCHEDULING (repeating itself)
-- _SC_RAW_SOCKETS (repeating itself)
-- _SC_READER_WRITER_LOCKS (repeating itself)
-- _SC_REALTIME_SIGNALS (repeating itself)
-- _SC_REGEXP (repeating itself)
-- _SC_REGEX_VERSION (repeating itself)
-- _SC_RE_DUP_MAX (repeating itself)
-- _SC_RTSIG_MAX (repeating itself)
-- _SC_SAVED_IDS (repeating itself)
-- _SC_SCHAR_MAX (repeating itself)
-- _SC_SCHAR_MIN (repeating itself)
-- _SC_SELECT (repeating itself)
-- _SC_SEMAPHORES (repeating itself)
-- _SC_SEM_NSEMS_MAX (repeating itself)
-- _SC_SEM_VALUE_MAX (repeating itself)
-- _SC_SHARED_MEMORY_OBJECTS (repeating itself)
-- _SC_SHELL (repeating itself)
-- _SC_SHRT_MAX (repeating itself)
-- _SC_SHRT_MIN (repeating itself)
-- _SC_SIGNALS (repeating itself)
-- _SC_SIGQUEUE_MAX (repeating itself)
-- _SC_SINGLE_PROCESS (repeating itself)
-- _SC_SPAWN (repeating itself)
-- _SC_SPIN_LOCKS (repeating itself)
-- _SC_SPORADIC_SERVER (repeating itself)
-- _SC_SSIZE_MAX (repeating itself)
-- _SC_SS_REPL_MAX (repeating itself)
-- _SC_STREAMS (repeating itself)
-- _SC_STREAM_MAX (repeating itself)
-- _SC_SYMLOOP_MAX (repeating itself)
-- _SC_SYNCHRONIZED_IO (repeating itself)
-- _SC_SYSTEM_DATABASE (repeating itself)
-- _SC_SYSTEM_DATABASE_R (repeating itself)
-- _SC_THREADS (repeating itself)
-- _SC_THREAD_ATTR_STACKADDR (repeating itself)
-- _SC_THREAD_ATTR_STACKSIZE (repeating itself)
-- _SC_THREAD_CPUTIME (repeating itself)
-- _SC_THREAD_DESTRUCTOR_ITERATIONS (repeating itself)
-- _SC_THREAD_KEYS_MAX (repeating itself)
-- _SC_THREAD_PRIORITY_SCHEDULING (repeating itself)
-- _SC_THREAD_PRIO_INHERIT (repeating itself)
-- _SC_THREAD_PRIO_PROTECT (repeating itself)
-- _SC_THREAD_PROCESS_SHARED (repeating itself)
-- _SC_THREAD_ROBUST_PRIO_INHERIT (repeating itself)
-- _SC_THREAD_ROBUST_PRIO_PROTECT (repeating itself)
-- _SC_THREAD_SAFE_FUNCTIONS (repeating itself)
-- _SC_THREAD_SPORADIC_SERVER (repeating itself)
-- _SC_THREAD_STACK_MIN (repeating itself)
-- _SC_THREAD_THREADS_MAX (repeating itself)
-- _SC_TIMEOUTS (repeating itself)
-- _SC_TIMERS (repeating itself)
-- _SC_TIMER_MAX (repeating itself)
-- _SC_TRACE (repeating itself)
-- _SC_TRACE_EVENT_FILTER (repeating itself)
-- _SC_TRACE_EVENT_NAME_MAX (repeating itself)
-- _SC_TRACE_INHERIT (repeating itself)
-- _SC_TRACE_LOG (repeating itself)
-- _SC_TRACE_NAME_MAX (repeating itself)
-- _SC_TRACE_SYS_MAX (repeating itself)
-- _SC_TRACE_USER_EVENT_MAX (repeating itself)
-- _SC_TTY_NAME_MAX (repeating itself)
-- _SC_TYPED_MEMORY_OBJECTS (repeating itself)
-- _SC_TZNAME_MAX (repeating itself)
-- _SC_T_IOV_MAX (repeating itself)
-- _SC_UCHAR_MAX (repeating itself)
-- _SC_UINT_MAX (repeating itself)
-- _SC_UIO_MAXIOV (repeating itself)
-- _SC_ULONG_MAX (repeating itself)
-- _SC_USER_GROUPS (repeating itself)
-- _SC_USER_GROUPS_R (repeating itself)
-- _SC_USHRT_MAX (repeating itself)
-- _SC_V6_ILP32_OFF32 (repeating itself)
-- _SC_V6_ILP32_OFFBIG (repeating itself)
-- _SC_V6_LP64_OFF64 (repeating itself)
-- _SC_V6_LPBIG_OFFBIG (repeating itself)
-- _SC_V7_ILP32_OFF32 (repeating itself)
-- _SC_V7_ILP32_OFFBIG (repeating itself)
-- _SC_V7_LP64_OFF64 (repeating itself)
-- _SC_V7_LPBIG_OFFBIG (repeating itself)
-- _SC_VERSION (repeating itself)
-- _SC_WORD_BIT (repeating itself)
-- _SC_XBS5_ILP32_OFF32 (repeating itself)
-- _SC_XBS5_ILP32_OFFBIG (repeating itself)
-- _SC_XBS5_LP64_OFF64 (repeating itself)
-- _SC_XBS5_LPBIG_OFFBIG (repeating itself)
-- _SC_XOPEN_CRYPT (repeating itself)
-- _SC_XOPEN_ENH_I18N (repeating itself)
-- _SC_XOPEN_LEGACY (repeating itself)
-- _SC_XOPEN_REALTIME (repeating itself)
-- _SC_XOPEN_REALTIME_THREADS (repeating itself)
-- _SC_XOPEN_SHM (repeating itself)
-- _SC_XOPEN_STREAMS (repeating itself)
-- _SC_XOPEN_UNIX (repeating itself)
-- _SC_XOPEN_VERSION (repeating itself)
-- _SC_XOPEN_XCU_VERSION (repeating itself)
-- _SC_XOPEN_XPG2 (repeating itself)
-- _SC_XOPEN_XPG3 (repeating itself)
-- _SC_XOPEN_XPG4 (repeating itself)
end C.bits.confname;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.dirent is
pragma Preelaborate;
type struct_dirent;
type struct_dirent is record
d_ino : aliased types.ino64_t;
d_off : aliased types.off64_t;
d_reclen : aliased unsigned_short;
d_type : aliased unsigned_char;
d_name : aliased char_array (0 .. 255);
end record;
pragma Convention (C_Pass_By_Copy, struct_dirent);
type struct_dirent_ptr is access all struct_dirent;
for struct_dirent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent_ptr);
pragma Convention (C, struct_dirent_ptr);
type struct_dirent_ptr_ptr is access all struct_dirent_ptr;
for struct_dirent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent_ptr_ptr);
pragma Convention (C, struct_dirent_ptr_ptr);
type struct_dirent_ptr_ptr_ptr is access all struct_dirent_ptr_ptr;
for struct_dirent_ptr_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent_ptr_ptr_ptr);
pragma Convention (C, struct_dirent_ptr_ptr_ptr);
type struct_dirent_const_ptr is access constant struct_dirent;
for struct_dirent_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent_const_ptr);
pragma Convention (C, struct_dirent_const_ptr);
type struct_dirent_const_ptr_ptr is access all struct_dirent_const_ptr;
for struct_dirent_const_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent_const_ptr_ptr);
pragma Convention (C, struct_dirent_const_ptr_ptr);
type struct_dirent64;
type struct_dirent64 is record
d_ino : aliased types.ino64_t;
d_off : aliased types.off64_t;
d_reclen : aliased unsigned_short;
d_type : aliased unsigned_char;
d_name : aliased char_array (0 .. 255);
end record;
pragma Convention (C_Pass_By_Copy, struct_dirent64);
type struct_dirent64_ptr is access all struct_dirent64;
for struct_dirent64_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent64_ptr);
pragma Convention (C, struct_dirent64_ptr);
type struct_dirent64_ptr_ptr is access all struct_dirent64_ptr;
for struct_dirent64_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent64_ptr_ptr);
pragma Convention (C, struct_dirent64_ptr_ptr);
type struct_dirent64_ptr_ptr_ptr is access all struct_dirent64_ptr_ptr;
for struct_dirent64_ptr_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent64_ptr_ptr_ptr);
pragma Convention (C, struct_dirent64_ptr_ptr_ptr);
type struct_dirent64_const_ptr is access constant struct_dirent64;
for struct_dirent64_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent64_const_ptr);
pragma Convention (C, struct_dirent64_const_ptr);
type struct_dirent64_const_ptr_ptr is
access all struct_dirent64_const_ptr;
for struct_dirent64_const_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirent64_const_ptr_ptr);
pragma Convention (C, struct_dirent64_const_ptr_ptr);
-- _DIRENT_HAVE_D_OFF (empty)
-- _DIRENT_HAVE_D_RECLEN (empty)
-- _DIRENT_HAVE_D_TYPE (empty)
-- .d_fileno renames .d_ino (accessor)
end C.bits.dirent;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.dlfcn is
pragma Preelaborate;
procedure dl_mcount_wrapper_check (selfpc : void_ptr);
pragma Import (C, dl_mcount_wrapper_check, "_dl_mcount_wrapper_check");
-- DL_CALL_FCT (unparsible)
RTLD_BINDING_MASK : constant := 3;
RTLD_DEEPBIND : constant := 8;
RTLD_GLOBAL : constant := 256;
RTLD_LAZY : constant := 1;
RTLD_LOCAL : constant := 0;
RTLD_NODELETE : constant := 4096;
RTLD_NOLOAD : constant := 4;
RTLD_NOW : constant := 2;
end C.bits.dlfcn;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stdint;
package C.bits.elfclass is
pragma Preelaborate;
subtype Elf_Symndx is stdint.uint32_t;
ELF_NATIVE_CLASS : constant := 32;
end C.bits.elfclass;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.endian is
pragma Preelaborate;
BYTE_ORDER : constant := 1234;
end C.bits.endian;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.environments is
pragma Preelaborate;
POSIX_V6_ILP32_OFF32 : constant := 1;
POSIX_V6_ILP32_OFFBIG : constant := 1;
POSIX_V7_ILP32_OFF32 : constant := 1;
POSIX_V7_ILP32_OFFBIG : constant := 1;
XBS5_ILP32_OFF32 : constant := 1;
XBS5_ILP32_OFFBIG : constant := 1;
ILP32_OFF32_CFLAGS : constant char_array (0 .. 4) := "-m32"
& char'Val (0);
ILP32_OFF32_LDFLAGS : constant char_array (0 .. 4) := "-m32"
& char'Val (0);
ILP32_OFFBIG_CFLAGS : constant char_array (0 .. 47) :=
"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" & char'Val (0);
ILP32_OFFBIG_LDFLAGS : constant char_array (0 .. 4) := "-m32"
& char'Val (0);
LP64_OFF64_CFLAGS : constant char_array (0 .. 4) := "-m64" & char'Val (0);
LP64_OFF64_LDFLAGS : constant char_array (0 .. 4) := "-m64"
& char'Val (0);
end C.bits.environments;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package body C.bits.errno is
function errno return signed_int is
begin
return errno_location.all;
end errno;
end C.bits.errno;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.errno is
pragma Preelaborate;
function errno_location return signed_int_ptr;
pragma Import (C, errno_location, "__errno_location");
ENOTSUP : constant := 95;
function errno return signed_int;
pragma Inline_Always (errno);
end C.bits.errno;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.fcntl is
pragma Preelaborate;
type struct_flock;
type struct_flock is record
l_type : aliased signed_short;
l_whence : aliased signed_short;
l_start : aliased types.off64_t;
l_len : aliased types.off64_t;
l_pid : aliased types.pid_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_flock);
type struct_flock64;
type struct_flock64 is record
l_type : aliased signed_short;
l_whence : aliased signed_short;
l_start : aliased types.off64_t;
l_len : aliased types.off64_t;
l_pid : aliased types.pid_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_flock64);
end C.bits.fcntl;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.bits.uio;
with C.stddef;
with C.sys.types;
package C.bits.fcntl_linux is
pragma Preelaborate;
type enum_pid_type;
type enum_pid_type is (F_OWNER_TID, F_OWNER_PID, F_OWNER_PGRP);
for enum_pid_type use (F_OWNER_TID => 0, F_OWNER_PID => 1,
F_OWNER_PGRP => 2);
pragma Convention (C, enum_pid_type);
function F_OWNER_GID return enum_pid_type renames F_OWNER_PGRP;
type struct_f_owner_ex;
type struct_f_owner_ex is record
F_type : aliased enum_pid_type;
pid : aliased types.pid_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_f_owner_ex);
type struct_file_handle;
type struct_file_handle is record
handle_bytes : aliased unsigned_int;
handle_type : aliased signed_int;
f_handle : aliased unsigned_char_array (0 .. -1);
end record;
pragma Convention (C_Pass_By_Copy, struct_file_handle);
type struct_file_handle_ptr is access all struct_file_handle;
for struct_file_handle_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_file_handle_ptr);
pragma Convention (C, struct_file_handle_ptr);
function readahead (fd : signed_int; offset : types.off64_t;
count : stddef.size_t) return sys.types.ssize_t;
pragma Import (C, readahead, "readahead");
function sync_file_range (fd : signed_int; offset : types.off64_t;
count : types.off64_t; flags : unsigned_int) return signed_int;
pragma Import (C, sync_file_range, "sync_file_range");
function vmsplice (fdout : signed_int;
iov : access constant uio.struct_iovec; count : stddef.size_t;
flags : unsigned_int) return sys.types.ssize_t;
pragma Import (C, vmsplice, "vmsplice");
function splice (fdin : signed_int; offin : access types.off64_t;
fdout : signed_int; offout : access types.off64_t; len : stddef.size_t;
flags : unsigned_int) return sys.types.ssize_t;
pragma Import (C, splice, "splice");
function tee (fdin : signed_int; fdout : signed_int; len : stddef.size_t;
flags : unsigned_int) return sys.types.ssize_t;
pragma Import (C, tee, "tee");
function fallocate (fd : signed_int; mode : signed_int;
offset : types.off64_t; len : types.off64_t) return signed_int;
pragma Import (C, fallocate, "fallocate64");
function fallocate64 (fd : signed_int; mode : signed_int;
offset : types.off64_t; len : types.off64_t) return signed_int;
pragma Import (C, fallocate64, "fallocate64");
function name_to_handle_at (dfd : signed_int; name : access constant char;
handle : access struct_file_handle; mnt_id : access signed_int;
flags : signed_int) return signed_int;
pragma Import (C, name_to_handle_at, "name_to_handle_at");
function open_by_handle_at (mountdirfd : signed_int;
handle : access struct_file_handle; flags : signed_int)
return signed_int;
pragma Import (C, open_by_handle_at, "open_by_handle_at");
AT_EACCESS : constant := 512;
AT_EMPTY_PATH : constant := 4096;
AT_FDCWD : constant := -100;
AT_NO_AUTOMOUNT : constant := 2048;
AT_REMOVEDIR : constant := 512;
AT_SYMLINK_FOLLOW : constant := 1024;
AT_SYMLINK_NOFOLLOW : constant := 256;
DN_ACCESS : constant := 1;
DN_ATTRIB : constant := 32;
DN_CREATE : constant := 4;
DN_DELETE : constant := 8;
DN_MODIFY : constant := 2;
DN_MULTISHOT : constant := -2147483648;
DN_RENAME : constant := 16;
FALLOC_FL_COLLAPSE_RANGE : constant := 8;
FALLOC_FL_KEEP_SIZE : constant := 1;
FALLOC_FL_PUNCH_HOLE : constant := 2;
FALLOC_FL_ZERO_RANGE : constant := 16;
FAPPEND : constant := 1024;
FASYNC : constant := 8192;
FD_CLOEXEC : constant := 1;
FFSYNC : constant := 1052672;
FNDELAY : constant := 2048;
FNONBLOCK : constant := 2048;
F_DUPFD : constant := 0;
F_DUPFD_CLOEXEC : constant := 1030;
F_EXLCK : constant := 4;
F_GETFD : constant := 1;
F_GETFL : constant := 3;
F_GETLEASE : constant := 1025;
F_GETLK : constant := 12;
F_GETLK64 : constant := 12;
F_GETOWN : constant := 9;
F_GETOWN_EX : constant := 16;
F_GETPIPE_SZ : constant := 1032;
F_GETSIG : constant := 11;
F_NOTIFY : constant := 1026;
F_OFD_GETLK : constant := 36;
F_OFD_SETLK : constant := 37;
F_OFD_SETLKW : constant := 38;
F_RDLCK : constant := 0;
F_SETFD : constant := 2;
F_SETFL : constant := 4;
F_SETLEASE : constant := 1024;
F_SETLK : constant := 13;
F_SETLK64 : constant := 13;
F_SETLKW : constant := 14;
F_SETLKW64 : constant := 14;
F_SETOWN : constant := 8;
F_SETOWN_EX : constant := 15;
F_SETPIPE_SZ : constant := 1031;
F_SETSIG : constant := 10;
F_SHLCK : constant := 8;
F_UNLCK : constant := 2;
F_WRLCK : constant := 1;
LOCK_EX : constant := 2;
LOCK_MAND : constant := 32;
LOCK_NB : constant := 4;
LOCK_READ : constant := 64;
LOCK_RW : constant := 192;
LOCK_SH : constant := 1;
LOCK_UN : constant := 8;
LOCK_WRITE : constant := 128;
MAX_HANDLE_SZ : constant := 128;
O_ACCMODE : constant := 3;
O_APPEND : constant := 1024;
O_ASYNC : constant := 8192;
O_CLOEXEC : constant := 524288;
O_CREAT : constant := 64;
O_DIRECT : constant := 16384;
O_DIRECTORY : constant := 65536;
O_DSYNC : constant := 4096;
O_EXCL : constant := 128;
O_FSYNC : constant := 1052672;
O_LARGEFILE : constant := 32768;
O_NDELAY : constant := 2048;
O_NOATIME : constant := 262144;
O_NOCTTY : constant := 256;
O_NOFOLLOW : constant := 131072;
O_NONBLOCK : constant := 2048;
O_PATH : constant := 2097152;
O_RDONLY : constant := 0;
O_RDWR : constant := 2;
O_RSYNC : constant := 1052672;
O_SYNC : constant := 1052672;
O_TMPFILE : constant := 4259840;
O_TRUNC : constant := 512;
O_WRONLY : constant := 1;
POSIX_FADV_DONTNEED : constant := 4;
POSIX_FADV_NOREUSE : constant := 5;
POSIX_FADV_NORMAL : constant := 0;
POSIX_FADV_RANDOM : constant := 1;
POSIX_FADV_SEQUENTIAL : constant := 2;
POSIX_FADV_WILLNEED : constant := 3;
SPLICE_F_GIFT : constant := 8;
SPLICE_F_MORE : constant := 4;
SPLICE_F_MOVE : constant := 1;
SPLICE_F_NONBLOCK : constant := 2;
SYNC_FILE_RANGE_WAIT_AFTER : constant := 4;
SYNC_FILE_RANGE_WAIT_BEFORE : constant := 1;
SYNC_FILE_RANGE_WRITE : constant := 2;
qqF_GETOWN : constant := 9;
qqF_GETOWN_EX : constant := 16;
qqF_GETSIG : constant := 11;
qqF_SETOWN : constant := 8;
qqF_SETOWN_EX : constant := 15;
qqF_SETSIG : constant := 10;
qqO_CLOEXEC : constant := 524288;
qqO_DIRECT : constant := 16384;
qqO_DIRECTORY : constant := 65536;
qqO_DSYNC : constant := 4096;
qqO_LARGEFILE : constant := 32768;
qqO_NOATIME : constant := 262144;
qqO_NOFOLLOW : constant := 131072;
qqO_PATH : constant := 2097152;
qqO_TMPFILE : constant := 4259840;
qqPOSIX_FADV_DONTNEED : constant := 4;
qqPOSIX_FADV_NOREUSE : constant := 5;
end C.bits.fcntl_linux;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.netinet.in_h;
package C.bits.in_h is
pragma Preelaborate;
type struct_ip_opts;
type struct_ip_opts is record
ip_dst : aliased netinet.in_h.struct_in_addr;
ip_opts : aliased char_array (0 .. 39);
end record;
pragma Convention (C_Pass_By_Copy, struct_ip_opts);
type struct_ip_mreqn;
type struct_ip_mreqn is record
imr_multiaddr : aliased netinet.in_h.struct_in_addr;
imr_address : aliased netinet.in_h.struct_in_addr;
imr_ifindex : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_ip_mreqn);
type struct_in_pktinfo;
type struct_in_pktinfo is record
ipi_ifindex : aliased signed_int;
ipi_spec_dst : aliased netinet.in_h.struct_in_addr;
ipi_addr : aliased netinet.in_h.struct_in_addr;
end record;
pragma Convention (C_Pass_By_Copy, struct_in_pktinfo);
IPV6_2292DSTOPTS : constant := 4;
IPV6_2292HOPLIMIT : constant := 8;
IPV6_2292HOPOPTS : constant := 3;
IPV6_2292PKTINFO : constant := 2;
IPV6_2292PKTOPTIONS : constant := 6;
IPV6_2292RTHDR : constant := 5;
IPV6_ADDRFORM : constant := 1;
IPV6_ADD_MEMBERSHIP : constant := 20;
IPV6_AUTHHDR : constant := 10;
IPV6_CHECKSUM : constant := 7;
IPV6_DONTFRAG : constant := 62;
IPV6_DROP_MEMBERSHIP : constant := 21;
IPV6_DSTOPTS : constant := 59;
IPV6_HDRINCL : constant := 36;
IPV6_HOPLIMIT : constant := 52;
IPV6_HOPOPTS : constant := 54;
IPV6_IPSEC_POLICY : constant := 34;
IPV6_JOIN_ANYCAST : constant := 27;
IPV6_JOIN_GROUP : constant := 20;
IPV6_LEAVE_ANYCAST : constant := 28;
IPV6_LEAVE_GROUP : constant := 21;
IPV6_MTU : constant := 24;
IPV6_MTU_DISCOVER : constant := 23;
IPV6_MULTICAST_HOPS : constant := 18;
IPV6_MULTICAST_IF : constant := 17;
IPV6_MULTICAST_LOOP : constant := 19;
IPV6_NEXTHOP : constant := 9;
IPV6_PATHMTU : constant := 61;
IPV6_PKTINFO : constant := 50;
IPV6_PMTUDISC_DO : constant := 2;
IPV6_PMTUDISC_DONT : constant := 0;
IPV6_PMTUDISC_INTERFACE : constant := 4;
IPV6_PMTUDISC_OMIT : constant := 5;
IPV6_PMTUDISC_PROBE : constant := 3;
IPV6_PMTUDISC_WANT : constant := 1;
IPV6_RECVDSTOPTS : constant := 58;
IPV6_RECVERR : constant := 25;
IPV6_RECVHOPLIMIT : constant := 51;
IPV6_RECVHOPOPTS : constant := 53;
IPV6_RECVPATHMTU : constant := 60;
IPV6_RECVPKTINFO : constant := 49;
IPV6_RECVRTHDR : constant := 56;
IPV6_RECVTCLASS : constant := 66;
IPV6_ROUTER_ALERT : constant := 22;
IPV6_RTHDR : constant := 57;
IPV6_RTHDRDSTOPTS : constant := 55;
IPV6_RTHDR_LOOSE : constant := 0;
IPV6_RTHDR_STRICT : constant := 1;
IPV6_RTHDR_TYPE_0 : constant := 0;
IPV6_RXDSTOPTS : constant := 59;
IPV6_RXHOPOPTS : constant := 54;
IPV6_TCLASS : constant := 67;
IPV6_UNICAST_HOPS : constant := 16;
IPV6_V6ONLY : constant := 26;
IPV6_XFRM_POLICY : constant := 35;
IP_ADD_MEMBERSHIP : constant := 35;
IP_ADD_SOURCE_MEMBERSHIP : constant := 39;
IP_BIND_ADDRESS_NO_PORT : constant := 24;
IP_BLOCK_SOURCE : constant := 38;
IP_CHECKSUM : constant := 23;
IP_DEFAULT_MULTICAST_LOOP : constant := 1;
IP_DEFAULT_MULTICAST_TTL : constant := 1;
IP_DROP_MEMBERSHIP : constant := 36;
IP_DROP_SOURCE_MEMBERSHIP : constant := 40;
IP_FREEBIND : constant := 15;
IP_HDRINCL : constant := 3;
IP_IPSEC_POLICY : constant := 16;
IP_MAX_MEMBERSHIPS : constant := 20;
IP_MINTTL : constant := 21;
IP_MSFILTER : constant := 41;
IP_MTU : constant := 14;
IP_MTU_DISCOVER : constant := 10;
IP_MULTICAST_ALL : constant := 49;
IP_MULTICAST_IF : constant := 32;
IP_MULTICAST_LOOP : constant := 34;
IP_MULTICAST_TTL : constant := 33;
IP_NODEFRAG : constant := 22;
IP_OPTIONS : constant := 4;
IP_ORIGDSTADDR : constant := 20;
IP_PASSSEC : constant := 18;
IP_PKTINFO : constant := 8;
IP_PKTOPTIONS : constant := 9;
IP_PMTUDISC : constant := 10;
IP_PMTUDISC_DO : constant := 2;
IP_PMTUDISC_DONT : constant := 0;
IP_PMTUDISC_INTERFACE : constant := 4;
IP_PMTUDISC_OMIT : constant := 5;
IP_PMTUDISC_PROBE : constant := 3;
IP_PMTUDISC_WANT : constant := 1;
IP_RECVERR : constant := 11;
IP_RECVOPTS : constant := 6;
IP_RECVORIGDSTADDR : constant := 20;
IP_RECVRETOPTS : constant := 7;
IP_RECVTOS : constant := 13;
IP_RECVTTL : constant := 12;
IP_RETOPTS : constant := 7;
IP_ROUTER_ALERT : constant := 5;
IP_TOS : constant := 1;
IP_TRANSPARENT : constant := 19;
IP_TTL : constant := 2;
IP_UNBLOCK_SOURCE : constant := 37;
IP_UNICAST_IF : constant := 50;
IP_XFRM_POLICY : constant := 17;
MCAST_BLOCK_SOURCE : constant := 43;
MCAST_EXCLUDE : constant := 0;
MCAST_INCLUDE : constant := 1;
MCAST_JOIN_GROUP : constant := 42;
MCAST_JOIN_SOURCE_GROUP : constant := 46;
MCAST_LEAVE_GROUP : constant := 45;
MCAST_LEAVE_SOURCE_GROUP : constant := 47;
MCAST_MSFILTER : constant := 48;
MCAST_UNBLOCK_SOURCE : constant := 44;
-- SCM_SRCRT (unparsible)
SOL_ICMPV6 : constant := 58;
SOL_IP : constant := 0;
SOL_IPV6 : constant := 41;
USE_KERNEL_IPV6_DEFS : constant := 0;
end C.bits.in_h;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.ioctl_types is
pragma Preelaborate;
type struct_winsize;
type struct_winsize is record
ws_row : aliased unsigned_short;
ws_col : aliased unsigned_short;
ws_xpixel : aliased unsigned_short;
ws_ypixel : aliased unsigned_short;
end record;
pragma Convention (C_Pass_By_Copy, struct_winsize);
type struct_winsize_ptr is access all struct_winsize;
for struct_winsize_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_winsize_ptr);
pragma Convention (C, struct_winsize_ptr);
type struct_termio;
type struct_termio is record
c_iflag : aliased unsigned_short;
c_oflag : aliased unsigned_short;
c_cflag : aliased unsigned_short;
c_lflag : aliased unsigned_short;
c_line : aliased unsigned_char;
c_cc : aliased unsigned_char_array (0 .. 7);
end record;
pragma Convention (C_Pass_By_Copy, struct_termio);
NCC : constant := 8;
N_6PACK : constant := 7;
N_AX25 : constant := 5;
N_HCI : constant := 15;
N_HDLC : constant := 13;
N_IRDA : constant := 11;
N_MASC : constant := 8;
N_MOUSE : constant := 2;
N_PPP : constant := 3;
N_PROFIBUS_FDL : constant := 10;
N_R3964 : constant := 9;
N_SLIP : constant := 1;
N_SMSBLOCK : constant := 12;
N_STRIP : constant := 4;
N_SYNC_PPP : constant := 14;
N_TTY : constant := 0;
N_X25 : constant := 6;
TIOCM_CAR : constant := 64;
TIOCM_CD : constant := 64;
TIOCM_CTS : constant := 32;
TIOCM_DSR : constant := 256;
TIOCM_DTR : constant := 2;
TIOCM_LE : constant := 1;
TIOCM_RI : constant := 128;
TIOCM_RNG : constant := 128;
TIOCM_RTS : constant := 4;
TIOCM_SR : constant := 16;
TIOCM_ST : constant := 8;
end C.bits.ioctl_types;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.ioctls is
pragma Preelaborate;
SIOCADDDLCI : constant := 35200;
SIOCADDMULTI : constant := 35121;
SIOCADDRT : constant := 35083;
SIOCDARP : constant := 35155;
SIOCDELDLCI : constant := 35201;
SIOCDELMULTI : constant := 35122;
SIOCDELRT : constant := 35084;
SIOCDEVPRIVATE : constant := 35312;
SIOCDIFADDR : constant := 35126;
SIOCDRARP : constant := 35168;
SIOCGARP : constant := 35156;
SIOCGIFADDR : constant := 35093;
SIOCGIFBR : constant := 35136;
SIOCGIFBRDADDR : constant := 35097;
SIOCGIFCONF : constant := 35090;
SIOCGIFCOUNT : constant := 35128;
SIOCGIFDSTADDR : constant := 35095;
SIOCGIFENCAP : constant := 35109;
SIOCGIFFLAGS : constant := 35091;
SIOCGIFHWADDR : constant := 35111;
SIOCGIFINDEX : constant := 35123;
SIOCGIFMAP : constant := 35184;
SIOCGIFMEM : constant := 35103;
SIOCGIFMETRIC : constant := 35101;
SIOCGIFMTU : constant := 35105;
SIOCGIFNAME : constant := 35088;
SIOCGIFNETMASK : constant := 35099;
SIOCGIFPFLAGS : constant := 35125;
SIOCGIFSLAVE : constant := 35113;
SIOCGIFTXQLEN : constant := 35138;
SIOCGRARP : constant := 35169;
SIOCPROTOPRIVATE : constant := 35296;
SIOCRTMSG : constant := 35085;
SIOCSARP : constant := 35157;
SIOCSIFADDR : constant := 35094;
SIOCSIFBR : constant := 35137;
SIOCSIFBRDADDR : constant := 35098;
SIOCSIFDSTADDR : constant := 35096;
SIOCSIFENCAP : constant := 35110;
SIOCSIFFLAGS : constant := 35092;
SIOCSIFHWADDR : constant := 35108;
SIOCSIFHWBROADCAST : constant := 35127;
SIOCSIFLINK : constant := 35089;
SIOCSIFMAP : constant := 35185;
SIOCSIFMEM : constant := 35104;
SIOCSIFMETRIC : constant := 35102;
SIOCSIFMTU : constant := 35106;
SIOCSIFNAME : constant := 35107;
SIOCSIFNETMASK : constant := 35100;
SIOCSIFPFLAGS : constant := 35124;
SIOCSIFSLAVE : constant := 35120;
SIOCSIFTXQLEN : constant := 35139;
SIOCSRARP : constant := 35170;
SIOGIFINDEX : constant := 35123;
end C.bits.ioctls;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.local_lim is
pragma Preelaborate;
AIO_PRIO_DELTA_MAX : constant := 20;
DELAYTIMER_MAX : constant := 2147483647;
HOST_NAME_MAX : constant := 64;
LOGIN_NAME_MAX : constant := 256;
MQ_PRIO_MAX : constant := 32768;
PTHREAD_DESTRUCTOR_ITERATIONS : constant := 4;
PTHREAD_KEYS_MAX : constant := 1024;
PTHREAD_STACK_MIN : constant := 16384;
SEM_VALUE_MAX : constant := 2147483647;
TTY_NAME_MAX : constant := 32;
POSIX_THREAD_DESTRUCTOR_ITERATIONS : constant := 4;
POSIX_THREAD_KEYS_MAX : constant := 128;
POSIX_THREAD_THREADS_MAX : constant := 64;
end C.bits.local_lim;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.mman is
pragma Preelaborate;
MAP_32BIT : constant := 64;
MAP_DENYWRITE : constant := 2048;
MAP_EXECUTABLE : constant := 4096;
MAP_GROWSDOWN : constant := 256;
MAP_HUGETLB : constant := 262144;
MAP_LOCKED : constant := 8192;
MAP_NONBLOCK : constant := 65536;
MAP_NORESERVE : constant := 16384;
MAP_POPULATE : constant := 32768;
MAP_STACK : constant := 131072;
end C.bits.mman;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.mman_linux is
pragma Preelaborate;
MADV_DODUMP : constant := 17;
MADV_DOFORK : constant := 11;
MADV_DONTDUMP : constant := 16;
MADV_DONTFORK : constant := 10;
MADV_DONTNEED : constant := 4;
MADV_FREE : constant := 8;
MADV_HUGEPAGE : constant := 14;
MADV_HWPOISON : constant := 100;
MADV_MERGEABLE : constant := 12;
MADV_NOHUGEPAGE : constant := 15;
MADV_NORMAL : constant := 0;
MADV_RANDOM : constant := 1;
MADV_REMOVE : constant := 9;
MADV_SEQUENTIAL : constant := 2;
MADV_UNMERGEABLE : constant := 13;
MADV_WILLNEED : constant := 3;
MAP_ANON : constant := 32;
MAP_ANONYMOUS : constant := 32;
MAP_FILE : constant := 0;
MAP_FIXED : constant := 16;
MAP_HUGE_MASK : constant := 63;
MAP_HUGE_SHIFT : constant := 26;
MAP_PRIVATE : constant := 2;
MAP_SHARED : constant := 1;
MAP_TYPE : constant := 15;
MCL_CURRENT : constant := 1;
MCL_FUTURE : constant := 2;
MCL_ONFAULT : constant := 4;
MREMAP_FIXED : constant := 2;
MREMAP_MAYMOVE : constant := 1;
MS_ASYNC : constant := 1;
MS_INVALIDATE : constant := 2;
MS_SYNC : constant := 4;
POSIX_MADV_DONTNEED : constant := 4;
POSIX_MADV_NORMAL : constant := 0;
POSIX_MADV_RANDOM : constant := 1;
POSIX_MADV_SEQUENTIAL : constant := 2;
POSIX_MADV_WILLNEED : constant := 3;
PROT_EXEC : constant := 4;
PROT_GROWSDOWN : constant := 16777216;
PROT_GROWSUP : constant := 33554432;
PROT_NONE : constant := 0;
PROT_READ : constant := 1;
PROT_WRITE : constant := 2;
end C.bits.mman_linux;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stdint;
package C.bits.netdb is
pragma Preelaborate;
type struct_netent;
type struct_netent is record
n_name : aliased char_ptr;
n_aliases : aliased char_ptr_ptr;
n_addrtype : aliased signed_int;
n_net : aliased stdint.uint32_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_netent);
type struct_netent_ptr is access all struct_netent;
for struct_netent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_netent_ptr);
pragma Convention (C, struct_netent_ptr);
type struct_netent_ptr_ptr is access all struct_netent_ptr;
for struct_netent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_netent_ptr_ptr);
pragma Convention (C, struct_netent_ptr_ptr);
end C.bits.netdb;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.poll is
pragma Preelaborate;
POLLERR : constant := 8;
POLLHUP : constant := 16;
POLLIN : constant := 1;
POLLMSG : constant := 1024;
POLLNVAL : constant := 32;
POLLOUT : constant := 4;
POLLPRI : constant := 2;
POLLRDBAND : constant := 128;
POLLRDHUP : constant := 8192;
POLLRDNORM : constant := 64;
POLLREMOVE : constant := 4096;
POLLWRBAND : constant := 512;
POLLWRNORM : constant := 256;
end C.bits.poll;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.posix1_lim is
pragma Preelaborate;
SSIZE_MAX : constant := 2147483647;
BITS_POSIX1_LIM_H : constant := 1;
POSIX_AIO_LISTIO_MAX : constant := 2;
POSIX_AIO_MAX : constant := 1;
POSIX_ARG_MAX : constant := 4096;
POSIX_CHILD_MAX : constant := 25;
POSIX_CLOCKRES_MIN : constant := 20000000;
POSIX_DELAYTIMER_MAX : constant := 32;
POSIX_FD_SETSIZE : constant := 20;
POSIX_HIWAT : constant := 512;
POSIX_HOST_NAME_MAX : constant := 255;
POSIX_LINK_MAX : constant := 8;
POSIX_LOGIN_NAME_MAX : constant := 9;
POSIX_MAX_CANON : constant := 255;
POSIX_MAX_INPUT : constant := 255;
POSIX_MQ_OPEN_MAX : constant := 8;
POSIX_MQ_PRIO_MAX : constant := 32;
POSIX_NAME_MAX : constant := 14;
POSIX_NGROUPS_MAX : constant := 8;
POSIX_OPEN_MAX : constant := 20;
POSIX_PATH_MAX : constant := 256;
POSIX_PIPE_BUF : constant := 512;
POSIX_QLIMIT : constant := 1;
POSIX_RE_DUP_MAX : constant := 255;
POSIX_RTSIG_MAX : constant := 8;
POSIX_SEM_NSEMS_MAX : constant := 256;
POSIX_SEM_VALUE_MAX : constant := 32767;
POSIX_SIGQUEUE_MAX : constant := 32;
POSIX_SSIZE_MAX : constant := 32767;
POSIX_STREAM_MAX : constant := 8;
POSIX_SYMLINK_MAX : constant := 255;
POSIX_SYMLOOP_MAX : constant := 8;
POSIX_TIMER_MAX : constant := 32;
POSIX_TTY_NAME_MAX : constant := 9;
POSIX_TZNAME_MAX : constant := 6;
POSIX_UIO_MAXIOV : constant := 16;
end C.bits.posix1_lim;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.posix2_lim is
pragma Preelaborate;
BC_BASE_MAX : constant := 99;
BC_DIM_MAX : constant := 2048;
BC_SCALE_MAX : constant := 99;
BC_STRING_MAX : constant := 1000;
CHARCLASS_NAME_MAX : constant := 2048;
COLL_WEIGHTS_MAX : constant := 255;
EXPR_NEST_MAX : constant := 32;
LINE_MAX : constant := 2048;
RE_DUP_MAX : constant := 32767;
BITS_POSIX2_LIM_H : constant := 1;
POSIX2_BC_BASE_MAX : constant := 99;
POSIX2_BC_DIM_MAX : constant := 2048;
POSIX2_BC_SCALE_MAX : constant := 99;
POSIX2_BC_STRING_MAX : constant := 1000;
POSIX2_CHARCLASS_NAME_MAX : constant := 14;
POSIX2_COLL_WEIGHTS_MAX : constant := 2;
POSIX2_EXPR_NEST_MAX : constant := 32;
POSIX2_LINE_MAX : constant := 2048;
POSIX2_RE_DUP_MAX : constant := 255;
end C.bits.posix2_lim;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.posix_opt is
pragma Preelaborate;
BITS_POSIX_OPT_H : constant := 1;
LFS64_ASYNCHRONOUS_IO : constant := 1;
LFS64_LARGEFILE : constant := 1;
LFS64_STDIO : constant := 1;
LFS_ASYNCHRONOUS_IO : constant := 1;
LFS_LARGEFILE : constant := 1;
POSIX2_CHAR_TERM : constant := 200809;
POSIX_ADVISORY_INFO : constant := 200809;
POSIX_ASYNCHRONOUS_IO : constant := 200809;
POSIX_ASYNC_IO : constant := 1;
POSIX_BARRIERS : constant := 200809;
POSIX_CHOWN_RESTRICTED : constant := 0;
POSIX_CLOCK_SELECTION : constant := 200809;
POSIX_CPUTIME : constant := 0;
POSIX_FSYNC : constant := 200809;
POSIX_IPV6 : constant := 200809;
POSIX_JOB_CONTROL : constant := 1;
POSIX_MAPPED_FILES : constant := 200809;
POSIX_MEMLOCK : constant := 200809;
POSIX_MEMLOCK_RANGE : constant := 200809;
POSIX_MEMORY_PROTECTION : constant := 200809;
POSIX_MESSAGE_PASSING : constant := 200809;
POSIX_MONOTONIC_CLOCK : constant := 0;
POSIX_NO_TRUNC : constant := 1;
POSIX_PRIORITIZED_IO : constant := 200809;
POSIX_PRIORITY_SCHEDULING : constant := 200809;
POSIX_RAW_SOCKETS : constant := 200809;
POSIX_READER_WRITER_LOCKS : constant := 200809;
POSIX_REALTIME_SIGNALS : constant := 200809;
POSIX_REENTRANT_FUNCTIONS : constant := 1;
POSIX_REGEXP : constant := 1;
POSIX_SAVED_IDS : constant := 1;
POSIX_SEMAPHORES : constant := 200809;
POSIX_SHARED_MEMORY_OBJECTS : constant := 200809;
POSIX_SHELL : constant := 1;
POSIX_SPAWN : constant := 200809;
POSIX_SPIN_LOCKS : constant := 200809;
POSIX_SPORADIC_SERVER : constant := -1;
POSIX_SYNCHRONIZED_IO : constant := 200809;
POSIX_THREADS : constant := 200809;
POSIX_THREAD_ATTR_STACKADDR : constant := 200809;
POSIX_THREAD_ATTR_STACKSIZE : constant := 200809;
POSIX_THREAD_CPUTIME : constant := 0;
POSIX_THREAD_PRIORITY_SCHEDULING : constant := 200809;
POSIX_THREAD_PRIO_INHERIT : constant := 200809;
POSIX_THREAD_PRIO_PROTECT : constant := 200809;
POSIX_THREAD_PROCESS_SHARED : constant := 200809;
POSIX_THREAD_ROBUST_PRIO_INHERIT : constant := 200809;
POSIX_THREAD_ROBUST_PRIO_PROTECT : constant := -1;
POSIX_THREAD_SAFE_FUNCTIONS : constant := 200809;
POSIX_THREAD_SPORADIC_SERVER : constant := -1;
POSIX_TIMEOUTS : constant := 200809;
POSIX_TIMERS : constant := 200809;
POSIX_TRACE : constant := -1;
POSIX_TRACE_EVENT_FILTER : constant := -1;
POSIX_TRACE_INHERIT : constant := -1;
POSIX_TRACE_LOG : constant := -1;
POSIX_TYPED_MEMORY_OBJECTS : constant := -1;
POSIX_VDISABLE : constant char := char'Val (0);
XOPEN_REALTIME : constant := 1;
XOPEN_REALTIME_THREADS : constant := 1;
XOPEN_SHM : constant := 1;
end C.bits.posix_opt;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.pthreadtypes is
pragma Preelaborate;
subtype pthread_t is unsigned_long;
subtype pthread_t_ptr is unsigned_long_ptr;
type union_pthread_attr_t;
type union_pthread_attr_t (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 35);
when others =>
align : signed_long;
end case;
end record;
pragma Unchecked_Union (union_pthread_attr_t);
pragma Convention (C_Pass_By_Copy, union_pthread_attr_t);
type union_pthread_attr_t_ptr is access all union_pthread_attr_t;
for union_pthread_attr_t_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_pthread_attr_t_ptr);
pragma Convention (C, union_pthread_attr_t_ptr);
type union_pthread_attr_t_const_ptr is
access constant union_pthread_attr_t;
for union_pthread_attr_t_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_pthread_attr_t_const_ptr);
pragma Convention (C, union_pthread_attr_t_const_ptr);
subtype pthread_attr_t is union_pthread_attr_t;
subtype pthread_attr_t_ptr is union_pthread_attr_t_ptr;
subtype pthread_attr_t_const_ptr is union_pthread_attr_t_const_ptr;
type struct_pthread_internal_slist;
type struct_pthread_internal_slist_ptr is
access all struct_pthread_internal_slist;
for struct_pthread_internal_slist_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_pthread_internal_slist_ptr);
pragma Convention (C, struct_pthread_internal_slist_ptr);
type struct_pthread_internal_slist is record
next : aliased struct_pthread_internal_slist_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_pthread_internal_slist);
subtype pthread_slist_t is struct_pthread_internal_slist;
type struct_pthread_mutex_s;
type struct_51fd07e8 is record
espins : aliased signed_short;
elision : aliased signed_short;
end record;
pragma Convention (C_Pass_By_Copy, struct_51fd07e8);
type union_741c1048 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
elision_data : struct_51fd07e8;
when others =>
list : pthread_slist_t;
end case;
end record;
pragma Unchecked_Union (union_741c1048);
pragma Convention (C_Pass_By_Copy, union_741c1048);
type struct_pthread_mutex_s is record
lock : aliased signed_int;
count : aliased unsigned_int;
owner : aliased signed_int;
kind : aliased signed_int;
nusers : aliased unsigned_int;
anonymous_1 : aliased union_741c1048;
end record;
pragma Convention (C_Pass_By_Copy, struct_pthread_mutex_s);
type union_4735fd0f (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
data : struct_pthread_mutex_s;
when 1 =>
size : char_array (0 .. 23);
when others =>
align : signed_long;
end case;
end record;
pragma Unchecked_Union (union_4735fd0f);
pragma Convention (C_Pass_By_Copy, union_4735fd0f);
type union_4735fd0f_ptr is access all union_4735fd0f;
for union_4735fd0f_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_4735fd0f_ptr);
pragma Convention (C, union_4735fd0f_ptr);
type union_4735fd0f_const_ptr is access constant union_4735fd0f;
for union_4735fd0f_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_4735fd0f_const_ptr);
pragma Convention (C, union_4735fd0f_const_ptr);
subtype pthread_mutex_t is union_4735fd0f;
subtype pthread_mutex_t_ptr is union_4735fd0f_ptr;
subtype pthread_mutex_t_const_ptr is union_4735fd0f_const_ptr;
type union_fc3bf1d2 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 3);
when others =>
align : signed_int;
end case;
end record;
pragma Unchecked_Union (union_fc3bf1d2);
pragma Convention (C_Pass_By_Copy, union_fc3bf1d2);
type union_fc3bf1d2_const_ptr is access constant union_fc3bf1d2;
for union_fc3bf1d2_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_fc3bf1d2_const_ptr);
pragma Convention (C, union_fc3bf1d2_const_ptr);
type union_fc3bf1d2_ptr is access all union_fc3bf1d2;
for union_fc3bf1d2_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_fc3bf1d2_ptr);
pragma Convention (C, union_fc3bf1d2_ptr);
subtype pthread_mutexattr_t is union_fc3bf1d2;
subtype pthread_mutexattr_t_const_ptr is union_fc3bf1d2_const_ptr;
subtype pthread_mutexattr_t_ptr is union_fc3bf1d2_ptr;
type struct_bda3d865 is record
lock : aliased signed_int;
futex : aliased unsigned_int;
total_seq : aliased unsigned_long_long;
wakeup_seq : aliased unsigned_long_long;
woken_seq : aliased unsigned_long_long;
mutex : aliased void_ptr;
nwaiters : aliased unsigned_int;
broadcast_seq : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_bda3d865);
type union_503dfc76 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
data : struct_bda3d865;
when 1 =>
size : char_array (0 .. 47);
when others =>
align : signed_long_long;
end case;
end record;
pragma Unchecked_Union (union_503dfc76);
pragma Convention (C_Pass_By_Copy, union_503dfc76);
type union_503dfc76_ptr is access all union_503dfc76;
for union_503dfc76_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_503dfc76_ptr);
pragma Convention (C, union_503dfc76_ptr);
subtype pthread_cond_t is union_503dfc76;
subtype pthread_cond_t_ptr is union_503dfc76_ptr;
type union_332586e9 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 3);
when others =>
align : signed_int;
end case;
end record;
pragma Unchecked_Union (union_332586e9);
pragma Convention (C_Pass_By_Copy, union_332586e9);
type union_332586e9_const_ptr is access constant union_332586e9;
for union_332586e9_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_332586e9_const_ptr);
pragma Convention (C, union_332586e9_const_ptr);
type union_332586e9_ptr is access all union_332586e9;
for union_332586e9_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_332586e9_ptr);
pragma Convention (C, union_332586e9_ptr);
subtype pthread_condattr_t is union_332586e9;
subtype pthread_condattr_t_const_ptr is union_332586e9_const_ptr;
subtype pthread_condattr_t_ptr is union_332586e9_ptr;
subtype pthread_key_t is unsigned_int;
subtype pthread_key_t_ptr is unsigned_int_ptr;
subtype pthread_once_t is signed_int;
subtype pthread_once_t_ptr is signed_int_ptr;
type struct_bbd655e6 is record
lock : aliased signed_int;
nr_readers : aliased unsigned_int;
readers_wakeup : aliased unsigned_int;
writer_wakeup : aliased unsigned_int;
nr_readers_queued : aliased unsigned_int;
nr_writers_queued : aliased unsigned_int;
flags : aliased unsigned_char;
shared : aliased unsigned_char;
rwelision : aliased signed_char;
pad2 : aliased unsigned_char;
writer : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_bbd655e6);
type union_de51077b (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
data : struct_bbd655e6;
when 1 =>
size : char_array (0 .. 31);
when others =>
align : signed_long;
end case;
end record;
pragma Unchecked_Union (union_de51077b);
pragma Convention (C_Pass_By_Copy, union_de51077b);
type union_de51077b_ptr is access all union_de51077b;
for union_de51077b_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_de51077b_ptr);
pragma Convention (C, union_de51077b_ptr);
subtype pthread_rwlock_t is union_de51077b;
subtype pthread_rwlock_t_ptr is union_de51077b_ptr;
type union_7de7425a (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 7);
when others =>
align : signed_long;
end case;
end record;
pragma Unchecked_Union (union_7de7425a);
pragma Convention (C_Pass_By_Copy, union_7de7425a);
type union_7de7425a_const_ptr is access constant union_7de7425a;
for union_7de7425a_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_7de7425a_const_ptr);
pragma Convention (C, union_7de7425a_const_ptr);
type union_7de7425a_ptr is access all union_7de7425a;
for union_7de7425a_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_7de7425a_ptr);
pragma Convention (C, union_7de7425a_ptr);
subtype pthread_rwlockattr_t is union_7de7425a;
subtype pthread_rwlockattr_t_const_ptr is union_7de7425a_const_ptr;
subtype pthread_rwlockattr_t_ptr is union_7de7425a_ptr;
subtype pthread_spinlock_t is signed_int_volatile;
subtype pthread_spinlock_t_ptr is signed_int_volatile_ptr;
type union_45305b08 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 19);
when others =>
align : signed_long;
end case;
end record;
pragma Unchecked_Union (union_45305b08);
pragma Convention (C_Pass_By_Copy, union_45305b08);
type union_45305b08_ptr is access all union_45305b08;
for union_45305b08_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_45305b08_ptr);
pragma Convention (C, union_45305b08_ptr);
subtype pthread_barrier_t is union_45305b08;
subtype pthread_barrier_t_ptr is union_45305b08_ptr;
type union_9d4086b2 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
size : char_array (0 .. 3);
when others =>
align : signed_int;
end case;
end record;
pragma Unchecked_Union (union_9d4086b2);
pragma Convention (C_Pass_By_Copy, union_9d4086b2);
type union_9d4086b2_const_ptr is access constant union_9d4086b2;
for union_9d4086b2_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_9d4086b2_const_ptr);
pragma Convention (C, union_9d4086b2_const_ptr);
type union_9d4086b2_ptr is access all union_9d4086b2;
for union_9d4086b2_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (union_9d4086b2_ptr);
pragma Convention (C, union_9d4086b2_ptr);
subtype pthread_barrierattr_t is union_9d4086b2;
subtype pthread_barrierattr_t_const_ptr is union_9d4086b2_const_ptr;
subtype pthread_barrierattr_t_ptr is union_9d4086b2_ptr;
BITS_PTHREADTYPES_H : constant := 1;
-- __PTHREAD_RWLOCK_ELISION_EXTRA (unparsible)
-- __PTHREAD_SPINS (unparsible)
SIZEOF_PTHREAD_ATTR_T : constant := 36;
SIZEOF_PTHREAD_BARRIERATTR_T : constant := 4;
SIZEOF_PTHREAD_BARRIER_T : constant := 20;
SIZEOF_PTHREAD_CONDATTR_T : constant := 4;
SIZEOF_PTHREAD_COND_T : constant := 48;
SIZEOF_PTHREAD_MUTEXATTR_T : constant := 4;
SIZEOF_PTHREAD_MUTEX_T : constant := 24;
SIZEOF_PTHREAD_RWLOCKATTR_T : constant := 8;
SIZEOF_PTHREAD_RWLOCK_T : constant := 32;
-- __cleanup_fct_attribute (attribute)
-- .__elision renames .__elision_data.__elision (accessor)
have_pthread_attr_t : constant := 1;
-- .__spins renames .__elision_data.__espins (accessor)
end C.bits.pthreadtypes;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.time;
with C.bits.types;
package C.bits.resource is
pragma Preelaborate;
type enum_rlimit_resource;
type enum_rlimit_resource is (RLIMIT_CPU, RLIMIT_FSIZE, RLIMIT_DATA,
RLIMIT_STACK, RLIMIT_CORE, qqRLIMIT_RSS, qqRLIMIT_NPROC, RLIMIT_NOFILE,
qqRLIMIT_MEMLOCK, RLIMIT_AS, qqRLIMIT_LOCKS, qqRLIMIT_SIGPENDING,
qqRLIMIT_MSGQUEUE, qqRLIMIT_NICE, qqRLIMIT_RTPRIO, qqRLIMIT_RTTIME,
qqRLIMIT_NLIMITS);
for enum_rlimit_resource use (RLIMIT_CPU => 0, RLIMIT_FSIZE => 1,
RLIMIT_DATA => 2, RLIMIT_STACK => 3, RLIMIT_CORE => 4,
qqRLIMIT_RSS => 5, qqRLIMIT_NPROC => 6, RLIMIT_NOFILE => 7,
qqRLIMIT_MEMLOCK => 8, RLIMIT_AS => 9, qqRLIMIT_LOCKS => 10,
qqRLIMIT_SIGPENDING => 11, qqRLIMIT_MSGQUEUE => 12,
qqRLIMIT_NICE => 13, qqRLIMIT_RTPRIO => 14, qqRLIMIT_RTTIME => 15,
qqRLIMIT_NLIMITS => 16);
pragma Convention (C, enum_rlimit_resource);
function qqRLIMIT_OFILE return enum_rlimit_resource renames RLIMIT_NOFILE;
function qqRLIM_NLIMITS return enum_rlimit_resource
renames qqRLIMIT_NLIMITS;
subtype rlim_t is types.rlim64_t;
subtype rlim64_t is types.rlim64_t;
type struct_rlimit;
type struct_rlimit is record
rlim_cur : aliased rlim_t;
rlim_max : aliased rlim_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_rlimit);
type struct_rlimit_const_ptr is access constant struct_rlimit;
for struct_rlimit_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rlimit_const_ptr);
pragma Convention (C, struct_rlimit_const_ptr);
type struct_rlimit_ptr is access all struct_rlimit;
for struct_rlimit_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rlimit_ptr);
pragma Convention (C, struct_rlimit_ptr);
type struct_rlimit64;
type struct_rlimit64 is record
rlim_cur : aliased rlim64_t;
rlim_max : aliased rlim64_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_rlimit64);
type struct_rlimit64_const_ptr is access constant struct_rlimit64;
for struct_rlimit64_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rlimit64_const_ptr);
pragma Convention (C, struct_rlimit64_const_ptr);
type struct_rlimit64_ptr is access all struct_rlimit64;
for struct_rlimit64_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rlimit64_ptr);
pragma Convention (C, struct_rlimit64_ptr);
type enum_rusage_who;
type enum_rusage_who is (RUSAGE_CHILDREN, RUSAGE_SELF, RUSAGE_THREAD);
for enum_rusage_who use (RUSAGE_CHILDREN => -1, RUSAGE_SELF => 0,
RUSAGE_THREAD => 1);
pragma Convention (C, enum_rusage_who);
type struct_rusage;
type union_2aabc177 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_maxrss : signed_long;
when others =>
ru_maxrss_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_2aabc177);
pragma Convention (C_Pass_By_Copy, union_2aabc177);
type union_d6334e4e (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_ixrss : signed_long;
when others =>
ru_ixrss_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_d6334e4e);
pragma Convention (C_Pass_By_Copy, union_d6334e4e);
type union_4b79c942 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_idrss : signed_long;
when others =>
ru_idrss_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_4b79c942);
pragma Convention (C_Pass_By_Copy, union_4b79c942);
type union_156dc5f3 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_isrss : signed_long;
when others =>
ru_isrss_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_156dc5f3);
pragma Convention (C_Pass_By_Copy, union_156dc5f3);
type union_27e08d35 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_minflt : signed_long;
when others =>
ru_minflt_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_27e08d35);
pragma Convention (C_Pass_By_Copy, union_27e08d35);
type union_14200027 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_majflt : signed_long;
when others =>
ru_majflt_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_14200027);
pragma Convention (C_Pass_By_Copy, union_14200027);
type union_a1366c77 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_nswap : signed_long;
when others =>
ru_nswap_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_a1366c77);
pragma Convention (C_Pass_By_Copy, union_a1366c77);
type union_1bcb6b09 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_inblock : signed_long;
when others =>
ru_inblock_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_1bcb6b09);
pragma Convention (C_Pass_By_Copy, union_1bcb6b09);
type union_7090a179 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_oublock : signed_long;
when others =>
ru_oublock_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_7090a179);
pragma Convention (C_Pass_By_Copy, union_7090a179);
type union_7647b2a2 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_msgsnd : signed_long;
when others =>
ru_msgsnd_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_7647b2a2);
pragma Convention (C_Pass_By_Copy, union_7647b2a2);
type union_fcc4886c (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_msgrcv : signed_long;
when others =>
ru_msgrcv_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_fcc4886c);
pragma Convention (C_Pass_By_Copy, union_fcc4886c);
type union_ca2fd5f1 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_nsignals : signed_long;
when others =>
ru_nsignals_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_ca2fd5f1);
pragma Convention (C_Pass_By_Copy, union_ca2fd5f1);
type union_5952b655 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_nvcsw : signed_long;
when others =>
ru_nvcsw_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_5952b655);
pragma Convention (C_Pass_By_Copy, union_5952b655);
type union_2857cbb4 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
ru_nivcsw : signed_long;
when others =>
ru_nivcsw_word : types.syscall_slong_t;
end case;
end record;
pragma Unchecked_Union (union_2857cbb4);
pragma Convention (C_Pass_By_Copy, union_2857cbb4);
type struct_rusage is record
ru_utime : aliased time.struct_timeval;
ru_stime : aliased time.struct_timeval;
anonymous_1 : aliased union_2aabc177;
anonymous_2 : aliased union_d6334e4e;
anonymous_3 : aliased union_4b79c942;
anonymous_4 : aliased union_156dc5f3;
anonymous_5 : aliased union_27e08d35;
anonymous_6 : aliased union_14200027;
anonymous_7 : aliased union_a1366c77;
anonymous_8 : aliased union_1bcb6b09;
anonymous_9 : aliased union_7090a179;
anonymous_10 : aliased union_7647b2a2;
anonymous_11 : aliased union_fcc4886c;
anonymous_12 : aliased union_ca2fd5f1;
anonymous_13 : aliased union_5952b655;
anonymous_14 : aliased union_2857cbb4;
end record;
pragma Convention (C_Pass_By_Copy, struct_rusage);
type struct_rusage_ptr is access all struct_rusage;
for struct_rusage_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rusage_ptr);
pragma Convention (C, struct_rusage_ptr);
type enum_priority_which;
type enum_priority_which is (PRIO_PROCESS, PRIO_PGRP, PRIO_USER);
for enum_priority_which use (PRIO_PROCESS => 0, PRIO_PGRP => 1,
PRIO_USER => 2);
pragma Convention (C, enum_priority_which);
function prlimit (pid : types.pid_t; resource : enum_rlimit_resource;
new_limit : access constant struct_rlimit;
old_limit : access struct_rlimit) return signed_int;
pragma Import (C, prlimit, "prlimit64");
function prlimit64 (pid : types.pid_t; resource : enum_rlimit_resource;
new_limit : access constant struct_rlimit64;
old_limit : access struct_rlimit64) return signed_int;
pragma Import (C, prlimit64, "prlimit64");
PRIO_MAX : constant := 20;
PRIO_MIN : constant := -20;
-- PRIO_PGRP (repeating itself)
-- PRIO_PROCESS (repeating itself)
-- PRIO_USER (repeating itself)
RLIM64_INFINITY : constant := 18446744073709551615;
-- RLIMIT_AS (repeating itself)
-- RLIMIT_CORE (repeating itself)
-- RLIMIT_CPU (repeating itself)
-- RLIMIT_DATA (repeating itself)
-- RLIMIT_FSIZE (repeating itself)
RLIMIT_LOCKS : constant enum_rlimit_resource := qqRLIMIT_LOCKS;
RLIMIT_MEMLOCK : constant enum_rlimit_resource := qqRLIMIT_MEMLOCK;
RLIMIT_MSGQUEUE : constant enum_rlimit_resource := qqRLIMIT_MSGQUEUE;
RLIMIT_NICE : constant enum_rlimit_resource := qqRLIMIT_NICE;
RLIMIT_NLIMITS : constant enum_rlimit_resource := qqRLIMIT_NLIMITS;
-- RLIMIT_NOFILE (repeating itself)
RLIMIT_NPROC : constant enum_rlimit_resource := qqRLIMIT_NPROC;
RLIMIT_OFILE : constant enum_rlimit_resource := qqRLIMIT_OFILE;
RLIMIT_RSS : constant enum_rlimit_resource := qqRLIMIT_RSS;
RLIMIT_RTPRIO : constant enum_rlimit_resource := qqRLIMIT_RTPRIO;
RLIMIT_RTTIME : constant enum_rlimit_resource := qqRLIMIT_RTTIME;
RLIMIT_SIGPENDING : constant enum_rlimit_resource := qqRLIMIT_SIGPENDING;
-- RLIMIT_STACK (repeating itself)
RLIM_INFINITY : constant := 18446744073709551615;
RLIM_NLIMITS : constant enum_rlimit_resource := qqRLIM_NLIMITS;
RLIM_SAVED_CUR : constant := 18446744073709551615;
RLIM_SAVED_MAX : constant := 18446744073709551615;
-- RUSAGE_CHILDREN (repeating itself)
-- RUSAGE_LWP (repeating itself)
-- RUSAGE_SELF (repeating itself)
-- RUSAGE_THREAD (repeating itself)
end C.bits.resource;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
package C.bits.sched is
pragma Preelaborate;
type struct_sched_param;
type struct_sched_param is record
sched_priority : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_sched_param);
type struct_sched_param_const_ptr is access constant struct_sched_param;
for struct_sched_param_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sched_param_const_ptr);
pragma Convention (C, struct_sched_param_const_ptr);
type struct_sched_param_ptr is access all struct_sched_param;
for struct_sched_param_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sched_param_ptr);
pragma Convention (C, struct_sched_param_ptr);
type access_925da6c7 is access function (arg : void_ptr)
return signed_int;
pragma Convention (C, access_925da6c7);
function clone (fn : access_925da6c7; child_stack : void_ptr;
flags : signed_int; arg : void_ptr) return signed_int;
pragma Import (C, clone, "clone");
function unshare (flags : signed_int) return signed_int;
pragma Import (C, unshare, "unshare");
function sched_getcpu return signed_int;
pragma Import (C, sched_getcpu, "sched_getcpu");
function setns (fd : signed_int; nstype : signed_int) return signed_int;
pragma Import (C, setns, "setns");
type struct_qqsched_param;
type struct_qqsched_param is record
sched_priority : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_qqsched_param);
subtype cpu_mask is unsigned_long;
subtype cpu_mask_array is unsigned_long_array;
type struct_abf1ba4d is record
bits : aliased cpu_mask_array (0 .. 31);
end record;
pragma Convention (C_Pass_By_Copy, struct_abf1ba4d);
type struct_abf1ba4d_const_ptr is access constant struct_abf1ba4d;
for struct_abf1ba4d_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_abf1ba4d_const_ptr);
pragma Convention (C, struct_abf1ba4d_const_ptr);
type struct_abf1ba4d_ptr is access all struct_abf1ba4d;
for struct_abf1ba4d_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_abf1ba4d_ptr);
pragma Convention (C, struct_abf1ba4d_ptr);
subtype cpu_set_t is struct_abf1ba4d;
subtype cpu_set_t_const_ptr is struct_abf1ba4d_const_ptr;
subtype cpu_set_t_ptr is struct_abf1ba4d_ptr;
function sched_cpucount (setsize : stddef.size_t;
setp : access constant cpu_set_t) return signed_int;
pragma Import (C, sched_cpucount, "__sched_cpucount");
function sched_cpualloc (count : stddef.size_t) return cpu_set_t_ptr;
pragma Import (C, sched_cpualloc, "__sched_cpualloc");
procedure sched_cpufree (set : access cpu_set_t);
pragma Import (C, sched_cpufree, "__sched_cpufree");
CLONE_CHILD_CLEARTID : constant := 2097152;
CLONE_CHILD_SETTID : constant := 16777216;
CLONE_DETACHED : constant := 4194304;
CLONE_FILES : constant := 1024;
CLONE_FS : constant := 512;
CLONE_IO : constant := -2147483648;
CLONE_NEWCGROUP : constant := 33554432;
CLONE_NEWIPC : constant := 134217728;
CLONE_NEWNET : constant := 1073741824;
CLONE_NEWNS : constant := 131072;
CLONE_NEWPID : constant := 536870912;
CLONE_NEWUSER : constant := 268435456;
CLONE_NEWUTS : constant := 67108864;
CLONE_PARENT : constant := 32768;
CLONE_PARENT_SETTID : constant := 1048576;
CLONE_PTRACE : constant := 8192;
CLONE_SETTLS : constant := 524288;
CLONE_SIGHAND : constant := 2048;
CLONE_SYSVSEM : constant := 262144;
CLONE_THREAD : constant := 65536;
CLONE_UNTRACED : constant := 8388608;
CLONE_VFORK : constant := 16384;
CLONE_VM : constant := 256;
CSIGNAL : constant := 255;
SCHED_BATCH : constant := 3;
SCHED_FIFO : constant := 1;
SCHED_IDLE : constant := 5;
SCHED_OTHER : constant := 0;
SCHED_RESET_ON_FORK : constant := 1073741824;
SCHED_RR : constant := 2;
-- __CPUELT (function macro)
-- __CPUMASK (function macro)
-- __CPU_ALLOC (function macro)
-- __CPU_ALLOC_SIZE (function macro)
-- __CPU_CLR_S (uninterpretable)
-- __CPU_COUNT_S (function macro)
-- __CPU_EQUAL_S (function macro)
-- __CPU_FREE (function macro)
-- __CPU_ISSET_S (uninterpretable)
-- __CPU_OP_S (unparsible)
CPU_SETSIZE : constant := 1024;
-- __CPU_SET_S (uninterpretable)
-- __CPU_ZERO_S (function macro)
NCPUBITS : constant := 32;
-- __cpu_set_t_defined (empty)
defined_schedparam : constant := 1;
end C.bits.sched;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.select_h is
pragma Preelaborate;
-- __FD_CLR (uninterpretable)
-- __FD_ISSET (uninterpretable)
-- __FD_SET (uninterpretable)
-- __FD_ZERO (uninterpretable)
FD_ZERO_STOS : constant char_array (0 .. 5) := "stosl" & char'Val (0);
end C.bits.select_h;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.setjmp is
pragma Preelaborate;
subtype jmp_buf is signed_int_array (0 .. 5);
BITS_SETJMP_H : constant := 1;
end C.bits.setjmp;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.sigcontext is
pragma Preelaborate;
type struct_fpx_sw_bytes;
type struct_fpx_sw_bytes is record
magic1 : aliased types.uint32_t;
extended_size : aliased types.uint32_t;
xstate_bv : aliased types.uint64_t;
xstate_size : aliased types.uint32_t;
padding : aliased types.uint32_t_array (0 .. 6);
end record;
pragma Convention (C_Pass_By_Copy, struct_fpx_sw_bytes);
type struct_fpreg;
type struct_fpreg is record
significand : aliased unsigned_short_array (0 .. 3);
exponent : aliased unsigned_short;
end record;
pragma Convention (C_Pass_By_Copy, struct_fpreg);
type struct_fpreg_array is array (size_t range <>) of
aliased struct_fpreg;
pragma Convention (C, struct_fpreg_array);
type struct_fpxreg;
type struct_fpxreg is record
significand : aliased unsigned_short_array (0 .. 3);
exponent : aliased unsigned_short;
padding : aliased unsigned_short_array (0 .. 2);
end record;
pragma Convention (C_Pass_By_Copy, struct_fpxreg);
type struct_fpxreg_array is array (size_t range <>) of
aliased struct_fpxreg;
pragma Convention (C, struct_fpxreg_array);
type struct_xmmreg;
type struct_xmmreg is record
element : aliased types.uint32_t_array (0 .. 3);
end record;
pragma Convention (C_Pass_By_Copy, struct_xmmreg);
type struct_xmmreg_array is array (size_t range <>) of
aliased struct_xmmreg;
pragma Convention (C, struct_xmmreg_array);
type struct_fpstate;
type struct_fpstate is record
cw : aliased types.uint32_t;
sw : aliased types.uint32_t;
tag : aliased types.uint32_t;
ipoff : aliased types.uint32_t;
cssel : aliased types.uint32_t;
dataoff : aliased types.uint32_t;
datasel : aliased types.uint32_t;
st : aliased struct_fpreg_array (0 .. 7);
status : aliased unsigned_short;
magic : aliased unsigned_short;
fxsr_env : aliased types.uint32_t_array (0 .. 5);
mxcsr : aliased types.uint32_t;
reserved : aliased types.uint32_t;
fxsr_st : aliased struct_fpxreg_array (0 .. 7);
xmm : aliased struct_xmmreg_array (0 .. 7);
padding : aliased types.uint32_t_array (0 .. 55);
end record;
pragma Convention (C_Pass_By_Copy, struct_fpstate);
type struct_fpstate_ptr is access all struct_fpstate;
for struct_fpstate_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_fpstate_ptr);
pragma Convention (C, struct_fpstate_ptr);
type struct_sigcontext;
type struct_sigcontext is record
gs : aliased unsigned_short;
gsh : aliased unsigned_short;
fs : aliased unsigned_short;
fsh : aliased unsigned_short;
es : aliased unsigned_short;
esh : aliased unsigned_short;
ds : aliased unsigned_short;
dsh : aliased unsigned_short;
edi : aliased unsigned_long;
esi : aliased unsigned_long;
ebp : aliased unsigned_long;
esp : aliased unsigned_long;
ebx : aliased unsigned_long;
edx : aliased unsigned_long;
ecx : aliased unsigned_long;
eax : aliased unsigned_long;
trapno : aliased unsigned_long;
err : aliased unsigned_long;
eip : aliased unsigned_long;
cs : aliased unsigned_short;
csh : aliased unsigned_short;
eflags : aliased unsigned_long;
esp_at_signal : aliased unsigned_long;
ss : aliased unsigned_short;
ssh : aliased unsigned_short;
fpstate : aliased struct_fpstate_ptr;
oldmask : aliased unsigned_long;
cr2 : aliased unsigned_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_sigcontext);
type struct_sigcontext_ptr is access all struct_sigcontext;
for struct_sigcontext_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigcontext_ptr);
pragma Convention (C, struct_sigcontext_ptr);
type struct_xsave_hdr;
type struct_xsave_hdr is record
xstate_bv : aliased types.uint64_t;
reserved1 : aliased types.uint64_t_array (0 .. 1);
reserved2 : aliased types.uint64_t_array (0 .. 4);
end record;
pragma Convention (C_Pass_By_Copy, struct_xsave_hdr);
type struct_ymmh_state;
type struct_ymmh_state is record
ymmh_space : aliased types.uint32_t_array (0 .. 63);
end record;
pragma Convention (C_Pass_By_Copy, struct_ymmh_state);
type struct_xstate;
type struct_xstate is record
fpstate : aliased struct_fpstate;
xstate_hdr : aliased struct_xsave_hdr;
ymmh : aliased struct_ymmh_state;
end record;
pragma Convention (C_Pass_By_Copy, struct_xstate);
FP_XSTATE_MAGIC1 : constant := 1179670611;
FP_XSTATE_MAGIC2 : constant := 1179670597;
FP_XSTATE_MAGIC2_SIZE : constant := 4;
X86_FXSR_MAGIC : constant := 0;
BITS_SIGCONTEXT_H : constant := 1;
-- subtype sigcontext_struct is struct sigcontext;
end C.bits.sigcontext;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.pthreadtypes;
with C.bits.types;
package C.bits.siginfo is
pragma Preelaborate;
type union_sigval;
type union_sigval (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
sival_int : signed_int;
when others =>
sival_ptr : void_ptr;
end case;
end record;
pragma Unchecked_Union (union_sigval);
pragma Convention (C_Pass_By_Copy, union_sigval);
subtype sigval_t is union_sigval;
subtype sigchld_clock_t is types.qqclock_t;
type struct_9e8c5aa6 is record
si_pid : aliased types.pid_t;
si_uid : aliased types.uid_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_9e8c5aa6);
type struct_e0d78e0e is record
si_tid : aliased signed_int;
si_overrun : aliased signed_int;
si_sigval : aliased sigval_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_e0d78e0e);
type struct_fa3cc60c is record
si_pid : aliased types.pid_t;
si_uid : aliased types.uid_t;
si_sigval : aliased sigval_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_fa3cc60c);
type struct_9d1c2da6 is record
si_pid : aliased types.pid_t;
si_uid : aliased types.uid_t;
si_status : aliased signed_int;
si_utime : aliased sigchld_clock_t;
si_stime : aliased sigchld_clock_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_9d1c2da6);
type struct_4163fb74 is record
lower : aliased void_ptr;
upper : aliased void_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_4163fb74);
type struct_fd4f0d9e is record
si_addr : aliased void_ptr;
si_addr_lsb : aliased signed_short;
si_addr_bnd : aliased struct_4163fb74;
end record;
pragma Convention (C_Pass_By_Copy, struct_fd4f0d9e);
type struct_2acd3988 is record
si_band : aliased signed_long;
si_fd : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_2acd3988);
type struct_c306190d is record
call_addr : aliased void_ptr;
syscall : aliased signed_int;
arch : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_c306190d);
type union_5d9aa12a (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
pad : signed_int_array (0 .. 28);
when 1 =>
kill : struct_9e8c5aa6;
when 2 =>
timer : struct_e0d78e0e;
when 3 =>
rt : struct_fa3cc60c;
when 4 =>
sigchld : struct_9d1c2da6;
when 5 =>
sigfault : struct_fd4f0d9e;
when 6 =>
sigpoll : struct_2acd3988;
when others =>
sigsys : struct_c306190d;
end case;
end record;
pragma Unchecked_Union (union_5d9aa12a);
pragma Convention (C_Pass_By_Copy, union_5d9aa12a);
type struct_40602684 is record
si_signo : aliased signed_int;
si_errno : aliased signed_int;
si_code : aliased signed_int;
sifields : aliased union_5d9aa12a;
end record;
pragma Convention (C_Pass_By_Copy, struct_40602684);
type struct_40602684_const_ptr is access constant struct_40602684;
for struct_40602684_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_40602684_const_ptr);
pragma Convention (C, struct_40602684_const_ptr);
type struct_40602684_ptr is access all struct_40602684;
for struct_40602684_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_40602684_ptr);
pragma Convention (C, struct_40602684_ptr);
subtype siginfo_t is struct_40602684;
subtype siginfo_t_const_ptr is struct_40602684_const_ptr;
subtype siginfo_t_ptr is struct_40602684_ptr;
type enum_77b4bd3c is (SI_ASYNCNL, SI_TKILL, SI_SIGIO, SI_ASYNCIO,
SI_MESGQ, SI_TIMER, SI_QUEUE, SI_USER, SI_KERNEL);
for enum_77b4bd3c use (SI_ASYNCNL => -60, SI_TKILL => -6, SI_SIGIO => -5,
SI_ASYNCIO => -4, SI_MESGQ => -3, SI_TIMER => -2, SI_QUEUE => -1,
SI_USER => 0, SI_KERNEL => 128);
pragma Convention (C, enum_77b4bd3c);
for enum_77b4bd3c'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_77b4bd3c, signed_int);
type enum_a9af99da is (ILL_ILLOPC, ILL_ILLOPN, ILL_ILLADR, ILL_ILLTRP,
ILL_PRVOPC, ILL_PRVREG, ILL_COPROC, ILL_BADSTK);
for enum_a9af99da use (ILL_ILLOPC => 1, ILL_ILLOPN => 2, ILL_ILLADR => 3,
ILL_ILLTRP => 4, ILL_PRVOPC => 5, ILL_PRVREG => 6, ILL_COPROC => 7,
ILL_BADSTK => 8);
pragma Convention (C, enum_a9af99da);
for enum_a9af99da'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_a9af99da, signed_int);
type enum_aff13027 is (FPE_INTDIV, FPE_INTOVF, FPE_FLTDIV, FPE_FLTOVF,
FPE_FLTUND, FPE_FLTRES, FPE_FLTINV, FPE_FLTSUB);
for enum_aff13027 use (FPE_INTDIV => 1, FPE_INTOVF => 2, FPE_FLTDIV => 3,
FPE_FLTOVF => 4, FPE_FLTUND => 5, FPE_FLTRES => 6, FPE_FLTINV => 7,
FPE_FLTSUB => 8);
pragma Convention (C, enum_aff13027);
for enum_aff13027'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_aff13027, signed_int);
type enum_1c467f51 is (SEGV_MAPERR, SEGV_ACCERR);
for enum_1c467f51 use (SEGV_MAPERR => 1, SEGV_ACCERR => 2);
pragma Convention (C, enum_1c467f51);
for enum_1c467f51'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_1c467f51, signed_int);
type enum_15dc5223 is (BUS_ADRALN, BUS_ADRERR, BUS_OBJERR, BUS_MCEERR_AR,
BUS_MCEERR_AO);
for enum_15dc5223 use (BUS_ADRALN => 1, BUS_ADRERR => 2, BUS_OBJERR => 3,
BUS_MCEERR_AR => 4, BUS_MCEERR_AO => 5);
pragma Convention (C, enum_15dc5223);
for enum_15dc5223'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_15dc5223, signed_int);
type enum_4a5aaba1 is (TRAP_BRKPT, TRAP_TRACE);
for enum_4a5aaba1 use (TRAP_BRKPT => 1, TRAP_TRACE => 2);
pragma Convention (C, enum_4a5aaba1);
for enum_4a5aaba1'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_4a5aaba1, signed_int);
type enum_cadf86a9 is (CLD_EXITED, CLD_KILLED, CLD_DUMPED, CLD_TRAPPED,
CLD_STOPPED, CLD_CONTINUED);
for enum_cadf86a9 use (CLD_EXITED => 1, CLD_KILLED => 2, CLD_DUMPED => 3,
CLD_TRAPPED => 4, CLD_STOPPED => 5, CLD_CONTINUED => 6);
pragma Convention (C, enum_cadf86a9);
for enum_cadf86a9'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_cadf86a9, signed_int);
type enum_6454b2a2 is (POLL_IN, POLL_OUT, POLL_MSG, POLL_ERR, POLL_PRI,
POLL_HUP);
for enum_6454b2a2 use (POLL_IN => 1, POLL_OUT => 2, POLL_MSG => 3,
POLL_ERR => 4, POLL_PRI => 5, POLL_HUP => 6);
pragma Convention (C, enum_6454b2a2);
for enum_6454b2a2'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_6454b2a2, signed_int);
type struct_sigevent;
type access_95123cdb is access procedure (a1 : sigval_t);
pragma Convention (C, access_95123cdb);
type struct_157b1d66 is record
F_function : aliased access_95123cdb;
attribute : aliased pthreadtypes.pthread_attr_t_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_157b1d66);
type union_401017f3 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
pad : signed_int_array (0 .. 12);
when 1 =>
tid : types.pid_t;
when others =>
sigev_thread : struct_157b1d66;
end case;
end record;
pragma Unchecked_Union (union_401017f3);
pragma Convention (C_Pass_By_Copy, union_401017f3);
type struct_sigevent is record
sigev_value : aliased sigval_t;
sigev_signo : aliased signed_int;
sigev_notify : aliased signed_int;
sigev_un : aliased union_401017f3;
end record;
pragma Convention (C_Pass_By_Copy, struct_sigevent);
type struct_sigevent_ptr is access all struct_sigevent;
for struct_sigevent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigevent_ptr);
pragma Convention (C, struct_sigevent_ptr);
subtype sigevent_t is struct_sigevent;
type enum_ccbc04c8 is (SIGEV_SIGNAL, SIGEV_NONE, SIGEV_THREAD,
SIGEV_THREAD_ID);
for enum_ccbc04c8 use (SIGEV_SIGNAL => 0, SIGEV_NONE => 1,
SIGEV_THREAD => 2, SIGEV_THREAD_ID => 4);
pragma Convention (C, enum_ccbc04c8);
for enum_ccbc04c8'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_ccbc04c8, signed_int);
-- BUS_ADRALN (repeating itself)
-- BUS_ADRERR (repeating itself)
-- BUS_MCEERR_AO (repeating itself)
-- BUS_MCEERR_AR (repeating itself)
-- BUS_OBJERR (repeating itself)
-- CLD_CONTINUED (repeating itself)
-- CLD_DUMPED (repeating itself)
-- CLD_EXITED (repeating itself)
-- CLD_KILLED (repeating itself)
-- CLD_STOPPED (repeating itself)
-- CLD_TRAPPED (repeating itself)
-- FPE_FLTDIV (repeating itself)
-- FPE_FLTINV (repeating itself)
-- FPE_FLTOVF (repeating itself)
-- FPE_FLTRES (repeating itself)
-- FPE_FLTSUB (repeating itself)
-- FPE_FLTUND (repeating itself)
-- FPE_INTDIV (repeating itself)
-- FPE_INTOVF (repeating itself)
-- ILL_BADSTK (repeating itself)
-- ILL_COPROC (repeating itself)
-- ILL_ILLADR (repeating itself)
-- ILL_ILLOPC (repeating itself)
-- ILL_ILLOPN (repeating itself)
-- ILL_ILLTRP (repeating itself)
-- ILL_PRVOPC (repeating itself)
-- ILL_PRVREG (repeating itself)
-- POLL_ERR (repeating itself)
-- POLL_HUP (repeating itself)
-- POLL_IN (repeating itself)
-- POLL_MSG (repeating itself)
-- POLL_OUT (repeating itself)
-- POLL_PRI (repeating itself)
-- SEGV_ACCERR (repeating itself)
-- SEGV_MAPERR (repeating itself)
-- SIGEV_NONE (repeating itself)
-- SIGEV_SIGNAL (repeating itself)
-- SIGEV_THREAD (repeating itself)
-- SIGEV_THREAD_ID (repeating itself)
-- SI_ASYNCIO (repeating itself)
-- SI_ASYNCNL (repeating itself)
-- SI_KERNEL (repeating itself)
-- SI_MESGQ (repeating itself)
-- SI_QUEUE (repeating itself)
-- SI_SIGIO (repeating itself)
-- SI_TIMER (repeating itself)
-- SI_TKILL (repeating itself)
-- SI_USER (repeating itself)
-- TRAP_BRKPT (repeating itself)
-- TRAP_TRACE (repeating itself)
SIGEV_MAX_SIZE : constant := 64;
SIGEV_PAD_SIZE : constant := 13;
-- __SI_ALIGNMENT (empty)
SI_MAX_SIZE : constant := 128;
SI_PAD_SIZE : constant := 29;
have_sigevent_t : constant := 1;
have_siginfo_t : constant := 1;
have_sigval_t : constant := 1;
-- .si_addr renames ._sifields._sigfault.si_addr (accessor)
-- .si_addr_lsb renames ._sifields._sigfault.si_addr_lsb (accessor)
-- .si_arch renames ._sifields._sigsys._arch (accessor)
-- .si_band renames ._sifields._sigpoll.si_band (accessor)
-- .si_call_addr renames ._sifields._sigsys._call_addr (accessor)
-- .si_fd renames ._sifields._sigpoll.si_fd (accessor)
-- si_int (unparsible)
-- .si_lower renames ._sifields._sigfault.si_addr_bnd._lower (accessor)
-- .si_overrun renames ._sifields._timer.si_overrun (accessor)
-- .si_pid renames ._sifields._kill.si_pid (accessor)
-- si_ptr (unparsible)
-- .si_status renames ._sifields._sigchld.si_status (accessor)
-- .si_stime renames ._sifields._sigchld.si_stime (accessor)
-- .si_syscall renames ._sifields._sigsys._syscall (accessor)
-- .si_timerid renames ._sifields._timer.si_tid (accessor)
-- .si_uid renames ._sifields._kill.si_uid (accessor)
-- .si_upper renames ._sifields._sigfault.si_addr_bnd._upper (accessor)
-- .si_utime renames ._sifields._sigchld.si_utime (accessor)
-- .sigev_notify_attributes renames ._sigev_un._sigev_thread.... (accessor)
-- .sigev_notify_function renames ._sigev_un._sigev_thread._f... (accessor)
end C.bits.siginfo;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.sigset is
pragma Preelaborate;
subtype sig_atomic_t is signed_int;
type struct_1b792736 is record
val : aliased unsigned_long_array (0 .. 31);
end record;
pragma Convention (C_Pass_By_Copy, struct_1b792736);
type struct_1b792736_const_ptr is access constant struct_1b792736;
for struct_1b792736_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_1b792736_const_ptr);
pragma Convention (C, struct_1b792736_const_ptr);
type struct_1b792736_ptr is access all struct_1b792736;
for struct_1b792736_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_1b792736_ptr);
pragma Convention (C, struct_1b792736_ptr);
subtype sigset_t is struct_1b792736;
subtype sigset_t_const_ptr is struct_1b792736_const_ptr;
subtype sigset_t_ptr is struct_1b792736_ptr;
function sigismember (a1 : access constant sigset_t; a2 : signed_int)
return signed_int;
pragma Import (C, sigismember, "__sigismember");
function sigaddset (a1 : access sigset_t; a2 : signed_int)
return signed_int;
pragma Import (C, sigaddset, "__sigaddset");
function sigdelset (a1 : access sigset_t; a2 : signed_int)
return signed_int;
pragma Import (C, sigdelset, "__sigdelset");
-- _EXTERN_INLINE (alias of inline)
SIGSET_H_fns : constant := 1;
SIGSET_H_types : constant := 1;
SIGSET_NWORDS : constant := 32;
-- __sigandset (function macro)
-- __sigemptyset (function macro)
-- __sigfillset (function macro)
-- __sigisemptyset (function macro)
-- __sigmask (function macro)
-- __sigorset (function macro)
-- __sigword (function macro)
end C.bits.sigset;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.stddef;
package C.bits.sigstack is
pragma Preelaborate;
type struct_sigstack;
type struct_sigstack is record
ss_sp : aliased void_ptr;
ss_onstack : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_sigstack);
type struct_sigstack_ptr is access all struct_sigstack;
for struct_sigstack_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigstack_ptr);
pragma Convention (C, struct_sigstack_ptr);
type enum_83418de0 is (SS_ONSTACK, SS_DISABLE);
for enum_83418de0 use (SS_ONSTACK => 1, SS_DISABLE => 2);
pragma Convention (C, enum_83418de0);
for enum_83418de0'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_83418de0, signed_int);
type struct_sigaltstack;
type struct_sigaltstack is record
ss_sp : aliased void_ptr;
ss_flags : aliased signed_int;
ss_size : aliased stddef.size_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_sigaltstack);
type struct_sigaltstack_const_ptr is access constant struct_sigaltstack;
for struct_sigaltstack_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigaltstack_const_ptr);
pragma Convention (C, struct_sigaltstack_const_ptr);
type struct_sigaltstack_ptr is access all struct_sigaltstack;
for struct_sigaltstack_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigaltstack_ptr);
pragma Convention (C, struct_sigaltstack_ptr);
subtype stack_t is struct_sigaltstack;
MINSIGSTKSZ : constant := 2048;
SIGSTKSZ : constant := 8192;
-- SS_DISABLE (repeating itself)
-- SS_ONSTACK (repeating itself)
end C.bits.sigstack;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.pthreadtypes;
with C.bits.siginfo;
with C.bits.sigset;
package C.bits.sigthread is
pragma Preelaborate;
function pthread_sigmask (how : signed_int;
newmask : access constant sigset.sigset_t;
oldmask : access sigset.sigset_t) return signed_int;
pragma Import (C, pthread_sigmask, "pthread_sigmask");
function pthread_kill (threadid : pthreadtypes.pthread_t;
signo : signed_int) return signed_int;
pragma Import (C, pthread_kill, "pthread_kill");
function pthread_sigqueue (threadid : pthreadtypes.pthread_t;
signo : signed_int; value : siginfo.union_sigval) return signed_int;
pragma Import (C, pthread_sigqueue, "pthread_sigqueue");
BITS_SIGTHREAD_H : constant := 1;
end C.bits.sigthread;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.sockaddr is
pragma Preelaborate;
subtype sa_family_t is unsigned_short;
BITS_SOCKADDR_H : constant := 1;
SS_SIZE : constant := 128;
-- __SOCKADDR_COMMON (has # or ##)
SOCKADDR_COMMON_SIZE : constant := 2;
end C.bits.sockaddr;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.sockaddr;
with C.bits.uio;
with C.stddef;
with C.sys.types;
with C.unistd;
package C.bits.socket is
pragma Preelaborate;
type struct_sockaddr;
type struct_sockaddr is record
sa_family : aliased sockaddr.sa_family_t;
sa_data : aliased char_array (0 .. 13);
end record;
pragma Convention (C_Pass_By_Copy, struct_sockaddr);
type struct_sockaddr_const_ptr is access constant struct_sockaddr;
for struct_sockaddr_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_const_ptr);
pragma Convention (C, struct_sockaddr_const_ptr);
type struct_sockaddr_ptr is access all struct_sockaddr;
for struct_sockaddr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ptr);
pragma Convention (C, struct_sockaddr_ptr);
type struct_sockaddr_storage;
type struct_sockaddr_storage is record
ss_family : aliased sockaddr.sa_family_t;
ss_padding : aliased char_array (0 .. 121);
ss_align : aliased unsigned_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_sockaddr_storage);
type struct_sockaddr_storage_array is array (size_t range <>) of
aliased struct_sockaddr_storage;
pragma Convention (C, struct_sockaddr_storage_array);
type struct_sockaddr_storage_ptr is access all struct_sockaddr_storage;
for struct_sockaddr_storage_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_storage_ptr);
pragma Convention (C, struct_sockaddr_storage_ptr);
type struct_sockaddr_storage_const_ptr is
access constant struct_sockaddr_storage;
for struct_sockaddr_storage_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_storage_const_ptr);
pragma Convention (C, struct_sockaddr_storage_const_ptr);
type enum_0efe6d18 is (MSG_OOB, MSG_PEEK, MSG_DONTROUTE, MSG_CTRUNC,
MSG_PROXY, MSG_TRUNC, MSG_DONTWAIT, MSG_EOR, MSG_WAITALL, MSG_FIN,
MSG_SYN, MSG_CONFIRM, MSG_RST, MSG_ERRQUEUE, MSG_NOSIGNAL, MSG_MORE,
MSG_WAITFORONE, MSG_BATCH, MSG_FASTOPEN, MSG_CMSG_CLOEXEC);
for enum_0efe6d18 use (MSG_OOB => 1, MSG_PEEK => 2, MSG_DONTROUTE => 4,
MSG_CTRUNC => 8, MSG_PROXY => 16, MSG_TRUNC => 32, MSG_DONTWAIT => 64,
MSG_EOR => 128, MSG_WAITALL => 256, MSG_FIN => 512, MSG_SYN => 1024,
MSG_CONFIRM => 2048, MSG_RST => 4096, MSG_ERRQUEUE => 8192,
MSG_NOSIGNAL => 16384, MSG_MORE => 32768, MSG_WAITFORONE => 65536,
MSG_BATCH => 262144, MSG_FASTOPEN => 536870912,
MSG_CMSG_CLOEXEC => 1073741824);
pragma Convention (C, enum_0efe6d18);
function MSG_TRYHARD return enum_0efe6d18 renames MSG_DONTROUTE;
for enum_0efe6d18'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_0efe6d18, signed_int);
type struct_msghdr;
type struct_msghdr is record
msg_name : aliased void_ptr;
msg_namelen : aliased unistd.socklen_t;
msg_iov : aliased uio.struct_iovec_ptr;
msg_iovlen : aliased stddef.size_t;
msg_control : aliased void_ptr;
msg_controllen : aliased stddef.size_t;
msg_flags : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_msghdr);
type struct_msghdr_ptr is access all struct_msghdr;
for struct_msghdr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_msghdr_ptr);
pragma Convention (C, struct_msghdr_ptr);
type struct_msghdr_const_ptr is access constant struct_msghdr;
for struct_msghdr_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_msghdr_const_ptr);
pragma Convention (C, struct_msghdr_const_ptr);
type struct_cmsghdr;
type struct_cmsghdr is record
cmsg_len : aliased stddef.size_t;
cmsg_level : aliased signed_int;
cmsg_type : aliased signed_int;
cmsg_data : aliased unsigned_char_array (0 .. -1);
end record;
pragma Convention (C_Pass_By_Copy, struct_cmsghdr);
type struct_cmsghdr_ptr is access all struct_cmsghdr;
for struct_cmsghdr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_cmsghdr_ptr);
pragma Convention (C, struct_cmsghdr_ptr);
type struct_cmsghdr_ptr_ptr is access all struct_cmsghdr_ptr;
for struct_cmsghdr_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_cmsghdr_ptr_ptr);
pragma Convention (C, struct_cmsghdr_ptr_ptr);
type struct_cmsghdr_const_ptr is access constant struct_cmsghdr;
for struct_cmsghdr_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_cmsghdr_const_ptr);
pragma Convention (C, struct_cmsghdr_const_ptr);
function qqcmsg_nxthdr (mhdr : access struct_msghdr;
cmsg : access struct_cmsghdr) return struct_cmsghdr_ptr;
pragma Import (C, qqcmsg_nxthdr, "__cmsg_nxthdr");
type enum_010b5d53 is (SCM_RIGHTS, SCM_CREDENTIALS);
for enum_010b5d53 use (SCM_RIGHTS => 1, SCM_CREDENTIALS => 2);
pragma Convention (C, enum_010b5d53);
for enum_010b5d53'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_010b5d53, signed_int);
type struct_ucred;
type struct_ucred is record
pid : aliased sys.types.pid_t;
uid : aliased sys.types.uid_t;
gid : aliased sys.types.gid_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_ucred);
type struct_linger;
type struct_linger is record
l_onoff : aliased signed_int;
l_linger : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_linger);
AF_ALG : constant := 38;
AF_APPLETALK : constant := 5;
AF_ASH : constant := 18;
AF_ATMPVC : constant := 8;
AF_ATMSVC : constant := 20;
AF_AX25 : constant := 3;
AF_BLUETOOTH : constant := 31;
AF_BRIDGE : constant := 7;
AF_CAIF : constant := 37;
AF_CAN : constant := 29;
AF_DECnet : constant := 12;
AF_ECONET : constant := 19;
AF_FILE : constant := 1;
AF_IB : constant := 27;
AF_IEEE802154 : constant := 36;
AF_INET : constant := 2;
AF_INET6 : constant := 10;
AF_IPX : constant := 4;
AF_IRDA : constant := 23;
AF_ISDN : constant := 34;
AF_IUCV : constant := 32;
AF_KCM : constant := 41;
AF_KEY : constant := 15;
AF_LLC : constant := 26;
AF_LOCAL : constant := 1;
AF_MAX : constant := 42;
AF_MPLS : constant := 28;
AF_NETBEUI : constant := 13;
AF_NETLINK : constant := 16;
AF_NETROM : constant := 6;
AF_NFC : constant := 39;
AF_PACKET : constant := 17;
AF_PHONET : constant := 35;
AF_PPPOX : constant := 24;
AF_RDS : constant := 21;
AF_ROSE : constant := 11;
AF_ROUTE : constant := 16;
AF_RXRPC : constant := 33;
AF_SECURITY : constant := 14;
AF_SNA : constant := 22;
AF_TIPC : constant := 30;
AF_UNIX : constant := 1;
AF_UNSPEC : constant := 0;
AF_VSOCK : constant := 40;
AF_WANPIPE : constant := 25;
AF_X25 : constant := 9;
-- CMSG_ALIGN (function macro)
-- CMSG_DATA (uninterpretable)
-- CMSG_FIRSTHDR (uninterpretable)
-- CMSG_LEN (function macro)
-- CMSG_NXTHDR (function macro)
-- CMSG_SPACE (function macro)
-- MSG_BATCH (repeating itself)
-- MSG_CMSG_CLOEXEC (repeating itself)
-- MSG_CONFIRM (repeating itself)
-- MSG_CTRUNC (repeating itself)
-- MSG_DONTROUTE (repeating itself)
-- MSG_DONTWAIT (repeating itself)
-- MSG_EOR (repeating itself)
-- MSG_ERRQUEUE (repeating itself)
-- MSG_FASTOPEN (repeating itself)
-- MSG_FIN (repeating itself)
-- MSG_MORE (repeating itself)
-- MSG_NOSIGNAL (repeating itself)
-- MSG_OOB (repeating itself)
-- MSG_PEEK (repeating itself)
-- MSG_PROXY (repeating itself)
-- MSG_RST (repeating itself)
-- MSG_SYN (repeating itself)
-- MSG_TRUNC (repeating itself)
-- MSG_TRYHARD (repeating itself)
-- MSG_WAITALL (repeating itself)
-- MSG_WAITFORONE (repeating itself)
PF_ALG : constant := 38;
PF_APPLETALK : constant := 5;
PF_ASH : constant := 18;
PF_ATMPVC : constant := 8;
PF_ATMSVC : constant := 20;
PF_AX25 : constant := 3;
PF_BLUETOOTH : constant := 31;
PF_BRIDGE : constant := 7;
PF_CAIF : constant := 37;
PF_CAN : constant := 29;
PF_DECnet : constant := 12;
PF_ECONET : constant := 19;
PF_FILE : constant := 1;
PF_IB : constant := 27;
PF_IEEE802154 : constant := 36;
PF_INET : constant := 2;
PF_INET6 : constant := 10;
PF_IPX : constant := 4;
PF_IRDA : constant := 23;
PF_ISDN : constant := 34;
PF_IUCV : constant := 32;
PF_KCM : constant := 41;
PF_KEY : constant := 15;
PF_LLC : constant := 26;
PF_LOCAL : constant := 1;
PF_MAX : constant := 42;
PF_MPLS : constant := 28;
PF_NETBEUI : constant := 13;
PF_NETLINK : constant := 16;
PF_NETROM : constant := 6;
PF_NFC : constant := 39;
PF_PACKET : constant := 17;
PF_PHONET : constant := 35;
PF_PPPOX : constant := 24;
PF_RDS : constant := 21;
PF_ROSE : constant := 11;
PF_ROUTE : constant := 16;
PF_RXRPC : constant := 33;
PF_SECURITY : constant := 14;
PF_SNA : constant := 22;
PF_TIPC : constant := 30;
PF_UNIX : constant := 1;
PF_UNSPEC : constant := 0;
PF_VSOCK : constant := 40;
PF_WANPIPE : constant := 25;
PF_X25 : constant := 9;
-- SCM_CREDENTIALS (repeating itself)
-- SCM_RIGHTS (repeating itself)
SOL_AAL : constant := 265;
SOL_ALG : constant := 279;
SOL_ATM : constant := 264;
SOL_BLUETOOTH : constant := 274;
SOL_CAIF : constant := 278;
SOL_DCCP : constant := 269;
SOL_DECNET : constant := 261;
SOL_IRDA : constant := 266;
SOL_IUCV : constant := 277;
SOL_KCM : constant := 281;
SOL_LLC : constant := 268;
SOL_NETBEUI : constant := 267;
SOL_NETLINK : constant := 270;
SOL_NFC : constant := 280;
SOL_PACKET : constant := 263;
SOL_PNPIPE : constant := 275;
SOL_PPPOL2TP : constant := 273;
SOL_RAW : constant := 255;
SOL_RDS : constant := 276;
SOL_RXRPC : constant := 272;
SOL_TIPC : constant := 271;
SOL_X25 : constant := 262;
SOMAXCONN : constant := 128;
SS_PADSIZE : constant := 122;
-- __BITS_SOCKET_H (empty)
subtype ss_aligntype is unsigned_long;
end C.bits.socket;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.socket_type is
pragma Preelaborate;
type enum_socket_type;
type enum_socket_type is (SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_RDM,
SOCK_SEQPACKET, SOCK_DCCP, SOCK_PACKET, SOCK_NONBLOCK, SOCK_CLOEXEC);
for enum_socket_type use (SOCK_STREAM => 1, SOCK_DGRAM => 2,
SOCK_RAW => 3, SOCK_RDM => 4, SOCK_SEQPACKET => 5, SOCK_DCCP => 6,
SOCK_PACKET => 10, SOCK_NONBLOCK => 2048, SOCK_CLOEXEC => 524288);
pragma Convention (C, enum_socket_type);
-- SOCK_CLOEXEC (repeating itself)
-- SOCK_DCCP (repeating itself)
-- SOCK_DGRAM (repeating itself)
-- SOCK_NONBLOCK (repeating itself)
-- SOCK_PACKET (repeating itself)
-- SOCK_RAW (repeating itself)
-- SOCK_RDM (repeating itself)
-- SOCK_SEQPACKET (repeating itself)
-- SOCK_STREAM (repeating itself)
end C.bits.socket_type;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.time;
package C.bits.stat is
pragma Preelaborate;
type struct_stat;
type struct_stat is record
st_dev : aliased types.dev_t;
pad1 : aliased unsigned_short;
qqst_ino : aliased types.ino_t;
st_mode : aliased types.mode_t;
st_nlink : aliased types.nlink_t;
st_uid : aliased types.uid_t;
st_gid : aliased types.gid_t;
st_rdev : aliased types.dev_t;
pad2 : aliased unsigned_short;
st_size : aliased types.off64_t;
st_blksize : aliased types.blksize_t;
st_blocks : aliased types.blkcnt64_t;
st_atim : aliased time.struct_timespec;
st_mtim : aliased time.struct_timespec;
st_ctim : aliased time.struct_timespec;
st_ino : aliased types.ino64_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_stat);
type struct_stat_ptr is access all struct_stat;
for struct_stat_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_stat_ptr);
pragma Convention (C, struct_stat_ptr);
type struct_stat64;
type struct_stat64 is record
st_dev : aliased types.dev_t;
pad1 : aliased unsigned_int;
qqst_ino : aliased types.ino_t;
st_mode : aliased types.mode_t;
st_nlink : aliased types.nlink_t;
st_uid : aliased types.uid_t;
st_gid : aliased types.gid_t;
st_rdev : aliased types.dev_t;
pad2 : aliased unsigned_int;
st_size : aliased types.off64_t;
st_blksize : aliased types.blksize_t;
st_blocks : aliased types.blkcnt64_t;
st_atim : aliased time.struct_timespec;
st_mtim : aliased time.struct_timespec;
st_ctim : aliased time.struct_timespec;
st_ino : aliased types.ino64_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_stat64);
type struct_stat64_ptr is access all struct_stat64;
for struct_stat64_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_stat64_ptr);
pragma Convention (C, struct_stat64_ptr);
UTIME_NOW : constant := 1073741823;
UTIME_OMIT : constant := 1073741822;
BITS_STAT_H : constant := 1;
MKNOD_VER : constant := 1;
MKNOD_VER_LINUX : constant := 1;
MKNOD_VER_SVR4 : constant := 2;
-- _STATBUF_ST_BLKSIZE (empty)
-- _STATBUF_ST_NSEC (empty)
-- _STATBUF_ST_RDEV (empty)
STAT_VER : constant := 3;
STAT_VER_KERNEL : constant := 1;
STAT_VER_LINUX : constant := 3;
STAT_VER_LINUX_OLD : constant := 1;
STAT_VER_SVR4 : constant := 2;
S_IEXEC : constant := 64;
S_IFBLK : constant := 24576;
S_IFCHR : constant := 8192;
S_IFDIR : constant := 16384;
S_IFIFO : constant := 4096;
S_IFLNK : constant := 40960;
S_IFMT : constant := 61440;
S_IFREG : constant := 32768;
S_IFSOCK : constant := 49152;
S_IREAD : constant := 256;
S_ISGID : constant := 1024;
S_ISUID : constant := 2048;
S_ISVTX : constant := 512;
S_IWRITE : constant := 128;
-- __S_TYPEISMQ (uninterpretable)
-- __S_TYPEISSEM (uninterpretable)
-- __S_TYPEISSHM (uninterpretable)
end C.bits.stat;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.statfs is
pragma Preelaborate;
type struct_statfs;
type struct_statfs is record
f_type : aliased types.fsword_t;
f_bsize : aliased types.fsword_t;
f_blocks : aliased types.fsblkcnt64_t;
f_bfree : aliased types.fsblkcnt64_t;
f_bavail : aliased types.fsblkcnt64_t;
f_files : aliased types.fsfilcnt64_t;
f_ffree : aliased types.fsfilcnt64_t;
f_fsid : aliased types.fsid_t;
f_namelen : aliased types.fsword_t;
f_frsize : aliased types.fsword_t;
f_flags : aliased types.fsword_t;
f_spare : aliased types.fsword_t_array (0 .. 3);
end record;
pragma Convention (C_Pass_By_Copy, struct_statfs);
type struct_statfs_ptr is access all struct_statfs;
for struct_statfs_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_statfs_ptr);
pragma Convention (C, struct_statfs_ptr);
type struct_statfs64;
type struct_statfs64 is record
f_type : aliased types.fsword_t;
f_bsize : aliased types.fsword_t;
f_blocks : aliased types.fsblkcnt64_t;
f_bfree : aliased types.fsblkcnt64_t;
f_bavail : aliased types.fsblkcnt64_t;
f_files : aliased types.fsfilcnt64_t;
f_ffree : aliased types.fsfilcnt64_t;
f_fsid : aliased types.fsid_t;
f_namelen : aliased types.fsword_t;
f_frsize : aliased types.fsword_t;
f_flags : aliased types.fsword_t;
f_spare : aliased types.fsword_t_array (0 .. 3);
end record;
pragma Convention (C_Pass_By_Copy, struct_statfs64);
type struct_statfs64_ptr is access all struct_statfs64;
for struct_statfs64_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_statfs64_ptr);
pragma Convention (C, struct_statfs64_ptr);
-- _STATFS_F_FLAGS (empty)
-- _STATFS_F_FRSIZE (empty)
-- _STATFS_F_NAMELEN (empty)
end C.bits.statfs;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.stdio_lim is
pragma Preelaborate;
FILENAME_MAX : constant := 4096;
FOPEN_MAX : constant := 16;
IOV_MAX : constant := 1024;
L_ctermid : constant := 9;
L_tmpnam : constant := 20;
TMP_MAX : constant := 238328;
end C.bits.stdio_lim;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.sys_errlist is
pragma Preelaborate;
sys_nerr : aliased signed_int;
pragma Import (C, sys_nerr, "sys_nerr");
sys_errlist : aliased char_const_ptr_array (0 .. 0);
pragma Import (C, sys_errlist, "sys_errlist");
end C.bits.sys_errlist;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.syscall is
pragma Preelaborate;
SYS_llseek : constant := 140;
SYS_newselect : constant := 142;
SYS_sysctl : constant := 149;
SYS_accept4 : constant := 364;
SYS_access : constant := 33;
SYS_acct : constant := 51;
SYS_add_key : constant := 286;
SYS_adjtimex : constant := 124;
SYS_afs_syscall : constant := 137;
SYS_alarm : constant := 27;
SYS_bdflush : constant := 134;
SYS_bind : constant := 361;
SYS_bpf : constant := 357;
SYS_break : constant := 17;
SYS_brk : constant := 45;
SYS_capget : constant := 184;
SYS_capset : constant := 185;
SYS_chdir : constant := 12;
SYS_chmod : constant := 15;
SYS_chown : constant := 182;
SYS_chown32 : constant := 212;
SYS_chroot : constant := 61;
SYS_clock_adjtime : constant := 343;
SYS_clock_getres : constant := 266;
SYS_clock_gettime : constant := 265;
SYS_clock_nanosleep : constant := 267;
SYS_clock_settime : constant := 264;
SYS_clone : constant := 120;
SYS_close : constant := 6;
SYS_connect : constant := 362;
SYS_copy_file_range : constant := 377;
SYS_creat : constant := 8;
SYS_create_module : constant := 127;
SYS_delete_module : constant := 129;
SYS_dup : constant := 41;
SYS_dup2 : constant := 63;
SYS_dup3 : constant := 330;
SYS_epoll_create : constant := 254;
SYS_epoll_create1 : constant := 329;
SYS_epoll_ctl : constant := 255;
SYS_epoll_pwait : constant := 319;
SYS_epoll_wait : constant := 256;
SYS_eventfd : constant := 323;
SYS_eventfd2 : constant := 328;
SYS_execve : constant := 11;
SYS_execveat : constant := 358;
SYS_exit : constant := 1;
SYS_exit_group : constant := 252;
SYS_faccessat : constant := 307;
SYS_fadvise64 : constant := 250;
SYS_fadvise64_64 : constant := 272;
SYS_fallocate : constant := 324;
SYS_fanotify_init : constant := 338;
SYS_fanotify_mark : constant := 339;
SYS_fchdir : constant := 133;
SYS_fchmod : constant := 94;
SYS_fchmodat : constant := 306;
SYS_fchown : constant := 95;
SYS_fchown32 : constant := 207;
SYS_fchownat : constant := 298;
SYS_fcntl : constant := 55;
SYS_fcntl64 : constant := 221;
SYS_fdatasync : constant := 148;
SYS_fgetxattr : constant := 231;
SYS_finit_module : constant := 350;
SYS_flistxattr : constant := 234;
SYS_flock : constant := 143;
SYS_fork : constant := 2;
SYS_fremovexattr : constant := 237;
SYS_fsetxattr : constant := 228;
SYS_fstat : constant := 108;
SYS_fstat64 : constant := 197;
SYS_fstatat64 : constant := 300;
SYS_fstatfs : constant := 100;
SYS_fstatfs64 : constant := 269;
SYS_fsync : constant := 118;
SYS_ftime : constant := 35;
SYS_ftruncate : constant := 93;
SYS_ftruncate64 : constant := 194;
SYS_futex : constant := 240;
SYS_futimesat : constant := 299;
SYS_get_kernel_syms : constant := 130;
SYS_get_mempolicy : constant := 275;
SYS_get_robust_list : constant := 312;
SYS_get_thread_area : constant := 244;
SYS_getcpu : constant := 318;
SYS_getcwd : constant := 183;
SYS_getdents : constant := 141;
SYS_getdents64 : constant := 220;
SYS_getegid : constant := 50;
SYS_getegid32 : constant := 202;
SYS_geteuid : constant := 49;
SYS_geteuid32 : constant := 201;
SYS_getgid : constant := 47;
SYS_getgid32 : constant := 200;
SYS_getgroups : constant := 80;
SYS_getgroups32 : constant := 205;
SYS_getitimer : constant := 105;
SYS_getpeername : constant := 368;
SYS_getpgid : constant := 132;
SYS_getpgrp : constant := 65;
SYS_getpid : constant := 20;
SYS_getpmsg : constant := 188;
SYS_getppid : constant := 64;
SYS_getpriority : constant := 96;
SYS_getrandom : constant := 355;
SYS_getresgid : constant := 171;
SYS_getresgid32 : constant := 211;
SYS_getresuid : constant := 165;
SYS_getresuid32 : constant := 209;
SYS_getrlimit : constant := 76;
SYS_getrusage : constant := 77;
SYS_getsid : constant := 147;
SYS_getsockname : constant := 367;
SYS_getsockopt : constant := 365;
SYS_gettid : constant := 224;
SYS_gettimeofday : constant := 78;
SYS_getuid : constant := 24;
SYS_getuid32 : constant := 199;
SYS_getxattr : constant := 229;
SYS_gtty : constant := 32;
SYS_idle : constant := 112;
SYS_init_module : constant := 128;
SYS_inotify_add_watch : constant := 292;
SYS_inotify_init : constant := 291;
SYS_inotify_init1 : constant := 332;
SYS_inotify_rm_watch : constant := 293;
SYS_io_cancel : constant := 249;
SYS_io_destroy : constant := 246;
SYS_io_getevents : constant := 247;
SYS_io_setup : constant := 245;
SYS_io_submit : constant := 248;
SYS_ioctl : constant := 54;
SYS_ioperm : constant := 101;
SYS_iopl : constant := 110;
SYS_ioprio_get : constant := 290;
SYS_ioprio_set : constant := 289;
SYS_ipc : constant := 117;
SYS_kcmp : constant := 349;
SYS_kexec_load : constant := 283;
SYS_keyctl : constant := 288;
SYS_kill : constant := 37;
SYS_lchown : constant := 16;
SYS_lchown32 : constant := 198;
SYS_lgetxattr : constant := 230;
SYS_link : constant := 9;
SYS_linkat : constant := 303;
SYS_listen : constant := 363;
SYS_listxattr : constant := 232;
SYS_llistxattr : constant := 233;
SYS_lock : constant := 53;
SYS_lookup_dcookie : constant := 253;
SYS_lremovexattr : constant := 236;
SYS_lseek : constant := 19;
SYS_lsetxattr : constant := 227;
SYS_lstat : constant := 107;
SYS_lstat64 : constant := 196;
SYS_madvise : constant := 219;
SYS_mbind : constant := 274;
SYS_membarrier : constant := 375;
SYS_memfd_create : constant := 356;
SYS_migrate_pages : constant := 294;
SYS_mincore : constant := 218;
SYS_mkdir : constant := 39;
SYS_mkdirat : constant := 296;
SYS_mknod : constant := 14;
SYS_mknodat : constant := 297;
SYS_mlock : constant := 150;
SYS_mlock2 : constant := 376;
SYS_mlockall : constant := 152;
SYS_mmap : constant := 90;
SYS_mmap2 : constant := 192;
SYS_modify_ldt : constant := 123;
SYS_mount : constant := 21;
SYS_move_pages : constant := 317;
SYS_mprotect : constant := 125;
SYS_mpx : constant := 56;
SYS_mq_getsetattr : constant := 282;
SYS_mq_notify : constant := 281;
SYS_mq_open : constant := 277;
SYS_mq_timedreceive : constant := 280;
SYS_mq_timedsend : constant := 279;
SYS_mq_unlink : constant := 278;
SYS_mremap : constant := 163;
SYS_msync : constant := 144;
SYS_munlock : constant := 151;
SYS_munlockall : constant := 153;
SYS_munmap : constant := 91;
SYS_name_to_handle_at : constant := 341;
SYS_nanosleep : constant := 162;
SYS_nfsservctl : constant := 169;
SYS_nice : constant := 34;
SYS_oldfstat : constant := 28;
SYS_oldlstat : constant := 84;
SYS_oldolduname : constant := 59;
SYS_oldstat : constant := 18;
SYS_olduname : constant := 109;
SYS_open : constant := 5;
SYS_open_by_handle_at : constant := 342;
SYS_openat : constant := 295;
SYS_pause : constant := 29;
SYS_perf_event_open : constant := 336;
SYS_personality : constant := 136;
SYS_pipe : constant := 42;
SYS_pipe2 : constant := 331;
SYS_pivot_root : constant := 217;
SYS_pkey_alloc : constant := 381;
SYS_pkey_free : constant := 382;
SYS_pkey_mprotect : constant := 380;
SYS_poll : constant := 168;
SYS_ppoll : constant := 309;
SYS_prctl : constant := 172;
SYS_pread64 : constant := 180;
SYS_preadv : constant := 333;
SYS_preadv2 : constant := 378;
SYS_prlimit64 : constant := 340;
SYS_process_vm_readv : constant := 347;
SYS_process_vm_writev : constant := 348;
SYS_prof : constant := 44;
SYS_profil : constant := 98;
SYS_pselect6 : constant := 308;
SYS_ptrace : constant := 26;
SYS_putpmsg : constant := 189;
SYS_pwrite64 : constant := 181;
SYS_pwritev : constant := 334;
SYS_pwritev2 : constant := 379;
SYS_query_module : constant := 167;
SYS_quotactl : constant := 131;
SYS_read : constant := 3;
SYS_readahead : constant := 225;
SYS_readdir : constant := 89;
SYS_readlink : constant := 85;
SYS_readlinkat : constant := 305;
SYS_readv : constant := 145;
SYS_reboot : constant := 88;
SYS_recvfrom : constant := 371;
SYS_recvmmsg : constant := 337;
SYS_recvmsg : constant := 372;
SYS_remap_file_pages : constant := 257;
SYS_removexattr : constant := 235;
SYS_rename : constant := 38;
SYS_renameat : constant := 302;
SYS_renameat2 : constant := 353;
SYS_request_key : constant := 287;
SYS_restart_syscall : constant := 0;
SYS_rmdir : constant := 40;
SYS_rt_sigaction : constant := 174;
SYS_rt_sigpending : constant := 176;
SYS_rt_sigprocmask : constant := 175;
SYS_rt_sigqueueinfo : constant := 178;
SYS_rt_sigreturn : constant := 173;
SYS_rt_sigsuspend : constant := 179;
SYS_rt_sigtimedwait : constant := 177;
SYS_rt_tgsigqueueinfo : constant := 335;
SYS_sched_get_priority_max : constant := 159;
SYS_sched_get_priority_min : constant := 160;
SYS_sched_getaffinity : constant := 242;
SYS_sched_getattr : constant := 352;
SYS_sched_getparam : constant := 155;
SYS_sched_getscheduler : constant := 157;
SYS_sched_rr_get_interval : constant := 161;
SYS_sched_setaffinity : constant := 241;
SYS_sched_setattr : constant := 351;
SYS_sched_setparam : constant := 154;
SYS_sched_setscheduler : constant := 156;
SYS_sched_yield : constant := 158;
SYS_seccomp : constant := 354;
SYS_select : constant := 82;
SYS_sendfile : constant := 187;
SYS_sendfile64 : constant := 239;
SYS_sendmmsg : constant := 345;
SYS_sendmsg : constant := 370;
SYS_sendto : constant := 369;
SYS_set_mempolicy : constant := 276;
SYS_set_robust_list : constant := 311;
SYS_set_thread_area : constant := 243;
SYS_set_tid_address : constant := 258;
SYS_setdomainname : constant := 121;
SYS_setfsgid : constant := 139;
SYS_setfsgid32 : constant := 216;
SYS_setfsuid : constant := 138;
SYS_setfsuid32 : constant := 215;
SYS_setgid : constant := 46;
SYS_setgid32 : constant := 214;
SYS_setgroups : constant := 81;
SYS_setgroups32 : constant := 206;
SYS_sethostname : constant := 74;
SYS_setitimer : constant := 104;
SYS_setns : constant := 346;
SYS_setpgid : constant := 57;
SYS_setpriority : constant := 97;
SYS_setregid : constant := 71;
SYS_setregid32 : constant := 204;
SYS_setresgid : constant := 170;
SYS_setresgid32 : constant := 210;
SYS_setresuid : constant := 164;
SYS_setresuid32 : constant := 208;
SYS_setreuid : constant := 70;
SYS_setreuid32 : constant := 203;
SYS_setrlimit : constant := 75;
SYS_setsid : constant := 66;
SYS_setsockopt : constant := 366;
SYS_settimeofday : constant := 79;
SYS_setuid : constant := 23;
SYS_setuid32 : constant := 213;
SYS_setxattr : constant := 226;
SYS_sgetmask : constant := 68;
SYS_shutdown : constant := 373;
SYS_sigaction : constant := 67;
SYS_sigaltstack : constant := 186;
SYS_signal : constant := 48;
SYS_signalfd : constant := 321;
SYS_signalfd4 : constant := 327;
SYS_sigpending : constant := 73;
SYS_sigprocmask : constant := 126;
SYS_sigreturn : constant := 119;
SYS_sigsuspend : constant := 72;
SYS_socket : constant := 359;
SYS_socketcall : constant := 102;
SYS_socketpair : constant := 360;
SYS_splice : constant := 313;
SYS_ssetmask : constant := 69;
SYS_stat : constant := 106;
SYS_stat64 : constant := 195;
SYS_statfs : constant := 99;
SYS_statfs64 : constant := 268;
SYS_stime : constant := 25;
SYS_stty : constant := 31;
SYS_swapoff : constant := 115;
SYS_swapon : constant := 87;
SYS_symlink : constant := 83;
SYS_symlinkat : constant := 304;
SYS_sync : constant := 36;
SYS_sync_file_range : constant := 314;
SYS_syncfs : constant := 344;
SYS_sysfs : constant := 135;
SYS_sysinfo : constant := 116;
SYS_syslog : constant := 103;
SYS_tee : constant := 315;
SYS_tgkill : constant := 270;
SYS_time : constant := 13;
SYS_timer_create : constant := 259;
SYS_timer_delete : constant := 263;
SYS_timer_getoverrun : constant := 262;
SYS_timer_gettime : constant := 261;
SYS_timer_settime : constant := 260;
SYS_timerfd_create : constant := 322;
SYS_timerfd_gettime : constant := 326;
SYS_timerfd_settime : constant := 325;
SYS_times : constant := 43;
SYS_tkill : constant := 238;
SYS_truncate : constant := 92;
SYS_truncate64 : constant := 193;
SYS_ugetrlimit : constant := 191;
SYS_ulimit : constant := 58;
SYS_umask : constant := 60;
SYS_umount : constant := 22;
SYS_umount2 : constant := 52;
SYS_uname : constant := 122;
SYS_unlink : constant := 10;
SYS_unlinkat : constant := 301;
SYS_unshare : constant := 310;
SYS_uselib : constant := 86;
SYS_userfaultfd : constant := 374;
SYS_ustat : constant := 62;
SYS_utime : constant := 30;
SYS_utimensat : constant := 320;
SYS_utimes : constant := 271;
SYS_vfork : constant := 190;
SYS_vhangup : constant := 111;
SYS_vm86 : constant := 166;
SYS_vm86old : constant := 113;
SYS_vmsplice : constant := 316;
SYS_vserver : constant := 273;
SYS_wait4 : constant := 114;
SYS_waitid : constant := 284;
SYS_waitpid : constant := 7;
SYS_write : constant := 4;
SYS_writev : constant := 146;
end C.bits.syscall;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.termios is
pragma Preelaborate;
subtype cc_t is unsigned_char;
subtype cc_t_array is unsigned_char_array;
subtype speed_t is unsigned_int;
subtype tcflag_t is unsigned_int;
type struct_termios;
type struct_termios is record
c_iflag : aliased tcflag_t;
c_oflag : aliased tcflag_t;
c_cflag : aliased tcflag_t;
c_lflag : aliased tcflag_t;
c_line : aliased cc_t;
c_cc : aliased cc_t_array (0 .. 31);
c_ispeed : aliased speed_t;
c_ospeed : aliased speed_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_termios);
type struct_termios_const_ptr is access constant struct_termios;
for struct_termios_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_termios_const_ptr);
pragma Convention (C, struct_termios_const_ptr);
type struct_termios_ptr is access all struct_termios;
for struct_termios_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_termios_ptr);
pragma Convention (C, struct_termios_ptr);
B0 : constant := 0;
B1000000 : constant := 4104;
B110 : constant := 3;
B115200 : constant := 4098;
B1152000 : constant := 4105;
B1200 : constant := 9;
B134 : constant := 4;
B150 : constant := 5;
B1500000 : constant := 4106;
B1800 : constant := 10;
B19200 : constant := 14;
B200 : constant := 6;
B2000000 : constant := 4107;
B230400 : constant := 4099;
B2400 : constant := 11;
B2500000 : constant := 4108;
B300 : constant := 7;
B3000000 : constant := 4109;
B3500000 : constant := 4110;
B38400 : constant := 15;
B4000000 : constant := 4111;
B460800 : constant := 4100;
B4800 : constant := 12;
B50 : constant := 1;
B500000 : constant := 4101;
B57600 : constant := 4097;
B576000 : constant := 4102;
B600 : constant := 8;
B75 : constant := 2;
B921600 : constant := 4103;
B9600 : constant := 13;
BRKINT : constant := 2;
BS0 : constant := 0;
BS1 : constant := 8192;
BSDLY : constant := 8192;
CBAUD : constant := 4111;
CBAUDEX : constant := 4096;
CIBAUD : constant := 269418496;
CLOCAL : constant := 2048;
CMSPAR : constant := 1073741824;
CR0 : constant := 0;
CR1 : constant := 512;
CR2 : constant := 1024;
CR3 : constant := 1536;
CRDLY : constant := 1536;
CREAD : constant := 128;
CRTSCTS : constant := -2147483648;
CS5 : constant := 0;
CS6 : constant := 16;
CS7 : constant := 32;
CS8 : constant := 48;
CSIZE : constant := 48;
CSTOPB : constant := 64;
ECHO : constant := 8;
ECHOCTL : constant := 512;
ECHOE : constant := 16;
ECHOK : constant := 32;
ECHOKE : constant := 2048;
ECHONL : constant := 64;
ECHOPRT : constant := 1024;
EXTA : constant := 14;
EXTB : constant := 15;
EXTPROC : constant := 65536;
FF0 : constant := 0;
FF1 : constant := 32768;
FFDLY : constant := 32768;
FLUSHO : constant := 4096;
HUPCL : constant := 1024;
ICANON : constant := 2;
ICRNL : constant := 256;
IEXTEN : constant := 32768;
IGNBRK : constant := 1;
IGNCR : constant := 128;
IGNPAR : constant := 4;
IMAXBEL : constant := 8192;
INLCR : constant := 64;
INPCK : constant := 16;
ISIG : constant := 1;
ISTRIP : constant := 32;
IUCLC : constant := 512;
IUTF8 : constant := 16384;
IXANY : constant := 2048;
IXOFF : constant := 4096;
IXON : constant := 1024;
NCCS : constant := 32;
NL0 : constant := 0;
NL1 : constant := 256;
NLDLY : constant := 256;
NOFLSH : constant := 128;
OCRNL : constant := 8;
OFDEL : constant := 128;
OFILL : constant := 64;
OLCUC : constant := 2;
ONLCR : constant := 4;
ONLRET : constant := 32;
ONOCR : constant := 16;
OPOST : constant := 1;
PARENB : constant := 256;
PARMRK : constant := 8;
PARODD : constant := 512;
PENDIN : constant := 16384;
TAB0 : constant := 0;
TAB1 : constant := 2048;
TAB2 : constant := 4096;
TAB3 : constant := 6144;
TABDLY : constant := 6144;
TCIFLUSH : constant := 0;
TCIOFF : constant := 2;
TCIOFLUSH : constant := 2;
TCION : constant := 3;
TCOFLUSH : constant := 1;
TCOOFF : constant := 0;
TCOON : constant := 1;
TCSADRAIN : constant := 1;
TCSAFLUSH : constant := 2;
TCSANOW : constant := 0;
TOSTOP : constant := 256;
VDISCARD : constant := 13;
VEOF : constant := 4;
VEOL : constant := 11;
VEOL2 : constant := 16;
VERASE : constant := 2;
VINTR : constant := 0;
VKILL : constant := 3;
VLNEXT : constant := 15;
VMIN : constant := 6;
VQUIT : constant := 1;
VREPRINT : constant := 12;
VSTART : constant := 8;
VSTOP : constant := 9;
VSUSP : constant := 10;
VSWTC : constant := 7;
VT0 : constant := 0;
VT1 : constant := 16384;
VTDLY : constant := 16384;
VTIME : constant := 5;
VWERASE : constant := 14;
XCASE : constant := 4;
XTABS : constant := 6144;
HAVE_STRUCT_TERMIOS_C_ISPEED : constant := 1;
HAVE_STRUCT_TERMIOS_C_OSPEED : constant := 1;
-- _IOT_termios (unparsible)
MAX_BAUD : constant := 4111;
end C.bits.termios;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.time is
pragma Preelaborate;
type struct_timeval;
type struct_timeval is record
tv_sec : aliased types.qqtime_t;
tv_usec : aliased types.suseconds_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_timeval);
type struct_timeval_ptr is access all struct_timeval;
for struct_timeval_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timeval_ptr);
pragma Convention (C, struct_timeval_ptr);
type struct_timeval_const_ptr is access constant struct_timeval;
for struct_timeval_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timeval_const_ptr);
pragma Convention (C, struct_timeval_const_ptr);
type struct_timeval_array is array (size_t range <>) of
aliased struct_timeval;
pragma Convention (C, struct_timeval_array);
subtype struct_timeval_array2 is struct_timeval_array (0 .. 1);
-- #include <bits/timex.h>
type struct_timex;
type struct_timex is record
modes : aliased unsigned_int;
offset : aliased types.syscall_slong_t;
freq : aliased types.syscall_slong_t;
maxerror : aliased types.syscall_slong_t;
esterror : aliased types.syscall_slong_t;
status : aliased signed_int;
F_constant : aliased types.syscall_slong_t;
precision : aliased types.syscall_slong_t;
tolerance : aliased types.syscall_slong_t;
time : aliased struct_timeval;
tick : aliased types.syscall_slong_t;
ppsfreq : aliased types.syscall_slong_t;
jitter : aliased types.syscall_slong_t;
shift : aliased signed_int;
stabil : aliased types.syscall_slong_t;
jitcnt : aliased types.syscall_slong_t;
calcnt : aliased types.syscall_slong_t;
errcnt : aliased types.syscall_slong_t;
stbcnt : aliased types.syscall_slong_t;
tai : aliased signed_int;
anonymous_1 : signed_int range -2147483648 .. 2147483647;
anonymous_2 : signed_int range -2147483648 .. 2147483647;
anonymous_3 : signed_int range -2147483648 .. 2147483647;
anonymous_4 : signed_int range -2147483648 .. 2147483647;
anonymous_5 : signed_int range -2147483648 .. 2147483647;
anonymous_6 : signed_int range -2147483648 .. 2147483647;
anonymous_7 : signed_int range -2147483648 .. 2147483647;
anonymous_8 : signed_int range -2147483648 .. 2147483647;
anonymous_9 : signed_int range -2147483648 .. 2147483647;
anonymous_10 : signed_int range -2147483648 .. 2147483647;
anonymous_11 : signed_int range -2147483648 .. 2147483647;
end record;
for struct_timex use record
modes at 0 range 0 .. 31;
offset at 0 range 32 .. 63;
freq at 0 range 64 .. 95;
maxerror at 0 range 96 .. 127;
esterror at 0 range 128 .. 159;
status at 0 range 160 .. 191;
F_constant at 0 range 192 .. 223;
precision at 0 range 224 .. 255;
tolerance at 0 range 256 .. 287;
time at 0 range 288 .. 351;
tick at 0 range 352 .. 383;
ppsfreq at 0 range 384 .. 415;
jitter at 0 range 416 .. 447;
shift at 0 range 448 .. 479;
stabil at 0 range 480 .. 511;
jitcnt at 0 range 512 .. 543;
calcnt at 0 range 544 .. 575;
errcnt at 0 range 576 .. 607;
stbcnt at 0 range 608 .. 639;
tai at 0 range 640 .. 671;
anonymous_1 at 0 range 672 .. 703;
anonymous_2 at 0 range 704 .. 735;
anonymous_3 at 0 range 736 .. 767;
anonymous_4 at 0 range 768 .. 799;
anonymous_5 at 0 range 800 .. 831;
anonymous_6 at 0 range 832 .. 863;
anonymous_7 at 0 range 864 .. 895;
anonymous_8 at 0 range 896 .. 927;
anonymous_9 at 0 range 928 .. 959;
anonymous_10 at 0 range 960 .. 991;
anonymous_11 at 0 range 992 .. 1023;
end record;
pragma Convention (C_Pass_By_Copy, struct_timex);
type struct_timex_ptr is access all struct_timex;
for struct_timex_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timex_ptr);
pragma Convention (C, struct_timex_ptr);
ADJ_ESTERROR : constant := 8;
ADJ_FREQUENCY : constant := 2;
ADJ_MAXERROR : constant := 4;
ADJ_MICRO : constant := 4096;
ADJ_NANO : constant := 8192;
ADJ_OFFSET : constant := 1;
ADJ_OFFSET_SINGLESHOT : constant := 32769;
ADJ_OFFSET_SS_READ : constant := 40961;
ADJ_SETOFFSET : constant := 256;
ADJ_STATUS : constant := 16;
ADJ_TAI : constant := 128;
ADJ_TICK : constant := 16384;
ADJ_TIMECONST : constant := 32;
MOD_CLKA : constant := 32769;
MOD_CLKB : constant := 16384;
MOD_ESTERROR : constant := 8;
MOD_FREQUENCY : constant := 2;
MOD_MAXERROR : constant := 4;
MOD_MICRO : constant := 4096;
MOD_NANO : constant := 8192;
MOD_OFFSET : constant := 1;
MOD_STATUS : constant := 16;
MOD_TAI : constant := 128;
MOD_TIMECONST : constant := 32;
STA_CLK : constant := 32768;
STA_CLOCKERR : constant := 4096;
STA_DEL : constant := 32;
STA_FLL : constant := 8;
STA_FREQHOLD : constant := 128;
STA_INS : constant := 16;
STA_MODE : constant := 16384;
STA_NANO : constant := 8192;
STA_PLL : constant := 1;
STA_PPSERROR : constant := 2048;
STA_PPSFREQ : constant := 2;
STA_PPSJITTER : constant := 512;
STA_PPSSIGNAL : constant := 256;
STA_PPSTIME : constant := 4;
STA_PPSWANDER : constant := 1024;
STA_RONLY : constant := 65280;
STA_UNSYNC : constant := 64;
BITS_TIMEX_H : constant := 1;
function clock_adjtime (clock_id : types.qqclockid_t;
utx : access struct_timex) return signed_int;
pragma Import (C, clock_adjtime, "clock_adjtime");
CLOCKS_PER_SEC : constant := 1000000;
CLOCK_BOOTTIME : constant := 7;
CLOCK_BOOTTIME_ALARM : constant := 9;
CLOCK_MONOTONIC : constant := 1;
CLOCK_MONOTONIC_COARSE : constant := 6;
CLOCK_MONOTONIC_RAW : constant := 4;
CLOCK_PROCESS_CPUTIME_ID : constant := 2;
CLOCK_REALTIME : constant := 0;
CLOCK_REALTIME_ALARM : constant := 8;
CLOCK_REALTIME_COARSE : constant := 5;
CLOCK_TAI : constant := 11;
CLOCK_THREAD_CPUTIME_ID : constant := 3;
TIMER_ABSTIME : constant := 1;
BITS_TIME_H : constant := 1;
qSTRUCT_TIMEVAL : constant := 1;
end C.bits.time;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.types is
pragma Preelaborate;
subtype u_char is unsigned_char;
subtype u_short is unsigned_short;
subtype u_int is unsigned_int;
subtype u_long is unsigned_long;
subtype int8_t is signed_char;
subtype uint8_t is unsigned_char;
subtype int16_t is signed_short;
subtype uint16_t is unsigned_short;
subtype int32_t is signed_int;
subtype uint32_t is unsigned_int;
subtype uint32_t_array is unsigned_int_array;
subtype int64_t is signed_long_long;
subtype uint64_t is unsigned_long_long;
subtype uint64_t_array is unsigned_long_long_array;
subtype quad_t is signed_long_long;
subtype quad_t_ptr is signed_long_long_ptr;
subtype u_quad_t is unsigned_long_long;
subtype u_quad_t_ptr is unsigned_long_long_ptr;
subtype dev_t is u_quad_t;
subtype dev_t_ptr is u_quad_t_ptr;
subtype uid_t is unsigned_int;
subtype uid_t_ptr is unsigned_int_ptr;
subtype gid_t is unsigned_int;
subtype gid_t_array is unsigned_int_array;
subtype gid_t_ptr is unsigned_int_ptr;
subtype gid_t_const_ptr is unsigned_int_const_ptr;
subtype ino_t is unsigned_long;
subtype ino64_t is u_quad_t;
subtype mode_t is unsigned_int;
subtype nlink_t is unsigned_int;
subtype off_t is signed_long;
subtype off64_t is quad_t;
subtype off64_t_ptr is quad_t_ptr;
subtype pid_t is signed_int;
subtype pid_t_ptr is signed_int_ptr;
type struct_3d8a9983 is record
val : aliased signed_int_array (0 .. 1);
end record;
pragma Convention (C_Pass_By_Copy, struct_3d8a9983);
subtype fsid_t is struct_3d8a9983;
subtype qqclock_t is signed_long;
subtype rlim_t is unsigned_long;
subtype rlim64_t is u_quad_t;
subtype id_t is unsigned_int;
subtype qqtime_t is signed_long;
subtype qqtime_t_ptr is signed_long_ptr;
subtype qqtime_t_const_ptr is signed_long_const_ptr;
subtype useconds_t is unsigned_int;
subtype suseconds_t is signed_long;
subtype daddr_t is signed_int;
subtype key_t is signed_int;
subtype qqclockid_t is signed_int;
subtype qqclockid_t_ptr is signed_int_ptr;
subtype qqtimer_t is void_ptr;
subtype qqtimer_t_ptr is void_ptr_ptr;
subtype blksize_t is signed_long;
subtype blkcnt_t is signed_long;
subtype blkcnt64_t is quad_t;
subtype fsblkcnt_t is unsigned_long;
subtype fsblkcnt64_t is u_quad_t;
subtype fsfilcnt_t is unsigned_long;
subtype fsfilcnt64_t is u_quad_t;
subtype fsword_t is signed_int;
subtype fsword_t_array is signed_int_array;
subtype ssize_t is signed_int;
subtype syscall_slong_t is signed_long;
subtype syscall_ulong_t is unsigned_long;
subtype loff_t is off64_t;
subtype qaddr_t is quad_t_ptr;
subtype caddr_t is char_ptr;
subtype intptr_t is signed_int;
subtype socklen_t is unsigned_int;
subtype socklen_t_ptr is unsigned_int_ptr;
BITS_TYPES_H : constant := 1;
subtype S16_TYPE is signed_short;
subtype S32_TYPE is signed_int;
subtype S64_TYPE is quad_t;
subtype SLONG32_TYPE is signed_long;
subtype SLONGWORD_TYPE is signed_long;
subtype SQUAD_TYPE is quad_t;
subtype SWORD_TYPE is signed_int;
subtype U16_TYPE is unsigned_short;
subtype U32_TYPE is unsigned_int;
subtype U64_TYPE is u_quad_t;
subtype ULONG32_TYPE is unsigned_long;
subtype ULONGWORD_TYPE is unsigned_long;
subtype UQUAD_TYPE is u_quad_t;
subtype UWORD_TYPE is unsigned_int;
end C.bits.types;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.bits.typesizes is
pragma Preelaborate;
BITS_TYPESIZES_H : constant := 1;
subtype BLKCNT64_T_TYPE is types.quad_t;
subtype BLKCNT_T_TYPE is signed_long;
subtype BLKSIZE_T_TYPE is signed_long;
subtype CLOCKID_T_TYPE is signed_int;
subtype CLOCK_T_TYPE is signed_long;
subtype CPU_MASK_TYPE is unsigned_long;
subtype DADDR_T_TYPE is signed_int;
subtype DEV_T_TYPE is types.u_quad_t;
FD_SETSIZE : constant := 1024;
subtype FSBLKCNT64_T_TYPE is types.u_quad_t;
subtype FSBLKCNT_T_TYPE is unsigned_long;
subtype FSFILCNT64_T_TYPE is types.u_quad_t;
subtype FSFILCNT_T_TYPE is unsigned_long;
type struct_3ec5d291 is record
val : aliased signed_int_array (0 .. 1);
end record;
pragma Convention (C_Pass_By_Copy, struct_3ec5d291);
subtype FSID_T_TYPE is struct_3ec5d291;
subtype FSWORD_T_TYPE is signed_int;
subtype GID_T_TYPE is unsigned_int;
subtype ID_T_TYPE is unsigned_int;
subtype INO64_T_TYPE is types.u_quad_t;
subtype INO_T_TYPE is unsigned_long;
subtype KEY_T_TYPE is signed_int;
subtype MODE_T_TYPE is unsigned_int;
subtype NLINK_T_TYPE is unsigned_int;
subtype OFF64_T_TYPE is types.quad_t;
subtype OFF_T_TYPE is signed_long;
subtype PID_T_TYPE is signed_int;
subtype RLIM64_T_TYPE is types.u_quad_t;
subtype RLIM_T_TYPE is unsigned_long;
subtype SSIZE_T_TYPE is signed_int;
subtype SUSECONDS_T_TYPE is signed_long;
subtype SYSCALL_SLONG_TYPE is signed_long;
subtype SYSCALL_ULONG_TYPE is unsigned_long;
-- __TIMER_T_TYPE (unparsible)
subtype TIME_T_TYPE is signed_long;
subtype UID_T_TYPE is unsigned_int;
subtype USECONDS_T_TYPE is unsigned_int;
end C.bits.typesizes;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
with C.sys.types;
package C.bits.uio is
pragma Preelaborate;
type struct_iovec;
type struct_iovec is record
iov_base : aliased void_ptr;
iov_len : aliased stddef.size_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_iovec);
type struct_iovec_const_ptr is access constant struct_iovec;
for struct_iovec_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_iovec_const_ptr);
pragma Convention (C, struct_iovec_const_ptr);
type struct_iovec_ptr is access all struct_iovec;
for struct_iovec_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_iovec_ptr);
pragma Convention (C, struct_iovec_ptr);
function process_vm_readv (pid : sys.types.pid_t;
lvec : access constant struct_iovec; liovcnt : unsigned_long;
rvec : access constant struct_iovec; riovcnt : unsigned_long;
flags : unsigned_long) return sys.types.ssize_t;
pragma Import (C, process_vm_readv, "process_vm_readv");
function process_vm_writev (pid : sys.types.pid_t;
lvec : access constant struct_iovec; liovcnt : unsigned_long;
rvec : access constant struct_iovec; riovcnt : unsigned_long;
flags : unsigned_long) return sys.types.ssize_t;
pragma Import (C, process_vm_writev, "process_vm_writev");
UIO_MAXIOV : constant := 1024;
BITS_UIO_H : constant := 1;
BITS_UIO_H_FOR_SYS_UIO_H : constant := 1;
end C.bits.uio;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.waitflags is
pragma Preelaborate;
type enum_d9eff52b is (P_ALL, P_PID, P_PGID);
for enum_d9eff52b use (P_ALL => 0, P_PID => 1, P_PGID => 2);
pragma Convention (C, enum_d9eff52b);
subtype idtype_t is enum_d9eff52b;
WCONTINUED : constant := 8;
WEXITED : constant := 4;
WNOHANG : constant := 1;
WNOWAIT : constant := 16777216;
WSTOPPED : constant := 2;
WUNTRACED : constant := 2;
ENUM_IDTYPE_T : constant := 1;
WALL : constant := 1073741824;
WCLONE : constant := -2147483648;
WNOTHREAD : constant := 536870912;
end C.bits.waitflags;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.waitstatus is
pragma Preelaborate;
-- __WCOREDUMP (function macro)
WCOREFLAG : constant := 128;
-- __WEXITSTATUS (function macro)
-- __WIFCONTINUED (function macro)
-- __WIFEXITED (function macro)
-- __WIFSIGNALED (function macro)
-- __WIFSTOPPED (function macro)
-- __WSTOPSIG (function macro)
-- __WTERMSIG (function macro)
W_CONTINUED : constant := 65535;
-- __W_EXITCODE (function macro)
-- __W_STOPCODE (function macro)
end C.bits.waitstatus;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.wchar is
pragma Preelaborate;
BITS_WCHAR_H : constant := 1;
WCHAR_MAX : constant := 2147483647;
WCHAR_MIN : constant := -2147483648;
end C.bits.wchar;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.wordsize is
pragma Preelaborate;
WORDSIZE : constant := 32;
end C.bits.wordsize;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits.xopen_lim is
pragma Preelaborate;
LONG_BIT : constant := 32;
NL_ARGMAX : constant := 4096;
NL_LANGMAX : constant := 2048;
NL_MSGMAX : constant := 2147483647;
NL_NMAX : constant := 2147483647;
NL_SETMAX : constant := 2147483647;
NL_TEXTMAX : constant := 2147483647;
NZERO : constant := 20;
WORD_BIT : constant := 32;
XOPEN_IOV_MAX : constant := 16;
XOPEN_LIM_H : constant := 1;
-- __need_IOV_MAX (empty)
end C.bits.xopen_lim;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.bits is
pragma Preelaborate;
end C.bits;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.dirent;
with C.bits.types;
with C.stddef;
package C.dirent is
pragma Preelaborate;
subtype struct_dirent is bits.dirent.struct_dirent;
subtype struct_dirent64 is bits.dirent.struct_dirent64;
-- DIRENT_HAVE_D_OFF renames bits.dirent.DIRENT_HAVE_D_OFF (empty)
-- DIRENT_HAVE_D_RECLEN renames bits.dirent.DIRENT_HAVE_D_RECLEN (empty)
-- DIRENT_HAVE_D_TYPE renames bits.dirent.DIRENT_HAVE_D_TYPE (empty)
-- .d_fileno renames .d_ino (accessor)
type enum_c0e85bdc is (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK,
DT_REG, DT_LNK, DT_SOCK, DT_WHT);
for enum_c0e85bdc use (DT_UNKNOWN => 0, DT_FIFO => 1, DT_CHR => 2,
DT_DIR => 4, DT_BLK => 6, DT_REG => 8, DT_LNK => 10, DT_SOCK => 12,
DT_WHT => 14);
pragma Convention (C, enum_c0e85bdc);
for enum_c0e85bdc'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_c0e85bdc, signed_int);
type struct_dirstream (<>) is limited private;
type struct_dirstream_ptr is access all struct_dirstream;
for struct_dirstream_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_dirstream_ptr);
pragma Convention (C, struct_dirstream_ptr);
subtype DIR is struct_dirstream;
subtype DIR_ptr is struct_dirstream_ptr;
function opendir (name : access constant char) return DIR_ptr;
pragma Import (C, opendir, "opendir");
function fdopendir (fd : signed_int) return DIR_ptr;
pragma Import (C, fdopendir, "fdopendir");
function closedir (dirp : access DIR) return signed_int;
pragma Import (C, closedir, "closedir");
function readdir (dirp : access DIR) return bits.dirent.struct_dirent_ptr;
pragma Import (C, readdir, "readdir64");
function readdir64 (dirp : access DIR)
return bits.dirent.struct_dirent64_ptr;
pragma Import (C, readdir64, "readdir64");
function readdir_r (dirp : access DIR;
A_entry : access bits.dirent.struct_dirent;
result : access bits.dirent.struct_dirent_ptr) return signed_int;
pragma Import (C, readdir_r, "readdir64_r");
function readdir64_r (dirp : access DIR;
A_entry : access bits.dirent.struct_dirent64;
result : access bits.dirent.struct_dirent64_ptr) return signed_int;
pragma Import (C, readdir64_r, "readdir64_r");
procedure rewinddir (dirp : access DIR);
pragma Import (C, rewinddir, "rewinddir");
procedure seekdir (dirp : access DIR; pos : signed_long);
pragma Import (C, seekdir, "seekdir");
function telldir (dirp : access DIR) return signed_long;
pragma Import (C, telldir, "telldir");
function dirfd (dirp : access DIR) return signed_int;
pragma Import (C, dirfd, "dirfd");
type access_8ec3cf5c is access function (
a1 : access constant bits.dirent.struct_dirent) return signed_int;
pragma Convention (C, access_8ec3cf5c);
type access_e51becd9 is access function (
a1 : access bits.dirent.struct_dirent_const_ptr;
a2 : access bits.dirent.struct_dirent_const_ptr) return signed_int;
pragma Convention (C, access_e51becd9);
function scandir (dir : access constant char;
namelist : access bits.dirent.struct_dirent_ptr_ptr;
selector : access_8ec3cf5c; cmp : access_e51becd9) return signed_int;
pragma Import (C, scandir, "scandir64");
type access_5c2e9284 is access function (
a1 : access constant bits.dirent.struct_dirent64) return signed_int;
pragma Convention (C, access_5c2e9284);
type access_f24fd242 is access function (
a1 : access bits.dirent.struct_dirent64_const_ptr;
a2 : access bits.dirent.struct_dirent64_const_ptr) return signed_int;
pragma Convention (C, access_f24fd242);
function scandir64 (dir : access constant char;
namelist : access bits.dirent.struct_dirent64_ptr_ptr;
selector : access_5c2e9284; cmp : access_f24fd242) return signed_int;
pragma Import (C, scandir64, "scandir64");
function scandirat (dfd : signed_int; dir : access constant char;
namelist : access bits.dirent.struct_dirent_ptr_ptr;
selector : access_8ec3cf5c; cmp : access_e51becd9) return signed_int;
pragma Import (C, scandirat, "scandirat64");
function scandirat64 (dfd : signed_int; dir : access constant char;
namelist : access bits.dirent.struct_dirent64_ptr_ptr;
selector : access_5c2e9284; cmp : access_f24fd242) return signed_int;
pragma Import (C, scandirat64, "scandirat64");
function alphasort (e1 : access bits.dirent.struct_dirent_const_ptr;
e2 : access bits.dirent.struct_dirent_const_ptr) return signed_int;
pragma Import (C, alphasort, "alphasort64");
function alphasort64 (e1 : access bits.dirent.struct_dirent64_const_ptr;
e2 : access bits.dirent.struct_dirent64_const_ptr) return signed_int;
pragma Import (C, alphasort64, "alphasort64");
function getdirentries (fd : signed_int; buf : access char;
nbytes : stddef.size_t; basep : access bits.types.off64_t)
return bits.types.ssize_t;
pragma Import (C, getdirentries, "getdirentries64");
function getdirentries64 (fd : signed_int; buf : access char;
nbytes : stddef.size_t; basep : access bits.types.off64_t)
return bits.types.ssize_t;
pragma Import (C, getdirentries64, "getdirentries64");
function versionsort (e1 : access bits.dirent.struct_dirent_const_ptr;
e2 : access bits.dirent.struct_dirent_const_ptr) return signed_int;
pragma Import (C, versionsort, "versionsort64");
function versionsort64 (e1 : access bits.dirent.struct_dirent64_const_ptr;
e2 : access bits.dirent.struct_dirent64_const_ptr) return signed_int;
pragma Import (C, versionsort64, "versionsort64");
-- DTTOIF (function macro)
-- DT_BLK (repeating itself)
-- DT_CHR (repeating itself)
-- DT_DIR (repeating itself)
-- DT_FIFO (repeating itself)
-- DT_LNK (repeating itself)
-- DT_REG (repeating itself)
-- DT_SOCK (repeating itself)
-- DT_UNKNOWN (repeating itself)
-- DT_WHT (repeating itself)
-- IFTODT (function macro)
MAXNAMLEN : constant := 255;
DIRENT_H : constant := 1;
-- _D_ALLOC_NAMLEN (uninterpretable)
-- _D_EXACT_NAMLEN (uninterpretable)
private
type struct_dirstream is null record;
end C.dirent;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.dlfcn;
with C.stddef;
package C.dlfcn is
pragma Preelaborate;
procedure dl_mcount_wrapper_check (selfpc : void_ptr)
renames bits.dlfcn.dl_mcount_wrapper_check;
-- DL_CALL_FCT renames bits.dlfcn.DL_CALL_FCT (unparsible)
RTLD_BINDING_MASK : constant := bits.dlfcn.RTLD_BINDING_MASK;
RTLD_DEEPBIND : constant := bits.dlfcn.RTLD_DEEPBIND;
RTLD_GLOBAL : constant := bits.dlfcn.RTLD_GLOBAL;
RTLD_LAZY : constant := bits.dlfcn.RTLD_LAZY;
RTLD_LOCAL : constant := bits.dlfcn.RTLD_LOCAL;
RTLD_NODELETE : constant := bits.dlfcn.RTLD_NODELETE;
RTLD_NOLOAD : constant := bits.dlfcn.RTLD_NOLOAD;
RTLD_NOW : constant := bits.dlfcn.RTLD_NOW;
subtype Lmid_t is signed_long;
function dlopen (file : access constant char; mode : signed_int)
return void_ptr;
pragma Import (C, dlopen, "dlopen");
function dlclose (handle : void_ptr) return signed_int;
pragma Import (C, dlclose, "dlclose");
function dlsym (handle : void_ptr; name : access constant char)
return void_ptr;
pragma Import (C, dlsym, "dlsym");
function dlmopen (nsid : Lmid_t; file : access constant char;
mode : signed_int) return void_ptr;
pragma Import (C, dlmopen, "dlmopen");
function dlvsym (handle : void_ptr; name : access constant char;
version : access constant char) return void_ptr;
pragma Import (C, dlvsym, "dlvsym");
function dlerror return char_ptr;
pragma Import (C, dlerror, "dlerror");
type struct_27f28623 is record
dli_fname : aliased char_const_ptr;
dli_fbase : aliased void_ptr;
dli_sname : aliased char_const_ptr;
dli_saddr : aliased void_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_27f28623);
type struct_27f28623_ptr is access all struct_27f28623;
for struct_27f28623_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_27f28623_ptr);
pragma Convention (C, struct_27f28623_ptr);
subtype Dl_info is struct_27f28623;
subtype Dl_info_ptr is struct_27f28623_ptr;
function dladdr (address : void_const_ptr; info : access Dl_info)
return signed_int;
pragma Import (C, dladdr, "dladdr");
function dladdr1 (address : void_const_ptr; info : access Dl_info;
extra_info : access void_ptr; flags : signed_int) return signed_int;
pragma Import (C, dladdr1, "dladdr1");
type enum_cdbe8631 is (RTLD_DL_SYMENT, RTLD_DL_LINKMAP);
for enum_cdbe8631 use (RTLD_DL_SYMENT => 1, RTLD_DL_LINKMAP => 2);
pragma Convention (C, enum_cdbe8631);
for enum_cdbe8631'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_cdbe8631, signed_int);
function dlinfo (handle : void_ptr; request : signed_int; arg : void_ptr)
return signed_int;
pragma Import (C, dlinfo, "dlinfo");
type enum_cf196d87 is (RTLD_DI_LMID, RTLD_DI_LINKMAP, RTLD_DI_CONFIGADDR,
RTLD_DI_SERINFO, RTLD_DI_SERINFOSIZE, RTLD_DI_ORIGIN,
RTLD_DI_PROFILENAME, RTLD_DI_PROFILEOUT, RTLD_DI_TLS_MODID,
RTLD_DI_TLS_DATA);
for enum_cf196d87 use (RTLD_DI_LMID => 1, RTLD_DI_LINKMAP => 2,
RTLD_DI_CONFIGADDR => 3, RTLD_DI_SERINFO => 4,
RTLD_DI_SERINFOSIZE => 5, RTLD_DI_ORIGIN => 6,
RTLD_DI_PROFILENAME => 7, RTLD_DI_PROFILEOUT => 8,
RTLD_DI_TLS_MODID => 9, RTLD_DI_TLS_DATA => 10);
pragma Convention (C, enum_cf196d87);
function RTLD_DI_MAX return enum_cf196d87 renames RTLD_DI_TLS_DATA;
for enum_cf196d87'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_cf196d87, signed_int);
type struct_f15584e0 is record
dls_name : aliased char_ptr;
dls_flags : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_f15584e0);
type struct_f15584e0_array is array (size_t range <>) of
aliased struct_f15584e0;
pragma Convention (C, struct_f15584e0_array);
subtype Dl_serpath is struct_f15584e0;
subtype Dl_serpath_array is struct_f15584e0_array;
type struct_7c2cf022 is record
dls_size : aliased stddef.size_t;
dls_cnt : aliased unsigned_int;
dls_serpath : aliased Dl_serpath_array (0 .. 0);
end record;
pragma Convention (C_Pass_By_Copy, struct_7c2cf022);
subtype Dl_serinfo is struct_7c2cf022;
LM_ID_BASE : constant := 0;
LM_ID_NEWLM : constant := -1;
RTLD_DEFAULT : constant void_ptr := void_ptr (System'To_Address (0));
RTLD_NEXT : constant void_ptr := void_ptr (System'To_Address (-1));
DLFCN_H : constant := 1;
end C.dlfcn;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.stdint;
package C.elf is
pragma Preelaborate;
subtype Elf32_Half is stdint.uint16_t;
subtype Elf64_Half is stdint.uint16_t;
subtype Elf32_Word is stdint.uint32_t;
subtype Elf32_Word_array is stdint.uint32_t_array;
subtype Elf32_Sword is stdint.int32_t;
subtype Elf64_Word is stdint.uint32_t;
subtype Elf64_Sword is stdint.int32_t;
subtype Elf32_Xword is stdint.uint64_t;
subtype Elf32_Sxword is stdint.int64_t;
subtype Elf64_Xword is stdint.uint64_t;
subtype Elf64_Sxword is stdint.int64_t;
subtype Elf32_Addr is stdint.uint32_t;
subtype Elf64_Addr is stdint.uint64_t;
subtype Elf32_Off is stdint.uint32_t;
subtype Elf64_Off is stdint.uint64_t;
subtype Elf32_Section is stdint.uint16_t;
subtype Elf64_Section is stdint.uint16_t;
subtype Elf32_Versym is Elf32_Half;
subtype Elf64_Versym is Elf64_Half;
type struct_d5bb363a is record
e_ident : aliased unsigned_char_array (0 .. 15);
e_type : aliased Elf32_Half;
e_machine : aliased Elf32_Half;
e_version : aliased Elf32_Word;
e_entry : aliased Elf32_Addr;
e_phoff : aliased Elf32_Off;
e_shoff : aliased Elf32_Off;
e_flags : aliased Elf32_Word;
e_ehsize : aliased Elf32_Half;
e_phentsize : aliased Elf32_Half;
e_phnum : aliased Elf32_Half;
e_shentsize : aliased Elf32_Half;
e_shnum : aliased Elf32_Half;
e_shstrndx : aliased Elf32_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_d5bb363a);
subtype Elf32_Ehdr is struct_d5bb363a;
type struct_47cc4fc0 is record
e_ident : aliased unsigned_char_array (0 .. 15);
e_type : aliased Elf64_Half;
e_machine : aliased Elf64_Half;
e_version : aliased Elf64_Word;
e_entry : aliased Elf64_Addr;
e_phoff : aliased Elf64_Off;
e_shoff : aliased Elf64_Off;
e_flags : aliased Elf64_Word;
e_ehsize : aliased Elf64_Half;
e_phentsize : aliased Elf64_Half;
e_phnum : aliased Elf64_Half;
e_shentsize : aliased Elf64_Half;
e_shnum : aliased Elf64_Half;
e_shstrndx : aliased Elf64_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_47cc4fc0);
subtype Elf64_Ehdr is struct_47cc4fc0;
type struct_0f3b3ece is record
sh_name : aliased Elf32_Word;
sh_type : aliased Elf32_Word;
sh_flags : aliased Elf32_Word;
sh_addr : aliased Elf32_Addr;
sh_offset : aliased Elf32_Off;
sh_size : aliased Elf32_Word;
sh_link : aliased Elf32_Word;
sh_info : aliased Elf32_Word;
sh_addralign : aliased Elf32_Word;
sh_entsize : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_0f3b3ece);
subtype Elf32_Shdr is struct_0f3b3ece;
type struct_20af7a9c is record
sh_name : aliased Elf64_Word;
sh_type : aliased Elf64_Word;
sh_flags : aliased Elf64_Xword;
sh_addr : aliased Elf64_Addr;
sh_offset : aliased Elf64_Off;
sh_size : aliased Elf64_Xword;
sh_link : aliased Elf64_Word;
sh_info : aliased Elf64_Word;
sh_addralign : aliased Elf64_Xword;
sh_entsize : aliased Elf64_Xword;
end record;
pragma Convention (C_Pass_By_Copy, struct_20af7a9c);
subtype Elf64_Shdr is struct_20af7a9c;
type struct_8f02f21c is record
ch_type : aliased Elf32_Word;
ch_size : aliased Elf32_Word;
ch_addralign : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_8f02f21c);
subtype Elf32_Chdr is struct_8f02f21c;
type struct_a2783d81 is record
ch_type : aliased Elf64_Word;
ch_reserved : aliased Elf64_Word;
ch_size : aliased Elf64_Xword;
ch_addralign : aliased Elf64_Xword;
end record;
pragma Convention (C_Pass_By_Copy, struct_a2783d81);
subtype Elf64_Chdr is struct_a2783d81;
type struct_ddd32eb2 is record
st_name : aliased Elf32_Word;
st_value : aliased Elf32_Addr;
st_size : aliased Elf32_Word;
st_info : aliased unsigned_char;
st_other : aliased unsigned_char;
st_shndx : aliased Elf32_Section;
end record;
pragma Convention (C_Pass_By_Copy, struct_ddd32eb2);
type struct_ddd32eb2_ptr is access all struct_ddd32eb2;
for struct_ddd32eb2_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_ddd32eb2_ptr);
pragma Convention (C, struct_ddd32eb2_ptr);
subtype Elf32_Sym is struct_ddd32eb2;
subtype Elf32_Sym_ptr is struct_ddd32eb2_ptr;
type struct_16236d65 is record
st_name : aliased Elf64_Word;
st_info : aliased unsigned_char;
st_other : aliased unsigned_char;
st_shndx : aliased Elf64_Section;
st_value : aliased Elf64_Addr;
st_size : aliased Elf64_Xword;
end record;
pragma Convention (C_Pass_By_Copy, struct_16236d65);
type struct_16236d65_ptr is access all struct_16236d65;
for struct_16236d65_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_16236d65_ptr);
pragma Convention (C, struct_16236d65_ptr);
subtype Elf64_Sym is struct_16236d65;
subtype Elf64_Sym_ptr is struct_16236d65_ptr;
type struct_eeba2951 is record
si_boundto : aliased Elf32_Half;
si_flags : aliased Elf32_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_eeba2951);
subtype Elf32_Syminfo is struct_eeba2951;
type struct_bb78e815 is record
si_boundto : aliased Elf64_Half;
si_flags : aliased Elf64_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_bb78e815);
subtype Elf64_Syminfo is struct_bb78e815;
type struct_03056265 is record
r_offset : aliased Elf32_Addr;
r_info : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_03056265);
subtype Elf32_Rel is struct_03056265;
type struct_961f215e is record
r_offset : aliased Elf64_Addr;
r_info : aliased Elf64_Xword;
end record;
pragma Convention (C_Pass_By_Copy, struct_961f215e);
subtype Elf64_Rel is struct_961f215e;
type struct_6d5dd91e is record
r_offset : aliased Elf32_Addr;
r_info : aliased Elf32_Word;
r_addend : aliased Elf32_Sword;
end record;
pragma Convention (C_Pass_By_Copy, struct_6d5dd91e);
subtype Elf32_Rela is struct_6d5dd91e;
type struct_d4b64599 is record
r_offset : aliased Elf64_Addr;
r_info : aliased Elf64_Xword;
r_addend : aliased Elf64_Sxword;
end record;
pragma Convention (C_Pass_By_Copy, struct_d4b64599);
subtype Elf64_Rela is struct_d4b64599;
type struct_5e8709be is record
p_type : aliased Elf32_Word;
p_offset : aliased Elf32_Off;
p_vaddr : aliased Elf32_Addr;
p_paddr : aliased Elf32_Addr;
p_filesz : aliased Elf32_Word;
p_memsz : aliased Elf32_Word;
p_flags : aliased Elf32_Word;
p_align : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_5e8709be);
type struct_5e8709be_const_ptr is access constant struct_5e8709be;
for struct_5e8709be_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_5e8709be_const_ptr);
pragma Convention (C, struct_5e8709be_const_ptr);
subtype Elf32_Phdr is struct_5e8709be;
subtype Elf32_Phdr_const_ptr is struct_5e8709be_const_ptr;
type struct_d1ad4c6f is record
p_type : aliased Elf64_Word;
p_flags : aliased Elf64_Word;
p_offset : aliased Elf64_Off;
p_vaddr : aliased Elf64_Addr;
p_paddr : aliased Elf64_Addr;
p_filesz : aliased Elf64_Xword;
p_memsz : aliased Elf64_Xword;
p_align : aliased Elf64_Xword;
end record;
pragma Convention (C_Pass_By_Copy, struct_d1ad4c6f);
subtype Elf64_Phdr is struct_d1ad4c6f;
type union_55dc060b (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
d_val : Elf32_Word;
when others =>
d_ptr : Elf32_Addr;
end case;
end record;
pragma Unchecked_Union (union_55dc060b);
pragma Convention (C_Pass_By_Copy, union_55dc060b);
type struct_f629b562 is record
d_tag : aliased Elf32_Sword;
d_un : aliased union_55dc060b;
end record;
pragma Convention (C_Pass_By_Copy, struct_f629b562);
type struct_f629b562_array is array (size_t range <>) of
aliased struct_f629b562;
pragma Convention (C, struct_f629b562_array);
type struct_f629b562_ptr is access all struct_f629b562;
for struct_f629b562_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_f629b562_ptr);
pragma Convention (C, struct_f629b562_ptr);
subtype Elf32_Dyn is struct_f629b562;
subtype Elf32_Dyn_array is struct_f629b562_array;
subtype Elf32_Dyn_ptr is struct_f629b562_ptr;
type union_15ed2acc (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
d_val : Elf64_Xword;
when others =>
d_ptr : Elf64_Addr;
end case;
end record;
pragma Unchecked_Union (union_15ed2acc);
pragma Convention (C_Pass_By_Copy, union_15ed2acc);
type struct_2c33dc56 is record
d_tag : aliased Elf64_Sxword;
d_un : aliased union_15ed2acc;
end record;
pragma Convention (C_Pass_By_Copy, struct_2c33dc56);
subtype Elf64_Dyn is struct_2c33dc56;
type struct_44592a1e is record
vd_version : aliased Elf32_Half;
vd_flags : aliased Elf32_Half;
vd_ndx : aliased Elf32_Half;
vd_cnt : aliased Elf32_Half;
vd_hash : aliased Elf32_Word;
vd_aux : aliased Elf32_Word;
vd_next : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_44592a1e);
subtype Elf32_Verdef is struct_44592a1e;
type struct_49bebb54 is record
vd_version : aliased Elf64_Half;
vd_flags : aliased Elf64_Half;
vd_ndx : aliased Elf64_Half;
vd_cnt : aliased Elf64_Half;
vd_hash : aliased Elf64_Word;
vd_aux : aliased Elf64_Word;
vd_next : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_49bebb54);
subtype Elf64_Verdef is struct_49bebb54;
type struct_9c6a66f4 is record
vda_name : aliased Elf32_Word;
vda_next : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_9c6a66f4);
subtype Elf32_Verdaux is struct_9c6a66f4;
type struct_b5478e04 is record
vda_name : aliased Elf64_Word;
vda_next : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_b5478e04);
subtype Elf64_Verdaux is struct_b5478e04;
type struct_a2e068cb is record
vn_version : aliased Elf32_Half;
vn_cnt : aliased Elf32_Half;
vn_file : aliased Elf32_Word;
vn_aux : aliased Elf32_Word;
vn_next : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_a2e068cb);
subtype Elf32_Verneed is struct_a2e068cb;
type struct_0d2f9b1b is record
vn_version : aliased Elf64_Half;
vn_cnt : aliased Elf64_Half;
vn_file : aliased Elf64_Word;
vn_aux : aliased Elf64_Word;
vn_next : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_0d2f9b1b);
subtype Elf64_Verneed is struct_0d2f9b1b;
type struct_ac52cfb5 is record
vna_hash : aliased Elf32_Word;
vna_flags : aliased Elf32_Half;
vna_other : aliased Elf32_Half;
vna_name : aliased Elf32_Word;
vna_next : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_ac52cfb5);
subtype Elf32_Vernaux is struct_ac52cfb5;
type struct_c185c066 is record
vna_hash : aliased Elf64_Word;
vna_flags : aliased Elf64_Half;
vna_other : aliased Elf64_Half;
vna_name : aliased Elf64_Word;
vna_next : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_c185c066);
subtype Elf64_Vernaux is struct_c185c066;
type union_30a3d4cb (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when others =>
a_val : stdint.uint32_t;
end case;
end record;
pragma Unchecked_Union (union_30a3d4cb);
pragma Convention (C_Pass_By_Copy, union_30a3d4cb);
type struct_cd07a7cd is record
a_type : aliased stdint.uint32_t;
a_un : aliased union_30a3d4cb;
end record;
pragma Convention (C_Pass_By_Copy, struct_cd07a7cd);
subtype Elf32_auxv_t is struct_cd07a7cd;
type union_f6213df5 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when others =>
a_val : stdint.uint64_t;
end case;
end record;
pragma Unchecked_Union (union_f6213df5);
pragma Convention (C_Pass_By_Copy, union_f6213df5);
type struct_cdf226e4 is record
a_type : aliased stdint.uint64_t;
a_un : aliased union_f6213df5;
end record;
pragma Convention (C_Pass_By_Copy, struct_cdf226e4);
subtype Elf64_auxv_t is struct_cdf226e4;
type struct_51d425ca is record
n_namesz : aliased Elf32_Word;
n_descsz : aliased Elf32_Word;
n_type : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_51d425ca);
subtype Elf32_Nhdr is struct_51d425ca;
type struct_1156b543 is record
n_namesz : aliased Elf64_Word;
n_descsz : aliased Elf64_Word;
n_type : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_1156b543);
subtype Elf64_Nhdr is struct_1156b543;
type struct_449cd237 is record
m_value : aliased Elf32_Xword;
m_info : aliased Elf32_Word;
m_poffset : aliased Elf32_Word;
m_repeat : aliased Elf32_Half;
m_stride : aliased Elf32_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_449cd237);
subtype Elf32_Move is struct_449cd237;
type struct_05b637d7 is record
m_value : aliased Elf64_Xword;
m_info : aliased Elf64_Xword;
m_poffset : aliased Elf64_Xword;
m_repeat : aliased Elf64_Half;
m_stride : aliased Elf64_Half;
end record;
pragma Convention (C_Pass_By_Copy, struct_05b637d7);
subtype Elf64_Move is struct_05b637d7;
type struct_053cf806 is record
gt_current_g_value : aliased Elf32_Word;
gt_unused : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_053cf806);
type struct_556dc6d3 is record
gt_g_value : aliased Elf32_Word;
gt_bytes : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_556dc6d3);
type union_fe36cbaf (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
gt_header : struct_053cf806;
when others =>
gt_entry : struct_556dc6d3;
end case;
end record;
pragma Unchecked_Union (union_fe36cbaf);
pragma Convention (C_Pass_By_Copy, union_fe36cbaf);
subtype Elf32_gptab is union_fe36cbaf;
type struct_9c1f5afc is record
ri_gprmask : aliased Elf32_Word;
ri_cprmask : aliased Elf32_Word_array (0 .. 3);
ri_gp_value : aliased Elf32_Sword;
end record;
pragma Convention (C_Pass_By_Copy, struct_9c1f5afc);
subtype Elf32_RegInfo is struct_9c1f5afc;
type struct_caea8cc8 is record
kind : aliased unsigned_char;
size : aliased unsigned_char;
section : aliased Elf32_Section;
info : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_caea8cc8);
subtype Elf_Options is struct_caea8cc8;
type struct_5aaed8ab is record
hwp_flags1 : aliased Elf32_Word;
hwp_flags2 : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_5aaed8ab);
subtype Elf_Options_Hw is struct_5aaed8ab;
type struct_9268bce4 is record
l_name : aliased Elf32_Word;
l_time_stamp : aliased Elf32_Word;
l_checksum : aliased Elf32_Word;
l_version : aliased Elf32_Word;
l_flags : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_9268bce4);
subtype Elf32_Lib is struct_9268bce4;
type struct_bd31855f is record
l_name : aliased Elf64_Word;
l_time_stamp : aliased Elf64_Word;
l_checksum : aliased Elf64_Word;
l_version : aliased Elf64_Word;
l_flags : aliased Elf64_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_bd31855f);
subtype Elf64_Lib is struct_bd31855f;
subtype Elf32_Conflict is Elf32_Addr;
type struct_201431ff is record
version : aliased Elf32_Half;
isa_level : aliased unsigned_char;
isa_rev : aliased unsigned_char;
gpr_size : aliased unsigned_char;
cpr1_size : aliased unsigned_char;
cpr2_size : aliased unsigned_char;
fp_abi : aliased unsigned_char;
isa_ext : aliased Elf32_Word;
ases : aliased Elf32_Word;
flags1 : aliased Elf32_Word;
flags2 : aliased Elf32_Word;
end record;
pragma Convention (C_Pass_By_Copy, struct_201431ff);
subtype Elf_MIPS_ABIFlags_v0 is struct_201431ff;
type enum_44c48773 is (Val_GNU_MIPS_ABI_FP_ANY,
Val_GNU_MIPS_ABI_FP_DOUBLE, Val_GNU_MIPS_ABI_FP_SINGLE,
Val_GNU_MIPS_ABI_FP_SOFT, Val_GNU_MIPS_ABI_FP_OLD_64,
Val_GNU_MIPS_ABI_FP_XX, Val_GNU_MIPS_ABI_FP_64,
Val_GNU_MIPS_ABI_FP_64A);
for enum_44c48773 use (Val_GNU_MIPS_ABI_FP_ANY => 0,
Val_GNU_MIPS_ABI_FP_DOUBLE => 1, Val_GNU_MIPS_ABI_FP_SINGLE => 2,
Val_GNU_MIPS_ABI_FP_SOFT => 3, Val_GNU_MIPS_ABI_FP_OLD_64 => 4,
Val_GNU_MIPS_ABI_FP_XX => 5, Val_GNU_MIPS_ABI_FP_64 => 6,
Val_GNU_MIPS_ABI_FP_64A => 7);
pragma Convention (C, enum_44c48773);
function Val_GNU_MIPS_ABI_FP_MAX return enum_44c48773
renames Val_GNU_MIPS_ABI_FP_64A;
for enum_44c48773'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_44c48773, signed_int);
DF_1_CONFALT : constant := 8192;
DF_1_DIRECT : constant := 256;
DF_1_DISPRELDNE : constant := 32768;
DF_1_DISPRELPND : constant := 65536;
DF_1_EDITED : constant := 2097152;
DF_1_ENDFILTEE : constant := 16384;
DF_1_GLOBAL : constant := 2;
DF_1_GLOBAUDIT : constant := 16777216;
DF_1_GROUP : constant := 4;
DF_1_IGNMULDEF : constant := 262144;
DF_1_INITFIRST : constant := 32;
DF_1_INTERPOSE : constant := 1024;
DF_1_LOADFLTR : constant := 16;
DF_1_NODEFLIB : constant := 2048;
DF_1_NODELETE : constant := 8;
DF_1_NODIRECT : constant := 131072;
DF_1_NODUMP : constant := 4096;
DF_1_NOHDR : constant := 1048576;
DF_1_NOKSYMS : constant := 524288;
DF_1_NOOPEN : constant := 64;
DF_1_NORELOC : constant := 4194304;
DF_1_NOW : constant := 1;
DF_1_ORIGIN : constant := 128;
DF_1_SINGLETON : constant := 33554432;
DF_1_SYMINTPOSE : constant := 8388608;
DF_1_TRANS : constant := 512;
DF_BIND_NOW : constant := 8;
DF_ORIGIN : constant := 1;
DF_P1_GROUPPERM : constant := 2;
DF_P1_LAZYLOAD : constant := 1;
DF_STATIC_TLS : constant := 16;
DF_SYMBOLIC : constant := 2;
DF_TEXTREL : constant := 4;
DTF_1_CONFEXP : constant := 2;
DTF_1_PARINIT : constant := 1;
DT_ADDRNUM : constant := 11;
DT_ADDRRNGHI : constant := 1879047935;
DT_ADDRRNGLO : constant := 1879047680;
-- DT_ADDRTAGIDX (function macro)
DT_ALPHA_NUM : constant := 1;
DT_ALPHA_PLTRO : constant := 1879048192;
DT_AUDIT : constant := 1879047932;
DT_AUXILIARY : constant := 2147483645;
DT_BIND_NOW : constant := 24;
DT_CHECKSUM : constant := 1879047672;
DT_CONFIG : constant := 1879047930;
DT_DEBUG : constant := 21;
DT_DEPAUDIT : constant := 1879047931;
DT_ENCODING : constant := 32;
DT_EXTRANUM : constant := 3;
-- DT_EXTRATAGIDX (function macro)
DT_FEATURE_1 : constant := 1879047676;
DT_FILTER : constant := 2147483647;
DT_FINI : constant := 13;
DT_FINI_ARRAY : constant := 26;
DT_FINI_ARRAYSZ : constant := 28;
DT_FLAGS : constant := 30;
DT_FLAGS_1 : constant := 1879048187;
DT_GNU_CONFLICT : constant := 1879047928;
DT_GNU_CONFLICTSZ : constant := 1879047670;
DT_GNU_HASH : constant := 1879047925;
DT_GNU_LIBLIST : constant := 1879047929;
DT_GNU_LIBLISTSZ : constant := 1879047671;
DT_GNU_PRELINKED : constant := 1879047669;
DT_HASH : constant := 4;
DT_HIOS : constant := 1879044096;
DT_HIPROC : constant := 2147483647;
DT_IA_64_NUM : constant := 1;
DT_IA_64_PLT_RESERVE : constant := 1879048192;
DT_INIT : constant := 12;
DT_INIT_ARRAY : constant := 25;
DT_INIT_ARRAYSZ : constant := 27;
DT_JMPREL : constant := 23;
DT_LOOS : constant := 1610612749;
DT_LOPROC : constant := 1879048192;
DT_MIPS_AUX_DYNAMIC : constant := 1879048241;
DT_MIPS_BASE_ADDRESS : constant := 1879048198;
DT_MIPS_COMPACT_SIZE : constant := 1879048239;
DT_MIPS_CONFLICT : constant := 1879048200;
DT_MIPS_CONFLICTNO : constant := 1879048203;
DT_MIPS_CXX_FLAGS : constant := 1879048226;
DT_MIPS_DELTA_CLASS : constant := 1879048215;
DT_MIPS_DELTA_CLASSSYM : constant := 1879048224;
DT_MIPS_DELTA_CLASSSYM_NO : constant := 1879048225;
DT_MIPS_DELTA_CLASS_NO : constant := 1879048216;
DT_MIPS_DELTA_INSTANCE : constant := 1879048217;
DT_MIPS_DELTA_INSTANCE_NO : constant := 1879048218;
DT_MIPS_DELTA_RELOC : constant := 1879048219;
DT_MIPS_DELTA_RELOC_NO : constant := 1879048220;
DT_MIPS_DELTA_SYM : constant := 1879048221;
DT_MIPS_DELTA_SYM_NO : constant := 1879048222;
DT_MIPS_DYNSTR_ALIGN : constant := 1879048235;
DT_MIPS_FLAGS : constant := 1879048197;
DT_MIPS_GOTSYM : constant := 1879048211;
DT_MIPS_GP_VALUE : constant := 1879048240;
DT_MIPS_HIDDEN_GOTIDX : constant := 1879048231;
DT_MIPS_HIPAGENO : constant := 1879048212;
DT_MIPS_ICHECKSUM : constant := 1879048195;
DT_MIPS_INTERFACE : constant := 1879048234;
DT_MIPS_INTERFACE_SIZE : constant := 1879048236;
DT_MIPS_IVERSION : constant := 1879048196;
DT_MIPS_LIBLIST : constant := 1879048201;
DT_MIPS_LIBLISTNO : constant := 1879048208;
DT_MIPS_LOCALPAGE_GOTIDX : constant := 1879048229;
DT_MIPS_LOCAL_GOTIDX : constant := 1879048230;
DT_MIPS_LOCAL_GOTNO : constant := 1879048202;
DT_MIPS_MSYM : constant := 1879048199;
DT_MIPS_NUM : constant := 54;
DT_MIPS_OPTIONS : constant := 1879048233;
DT_MIPS_PERF_SUFFIX : constant := 1879048238;
DT_MIPS_PIXIE_INIT : constant := 1879048227;
DT_MIPS_PLTGOT : constant := 1879048242;
DT_MIPS_PROTECTED_GOTIDX : constant := 1879048232;
DT_MIPS_RLD_MAP : constant := 1879048214;
DT_MIPS_RLD_MAP_REL : constant := 1879048245;
DT_MIPS_RLD_TEXT_RESOLVE_ADDR : constant := 1879048237;
DT_MIPS_RLD_VERSION : constant := 1879048193;
DT_MIPS_RWPLT : constant := 1879048244;
DT_MIPS_SYMBOL_LIB : constant := 1879048228;
DT_MIPS_SYMTABNO : constant := 1879048209;
DT_MIPS_TIME_STAMP : constant := 1879048194;
DT_MIPS_UNREFEXTNO : constant := 1879048210;
DT_MOVEENT : constant := 1879047674;
DT_MOVESZ : constant := 1879047675;
DT_MOVETAB : constant := 1879047934;
DT_NEEDED : constant := 1;
DT_NIOS2_GP : constant := 1879048194;
DT_NULL : constant := 0;
DT_NUM : constant := 34;
DT_PLTGOT : constant := 3;
DT_PLTPAD : constant := 1879047933;
DT_PLTPADSZ : constant := 1879047673;
DT_PLTREL : constant := 20;
DT_PLTRELSZ : constant := 2;
DT_POSFLAG_1 : constant := 1879047677;
DT_PPC64_GLINK : constant := 1879048192;
DT_PPC64_NUM : constant := 4;
DT_PPC64_OPD : constant := 1879048193;
DT_PPC64_OPDSZ : constant := 1879048194;
DT_PPC64_OPT : constant := 1879048195;
DT_PPC_GOT : constant := 1879048192;
DT_PPC_NUM : constant := 2;
DT_PPC_OPT : constant := 1879048193;
DT_PREINIT_ARRAY : constant := 32;
DT_PREINIT_ARRAYSZ : constant := 33;
DT_PROCNUM : constant := 54;
DT_REL : constant := 17;
DT_RELA : constant := 7;
DT_RELACOUNT : constant := 1879048185;
DT_RELAENT : constant := 9;
DT_RELASZ : constant := 8;
DT_RELCOUNT : constant := 1879048186;
DT_RELENT : constant := 19;
DT_RELSZ : constant := 18;
DT_RPATH : constant := 15;
DT_RUNPATH : constant := 29;
DT_SONAME : constant := 14;
DT_SPARC_NUM : constant := 2;
DT_SPARC_REGISTER : constant := 1879048193;
DT_STRSZ : constant := 10;
DT_STRTAB : constant := 5;
DT_SYMBOLIC : constant := 16;
DT_SYMENT : constant := 11;
DT_SYMINENT : constant := 1879047679;
DT_SYMINFO : constant := 1879047935;
DT_SYMINSZ : constant := 1879047678;
DT_SYMTAB : constant := 6;
DT_TEXTREL : constant := 22;
DT_TLSDESC_GOT : constant := 1879047927;
DT_TLSDESC_PLT : constant := 1879047926;
DT_VALNUM : constant := 12;
DT_VALRNGHI : constant := 1879047679;
DT_VALRNGLO : constant := 1879047424;
-- DT_VALTAGIDX (function macro)
DT_VERDEF : constant := 1879048188;
DT_VERDEFNUM : constant := 1879048189;
DT_VERNEED : constant := 1879048190;
DT_VERNEEDNUM : constant := 1879048191;
-- DT_VERSIONTAGIDX (function macro)
DT_VERSIONTAGNUM : constant := 16;
DT_VERSYM : constant := 1879048176;
EFA_PARISC_1_0 : constant := 523;
EFA_PARISC_1_1 : constant := 528;
EFA_PARISC_2_0 : constant := 532;
EF_ALPHA_32BIT : constant := 1;
EF_ALPHA_CANRELAX : constant := 2;
EF_ARM_ABI_FLOAT_HARD : constant := 1024;
EF_ARM_ABI_FLOAT_SOFT : constant := 512;
EF_ARM_ALIGN8 : constant := 64;
EF_ARM_APCS_26 : constant := 8;
EF_ARM_APCS_FLOAT : constant := 16;
EF_ARM_BE8 : constant := 8388608;
EF_ARM_DYNSYMSUSESEGIDX : constant := 8;
EF_ARM_EABIMASK : constant := -16777216;
EF_ARM_EABI_UNKNOWN : constant := 0;
EF_ARM_EABI_VER1 : constant := 16777216;
EF_ARM_EABI_VER2 : constant := 33554432;
EF_ARM_EABI_VER3 : constant := 50331648;
EF_ARM_EABI_VER4 : constant := 67108864;
EF_ARM_EABI_VER5 : constant := 83886080;
-- EF_ARM_EABI_VERSION (function macro)
EF_ARM_HASENTRY : constant := 2;
EF_ARM_INTERWORK : constant := 4;
EF_ARM_LE8 : constant := 4194304;
EF_ARM_MAPSYMSFIRST : constant := 16;
EF_ARM_MAVERICK_FLOAT : constant := 2048;
EF_ARM_NEW_ABI : constant := 128;
EF_ARM_OLD_ABI : constant := 256;
EF_ARM_PIC : constant := 32;
EF_ARM_RELEXEC : constant := 1;
EF_ARM_SOFT_FLOAT : constant := 512;
EF_ARM_SYMSARESORTED : constant := 4;
EF_ARM_VFP_FLOAT : constant := 1024;
EF_CPU32 : constant := 8454144;
EF_IA_64_ABI64 : constant := 16;
EF_IA_64_ARCH : constant := -16777216;
EF_IA_64_MASKOS : constant := 15;
EF_MIPS_64BIT_WHIRL : constant := 16;
EF_MIPS_ABI2 : constant := 32;
EF_MIPS_ABI_ON32 : constant := 64;
EF_MIPS_ARCH : constant := -268435456;
EF_MIPS_ARCH_1 : constant := 0;
EF_MIPS_ARCH_2 : constant := 268435456;
EF_MIPS_ARCH_3 : constant := 536870912;
EF_MIPS_ARCH_32 : constant := 1342177280;
EF_MIPS_ARCH_32R2 : constant := 1879048192;
EF_MIPS_ARCH_4 : constant := 805306368;
EF_MIPS_ARCH_5 : constant := 1073741824;
EF_MIPS_ARCH_64 : constant := 1610612736;
EF_MIPS_ARCH_64R2 : constant := -2147483648;
EF_MIPS_CPIC : constant := 4;
EF_MIPS_FP64 : constant := 512;
EF_MIPS_NAN2008 : constant := 1024;
EF_MIPS_NOREORDER : constant := 1;
EF_MIPS_PIC : constant := 2;
EF_MIPS_XGOT : constant := 8;
EF_PARISC_ARCH : constant := 65535;
EF_PARISC_EXT : constant := 131072;
EF_PARISC_LAZYSWAP : constant := 4194304;
EF_PARISC_LSB : constant := 262144;
EF_PARISC_NO_KABP : constant := 1048576;
EF_PARISC_TRAPNIL : constant := 65536;
EF_PARISC_WIDE : constant := 524288;
EF_PPC64_ABI : constant := 3;
EF_PPC_EMB : constant := -2147483648;
EF_PPC_RELOCATABLE : constant := 65536;
EF_PPC_RELOCATABLE_LIB : constant := 32768;
EF_S390_HIGH_GPRS : constant := 1;
EF_SH1 : constant := 1;
EF_SH2 : constant := 2;
EF_SH2A : constant := 13;
EF_SH2A_NOFPU : constant := 19;
EF_SH2A_SH3E : constant := 24;
EF_SH2A_SH3_NOFPU : constant := 22;
EF_SH2A_SH4 : constant := 23;
EF_SH2A_SH4_NOFPU : constant := 21;
EF_SH2E : constant := 11;
EF_SH3 : constant := 3;
EF_SH3E : constant := 8;
EF_SH3_DSP : constant := 5;
EF_SH3_NOMMU : constant := 20;
EF_SH4 : constant := 9;
EF_SH4A : constant := 12;
EF_SH4AL_DSP : constant := 6;
EF_SH4A_NOFPU : constant := 17;
EF_SH4_NOFPU : constant := 16;
EF_SH4_NOMMU_NOFPU : constant := 18;
EF_SH_DSP : constant := 4;
EF_SH_MACH_MASK : constant := 31;
EF_SH_UNKNOWN : constant := 0;
EF_SPARCV9_MM : constant := 3;
EF_SPARCV9_PSO : constant := 1;
EF_SPARCV9_RMO : constant := 2;
EF_SPARCV9_TSO : constant := 0;
EF_SPARC_32PLUS : constant := 256;
EF_SPARC_EXT_MASK : constant := 16776960;
EF_SPARC_HAL_R1 : constant := 1024;
EF_SPARC_LEDATA : constant := 8388608;
EF_SPARC_SUN_US1 : constant := 512;
EF_SPARC_SUN_US3 : constant := 2048;
EI_ABIVERSION : constant := 8;
EI_CLASS : constant := 4;
EI_DATA : constant := 5;
EI_MAG0 : constant := 0;
EI_MAG1 : constant := 1;
EI_MAG2 : constant := 2;
EI_MAG3 : constant := 3;
EI_NIDENT : constant := 16;
EI_OSABI : constant := 7;
EI_PAD : constant := 9;
EI_VERSION : constant := 6;
-- ELF32_M_INFO (function macro)
-- ELF32_M_SIZE (function macro)
-- ELF32_M_SYM (function macro)
-- ELF32_R_INFO (function macro)
-- ELF32_R_SYM (function macro)
-- ELF32_R_TYPE (function macro)
-- ELF32_ST_BIND (function macro)
-- ELF32_ST_INFO (function macro)
-- ELF32_ST_TYPE (function macro)
-- ELF32_ST_VISIBILITY (function macro)
-- ELF64_M_INFO (function macro)
-- ELF64_M_SIZE (function macro)
-- ELF64_M_SYM (function macro)
-- ELF64_R_INFO (function macro)
-- ELF64_R_SYM (function macro)
-- ELF64_R_TYPE (function macro)
-- ELF64_ST_BIND (function macro)
-- ELF64_ST_INFO (function macro)
-- ELF64_ST_TYPE (function macro)
-- ELF64_ST_VISIBILITY (function macro)
ELFCLASS32 : constant := 1;
ELFCLASS64 : constant := 2;
ELFCLASSNONE : constant := 0;
ELFCLASSNUM : constant := 3;
ELFCOMPRESS_HIOS : constant := 1879048191;
ELFCOMPRESS_HIPROC : constant := 2147483647;
ELFCOMPRESS_LOOS : constant := 1610612736;
ELFCOMPRESS_LOPROC : constant := 1879048192;
ELFCOMPRESS_ZLIB : constant := 1;
ELFDATA2LSB : constant := 1;
ELFDATA2MSB : constant := 2;
ELFDATANONE : constant := 0;
ELFDATANUM : constant := 3;
ELFMAG : constant char_array (0 .. 4) := char'Val (127) & "ELF"
& char'Val (0);
ELFMAG0 : constant := 127;
ELFMAG1 : constant char := 'E';
ELFMAG2 : constant char := 'L';
ELFMAG3 : constant char := 'F';
ELFOSABI_AIX : constant := 7;
ELFOSABI_ARM : constant := 97;
ELFOSABI_ARM_AEABI : constant := 64;
ELFOSABI_FREEBSD : constant := 9;
ELFOSABI_GNU : constant := 3;
ELFOSABI_HPUX : constant := 1;
ELFOSABI_IRIX : constant := 8;
ELFOSABI_LINUX : constant := 3;
ELFOSABI_MODESTO : constant := 11;
ELFOSABI_NETBSD : constant := 2;
ELFOSABI_NONE : constant := 0;
ELFOSABI_OPENBSD : constant := 12;
ELFOSABI_SOLARIS : constant := 6;
ELFOSABI_STANDALONE : constant := 255;
ELFOSABI_SYSV : constant := 0;
ELFOSABI_TRU64 : constant := 10;
ELF_NOTE_ABI : constant := 1;
ELF_NOTE_GNU : constant char_array (0 .. 3) := "GNU" & char'Val (0);
ELF_NOTE_OS_FREEBSD : constant := 3;
ELF_NOTE_OS_GNU : constant := 1;
ELF_NOTE_OS_LINUX : constant := 0;
ELF_NOTE_OS_SOLARIS2 : constant := 2;
ELF_NOTE_PAGESIZE_HINT : constant := 1;
ELF_NOTE_SOLARIS : constant char_array (0 .. 12) := "SUNW Solaris"
& char'Val (0);
EM_386 : constant := 3;
EM_56800EX : constant := 200;
EM_68HC05 : constant := 72;
EM_68HC08 : constant := 71;
EM_68HC11 : constant := 70;
EM_68HC12 : constant := 53;
EM_68HC16 : constant := 69;
EM_68K : constant := 4;
EM_78KOR : constant := 199;
EM_8051 : constant := 165;
EM_860 : constant := 7;
EM_88K : constant := 5;
EM_960 : constant := 19;
EM_AARCH64 : constant := 183;
EM_ALPHA : constant := 36902;
EM_ALTERA_NIOS2 : constant := 113;
EM_AMDGPU : constant := 224;
EM_ARC : constant := 45;
EM_ARCA : constant := 109;
EM_ARC_A5 : constant := 93;
EM_ARC_COMPACT : constant := 93;
EM_ARC_COMPACT2 : constant := 195;
EM_ARM : constant := 40;
EM_AVR : constant := 83;
EM_AVR32 : constant := 185;
EM_BA1 : constant := 201;
EM_BA2 : constant := 202;
EM_BLACKFIN : constant := 106;
EM_BPF : constant := 247;
EM_C166 : constant := 116;
EM_CDP : constant := 215;
EM_CE : constant := 119;
EM_CLOUDSHIELD : constant := 192;
EM_COGE : constant := 216;
EM_COLDFIRE : constant := 52;
EM_COOL : constant := 217;
EM_COREA_1ST : constant := 193;
EM_COREA_2ND : constant := 194;
EM_CR : constant := 103;
EM_CR16 : constant := 177;
EM_CRAYNV2 : constant := 172;
EM_CRIS : constant := 76;
EM_CRX : constant := 114;
EM_CSR_KALIMBA : constant := 219;
EM_CUDA : constant := 190;
EM_CYPRESS_M8C : constant := 161;
EM_D10V : constant := 85;
EM_D30V : constant := 86;
EM_DSP24 : constant := 136;
EM_DSPIC30F : constant := 118;
EM_DXP : constant := 112;
EM_ECOG16 : constant := 176;
EM_ECOG1X : constant := 168;
EM_ECOG2 : constant := 134;
EM_EMX16 : constant := 212;
EM_EMX8 : constant := 213;
EM_ETPU : constant := 178;
EM_EXCESS : constant := 111;
EM_F2MC16 : constant := 104;
EM_FAKE_ALPHA : constant := 41;
EM_FIREPATH : constant := 78;
EM_FR20 : constant := 37;
EM_FR30 : constant := 84;
EM_FT32 : constant := 222;
EM_FX66 : constant := 66;
EM_H8S : constant := 48;
EM_H8_300 : constant := 46;
EM_H8_300H : constant := 47;
EM_H8_500 : constant := 49;
EM_HUANY : constant := 81;
EM_IAMCU : constant := 6;
EM_IA_64 : constant := 50;
EM_IP2K : constant := 101;
EM_JAVELIN : constant := 77;
EM_K10M : constant := 181;
EM_KM32 : constant := 210;
EM_KMX32 : constant := 211;
EM_KVARC : constant := 214;
EM_L10M : constant := 180;
EM_LATTICEMICO32 : constant := 138;
EM_M16C : constant := 117;
EM_M32 : constant := 1;
EM_M32C : constant := 120;
EM_M32R : constant := 88;
EM_MANIK : constant := 171;
EM_MAX : constant := 102;
EM_MAXQ30 : constant := 169;
EM_MCHP_PIC : constant := 204;
EM_MCST_ELBRUS : constant := 175;
EM_ME16 : constant := 59;
EM_METAG : constant := 174;
EM_MICROBLAZE : constant := 189;
EM_MIPS : constant := 8;
EM_MIPS_RS3_LE : constant := 10;
EM_MIPS_X : constant := 51;
EM_MMA : constant := 54;
EM_MMDSP_PLUS : constant := 160;
EM_MMIX : constant := 80;
EM_MN10200 : constant := 90;
EM_MN10300 : constant := 89;
EM_MOXIE : constant := 223;
EM_MSP430 : constant := 105;
EM_NCPU : constant := 56;
EM_NDR1 : constant := 57;
EM_NDS32 : constant := 167;
EM_NONE : constant := 0;
EM_NORC : constant := 218;
EM_NS32K : constant := 97;
EM_NUM : constant := 248;
EM_OPEN8 : constant := 196;
EM_OPENRISC : constant := 92;
EM_PARISC : constant := 15;
EM_PCP : constant := 55;
EM_PDP10 : constant := 64;
EM_PDP11 : constant := 65;
EM_PDSP : constant := 63;
EM_PJ : constant := 91;
EM_PPC : constant := 20;
EM_PPC64 : constant := 21;
EM_PRISM : constant := 82;
EM_QDSP6 : constant := 164;
EM_R32C : constant := 162;
EM_RCE : constant := 39;
EM_RH32 : constant := 38;
EM_RISCV : constant := 243;
EM_RL78 : constant := 197;
EM_RS08 : constant := 132;
EM_RX : constant := 173;
EM_S370 : constant := 9;
EM_S390 : constant := 22;
EM_SCORE7 : constant := 135;
EM_SEP : constant := 108;
EM_SE_C17 : constant := 139;
EM_SE_C33 : constant := 107;
EM_SH : constant := 42;
EM_SHARC : constant := 133;
EM_SLE9X : constant := 179;
EM_SNP1K : constant := 99;
EM_SPARC : constant := 2;
EM_SPARC32PLUS : constant := 18;
EM_SPARCV9 : constant := 43;
EM_SPU : constant := 23;
EM_ST100 : constant := 60;
EM_ST19 : constant := 74;
EM_ST200 : constant := 100;
EM_ST7 : constant := 68;
EM_ST9PLUS : constant := 67;
EM_STARCORE : constant := 58;
EM_STM8 : constant := 186;
EM_STXP7X : constant := 166;
EM_SVX : constant := 73;
EM_TILE64 : constant := 187;
EM_TILEGX : constant := 191;
EM_TILEPRO : constant := 188;
EM_TINYJ : constant := 61;
EM_TI_ARP32 : constant := 143;
EM_TI_C2000 : constant := 141;
EM_TI_C5500 : constant := 142;
EM_TI_C6000 : constant := 140;
EM_TI_PRU : constant := 144;
EM_TMM_GPP : constant := 96;
EM_TPC : constant := 98;
EM_TRICORE : constant := 44;
EM_TRIMEDIA : constant := 163;
EM_TSK3000 : constant := 131;
EM_UNICORE : constant := 110;
EM_V800 : constant := 36;
EM_V850 : constant := 87;
EM_VAX : constant := 75;
EM_VIDEOCORE : constant := 95;
EM_VIDEOCORE3 : constant := 137;
EM_VIDEOCORE5 : constant := 198;
EM_VISIUM : constant := 221;
EM_VPP500 : constant := 17;
EM_X86_64 : constant := 62;
EM_XCORE : constant := 203;
EM_XGATE : constant := 115;
EM_XIMO16 : constant := 170;
EM_XTENSA : constant := 94;
EM_Z80 : constant := 220;
EM_ZSP : constant := 79;
ET_CORE : constant := 4;
ET_DYN : constant := 3;
ET_EXEC : constant := 2;
ET_HIOS : constant := 65279;
ET_HIPROC : constant := 65535;
ET_LOOS : constant := 65024;
ET_LOPROC : constant := 65280;
ET_NONE : constant := 0;
ET_NUM : constant := 5;
ET_REL : constant := 1;
EV_CURRENT : constant := 1;
EV_NONE : constant := 0;
EV_NUM : constant := 2;
E_MIPS_ARCH_1 : constant := 0;
E_MIPS_ARCH_2 : constant := 268435456;
E_MIPS_ARCH_3 : constant := 536870912;
E_MIPS_ARCH_32 : constant := 1342177280;
E_MIPS_ARCH_4 : constant := 805306368;
E_MIPS_ARCH_5 : constant := 1073741824;
E_MIPS_ARCH_64 : constant := 1610612736;
GRP_COMDAT : constant := 1;
LITUSE_ALPHA_ADDR : constant := 0;
LITUSE_ALPHA_BASE : constant := 1;
LITUSE_ALPHA_BYTOFF : constant := 2;
LITUSE_ALPHA_JSR : constant := 3;
LITUSE_ALPHA_TLS_GD : constant := 4;
LITUSE_ALPHA_TLS_LDM : constant := 5;
LL_DELAY_LOAD : constant := 16;
LL_DELTA : constant := 32;
LL_EXACT_MATCH : constant := 1;
LL_EXPORTS : constant := 8;
LL_IGNORE_INT_VER : constant := 2;
LL_NONE : constant := 0;
LL_REQUIRE_MINOR : constant := 4;
MIPS_AFL_ASE_DSP : constant := 1;
MIPS_AFL_ASE_DSPR2 : constant := 2;
MIPS_AFL_ASE_EVA : constant := 4;
MIPS_AFL_ASE_MASK : constant := 8191;
MIPS_AFL_ASE_MCU : constant := 8;
MIPS_AFL_ASE_MDMX : constant := 16;
MIPS_AFL_ASE_MICROMIPS : constant := 2048;
MIPS_AFL_ASE_MIPS16 : constant := 1024;
MIPS_AFL_ASE_MIPS3D : constant := 32;
MIPS_AFL_ASE_MSA : constant := 512;
MIPS_AFL_ASE_MT : constant := 64;
MIPS_AFL_ASE_SMARTMIPS : constant := 128;
MIPS_AFL_ASE_VIRT : constant := 256;
MIPS_AFL_ASE_XPA : constant := 4096;
MIPS_AFL_EXT_10000 : constant := 11;
MIPS_AFL_EXT_3900 : constant := 10;
MIPS_AFL_EXT_4010 : constant := 8;
MIPS_AFL_EXT_4100 : constant := 9;
MIPS_AFL_EXT_4111 : constant := 13;
MIPS_AFL_EXT_4120 : constant := 14;
MIPS_AFL_EXT_4650 : constant := 7;
MIPS_AFL_EXT_5400 : constant := 15;
MIPS_AFL_EXT_5500 : constant := 16;
MIPS_AFL_EXT_5900 : constant := 6;
MIPS_AFL_EXT_LOONGSON_2E : constant := 17;
MIPS_AFL_EXT_LOONGSON_2F : constant := 18;
MIPS_AFL_EXT_LOONGSON_3A : constant := 4;
MIPS_AFL_EXT_OCTEON : constant := 5;
MIPS_AFL_EXT_OCTEON2 : constant := 2;
MIPS_AFL_EXT_OCTEONP : constant := 3;
MIPS_AFL_EXT_SB1 : constant := 12;
MIPS_AFL_EXT_XLR : constant := 1;
MIPS_AFL_FLAGS1_ODDSPREG : constant := 1;
MIPS_AFL_REG_128 : constant := 3;
MIPS_AFL_REG_32 : constant := 1;
MIPS_AFL_REG_64 : constant := 2;
MIPS_AFL_REG_NONE : constant := 0;
NT_386_IOPERM : constant := 513;
NT_386_TLS : constant := 512;
NT_ARM_HW_BREAK : constant := 1026;
NT_ARM_HW_WATCH : constant := 1027;
NT_ARM_SYSTEM_CALL : constant := 1028;
NT_ARM_TLS : constant := 1025;
NT_ARM_VFP : constant := 1024;
NT_ASRS : constant := 8;
NT_AUXV : constant := 6;
NT_FILE : constant := 1179208773;
NT_FPREGSET : constant := 2;
NT_GNU_ABI_TAG : constant := 1;
NT_GNU_BUILD_ID : constant := 3;
NT_GNU_GOLD_VERSION : constant := 4;
NT_GNU_HWCAP : constant := 2;
NT_GWINDOWS : constant := 7;
NT_LWPSINFO : constant := 17;
NT_LWPSTATUS : constant := 16;
NT_PLATFORM : constant := 5;
NT_PPC_SPE : constant := 257;
NT_PPC_VMX : constant := 256;
NT_PPC_VSX : constant := 258;
NT_PRCRED : constant := 14;
NT_PRFPXREG : constant := 20;
NT_PRPSINFO : constant := 3;
NT_PRSTATUS : constant := 1;
NT_PRXFPREG : constant := 1189489535;
NT_PRXREG : constant := 4;
NT_PSINFO : constant := 13;
NT_PSTATUS : constant := 10;
NT_S390_CTRS : constant := 772;
NT_S390_HIGH_GPRS : constant := 768;
NT_S390_LAST_BREAK : constant := 774;
NT_S390_PREFIX : constant := 773;
NT_S390_SYSTEM_CALL : constant := 775;
NT_S390_TDB : constant := 776;
NT_S390_TIMER : constant := 769;
NT_S390_TODCMP : constant := 770;
NT_S390_TODPREG : constant := 771;
NT_SIGINFO : constant := 1397311305;
NT_TASKSTRUCT : constant := 4;
NT_UTSNAME : constant := 15;
NT_VERSION : constant := 1;
NT_X86_XSTATE : constant := 514;
ODK_EXCEPTIONS : constant := 2;
ODK_FILL : constant := 5;
ODK_HWAND : constant := 7;
ODK_HWOR : constant := 8;
ODK_HWPATCH : constant := 4;
ODK_NULL : constant := 0;
ODK_PAD : constant := 3;
ODK_REGINFO : constant := 1;
ODK_TAGS : constant := 6;
OEX_DISMISS : constant := 524288;
OEX_FPDBUG : constant := 262144;
OEX_FPU_DIV0 : constant := 8;
OEX_FPU_INEX : constant := 1;
OEX_FPU_INVAL : constant := 16;
OEX_FPU_MAX : constant := 7936;
OEX_FPU_MIN : constant := 31;
OEX_FPU_OFLO : constant := 4;
OEX_FPU_UFLO : constant := 2;
OEX_PAGE0 : constant := 65536;
OEX_PRECISEFP : constant := 262144;
OEX_SMM : constant := 131072;
OHWA0_R4KEOP_CHECKED : constant := 1;
OHWA1_R4KEOP_CLEAN : constant := 2;
OHW_R4KEOP : constant := 1;
OHW_R5KCVTL : constant := 8;
OHW_R5KEOP : constant := 4;
OHW_R8KPFETCH : constant := 2;
OPAD_POSTFIX : constant := 2;
OPAD_PREFIX : constant := 1;
OPAD_SYMBOL : constant := 4;
PF_ARM_ABS : constant := 1073741824;
PF_ARM_PI : constant := 536870912;
PF_ARM_SB : constant := 268435456;
PF_HP_CODE : constant := 16777216;
PF_HP_FAR_SHARED : constant := 2097152;
PF_HP_LAZYSWAP : constant := 67108864;
PF_HP_MODIFY : constant := 33554432;
PF_HP_NEAR_SHARED : constant := 4194304;
PF_HP_PAGE_SIZE : constant := 1048576;
PF_HP_SBP : constant := 134217728;
PF_IA_64_NORECOV : constant := -2147483648;
PF_MASKOS : constant := 267386880;
PF_MASKPROC : constant := -268435456;
PF_MIPS_LOCAL : constant := 268435456;
PF_PARISC_SBP : constant := 134217728;
PF_R : constant := 4;
PF_W : constant := 2;
PF_X : constant := 1;
PN_XNUM : constant := 65535;
-- PPC64_LOCAL_ENTRY_OFFSET (function macro)
PPC64_OPT_MULTI_TOC : constant := 2;
PPC64_OPT_TLS : constant := 1;
PPC_OPT_TLS : constant := 1;
PT_ARM_EXIDX : constant := 1879048193;
PT_DYNAMIC : constant := 2;
PT_GNU_EH_FRAME : constant := 1685382480;
PT_GNU_RELRO : constant := 1685382482;
PT_GNU_STACK : constant := 1685382481;
PT_HIOS : constant := 1879048191;
PT_HIPROC : constant := 2147483647;
PT_HISUNW : constant := 1879048191;
PT_HP_CORE_COMM : constant := 1610612740;
PT_HP_CORE_KERNEL : constant := 1610612739;
PT_HP_CORE_LOADABLE : constant := 1610612742;
PT_HP_CORE_MMF : constant := 1610612745;
PT_HP_CORE_NONE : constant := 1610612737;
PT_HP_CORE_PROC : constant := 1610612741;
PT_HP_CORE_SHM : constant := 1610612744;
PT_HP_CORE_STACK : constant := 1610612743;
PT_HP_CORE_VERSION : constant := 1610612738;
PT_HP_FASTBIND : constant := 1610612753;
PT_HP_HSL_ANNOT : constant := 1610612755;
PT_HP_OPT_ANNOT : constant := 1610612754;
PT_HP_PARALLEL : constant := 1610612752;
PT_HP_STACK : constant := 1610612756;
PT_HP_TLS : constant := 1610612736;
PT_IA_64_ARCHEXT : constant := 1879048192;
PT_IA_64_HP_HSL_ANOT : constant := 1610612755;
PT_IA_64_HP_OPT_ANOT : constant := 1610612754;
PT_IA_64_HP_STACK : constant := 1610612756;
PT_IA_64_UNWIND : constant := 1879048193;
PT_INTERP : constant := 3;
PT_LOAD : constant := 1;
PT_LOOS : constant := 1610612736;
PT_LOPROC : constant := 1879048192;
PT_LOSUNW : constant := 1879048186;
PT_MIPS_ABIFLAGS : constant := 1879048195;
PT_MIPS_OPTIONS : constant := 1879048194;
PT_MIPS_REGINFO : constant := 1879048192;
PT_MIPS_RTPROC : constant := 1879048193;
PT_NOTE : constant := 4;
PT_NULL : constant := 0;
PT_NUM : constant := 8;
PT_PARISC_ARCHEXT : constant := 1879048192;
PT_PARISC_UNWIND : constant := 1879048193;
PT_PHDR : constant := 6;
PT_SHLIB : constant := 5;
PT_SUNWBSS : constant := 1879048186;
PT_SUNWSTACK : constant := 1879048187;
PT_TLS : constant := 7;
RHF_CORD : constant := 4096;
RHF_DEFAULT_DELAY_LOAD : constant := 512;
RHF_DELTA_C_PLUS_PLUS : constant := 64;
RHF_GUARANTEE_INIT : constant := 32;
RHF_GUARANTEE_START_INIT : constant := 128;
RHF_NONE : constant := 0;
RHF_NOTPOT : constant := 2;
RHF_NO_LIBRARY_REPLACEMENT : constant := 4;
RHF_NO_MOVE : constant := 8;
RHF_NO_UNRES_UNDEF : constant := 8192;
RHF_PIXIE : constant := 256;
RHF_QUICKSTART : constant := 1;
RHF_REQUICKSTART : constant := 1024;
RHF_REQUICKSTARTED : constant := 2048;
RHF_RLD_ORDER_SAFE : constant := 16384;
RHF_SGI_ONLY : constant := 16;
R_386_16 : constant := 20;
R_386_32 : constant := 1;
R_386_32PLT : constant := 11;
R_386_8 : constant := 22;
R_386_COPY : constant := 5;
R_386_GLOB_DAT : constant := 6;
R_386_GOT32 : constant := 3;
R_386_GOT32X : constant := 43;
R_386_GOTOFF : constant := 9;
R_386_GOTPC : constant := 10;
R_386_IRELATIVE : constant := 42;
R_386_JMP_SLOT : constant := 7;
R_386_NONE : constant := 0;
R_386_NUM : constant := 44;
R_386_PC16 : constant := 21;
R_386_PC32 : constant := 2;
R_386_PC8 : constant := 23;
R_386_PLT32 : constant := 4;
R_386_RELATIVE : constant := 8;
R_386_SIZE32 : constant := 38;
R_386_TLS_DESC : constant := 41;
R_386_TLS_DESC_CALL : constant := 40;
R_386_TLS_DTPMOD32 : constant := 35;
R_386_TLS_DTPOFF32 : constant := 36;
R_386_TLS_GD : constant := 18;
R_386_TLS_GD_32 : constant := 24;
R_386_TLS_GD_CALL : constant := 26;
R_386_TLS_GD_POP : constant := 27;
R_386_TLS_GD_PUSH : constant := 25;
R_386_TLS_GOTDESC : constant := 39;
R_386_TLS_GOTIE : constant := 16;
R_386_TLS_IE : constant := 15;
R_386_TLS_IE_32 : constant := 33;
R_386_TLS_LDM : constant := 19;
R_386_TLS_LDM_32 : constant := 28;
R_386_TLS_LDM_CALL : constant := 30;
R_386_TLS_LDM_POP : constant := 31;
R_386_TLS_LDM_PUSH : constant := 29;
R_386_TLS_LDO_32 : constant := 32;
R_386_TLS_LE : constant := 17;
R_386_TLS_LE_32 : constant := 34;
R_386_TLS_TPOFF : constant := 14;
R_386_TLS_TPOFF32 : constant := 37;
R_390_12 : constant := 2;
R_390_16 : constant := 3;
R_390_20 : constant := 57;
R_390_32 : constant := 4;
R_390_64 : constant := 22;
R_390_8 : constant := 1;
R_390_COPY : constant := 9;
R_390_GLOB_DAT : constant := 10;
R_390_GOT12 : constant := 6;
R_390_GOT16 : constant := 15;
R_390_GOT20 : constant := 58;
R_390_GOT32 : constant := 7;
R_390_GOT64 : constant := 24;
R_390_GOTENT : constant := 26;
R_390_GOTOFF16 : constant := 27;
R_390_GOTOFF32 : constant := 13;
R_390_GOTOFF64 : constant := 28;
R_390_GOTPC : constant := 14;
R_390_GOTPCDBL : constant := 21;
R_390_GOTPLT12 : constant := 29;
R_390_GOTPLT16 : constant := 30;
R_390_GOTPLT20 : constant := 59;
R_390_GOTPLT32 : constant := 31;
R_390_GOTPLT64 : constant := 32;
R_390_GOTPLTENT : constant := 33;
R_390_IRELATIVE : constant := 61;
R_390_JMP_SLOT : constant := 11;
R_390_NONE : constant := 0;
R_390_NUM : constant := 62;
R_390_PC16 : constant := 16;
R_390_PC16DBL : constant := 17;
R_390_PC32 : constant := 5;
R_390_PC32DBL : constant := 19;
R_390_PC64 : constant := 23;
R_390_PLT16DBL : constant := 18;
R_390_PLT32 : constant := 8;
R_390_PLT32DBL : constant := 20;
R_390_PLT64 : constant := 25;
R_390_PLTOFF16 : constant := 34;
R_390_PLTOFF32 : constant := 35;
R_390_PLTOFF64 : constant := 36;
R_390_RELATIVE : constant := 12;
R_390_TLS_DTPMOD : constant := 54;
R_390_TLS_DTPOFF : constant := 55;
R_390_TLS_GD32 : constant := 40;
R_390_TLS_GD64 : constant := 41;
R_390_TLS_GDCALL : constant := 38;
R_390_TLS_GOTIE12 : constant := 42;
R_390_TLS_GOTIE20 : constant := 60;
R_390_TLS_GOTIE32 : constant := 43;
R_390_TLS_GOTIE64 : constant := 44;
R_390_TLS_IE32 : constant := 47;
R_390_TLS_IE64 : constant := 48;
R_390_TLS_IEENT : constant := 49;
R_390_TLS_LDCALL : constant := 39;
R_390_TLS_LDM32 : constant := 45;
R_390_TLS_LDM64 : constant := 46;
R_390_TLS_LDO32 : constant := 52;
R_390_TLS_LDO64 : constant := 53;
R_390_TLS_LE32 : constant := 50;
R_390_TLS_LE64 : constant := 51;
R_390_TLS_LOAD : constant := 37;
R_390_TLS_TPOFF : constant := 56;
R_68K_16 : constant := 2;
R_68K_32 : constant := 1;
R_68K_8 : constant := 3;
R_68K_COPY : constant := 19;
R_68K_GLOB_DAT : constant := 20;
R_68K_GOT16 : constant := 8;
R_68K_GOT16O : constant := 11;
R_68K_GOT32 : constant := 7;
R_68K_GOT32O : constant := 10;
R_68K_GOT8 : constant := 9;
R_68K_GOT8O : constant := 12;
R_68K_JMP_SLOT : constant := 21;
R_68K_NONE : constant := 0;
R_68K_NUM : constant := 43;
R_68K_PC16 : constant := 5;
R_68K_PC32 : constant := 4;
R_68K_PC8 : constant := 6;
R_68K_PLT16 : constant := 14;
R_68K_PLT16O : constant := 17;
R_68K_PLT32 : constant := 13;
R_68K_PLT32O : constant := 16;
R_68K_PLT8 : constant := 15;
R_68K_PLT8O : constant := 18;
R_68K_RELATIVE : constant := 22;
R_68K_TLS_DTPMOD32 : constant := 40;
R_68K_TLS_DTPREL32 : constant := 41;
R_68K_TLS_GD16 : constant := 26;
R_68K_TLS_GD32 : constant := 25;
R_68K_TLS_GD8 : constant := 27;
R_68K_TLS_IE16 : constant := 35;
R_68K_TLS_IE32 : constant := 34;
R_68K_TLS_IE8 : constant := 36;
R_68K_TLS_LDM16 : constant := 29;
R_68K_TLS_LDM32 : constant := 28;
R_68K_TLS_LDM8 : constant := 30;
R_68K_TLS_LDO16 : constant := 32;
R_68K_TLS_LDO32 : constant := 31;
R_68K_TLS_LDO8 : constant := 33;
R_68K_TLS_LE16 : constant := 38;
R_68K_TLS_LE32 : constant := 37;
R_68K_TLS_LE8 : constant := 39;
R_68K_TLS_TPREL32 : constant := 42;
R_AARCH64_ABS16 : constant := 259;
R_AARCH64_ABS32 : constant := 258;
R_AARCH64_ABS64 : constant := 257;
R_AARCH64_ADD_ABS_LO12_NC : constant := 277;
R_AARCH64_ADR_GOT_PAGE : constant := 311;
R_AARCH64_ADR_PREL_LO21 : constant := 274;
R_AARCH64_ADR_PREL_PG_HI21 : constant := 275;
R_AARCH64_ADR_PREL_PG_HI21_NC : constant := 276;
R_AARCH64_CALL26 : constant := 283;
R_AARCH64_CONDBR19 : constant := 280;
R_AARCH64_COPY : constant := 1024;
R_AARCH64_GLOB_DAT : constant := 1025;
R_AARCH64_GOTREL32 : constant := 308;
R_AARCH64_GOTREL64 : constant := 307;
R_AARCH64_GOT_LD_PREL19 : constant := 309;
R_AARCH64_IRELATIVE : constant := 1032;
R_AARCH64_JUMP26 : constant := 282;
R_AARCH64_JUMP_SLOT : constant := 1026;
R_AARCH64_LD64_GOTOFF_LO15 : constant := 310;
R_AARCH64_LD64_GOTPAGE_LO15 : constant := 313;
R_AARCH64_LD64_GOT_LO12_NC : constant := 312;
R_AARCH64_LDST128_ABS_LO12_NC : constant := 299;
R_AARCH64_LDST16_ABS_LO12_NC : constant := 284;
R_AARCH64_LDST32_ABS_LO12_NC : constant := 285;
R_AARCH64_LDST64_ABS_LO12_NC : constant := 286;
R_AARCH64_LDST8_ABS_LO12_NC : constant := 278;
R_AARCH64_LD_PREL_LO19 : constant := 273;
R_AARCH64_MOVW_GOTOFF_G0 : constant := 300;
R_AARCH64_MOVW_GOTOFF_G0_NC : constant := 301;
R_AARCH64_MOVW_GOTOFF_G1 : constant := 302;
R_AARCH64_MOVW_GOTOFF_G1_NC : constant := 303;
R_AARCH64_MOVW_GOTOFF_G2 : constant := 304;
R_AARCH64_MOVW_GOTOFF_G2_NC : constant := 305;
R_AARCH64_MOVW_GOTOFF_G3 : constant := 306;
R_AARCH64_MOVW_PREL_G0 : constant := 287;
R_AARCH64_MOVW_PREL_G0_NC : constant := 288;
R_AARCH64_MOVW_PREL_G1 : constant := 289;
R_AARCH64_MOVW_PREL_G1_NC : constant := 290;
R_AARCH64_MOVW_PREL_G2 : constant := 291;
R_AARCH64_MOVW_PREL_G2_NC : constant := 292;
R_AARCH64_MOVW_PREL_G3 : constant := 293;
R_AARCH64_MOVW_SABS_G0 : constant := 270;
R_AARCH64_MOVW_SABS_G1 : constant := 271;
R_AARCH64_MOVW_SABS_G2 : constant := 272;
R_AARCH64_MOVW_UABS_G0 : constant := 263;
R_AARCH64_MOVW_UABS_G0_NC : constant := 264;
R_AARCH64_MOVW_UABS_G1 : constant := 265;
R_AARCH64_MOVW_UABS_G1_NC : constant := 266;
R_AARCH64_MOVW_UABS_G2 : constant := 267;
R_AARCH64_MOVW_UABS_G2_NC : constant := 268;
R_AARCH64_MOVW_UABS_G3 : constant := 269;
R_AARCH64_NONE : constant := 0;
R_AARCH64_P32_ABS32 : constant := 1;
R_AARCH64_P32_COPY : constant := 180;
R_AARCH64_P32_GLOB_DAT : constant := 181;
R_AARCH64_P32_IRELATIVE : constant := 188;
R_AARCH64_P32_JUMP_SLOT : constant := 182;
R_AARCH64_P32_RELATIVE : constant := 183;
R_AARCH64_P32_TLSDESC : constant := 187;
R_AARCH64_P32_TLS_DTPMOD : constant := 184;
R_AARCH64_P32_TLS_DTPREL : constant := 185;
R_AARCH64_P32_TLS_TPREL : constant := 186;
R_AARCH64_PREL16 : constant := 262;
R_AARCH64_PREL32 : constant := 261;
R_AARCH64_PREL64 : constant := 260;
R_AARCH64_RELATIVE : constant := 1027;
R_AARCH64_TLSDESC : constant := 1031;
R_AARCH64_TLSDESC_ADD : constant := 568;
R_AARCH64_TLSDESC_ADD_LO12 : constant := 564;
R_AARCH64_TLSDESC_ADR_PAGE21 : constant := 562;
R_AARCH64_TLSDESC_ADR_PREL21 : constant := 561;
R_AARCH64_TLSDESC_CALL : constant := 569;
R_AARCH64_TLSDESC_LD64_LO12 : constant := 563;
R_AARCH64_TLSDESC_LDR : constant := 567;
R_AARCH64_TLSDESC_LD_PREL19 : constant := 560;
R_AARCH64_TLSDESC_OFF_G0_NC : constant := 566;
R_AARCH64_TLSDESC_OFF_G1 : constant := 565;
R_AARCH64_TLSGD_ADD_LO12_NC : constant := 514;
R_AARCH64_TLSGD_ADR_PAGE21 : constant := 513;
R_AARCH64_TLSGD_ADR_PREL21 : constant := 512;
R_AARCH64_TLSGD_MOVW_G0_NC : constant := 516;
R_AARCH64_TLSGD_MOVW_G1 : constant := 515;
R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 : constant := 541;
R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC : constant := 542;
R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 : constant := 543;
R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC : constant := 540;
R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 : constant := 539;
R_AARCH64_TLSLD_ADD_DTPREL_HI12 : constant := 528;
R_AARCH64_TLSLD_ADD_DTPREL_LO12 : constant := 529;
R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC : constant := 530;
R_AARCH64_TLSLD_ADD_LO12_NC : constant := 519;
R_AARCH64_TLSLD_ADR_PAGE21 : constant := 518;
R_AARCH64_TLSLD_ADR_PREL21 : constant := 517;
R_AARCH64_TLSLD_LDST128_DTPREL_LO12 : constant := 572;
R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC : constant := 573;
R_AARCH64_TLSLD_LDST16_DTPREL_LO12 : constant := 533;
R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC : constant := 534;
R_AARCH64_TLSLD_LDST32_DTPREL_LO12 : constant := 535;
R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC : constant := 536;
R_AARCH64_TLSLD_LDST64_DTPREL_LO12 : constant := 537;
R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC : constant := 538;
R_AARCH64_TLSLD_LDST8_DTPREL_LO12 : constant := 531;
R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC : constant := 532;
R_AARCH64_TLSLD_LD_PREL19 : constant := 522;
R_AARCH64_TLSLD_MOVW_DTPREL_G0 : constant := 526;
R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC : constant := 527;
R_AARCH64_TLSLD_MOVW_DTPREL_G1 : constant := 524;
R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC : constant := 525;
R_AARCH64_TLSLD_MOVW_DTPREL_G2 : constant := 523;
R_AARCH64_TLSLD_MOVW_G0_NC : constant := 521;
R_AARCH64_TLSLD_MOVW_G1 : constant := 520;
R_AARCH64_TLSLE_ADD_TPREL_HI12 : constant := 549;
R_AARCH64_TLSLE_ADD_TPREL_LO12 : constant := 550;
R_AARCH64_TLSLE_ADD_TPREL_LO12_NC : constant := 551;
R_AARCH64_TLSLE_LDST128_TPREL_LO12 : constant := 570;
R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC : constant := 571;
R_AARCH64_TLSLE_LDST16_TPREL_LO12 : constant := 554;
R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC : constant := 555;
R_AARCH64_TLSLE_LDST32_TPREL_LO12 : constant := 556;
R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC : constant := 557;
R_AARCH64_TLSLE_LDST64_TPREL_LO12 : constant := 558;
R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC : constant := 559;
R_AARCH64_TLSLE_LDST8_TPREL_LO12 : constant := 552;
R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC : constant := 553;
R_AARCH64_TLSLE_MOVW_TPREL_G0 : constant := 547;
R_AARCH64_TLSLE_MOVW_TPREL_G0_NC : constant := 548;
R_AARCH64_TLSLE_MOVW_TPREL_G1 : constant := 545;
R_AARCH64_TLSLE_MOVW_TPREL_G1_NC : constant := 546;
R_AARCH64_TLSLE_MOVW_TPREL_G2 : constant := 544;
R_AARCH64_TLS_DTPMOD : constant := 1028;
R_AARCH64_TLS_DTPREL : constant := 1029;
R_AARCH64_TLS_TPREL : constant := 1030;
R_AARCH64_TSTBR14 : constant := 279;
R_ALPHA_BRADDR : constant := 7;
R_ALPHA_COPY : constant := 24;
R_ALPHA_DTPMOD64 : constant := 31;
R_ALPHA_DTPREL16 : constant := 36;
R_ALPHA_DTPREL64 : constant := 33;
R_ALPHA_DTPRELHI : constant := 34;
R_ALPHA_DTPRELLO : constant := 35;
R_ALPHA_GLOB_DAT : constant := 25;
R_ALPHA_GOTDTPREL : constant := 32;
R_ALPHA_GOTTPREL : constant := 37;
R_ALPHA_GPDISP : constant := 6;
R_ALPHA_GPREL16 : constant := 19;
R_ALPHA_GPREL32 : constant := 3;
R_ALPHA_GPRELHIGH : constant := 17;
R_ALPHA_GPRELLOW : constant := 18;
R_ALPHA_HINT : constant := 8;
R_ALPHA_JMP_SLOT : constant := 26;
R_ALPHA_LITERAL : constant := 4;
R_ALPHA_LITUSE : constant := 5;
R_ALPHA_NONE : constant := 0;
R_ALPHA_NUM : constant := 46;
R_ALPHA_REFLONG : constant := 1;
R_ALPHA_REFQUAD : constant := 2;
R_ALPHA_RELATIVE : constant := 27;
R_ALPHA_SREL16 : constant := 9;
R_ALPHA_SREL32 : constant := 10;
R_ALPHA_SREL64 : constant := 11;
R_ALPHA_TLSGD : constant := 29;
R_ALPHA_TLS_GD_HI : constant := 28;
R_ALPHA_TLS_LDM : constant := 30;
R_ALPHA_TPREL16 : constant := 41;
R_ALPHA_TPREL64 : constant := 38;
R_ALPHA_TPRELHI : constant := 39;
R_ALPHA_TPRELLO : constant := 40;
R_ARM_ABS12 : constant := 6;
R_ARM_ABS16 : constant := 5;
R_ARM_ABS32 : constant := 2;
R_ARM_ABS32_NOI : constant := 55;
R_ARM_ABS8 : constant := 8;
R_ARM_ALU_PCREL_15_8 : constant := 33;
R_ARM_ALU_PCREL_23_15 : constant := 34;
R_ARM_ALU_PCREL_7_0 : constant := 32;
R_ARM_ALU_PC_G0 : constant := 58;
R_ARM_ALU_PC_G0_NC : constant := 57;
R_ARM_ALU_PC_G1 : constant := 60;
R_ARM_ALU_PC_G1_NC : constant := 59;
R_ARM_ALU_PC_G2 : constant := 61;
R_ARM_ALU_SBREL_19_12 : constant := 36;
R_ARM_ALU_SBREL_27_20 : constant := 37;
R_ARM_ALU_SB_G0 : constant := 71;
R_ARM_ALU_SB_G0_NC : constant := 70;
R_ARM_ALU_SB_G1 : constant := 73;
R_ARM_ALU_SB_G1_NC : constant := 72;
R_ARM_ALU_SB_G2 : constant := 74;
R_ARM_AMP_VCALL9 : constant := 12;
R_ARM_BASE_ABS : constant := 31;
R_ARM_CALL : constant := 28;
R_ARM_COPY : constant := 20;
R_ARM_GLOB_DAT : constant := 21;
R_ARM_GNU_VTENTRY : constant := 100;
R_ARM_GNU_VTINHERIT : constant := 101;
R_ARM_GOT32 : constant := 26;
R_ARM_GOTOFF : constant := 24;
R_ARM_GOTOFF12 : constant := 98;
R_ARM_GOTPC : constant := 25;
R_ARM_GOTRELAX : constant := 99;
R_ARM_GOT_ABS : constant := 95;
R_ARM_GOT_BREL12 : constant := 97;
R_ARM_GOT_PREL : constant := 96;
R_ARM_IRELATIVE : constant := 160;
R_ARM_JUMP24 : constant := 29;
R_ARM_JUMP_SLOT : constant := 22;
R_ARM_LDC_PC_G0 : constant := 67;
R_ARM_LDC_PC_G1 : constant := 68;
R_ARM_LDC_PC_G2 : constant := 69;
R_ARM_LDC_SB_G0 : constant := 81;
R_ARM_LDC_SB_G1 : constant := 82;
R_ARM_LDC_SB_G2 : constant := 83;
R_ARM_LDRS_PC_G0 : constant := 64;
R_ARM_LDRS_PC_G1 : constant := 65;
R_ARM_LDRS_PC_G2 : constant := 66;
R_ARM_LDRS_SB_G0 : constant := 78;
R_ARM_LDRS_SB_G1 : constant := 79;
R_ARM_LDRS_SB_G2 : constant := 80;
R_ARM_LDR_PC_G1 : constant := 62;
R_ARM_LDR_PC_G2 : constant := 63;
R_ARM_LDR_SBREL_11_0 : constant := 35;
R_ARM_LDR_SB_G0 : constant := 75;
R_ARM_LDR_SB_G1 : constant := 76;
R_ARM_LDR_SB_G2 : constant := 77;
R_ARM_ME_TOO : constant := 128;
R_ARM_MOVT_ABS : constant := 44;
R_ARM_MOVT_BREL : constant := 85;
R_ARM_MOVT_PREL : constant := 46;
R_ARM_MOVW_ABS_NC : constant := 43;
R_ARM_MOVW_BREL : constant := 86;
R_ARM_MOVW_BREL_NC : constant := 84;
R_ARM_MOVW_PREL_NC : constant := 45;
R_ARM_NONE : constant := 0;
R_ARM_NUM : constant := 256;
R_ARM_PC13 : constant := 4;
R_ARM_PC24 : constant := 1;
R_ARM_PLT32 : constant := 27;
R_ARM_PLT32_ABS : constant := 94;
R_ARM_PREL31 : constant := 42;
R_ARM_RABS22 : constant := 253;
R_ARM_RBASE : constant := 255;
R_ARM_REL32 : constant := 3;
R_ARM_REL32_NOI : constant := 56;
R_ARM_RELATIVE : constant := 23;
R_ARM_RPC24 : constant := 254;
R_ARM_RREL32 : constant := 252;
R_ARM_RSBREL32 : constant := 250;
R_ARM_RXPC25 : constant := 249;
R_ARM_SBREL31 : constant := 39;
R_ARM_SBREL32 : constant := 9;
R_ARM_SWI24 : constant := 13;
R_ARM_TARGET1 : constant := 38;
R_ARM_TARGET2 : constant := 41;
R_ARM_THM_ABS5 : constant := 7;
R_ARM_THM_ALU_PREL_11_0 : constant := 53;
R_ARM_THM_GOT_BREL12 : constant := 131;
R_ARM_THM_JUMP19 : constant := 51;
R_ARM_THM_JUMP24 : constant := 30;
R_ARM_THM_JUMP6 : constant := 52;
R_ARM_THM_MOVT_ABS : constant := 48;
R_ARM_THM_MOVT_BREL : constant := 88;
R_ARM_THM_MOVT_PREL : constant := 50;
R_ARM_THM_MOVW_ABS_NC : constant := 47;
R_ARM_THM_MOVW_BREL : constant := 89;
R_ARM_THM_MOVW_BREL_NC : constant := 87;
R_ARM_THM_MOVW_PREL_NC : constant := 49;
R_ARM_THM_PC11 : constant := 102;
R_ARM_THM_PC12 : constant := 54;
R_ARM_THM_PC22 : constant := 10;
R_ARM_THM_PC8 : constant := 11;
R_ARM_THM_PC9 : constant := 103;
R_ARM_THM_RPC22 : constant := 251;
R_ARM_THM_SWI8 : constant := 14;
R_ARM_THM_TLS_CALL : constant := 93;
R_ARM_THM_TLS_DESCSEQ : constant := 129;
R_ARM_THM_TLS_DESCSEQ16 : constant := 129;
R_ARM_THM_TLS_DESCSEQ32 : constant := 130;
R_ARM_THM_XPC22 : constant := 16;
R_ARM_TLS_CALL : constant := 91;
R_ARM_TLS_DESC : constant := 13;
R_ARM_TLS_DESCSEQ : constant := 92;
R_ARM_TLS_DTPMOD32 : constant := 17;
R_ARM_TLS_DTPOFF32 : constant := 18;
R_ARM_TLS_GD32 : constant := 104;
R_ARM_TLS_GOTDESC : constant := 90;
R_ARM_TLS_IE12GP : constant := 111;
R_ARM_TLS_IE32 : constant := 107;
R_ARM_TLS_LDM32 : constant := 105;
R_ARM_TLS_LDO12 : constant := 109;
R_ARM_TLS_LDO32 : constant := 106;
R_ARM_TLS_LE12 : constant := 110;
R_ARM_TLS_LE32 : constant := 108;
R_ARM_TLS_TPOFF32 : constant := 19;
R_ARM_V4BX : constant := 40;
R_ARM_XPC25 : constant := 15;
R_BPF_MAP_FD : constant := 1;
R_BPF_NONE : constant := 0;
R_CRIS_16 : constant := 2;
R_CRIS_16_GOT : constant := 13;
R_CRIS_16_GOTPLT : constant := 15;
R_CRIS_16_PCREL : constant := 5;
R_CRIS_32 : constant := 3;
R_CRIS_32_GOT : constant := 14;
R_CRIS_32_GOTPLT : constant := 16;
R_CRIS_32_GOTREL : constant := 17;
R_CRIS_32_PCREL : constant := 6;
R_CRIS_32_PLT_GOTREL : constant := 18;
R_CRIS_32_PLT_PCREL : constant := 19;
R_CRIS_8 : constant := 1;
R_CRIS_8_PCREL : constant := 4;
R_CRIS_COPY : constant := 9;
R_CRIS_GLOB_DAT : constant := 10;
R_CRIS_GNU_VTENTRY : constant := 8;
R_CRIS_GNU_VTINHERIT : constant := 7;
R_CRIS_JUMP_SLOT : constant := 11;
R_CRIS_NONE : constant := 0;
R_CRIS_NUM : constant := 20;
R_CRIS_RELATIVE : constant := 12;
R_IA64_COPY : constant := 132;
R_IA64_DIR32LSB : constant := 37;
R_IA64_DIR32MSB : constant := 36;
R_IA64_DIR64LSB : constant := 39;
R_IA64_DIR64MSB : constant := 38;
R_IA64_DTPMOD64LSB : constant := 167;
R_IA64_DTPMOD64MSB : constant := 166;
R_IA64_DTPREL14 : constant := 177;
R_IA64_DTPREL22 : constant := 178;
R_IA64_DTPREL32LSB : constant := 181;
R_IA64_DTPREL32MSB : constant := 180;
R_IA64_DTPREL64I : constant := 179;
R_IA64_DTPREL64LSB : constant := 183;
R_IA64_DTPREL64MSB : constant := 182;
R_IA64_FPTR32LSB : constant := 69;
R_IA64_FPTR32MSB : constant := 68;
R_IA64_FPTR64I : constant := 67;
R_IA64_FPTR64LSB : constant := 71;
R_IA64_FPTR64MSB : constant := 70;
R_IA64_GPREL22 : constant := 42;
R_IA64_GPREL32LSB : constant := 45;
R_IA64_GPREL32MSB : constant := 44;
R_IA64_GPREL64I : constant := 43;
R_IA64_GPREL64LSB : constant := 47;
R_IA64_GPREL64MSB : constant := 46;
R_IA64_IMM14 : constant := 33;
R_IA64_IMM22 : constant := 34;
R_IA64_IMM64 : constant := 35;
R_IA64_IPLTLSB : constant := 129;
R_IA64_IPLTMSB : constant := 128;
R_IA64_LDXMOV : constant := 135;
R_IA64_LTOFF22 : constant := 50;
R_IA64_LTOFF22X : constant := 134;
R_IA64_LTOFF64I : constant := 51;
R_IA64_LTOFF_DTPMOD22 : constant := 170;
R_IA64_LTOFF_DTPREL22 : constant := 186;
R_IA64_LTOFF_FPTR22 : constant := 82;
R_IA64_LTOFF_FPTR32LSB : constant := 85;
R_IA64_LTOFF_FPTR32MSB : constant := 84;
R_IA64_LTOFF_FPTR64I : constant := 83;
R_IA64_LTOFF_FPTR64LSB : constant := 87;
R_IA64_LTOFF_FPTR64MSB : constant := 86;
R_IA64_LTOFF_TPREL22 : constant := 154;
R_IA64_LTV32LSB : constant := 117;
R_IA64_LTV32MSB : constant := 116;
R_IA64_LTV64LSB : constant := 119;
R_IA64_LTV64MSB : constant := 118;
R_IA64_NONE : constant := 0;
R_IA64_PCREL21B : constant := 73;
R_IA64_PCREL21BI : constant := 121;
R_IA64_PCREL21F : constant := 75;
R_IA64_PCREL21M : constant := 74;
R_IA64_PCREL22 : constant := 122;
R_IA64_PCREL32LSB : constant := 77;
R_IA64_PCREL32MSB : constant := 76;
R_IA64_PCREL60B : constant := 72;
R_IA64_PCREL64I : constant := 123;
R_IA64_PCREL64LSB : constant := 79;
R_IA64_PCREL64MSB : constant := 78;
R_IA64_PLTOFF22 : constant := 58;
R_IA64_PLTOFF64I : constant := 59;
R_IA64_PLTOFF64LSB : constant := 63;
R_IA64_PLTOFF64MSB : constant := 62;
R_IA64_REL32LSB : constant := 109;
R_IA64_REL32MSB : constant := 108;
R_IA64_REL64LSB : constant := 111;
R_IA64_REL64MSB : constant := 110;
R_IA64_SECREL32LSB : constant := 101;
R_IA64_SECREL32MSB : constant := 100;
R_IA64_SECREL64LSB : constant := 103;
R_IA64_SECREL64MSB : constant := 102;
R_IA64_SEGREL32LSB : constant := 93;
R_IA64_SEGREL32MSB : constant := 92;
R_IA64_SEGREL64LSB : constant := 95;
R_IA64_SEGREL64MSB : constant := 94;
R_IA64_SUB : constant := 133;
R_IA64_TPREL14 : constant := 145;
R_IA64_TPREL22 : constant := 146;
R_IA64_TPREL64I : constant := 147;
R_IA64_TPREL64LSB : constant := 151;
R_IA64_TPREL64MSB : constant := 150;
R_M32R_10_PCREL : constant := 4;
R_M32R_10_PCREL_RELA : constant := 36;
R_M32R_16 : constant := 1;
R_M32R_16_RELA : constant := 33;
R_M32R_18_PCREL : constant := 5;
R_M32R_18_PCREL_RELA : constant := 37;
R_M32R_24 : constant := 3;
R_M32R_24_RELA : constant := 35;
R_M32R_26_PCREL : constant := 6;
R_M32R_26_PCREL_RELA : constant := 38;
R_M32R_26_PLTREL : constant := 49;
R_M32R_32 : constant := 2;
R_M32R_32_RELA : constant := 34;
R_M32R_COPY : constant := 50;
R_M32R_GLOB_DAT : constant := 51;
R_M32R_GNU_VTENTRY : constant := 12;
R_M32R_GNU_VTINHERIT : constant := 11;
R_M32R_GOT16_HI_SLO : constant := 57;
R_M32R_GOT16_HI_ULO : constant := 56;
R_M32R_GOT16_LO : constant := 58;
R_M32R_GOT24 : constant := 48;
R_M32R_GOTOFF : constant := 54;
R_M32R_GOTOFF_HI_SLO : constant := 63;
R_M32R_GOTOFF_HI_ULO : constant := 62;
R_M32R_GOTOFF_LO : constant := 64;
R_M32R_GOTPC24 : constant := 55;
R_M32R_GOTPC_HI_SLO : constant := 60;
R_M32R_GOTPC_HI_ULO : constant := 59;
R_M32R_GOTPC_LO : constant := 61;
R_M32R_HI16_SLO : constant := 8;
R_M32R_HI16_SLO_RELA : constant := 40;
R_M32R_HI16_ULO : constant := 7;
R_M32R_HI16_ULO_RELA : constant := 39;
R_M32R_JMP_SLOT : constant := 52;
R_M32R_LO16 : constant := 9;
R_M32R_LO16_RELA : constant := 41;
R_M32R_NONE : constant := 0;
R_M32R_NUM : constant := 256;
R_M32R_REL32 : constant := 45;
R_M32R_RELATIVE : constant := 53;
R_M32R_RELA_GNU_VTENTRY : constant := 44;
R_M32R_RELA_GNU_VTINHERIT : constant := 43;
R_M32R_SDA16 : constant := 10;
R_M32R_SDA16_RELA : constant := 42;
R_METAG_ADDR32 : constant := 2;
R_METAG_COPY : constant := 43;
R_METAG_GETSETOFF : constant := 5;
R_METAG_GETSET_GOT : constant := 35;
R_METAG_GETSET_GOTOFF : constant := 34;
R_METAG_GLOB_DAT : constant := 46;
R_METAG_GNU_VTENTRY : constant := 31;
R_METAG_GNU_VTINHERIT : constant := 30;
R_METAG_GOTOFF : constant := 41;
R_METAG_HI16_GOTOFF : constant := 32;
R_METAG_HI16_GOTPC : constant := 36;
R_METAG_HI16_PLT : constant := 38;
R_METAG_HIADDR16 : constant := 0;
R_METAG_HIOG : constant := 13;
R_METAG_JMP_SLOT : constant := 44;
R_METAG_LO16_GOTOFF : constant := 33;
R_METAG_LO16_GOTPC : constant := 37;
R_METAG_LO16_PLT : constant := 39;
R_METAG_LOADDR16 : constant := 1;
R_METAG_LOOG : constant := 14;
R_METAG_NONE : constant := 3;
R_METAG_PLT : constant := 42;
R_METAG_REG16OP1 : constant := 9;
R_METAG_REG16OP2 : constant := 10;
R_METAG_REG16OP3 : constant := 11;
R_METAG_REG32OP1 : constant := 6;
R_METAG_REG32OP2 : constant := 7;
R_METAG_REG32OP3 : constant := 8;
R_METAG_REG32OP4 : constant := 12;
R_METAG_REL16 : constant := 16;
R_METAG_REL8 : constant := 15;
R_METAG_RELATIVE : constant := 45;
R_METAG_RELBRANCH : constant := 4;
R_METAG_RELBRANCH_PLT : constant := 40;
R_METAG_TLS_DTPMOD : constant := 57;
R_METAG_TLS_DTPOFF : constant := 58;
R_METAG_TLS_GD : constant := 47;
R_METAG_TLS_IE : constant := 52;
R_METAG_TLS_IENONPIC : constant := 53;
R_METAG_TLS_IENONPIC_HI16 : constant := 54;
R_METAG_TLS_IENONPIC_LO16 : constant := 55;
R_METAG_TLS_LDM : constant := 48;
R_METAG_TLS_LDO : constant := 51;
R_METAG_TLS_LDO_HI16 : constant := 49;
R_METAG_TLS_LDO_LO16 : constant := 50;
R_METAG_TLS_LE : constant := 59;
R_METAG_TLS_LE_HI16 : constant := 60;
R_METAG_TLS_LE_LO16 : constant := 61;
R_METAG_TLS_TPOFF : constant := 56;
R_MICROBLAZE_32 : constant := 1;
R_MICROBLAZE_32_LO : constant := 6;
R_MICROBLAZE_32_PCREL : constant := 2;
R_MICROBLAZE_32_PCREL_LO : constant := 4;
R_MICROBLAZE_32_SYM_OP_SYM : constant := 10;
R_MICROBLAZE_64 : constant := 5;
R_MICROBLAZE_64_NONE : constant := 9;
R_MICROBLAZE_64_PCREL : constant := 3;
R_MICROBLAZE_COPY : constant := 21;
R_MICROBLAZE_GLOB_DAT : constant := 18;
R_MICROBLAZE_GNU_VTENTRY : constant := 12;
R_MICROBLAZE_GNU_VTINHERIT : constant := 11;
R_MICROBLAZE_GOTOFF_32 : constant := 20;
R_MICROBLAZE_GOTOFF_64 : constant := 19;
R_MICROBLAZE_GOTPC_64 : constant := 13;
R_MICROBLAZE_GOT_64 : constant := 14;
R_MICROBLAZE_JUMP_SLOT : constant := 17;
R_MICROBLAZE_NONE : constant := 0;
R_MICROBLAZE_PLT_64 : constant := 15;
R_MICROBLAZE_REL : constant := 16;
R_MICROBLAZE_SRO32 : constant := 7;
R_MICROBLAZE_SRW32 : constant := 8;
R_MICROBLAZE_TLS : constant := 22;
R_MICROBLAZE_TLSDTPMOD32 : constant := 25;
R_MICROBLAZE_TLSDTPREL32 : constant := 26;
R_MICROBLAZE_TLSDTPREL64 : constant := 27;
R_MICROBLAZE_TLSGD : constant := 23;
R_MICROBLAZE_TLSGOTTPREL32 : constant := 28;
R_MICROBLAZE_TLSLD : constant := 24;
R_MICROBLAZE_TLSTPREL32 : constant := 29;
R_MIPS_16 : constant := 1;
R_MIPS_26 : constant := 4;
R_MIPS_32 : constant := 2;
R_MIPS_64 : constant := 18;
R_MIPS_ADD_IMMEDIATE : constant := 34;
R_MIPS_CALL16 : constant := 11;
R_MIPS_CALL_HI16 : constant := 30;
R_MIPS_CALL_LO16 : constant := 31;
R_MIPS_COPY : constant := 126;
R_MIPS_DELETE : constant := 27;
R_MIPS_GLOB_DAT : constant := 51;
R_MIPS_GOT16 : constant := 9;
R_MIPS_GOT_DISP : constant := 19;
R_MIPS_GOT_HI16 : constant := 22;
R_MIPS_GOT_LO16 : constant := 23;
R_MIPS_GOT_OFST : constant := 21;
R_MIPS_GOT_PAGE : constant := 20;
R_MIPS_GPREL16 : constant := 7;
R_MIPS_GPREL32 : constant := 12;
R_MIPS_HI16 : constant := 5;
R_MIPS_HIGHER : constant := 28;
R_MIPS_HIGHEST : constant := 29;
R_MIPS_INSERT_A : constant := 25;
R_MIPS_INSERT_B : constant := 26;
R_MIPS_JALR : constant := 37;
R_MIPS_JUMP_SLOT : constant := 127;
R_MIPS_LITERAL : constant := 8;
R_MIPS_LO16 : constant := 6;
R_MIPS_NONE : constant := 0;
R_MIPS_NUM : constant := 128;
R_MIPS_PC16 : constant := 10;
R_MIPS_PJUMP : constant := 35;
R_MIPS_REL16 : constant := 33;
R_MIPS_REL32 : constant := 3;
R_MIPS_RELGOT : constant := 36;
R_MIPS_SCN_DISP : constant := 32;
R_MIPS_SHIFT5 : constant := 16;
R_MIPS_SHIFT6 : constant := 17;
R_MIPS_SUB : constant := 24;
R_MIPS_TLS_DTPMOD32 : constant := 38;
R_MIPS_TLS_DTPMOD64 : constant := 40;
R_MIPS_TLS_DTPREL32 : constant := 39;
R_MIPS_TLS_DTPREL64 : constant := 41;
R_MIPS_TLS_DTPREL_HI16 : constant := 44;
R_MIPS_TLS_DTPREL_LO16 : constant := 45;
R_MIPS_TLS_GD : constant := 42;
R_MIPS_TLS_GOTTPREL : constant := 46;
R_MIPS_TLS_LDM : constant := 43;
R_MIPS_TLS_TPREL32 : constant := 47;
R_MIPS_TLS_TPREL64 : constant := 48;
R_MIPS_TLS_TPREL_HI16 : constant := 49;
R_MIPS_TLS_TPREL_LO16 : constant := 50;
R_MN10300_16 : constant := 2;
R_MN10300_24 : constant := 9;
R_MN10300_32 : constant := 1;
R_MN10300_8 : constant := 3;
R_MN10300_ALIGN : constant := 34;
R_MN10300_COPY : constant := 20;
R_MN10300_GLOB_DAT : constant := 21;
R_MN10300_GNU_VTENTRY : constant := 8;
R_MN10300_GNU_VTINHERIT : constant := 7;
R_MN10300_GOT16 : constant := 19;
R_MN10300_GOT24 : constant := 18;
R_MN10300_GOT32 : constant := 17;
R_MN10300_GOTOFF16 : constant := 14;
R_MN10300_GOTOFF24 : constant := 13;
R_MN10300_GOTOFF32 : constant := 12;
R_MN10300_GOTPC16 : constant := 11;
R_MN10300_GOTPC32 : constant := 10;
R_MN10300_JMP_SLOT : constant := 22;
R_MN10300_NONE : constant := 0;
R_MN10300_NUM : constant := 35;
R_MN10300_PCREL16 : constant := 5;
R_MN10300_PCREL32 : constant := 4;
R_MN10300_PCREL8 : constant := 6;
R_MN10300_PLT16 : constant := 16;
R_MN10300_PLT32 : constant := 15;
R_MN10300_RELATIVE : constant := 23;
R_MN10300_SYM_DIFF : constant := 33;
R_MN10300_TLS_DTPMOD : constant := 30;
R_MN10300_TLS_DTPOFF : constant := 31;
R_MN10300_TLS_GD : constant := 24;
R_MN10300_TLS_GOTIE : constant := 27;
R_MN10300_TLS_IE : constant := 28;
R_MN10300_TLS_LD : constant := 25;
R_MN10300_TLS_LDO : constant := 26;
R_MN10300_TLS_LE : constant := 29;
R_MN10300_TLS_TPOFF : constant := 32;
R_NIOS2_ALIGN : constant := 21;
R_NIOS2_BFD_RELOC_16 : constant := 13;
R_NIOS2_BFD_RELOC_32 : constant := 12;
R_NIOS2_BFD_RELOC_8 : constant := 14;
R_NIOS2_CACHE_OPX : constant := 6;
R_NIOS2_CALL16 : constant := 23;
R_NIOS2_CALL26 : constant := 4;
R_NIOS2_CALL26_NOAT : constant := 41;
R_NIOS2_CALLR : constant := 20;
R_NIOS2_CALL_HA : constant := 45;
R_NIOS2_CALL_LO : constant := 44;
R_NIOS2_CJMP : constant := 19;
R_NIOS2_COPY : constant := 36;
R_NIOS2_GLOB_DAT : constant := 37;
R_NIOS2_GNU_VTENTRY : constant := 17;
R_NIOS2_GNU_VTINHERIT : constant := 16;
R_NIOS2_GOT16 : constant := 22;
R_NIOS2_GOTOFF : constant := 40;
R_NIOS2_GOTOFF_HA : constant := 25;
R_NIOS2_GOTOFF_LO : constant := 24;
R_NIOS2_GOT_HA : constant := 43;
R_NIOS2_GOT_LO : constant := 42;
R_NIOS2_GPREL : constant := 15;
R_NIOS2_HI16 : constant := 9;
R_NIOS2_HIADJ16 : constant := 11;
R_NIOS2_IMM5 : constant := 5;
R_NIOS2_IMM6 : constant := 7;
R_NIOS2_IMM8 : constant := 8;
R_NIOS2_JUMP_SLOT : constant := 38;
R_NIOS2_LO16 : constant := 10;
R_NIOS2_NONE : constant := 0;
R_NIOS2_PCREL16 : constant := 3;
R_NIOS2_PCREL_HA : constant := 27;
R_NIOS2_PCREL_LO : constant := 26;
R_NIOS2_RELATIVE : constant := 39;
R_NIOS2_S16 : constant := 1;
R_NIOS2_TLS_DTPMOD : constant := 33;
R_NIOS2_TLS_DTPREL : constant := 34;
R_NIOS2_TLS_GD16 : constant := 28;
R_NIOS2_TLS_IE16 : constant := 31;
R_NIOS2_TLS_LDM16 : constant := 29;
R_NIOS2_TLS_LDO16 : constant := 30;
R_NIOS2_TLS_LE16 : constant := 32;
R_NIOS2_TLS_TPREL : constant := 35;
R_NIOS2_U16 : constant := 2;
R_NIOS2_UJMP : constant := 18;
R_PARISC_COPY : constant := 128;
R_PARISC_DIR14DR : constant := 84;
R_PARISC_DIR14R : constant := 6;
R_PARISC_DIR14WR : constant := 83;
R_PARISC_DIR16DF : constant := 87;
R_PARISC_DIR16F : constant := 85;
R_PARISC_DIR16WF : constant := 86;
R_PARISC_DIR17F : constant := 4;
R_PARISC_DIR17R : constant := 3;
R_PARISC_DIR21L : constant := 2;
R_PARISC_DIR32 : constant := 1;
R_PARISC_DIR64 : constant := 80;
R_PARISC_DPREL14R : constant := 22;
R_PARISC_DPREL21L : constant := 18;
R_PARISC_EPLT : constant := 130;
R_PARISC_FPTR64 : constant := 64;
R_PARISC_GNU_VTENTRY : constant := 232;
R_PARISC_GNU_VTINHERIT : constant := 233;
R_PARISC_GPREL14DR : constant := 92;
R_PARISC_GPREL14R : constant := 30;
R_PARISC_GPREL14WR : constant := 91;
R_PARISC_GPREL16DF : constant := 95;
R_PARISC_GPREL16F : constant := 93;
R_PARISC_GPREL16WF : constant := 94;
R_PARISC_GPREL21L : constant := 26;
R_PARISC_GPREL64 : constant := 88;
R_PARISC_HIRESERVE : constant := 255;
R_PARISC_IPLT : constant := 129;
R_PARISC_LORESERVE : constant := 128;
R_PARISC_LTOFF14DR : constant := 100;
R_PARISC_LTOFF14R : constant := 38;
R_PARISC_LTOFF14WR : constant := 99;
R_PARISC_LTOFF16DF : constant := 103;
R_PARISC_LTOFF16F : constant := 101;
R_PARISC_LTOFF16WF : constant := 102;
R_PARISC_LTOFF21L : constant := 34;
R_PARISC_LTOFF64 : constant := 96;
R_PARISC_LTOFF_FPTR14DR : constant := 124;
R_PARISC_LTOFF_FPTR14R : constant := 62;
R_PARISC_LTOFF_FPTR14WR : constant := 123;
R_PARISC_LTOFF_FPTR16DF : constant := 127;
R_PARISC_LTOFF_FPTR16F : constant := 125;
R_PARISC_LTOFF_FPTR16WF : constant := 126;
R_PARISC_LTOFF_FPTR21L : constant := 58;
R_PARISC_LTOFF_FPTR32 : constant := 57;
R_PARISC_LTOFF_FPTR64 : constant := 120;
R_PARISC_LTOFF_TP14DR : constant := 228;
R_PARISC_LTOFF_TP14F : constant := 167;
R_PARISC_LTOFF_TP14R : constant := 166;
R_PARISC_LTOFF_TP14WR : constant := 227;
R_PARISC_LTOFF_TP16DF : constant := 231;
R_PARISC_LTOFF_TP16F : constant := 229;
R_PARISC_LTOFF_TP16WF : constant := 230;
R_PARISC_LTOFF_TP21L : constant := 162;
R_PARISC_LTOFF_TP64 : constant := 224;
R_PARISC_NONE : constant := 0;
R_PARISC_PCREL14DR : constant := 76;
R_PARISC_PCREL14R : constant := 14;
R_PARISC_PCREL14WR : constant := 75;
R_PARISC_PCREL16DF : constant := 79;
R_PARISC_PCREL16F : constant := 77;
R_PARISC_PCREL16WF : constant := 78;
R_PARISC_PCREL17F : constant := 12;
R_PARISC_PCREL17R : constant := 11;
R_PARISC_PCREL21L : constant := 10;
R_PARISC_PCREL22F : constant := 74;
R_PARISC_PCREL32 : constant := 9;
R_PARISC_PCREL64 : constant := 72;
R_PARISC_PLABEL14R : constant := 70;
R_PARISC_PLABEL21L : constant := 66;
R_PARISC_PLABEL32 : constant := 65;
R_PARISC_PLTOFF14DR : constant := 116;
R_PARISC_PLTOFF14R : constant := 54;
R_PARISC_PLTOFF14WR : constant := 115;
R_PARISC_PLTOFF16DF : constant := 119;
R_PARISC_PLTOFF16F : constant := 117;
R_PARISC_PLTOFF16WF : constant := 118;
R_PARISC_PLTOFF21L : constant := 50;
R_PARISC_SECREL32 : constant := 41;
R_PARISC_SECREL64 : constant := 104;
R_PARISC_SEGBASE : constant := 48;
R_PARISC_SEGREL32 : constant := 49;
R_PARISC_SEGREL64 : constant := 112;
R_PARISC_TLS_DTPMOD32 : constant := 242;
R_PARISC_TLS_DTPMOD64 : constant := 243;
R_PARISC_TLS_DTPOFF32 : constant := 244;
R_PARISC_TLS_DTPOFF64 : constant := 245;
R_PARISC_TLS_GD14R : constant := 235;
R_PARISC_TLS_GD21L : constant := 234;
R_PARISC_TLS_GDCALL : constant := 236;
R_PARISC_TLS_IE14R : constant := 166;
R_PARISC_TLS_IE21L : constant := 162;
R_PARISC_TLS_LDM14R : constant := 238;
R_PARISC_TLS_LDM21L : constant := 237;
R_PARISC_TLS_LDMCALL : constant := 239;
R_PARISC_TLS_LDO14R : constant := 241;
R_PARISC_TLS_LDO21L : constant := 240;
R_PARISC_TLS_LE14R : constant := 158;
R_PARISC_TLS_LE21L : constant := 154;
R_PARISC_TLS_TPREL32 : constant := 153;
R_PARISC_TLS_TPREL64 : constant := 216;
R_PARISC_TPREL14DR : constant := 220;
R_PARISC_TPREL14R : constant := 158;
R_PARISC_TPREL14WR : constant := 219;
R_PARISC_TPREL16DF : constant := 223;
R_PARISC_TPREL16F : constant := 221;
R_PARISC_TPREL16WF : constant := 222;
R_PARISC_TPREL21L : constant := 154;
R_PARISC_TPREL32 : constant := 153;
R_PARISC_TPREL64 : constant := 216;
R_PPC64_ADDR14 : constant := 7;
R_PPC64_ADDR14_BRNTAKEN : constant := 9;
R_PPC64_ADDR14_BRTAKEN : constant := 8;
R_PPC64_ADDR16 : constant := 3;
R_PPC64_ADDR16_DS : constant := 56;
R_PPC64_ADDR16_HA : constant := 6;
R_PPC64_ADDR16_HI : constant := 5;
R_PPC64_ADDR16_HIGH : constant := 110;
R_PPC64_ADDR16_HIGHA : constant := 111;
R_PPC64_ADDR16_HIGHER : constant := 39;
R_PPC64_ADDR16_HIGHERA : constant := 40;
R_PPC64_ADDR16_HIGHEST : constant := 41;
R_PPC64_ADDR16_HIGHESTA : constant := 42;
R_PPC64_ADDR16_LO : constant := 4;
R_PPC64_ADDR16_LO_DS : constant := 57;
R_PPC64_ADDR24 : constant := 2;
R_PPC64_ADDR30 : constant := 37;
R_PPC64_ADDR32 : constant := 1;
R_PPC64_ADDR64 : constant := 38;
R_PPC64_COPY : constant := 19;
R_PPC64_DTPMOD64 : constant := 68;
R_PPC64_DTPREL16 : constant := 74;
R_PPC64_DTPREL16_DS : constant := 101;
R_PPC64_DTPREL16_HA : constant := 77;
R_PPC64_DTPREL16_HI : constant := 76;
R_PPC64_DTPREL16_HIGH : constant := 114;
R_PPC64_DTPREL16_HIGHA : constant := 115;
R_PPC64_DTPREL16_HIGHER : constant := 103;
R_PPC64_DTPREL16_HIGHERA : constant := 104;
R_PPC64_DTPREL16_HIGHEST : constant := 105;
R_PPC64_DTPREL16_HIGHESTA : constant := 106;
R_PPC64_DTPREL16_LO : constant := 75;
R_PPC64_DTPREL16_LO_DS : constant := 102;
R_PPC64_DTPREL64 : constant := 78;
R_PPC64_GLOB_DAT : constant := 20;
R_PPC64_GOT16 : constant := 14;
R_PPC64_GOT16_DS : constant := 58;
R_PPC64_GOT16_HA : constant := 17;
R_PPC64_GOT16_HI : constant := 16;
R_PPC64_GOT16_LO : constant := 15;
R_PPC64_GOT16_LO_DS : constant := 59;
R_PPC64_GOT_DTPREL16_DS : constant := 91;
R_PPC64_GOT_DTPREL16_HA : constant := 94;
R_PPC64_GOT_DTPREL16_HI : constant := 93;
R_PPC64_GOT_DTPREL16_LO_DS : constant := 92;
R_PPC64_GOT_TLSGD16 : constant := 79;
R_PPC64_GOT_TLSGD16_HA : constant := 82;
R_PPC64_GOT_TLSGD16_HI : constant := 81;
R_PPC64_GOT_TLSGD16_LO : constant := 80;
R_PPC64_GOT_TLSLD16 : constant := 83;
R_PPC64_GOT_TLSLD16_HA : constant := 86;
R_PPC64_GOT_TLSLD16_HI : constant := 85;
R_PPC64_GOT_TLSLD16_LO : constant := 84;
R_PPC64_GOT_TPREL16_DS : constant := 87;
R_PPC64_GOT_TPREL16_HA : constant := 90;
R_PPC64_GOT_TPREL16_HI : constant := 89;
R_PPC64_GOT_TPREL16_LO_DS : constant := 88;
R_PPC64_IRELATIVE : constant := 248;
R_PPC64_JMP_IREL : constant := 247;
R_PPC64_JMP_SLOT : constant := 21;
R_PPC64_NONE : constant := 0;
R_PPC64_PLT16_HA : constant := 31;
R_PPC64_PLT16_HI : constant := 30;
R_PPC64_PLT16_LO : constant := 29;
R_PPC64_PLT16_LO_DS : constant := 60;
R_PPC64_PLT32 : constant := 27;
R_PPC64_PLT64 : constant := 45;
R_PPC64_PLTGOT16 : constant := 52;
R_PPC64_PLTGOT16_DS : constant := 65;
R_PPC64_PLTGOT16_HA : constant := 55;
R_PPC64_PLTGOT16_HI : constant := 54;
R_PPC64_PLTGOT16_LO : constant := 53;
R_PPC64_PLTGOT16_LO_DS : constant := 66;
R_PPC64_PLTREL32 : constant := 28;
R_PPC64_PLTREL64 : constant := 46;
R_PPC64_REL14 : constant := 11;
R_PPC64_REL14_BRNTAKEN : constant := 13;
R_PPC64_REL14_BRTAKEN : constant := 12;
R_PPC64_REL16 : constant := 249;
R_PPC64_REL16_HA : constant := 252;
R_PPC64_REL16_HI : constant := 251;
R_PPC64_REL16_LO : constant := 250;
R_PPC64_REL24 : constant := 10;
R_PPC64_REL32 : constant := 26;
R_PPC64_REL64 : constant := 44;
R_PPC64_RELATIVE : constant := 22;
R_PPC64_SECTOFF : constant := 33;
R_PPC64_SECTOFF_DS : constant := 61;
R_PPC64_SECTOFF_HA : constant := 36;
R_PPC64_SECTOFF_HI : constant := 35;
R_PPC64_SECTOFF_LO : constant := 34;
R_PPC64_SECTOFF_LO_DS : constant := 62;
R_PPC64_TLS : constant := 67;
R_PPC64_TLSGD : constant := 107;
R_PPC64_TLSLD : constant := 108;
R_PPC64_TOC : constant := 51;
R_PPC64_TOC16 : constant := 47;
R_PPC64_TOC16_DS : constant := 63;
R_PPC64_TOC16_HA : constant := 50;
R_PPC64_TOC16_HI : constant := 49;
R_PPC64_TOC16_LO : constant := 48;
R_PPC64_TOC16_LO_DS : constant := 64;
R_PPC64_TOCSAVE : constant := 109;
R_PPC64_TPREL16 : constant := 69;
R_PPC64_TPREL16_DS : constant := 95;
R_PPC64_TPREL16_HA : constant := 72;
R_PPC64_TPREL16_HI : constant := 71;
R_PPC64_TPREL16_HIGH : constant := 112;
R_PPC64_TPREL16_HIGHA : constant := 113;
R_PPC64_TPREL16_HIGHER : constant := 97;
R_PPC64_TPREL16_HIGHERA : constant := 98;
R_PPC64_TPREL16_HIGHEST : constant := 99;
R_PPC64_TPREL16_HIGHESTA : constant := 100;
R_PPC64_TPREL16_LO : constant := 70;
R_PPC64_TPREL16_LO_DS : constant := 96;
R_PPC64_TPREL64 : constant := 73;
R_PPC64_UADDR16 : constant := 25;
R_PPC64_UADDR32 : constant := 24;
R_PPC64_UADDR64 : constant := 43;
R_PPC_ADDR14 : constant := 7;
R_PPC_ADDR14_BRNTAKEN : constant := 9;
R_PPC_ADDR14_BRTAKEN : constant := 8;
R_PPC_ADDR16 : constant := 3;
R_PPC_ADDR16_HA : constant := 6;
R_PPC_ADDR16_HI : constant := 5;
R_PPC_ADDR16_LO : constant := 4;
R_PPC_ADDR24 : constant := 2;
R_PPC_ADDR32 : constant := 1;
R_PPC_COPY : constant := 19;
R_PPC_DIAB_RELSDA_HA : constant := 185;
R_PPC_DIAB_RELSDA_HI : constant := 184;
R_PPC_DIAB_RELSDA_LO : constant := 183;
R_PPC_DIAB_SDA21_HA : constant := 182;
R_PPC_DIAB_SDA21_HI : constant := 181;
R_PPC_DIAB_SDA21_LO : constant := 180;
R_PPC_DTPMOD32 : constant := 68;
R_PPC_DTPREL16 : constant := 74;
R_PPC_DTPREL16_HA : constant := 77;
R_PPC_DTPREL16_HI : constant := 76;
R_PPC_DTPREL16_LO : constant := 75;
R_PPC_DTPREL32 : constant := 78;
R_PPC_EMB_BIT_FLD : constant := 115;
R_PPC_EMB_MRKREF : constant := 110;
R_PPC_EMB_NADDR16 : constant := 102;
R_PPC_EMB_NADDR16_HA : constant := 105;
R_PPC_EMB_NADDR16_HI : constant := 104;
R_PPC_EMB_NADDR16_LO : constant := 103;
R_PPC_EMB_NADDR32 : constant := 101;
R_PPC_EMB_RELSDA : constant := 116;
R_PPC_EMB_RELSEC16 : constant := 111;
R_PPC_EMB_RELST_HA : constant := 114;
R_PPC_EMB_RELST_HI : constant := 113;
R_PPC_EMB_RELST_LO : constant := 112;
R_PPC_EMB_SDA21 : constant := 109;
R_PPC_EMB_SDA2I16 : constant := 107;
R_PPC_EMB_SDA2REL : constant := 108;
R_PPC_EMB_SDAI16 : constant := 106;
R_PPC_GLOB_DAT : constant := 20;
R_PPC_GOT16 : constant := 14;
R_PPC_GOT16_HA : constant := 17;
R_PPC_GOT16_HI : constant := 16;
R_PPC_GOT16_LO : constant := 15;
R_PPC_GOT_DTPREL16 : constant := 91;
R_PPC_GOT_DTPREL16_HA : constant := 94;
R_PPC_GOT_DTPREL16_HI : constant := 93;
R_PPC_GOT_DTPREL16_LO : constant := 92;
R_PPC_GOT_TLSGD16 : constant := 79;
R_PPC_GOT_TLSGD16_HA : constant := 82;
R_PPC_GOT_TLSGD16_HI : constant := 81;
R_PPC_GOT_TLSGD16_LO : constant := 80;
R_PPC_GOT_TLSLD16 : constant := 83;
R_PPC_GOT_TLSLD16_HA : constant := 86;
R_PPC_GOT_TLSLD16_HI : constant := 85;
R_PPC_GOT_TLSLD16_LO : constant := 84;
R_PPC_GOT_TPREL16 : constant := 87;
R_PPC_GOT_TPREL16_HA : constant := 90;
R_PPC_GOT_TPREL16_HI : constant := 89;
R_PPC_GOT_TPREL16_LO : constant := 88;
R_PPC_IRELATIVE : constant := 248;
R_PPC_JMP_SLOT : constant := 21;
R_PPC_LOCAL24PC : constant := 23;
R_PPC_NONE : constant := 0;
R_PPC_PLT16_HA : constant := 31;
R_PPC_PLT16_HI : constant := 30;
R_PPC_PLT16_LO : constant := 29;
R_PPC_PLT32 : constant := 27;
R_PPC_PLTREL24 : constant := 18;
R_PPC_PLTREL32 : constant := 28;
R_PPC_REL14 : constant := 11;
R_PPC_REL14_BRNTAKEN : constant := 13;
R_PPC_REL14_BRTAKEN : constant := 12;
R_PPC_REL16 : constant := 249;
R_PPC_REL16_HA : constant := 252;
R_PPC_REL16_HI : constant := 251;
R_PPC_REL16_LO : constant := 250;
R_PPC_REL24 : constant := 10;
R_PPC_REL32 : constant := 26;
R_PPC_RELATIVE : constant := 22;
R_PPC_SDAREL16 : constant := 32;
R_PPC_SECTOFF : constant := 33;
R_PPC_SECTOFF_HA : constant := 36;
R_PPC_SECTOFF_HI : constant := 35;
R_PPC_SECTOFF_LO : constant := 34;
R_PPC_TLS : constant := 67;
R_PPC_TLSGD : constant := 95;
R_PPC_TLSLD : constant := 96;
R_PPC_TOC16 : constant := 255;
R_PPC_TPREL16 : constant := 69;
R_PPC_TPREL16_HA : constant := 72;
R_PPC_TPREL16_HI : constant := 71;
R_PPC_TPREL16_LO : constant := 70;
R_PPC_TPREL32 : constant := 73;
R_PPC_UADDR16 : constant := 25;
R_PPC_UADDR32 : constant := 24;
R_SH_ALIGN : constant := 29;
R_SH_CODE : constant := 30;
R_SH_COPY : constant := 162;
R_SH_COUNT : constant := 28;
R_SH_DATA : constant := 31;
R_SH_DIR32 : constant := 1;
R_SH_DIR8BP : constant := 7;
R_SH_DIR8L : constant := 9;
R_SH_DIR8W : constant := 8;
R_SH_DIR8WPL : constant := 5;
R_SH_DIR8WPN : constant := 3;
R_SH_DIR8WPZ : constant := 6;
R_SH_GLOB_DAT : constant := 163;
R_SH_GNU_VTENTRY : constant := 35;
R_SH_GNU_VTINHERIT : constant := 34;
R_SH_GOT32 : constant := 160;
R_SH_GOTOFF : constant := 166;
R_SH_GOTPC : constant := 167;
R_SH_IND12W : constant := 4;
R_SH_JMP_SLOT : constant := 164;
R_SH_LABEL : constant := 32;
R_SH_NONE : constant := 0;
R_SH_NUM : constant := 256;
R_SH_PLT32 : constant := 161;
R_SH_REL32 : constant := 2;
R_SH_RELATIVE : constant := 165;
R_SH_SWITCH16 : constant := 25;
R_SH_SWITCH32 : constant := 26;
R_SH_SWITCH8 : constant := 33;
R_SH_TLS_DTPMOD32 : constant := 149;
R_SH_TLS_DTPOFF32 : constant := 150;
R_SH_TLS_GD_32 : constant := 144;
R_SH_TLS_IE_32 : constant := 147;
R_SH_TLS_LDO_32 : constant := 146;
R_SH_TLS_LD_32 : constant := 145;
R_SH_TLS_LE_32 : constant := 148;
R_SH_TLS_TPOFF32 : constant := 151;
R_SH_USES : constant := 27;
R_SPARC_10 : constant := 30;
R_SPARC_11 : constant := 31;
R_SPARC_13 : constant := 11;
R_SPARC_16 : constant := 2;
R_SPARC_22 : constant := 10;
R_SPARC_32 : constant := 3;
R_SPARC_5 : constant := 44;
R_SPARC_6 : constant := 45;
R_SPARC_64 : constant := 32;
R_SPARC_7 : constant := 43;
R_SPARC_8 : constant := 1;
R_SPARC_COPY : constant := 19;
R_SPARC_DISP16 : constant := 5;
R_SPARC_DISP32 : constant := 6;
R_SPARC_DISP64 : constant := 46;
R_SPARC_DISP8 : constant := 4;
R_SPARC_GLOB_DAT : constant := 20;
R_SPARC_GLOB_JMP : constant := 42;
R_SPARC_GNU_VTENTRY : constant := 251;
R_SPARC_GNU_VTINHERIT : constant := 250;
R_SPARC_GOT10 : constant := 13;
R_SPARC_GOT13 : constant := 14;
R_SPARC_GOT22 : constant := 15;
R_SPARC_GOTDATA_HIX22 : constant := 80;
R_SPARC_GOTDATA_LOX10 : constant := 81;
R_SPARC_GOTDATA_OP : constant := 84;
R_SPARC_GOTDATA_OP_HIX22 : constant := 82;
R_SPARC_GOTDATA_OP_LOX10 : constant := 83;
R_SPARC_H34 : constant := 85;
R_SPARC_H44 : constant := 50;
R_SPARC_HH22 : constant := 34;
R_SPARC_HI22 : constant := 9;
R_SPARC_HIPLT22 : constant := 25;
R_SPARC_HIX22 : constant := 48;
R_SPARC_HM10 : constant := 35;
R_SPARC_IRELATIVE : constant := 249;
R_SPARC_JMP_IREL : constant := 248;
R_SPARC_JMP_SLOT : constant := 21;
R_SPARC_L44 : constant := 52;
R_SPARC_LM22 : constant := 36;
R_SPARC_LO10 : constant := 12;
R_SPARC_LOPLT10 : constant := 26;
R_SPARC_LOX10 : constant := 49;
R_SPARC_M44 : constant := 51;
R_SPARC_NONE : constant := 0;
R_SPARC_NUM : constant := 253;
R_SPARC_OLO10 : constant := 33;
R_SPARC_PC10 : constant := 16;
R_SPARC_PC22 : constant := 17;
R_SPARC_PCPLT10 : constant := 29;
R_SPARC_PCPLT22 : constant := 28;
R_SPARC_PCPLT32 : constant := 27;
R_SPARC_PC_HH22 : constant := 37;
R_SPARC_PC_HM10 : constant := 38;
R_SPARC_PC_LM22 : constant := 39;
R_SPARC_PLT32 : constant := 24;
R_SPARC_PLT64 : constant := 47;
R_SPARC_REGISTER : constant := 53;
R_SPARC_RELATIVE : constant := 22;
R_SPARC_REV32 : constant := 252;
R_SPARC_SIZE32 : constant := 86;
R_SPARC_SIZE64 : constant := 87;
R_SPARC_TLS_DTPMOD32 : constant := 74;
R_SPARC_TLS_DTPMOD64 : constant := 75;
R_SPARC_TLS_DTPOFF32 : constant := 76;
R_SPARC_TLS_DTPOFF64 : constant := 77;
R_SPARC_TLS_GD_ADD : constant := 58;
R_SPARC_TLS_GD_CALL : constant := 59;
R_SPARC_TLS_GD_HI22 : constant := 56;
R_SPARC_TLS_GD_LO10 : constant := 57;
R_SPARC_TLS_IE_ADD : constant := 71;
R_SPARC_TLS_IE_HI22 : constant := 67;
R_SPARC_TLS_IE_LD : constant := 69;
R_SPARC_TLS_IE_LDX : constant := 70;
R_SPARC_TLS_IE_LO10 : constant := 68;
R_SPARC_TLS_LDM_ADD : constant := 62;
R_SPARC_TLS_LDM_CALL : constant := 63;
R_SPARC_TLS_LDM_HI22 : constant := 60;
R_SPARC_TLS_LDM_LO10 : constant := 61;
R_SPARC_TLS_LDO_ADD : constant := 66;
R_SPARC_TLS_LDO_HIX22 : constant := 64;
R_SPARC_TLS_LDO_LOX10 : constant := 65;
R_SPARC_TLS_LE_HIX22 : constant := 72;
R_SPARC_TLS_LE_LOX10 : constant := 73;
R_SPARC_TLS_TPOFF32 : constant := 78;
R_SPARC_TLS_TPOFF64 : constant := 79;
R_SPARC_UA16 : constant := 55;
R_SPARC_UA32 : constant := 23;
R_SPARC_UA64 : constant := 54;
R_SPARC_WDISP10 : constant := 88;
R_SPARC_WDISP16 : constant := 40;
R_SPARC_WDISP19 : constant := 41;
R_SPARC_WDISP22 : constant := 8;
R_SPARC_WDISP30 : constant := 7;
R_SPARC_WPLT30 : constant := 18;
R_TILEGX_16 : constant := 3;
R_TILEGX_16_PCREL : constant := 7;
R_TILEGX_32 : constant := 2;
R_TILEGX_32_PCREL : constant := 6;
R_TILEGX_64 : constant := 1;
R_TILEGX_64_PCREL : constant := 5;
R_TILEGX_8 : constant := 4;
R_TILEGX_8_PCREL : constant := 8;
R_TILEGX_BROFF_X1 : constant := 20;
R_TILEGX_COPY : constant := 16;
R_TILEGX_DEST_IMM8_X1 : constant := 27;
R_TILEGX_GLOB_DAT : constant := 17;
R_TILEGX_GNU_VTENTRY : constant := 129;
R_TILEGX_GNU_VTINHERIT : constant := 128;
R_TILEGX_HW0 : constant := 9;
R_TILEGX_HW0_LAST : constant := 13;
R_TILEGX_HW1 : constant := 10;
R_TILEGX_HW1_LAST : constant := 14;
R_TILEGX_HW2 : constant := 11;
R_TILEGX_HW2_LAST : constant := 15;
R_TILEGX_HW3 : constant := 12;
R_TILEGX_IMM16_X0_HW0 : constant := 36;
R_TILEGX_IMM16_X0_HW0_GOT : constant := 64;
R_TILEGX_IMM16_X0_HW0_LAST : constant := 44;
R_TILEGX_IMM16_X0_HW0_LAST_GOT : constant := 72;
R_TILEGX_IMM16_X0_HW0_LAST_PCREL : constant := 58;
R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL : constant := 94;
R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD : constant := 86;
R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE : constant := 100;
R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE : constant := 82;
R_TILEGX_IMM16_X0_HW0_PCREL : constant := 50;
R_TILEGX_IMM16_X0_HW0_PLT_PCREL : constant := 66;
R_TILEGX_IMM16_X0_HW0_TLS_GD : constant := 78;
R_TILEGX_IMM16_X0_HW0_TLS_IE : constant := 92;
R_TILEGX_IMM16_X0_HW0_TLS_LE : constant := 80;
R_TILEGX_IMM16_X0_HW1 : constant := 38;
R_TILEGX_IMM16_X0_HW1_LAST : constant := 46;
R_TILEGX_IMM16_X0_HW1_LAST_GOT : constant := 74;
R_TILEGX_IMM16_X0_HW1_LAST_PCREL : constant := 60;
R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL : constant := 96;
R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD : constant := 88;
R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE : constant := 102;
R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE : constant := 84;
R_TILEGX_IMM16_X0_HW1_PCREL : constant := 52;
R_TILEGX_IMM16_X0_HW1_PLT_PCREL : constant := 68;
R_TILEGX_IMM16_X0_HW2 : constant := 40;
R_TILEGX_IMM16_X0_HW2_LAST : constant := 48;
R_TILEGX_IMM16_X0_HW2_LAST_PCREL : constant := 62;
R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL : constant := 98;
R_TILEGX_IMM16_X0_HW2_PCREL : constant := 54;
R_TILEGX_IMM16_X0_HW2_PLT_PCREL : constant := 70;
R_TILEGX_IMM16_X0_HW3 : constant := 42;
R_TILEGX_IMM16_X0_HW3_PCREL : constant := 56;
R_TILEGX_IMM16_X0_HW3_PLT_PCREL : constant := 76;
R_TILEGX_IMM16_X1_HW0 : constant := 37;
R_TILEGX_IMM16_X1_HW0_GOT : constant := 65;
R_TILEGX_IMM16_X1_HW0_LAST : constant := 45;
R_TILEGX_IMM16_X1_HW0_LAST_GOT : constant := 73;
R_TILEGX_IMM16_X1_HW0_LAST_PCREL : constant := 59;
R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL : constant := 95;
R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD : constant := 87;
R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE : constant := 101;
R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE : constant := 83;
R_TILEGX_IMM16_X1_HW0_PCREL : constant := 51;
R_TILEGX_IMM16_X1_HW0_PLT_PCREL : constant := 67;
R_TILEGX_IMM16_X1_HW0_TLS_GD : constant := 79;
R_TILEGX_IMM16_X1_HW0_TLS_IE : constant := 93;
R_TILEGX_IMM16_X1_HW0_TLS_LE : constant := 81;
R_TILEGX_IMM16_X1_HW1 : constant := 39;
R_TILEGX_IMM16_X1_HW1_LAST : constant := 47;
R_TILEGX_IMM16_X1_HW1_LAST_GOT : constant := 75;
R_TILEGX_IMM16_X1_HW1_LAST_PCREL : constant := 61;
R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL : constant := 97;
R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD : constant := 89;
R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE : constant := 103;
R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE : constant := 85;
R_TILEGX_IMM16_X1_HW1_PCREL : constant := 53;
R_TILEGX_IMM16_X1_HW1_PLT_PCREL : constant := 69;
R_TILEGX_IMM16_X1_HW2 : constant := 41;
R_TILEGX_IMM16_X1_HW2_LAST : constant := 49;
R_TILEGX_IMM16_X1_HW2_LAST_PCREL : constant := 63;
R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL : constant := 99;
R_TILEGX_IMM16_X1_HW2_PCREL : constant := 55;
R_TILEGX_IMM16_X1_HW2_PLT_PCREL : constant := 71;
R_TILEGX_IMM16_X1_HW3 : constant := 43;
R_TILEGX_IMM16_X1_HW3_PCREL : constant := 57;
R_TILEGX_IMM16_X1_HW3_PLT_PCREL : constant := 77;
R_TILEGX_IMM8_X0 : constant := 23;
R_TILEGX_IMM8_X0_TLS_ADD : constant := 118;
R_TILEGX_IMM8_X0_TLS_GD_ADD : constant := 113;
R_TILEGX_IMM8_X1 : constant := 25;
R_TILEGX_IMM8_X1_TLS_ADD : constant := 119;
R_TILEGX_IMM8_X1_TLS_GD_ADD : constant := 114;
R_TILEGX_IMM8_Y0 : constant := 24;
R_TILEGX_IMM8_Y0_TLS_ADD : constant := 120;
R_TILEGX_IMM8_Y0_TLS_GD_ADD : constant := 115;
R_TILEGX_IMM8_Y1 : constant := 26;
R_TILEGX_IMM8_Y1_TLS_ADD : constant := 121;
R_TILEGX_IMM8_Y1_TLS_GD_ADD : constant := 116;
R_TILEGX_JMP_SLOT : constant := 18;
R_TILEGX_JUMPOFF_X1 : constant := 21;
R_TILEGX_JUMPOFF_X1_PLT : constant := 22;
R_TILEGX_MF_IMM14_X1 : constant := 29;
R_TILEGX_MMEND_X0 : constant := 31;
R_TILEGX_MMSTART_X0 : constant := 30;
R_TILEGX_MT_IMM14_X1 : constant := 28;
R_TILEGX_NONE : constant := 0;
R_TILEGX_NUM : constant := 130;
R_TILEGX_RELATIVE : constant := 19;
R_TILEGX_SHAMT_X0 : constant := 32;
R_TILEGX_SHAMT_X1 : constant := 33;
R_TILEGX_SHAMT_Y0 : constant := 34;
R_TILEGX_SHAMT_Y1 : constant := 35;
R_TILEGX_TLS_DTPMOD32 : constant := 109;
R_TILEGX_TLS_DTPMOD64 : constant := 106;
R_TILEGX_TLS_DTPOFF32 : constant := 110;
R_TILEGX_TLS_DTPOFF64 : constant := 107;
R_TILEGX_TLS_GD_CALL : constant := 112;
R_TILEGX_TLS_IE_LOAD : constant := 117;
R_TILEGX_TLS_TPOFF32 : constant := 111;
R_TILEGX_TLS_TPOFF64 : constant := 108;
R_TILEPRO_16 : constant := 2;
R_TILEPRO_16_PCREL : constant := 5;
R_TILEPRO_32 : constant := 1;
R_TILEPRO_32_PCREL : constant := 4;
R_TILEPRO_8 : constant := 3;
R_TILEPRO_8_PCREL : constant := 6;
R_TILEPRO_BROFF_X1 : constant := 14;
R_TILEPRO_COPY : constant := 10;
R_TILEPRO_DEST_IMM8_X1 : constant := 55;
R_TILEPRO_GLOB_DAT : constant := 11;
R_TILEPRO_GNU_VTENTRY : constant := 129;
R_TILEPRO_GNU_VTINHERIT : constant := 128;
R_TILEPRO_HA16 : constant := 9;
R_TILEPRO_HI16 : constant := 8;
R_TILEPRO_IMM16_X0 : constant := 23;
R_TILEPRO_IMM16_X0_GOT : constant := 39;
R_TILEPRO_IMM16_X0_GOT_HA : constant := 45;
R_TILEPRO_IMM16_X0_GOT_HI : constant := 43;
R_TILEPRO_IMM16_X0_GOT_LO : constant := 41;
R_TILEPRO_IMM16_X0_HA : constant := 29;
R_TILEPRO_IMM16_X0_HA_PCREL : constant := 37;
R_TILEPRO_IMM16_X0_HI : constant := 27;
R_TILEPRO_IMM16_X0_HI_PCREL : constant := 35;
R_TILEPRO_IMM16_X0_LO : constant := 25;
R_TILEPRO_IMM16_X0_LO_PCREL : constant := 33;
R_TILEPRO_IMM16_X0_PCREL : constant := 31;
R_TILEPRO_IMM16_X0_TLS_GD : constant := 66;
R_TILEPRO_IMM16_X0_TLS_GD_HA : constant := 72;
R_TILEPRO_IMM16_X0_TLS_GD_HI : constant := 70;
R_TILEPRO_IMM16_X0_TLS_GD_LO : constant := 68;
R_TILEPRO_IMM16_X0_TLS_IE : constant := 74;
R_TILEPRO_IMM16_X0_TLS_IE_HA : constant := 80;
R_TILEPRO_IMM16_X0_TLS_IE_HI : constant := 78;
R_TILEPRO_IMM16_X0_TLS_IE_LO : constant := 76;
R_TILEPRO_IMM16_X0_TLS_LE : constant := 85;
R_TILEPRO_IMM16_X0_TLS_LE_HA : constant := 91;
R_TILEPRO_IMM16_X0_TLS_LE_HI : constant := 89;
R_TILEPRO_IMM16_X0_TLS_LE_LO : constant := 87;
R_TILEPRO_IMM16_X1 : constant := 24;
R_TILEPRO_IMM16_X1_GOT : constant := 40;
R_TILEPRO_IMM16_X1_GOT_HA : constant := 46;
R_TILEPRO_IMM16_X1_GOT_HI : constant := 44;
R_TILEPRO_IMM16_X1_GOT_LO : constant := 42;
R_TILEPRO_IMM16_X1_HA : constant := 30;
R_TILEPRO_IMM16_X1_HA_PCREL : constant := 38;
R_TILEPRO_IMM16_X1_HI : constant := 28;
R_TILEPRO_IMM16_X1_HI_PCREL : constant := 36;
R_TILEPRO_IMM16_X1_LO : constant := 26;
R_TILEPRO_IMM16_X1_LO_PCREL : constant := 34;
R_TILEPRO_IMM16_X1_PCREL : constant := 32;
R_TILEPRO_IMM16_X1_TLS_GD : constant := 67;
R_TILEPRO_IMM16_X1_TLS_GD_HA : constant := 73;
R_TILEPRO_IMM16_X1_TLS_GD_HI : constant := 71;
R_TILEPRO_IMM16_X1_TLS_GD_LO : constant := 69;
R_TILEPRO_IMM16_X1_TLS_IE : constant := 75;
R_TILEPRO_IMM16_X1_TLS_IE_HA : constant := 81;
R_TILEPRO_IMM16_X1_TLS_IE_HI : constant := 79;
R_TILEPRO_IMM16_X1_TLS_IE_LO : constant := 77;
R_TILEPRO_IMM16_X1_TLS_LE : constant := 86;
R_TILEPRO_IMM16_X1_TLS_LE_HA : constant := 92;
R_TILEPRO_IMM16_X1_TLS_LE_HI : constant := 90;
R_TILEPRO_IMM16_X1_TLS_LE_LO : constant := 88;
R_TILEPRO_IMM8_X0 : constant := 17;
R_TILEPRO_IMM8_X0_TLS_GD_ADD : constant := 61;
R_TILEPRO_IMM8_X1 : constant := 19;
R_TILEPRO_IMM8_X1_TLS_GD_ADD : constant := 62;
R_TILEPRO_IMM8_Y0 : constant := 18;
R_TILEPRO_IMM8_Y0_TLS_GD_ADD : constant := 63;
R_TILEPRO_IMM8_Y1 : constant := 20;
R_TILEPRO_IMM8_Y1_TLS_GD_ADD : constant := 64;
R_TILEPRO_JMP_SLOT : constant := 12;
R_TILEPRO_JOFFLONG_X1 : constant := 15;
R_TILEPRO_JOFFLONG_X1_PLT : constant := 16;
R_TILEPRO_LO16 : constant := 7;
R_TILEPRO_MF_IMM15_X1 : constant := 22;
R_TILEPRO_MMEND_X0 : constant := 48;
R_TILEPRO_MMEND_X1 : constant := 50;
R_TILEPRO_MMSTART_X0 : constant := 47;
R_TILEPRO_MMSTART_X1 : constant := 49;
R_TILEPRO_MT_IMM15_X1 : constant := 21;
R_TILEPRO_NONE : constant := 0;
R_TILEPRO_NUM : constant := 130;
R_TILEPRO_RELATIVE : constant := 13;
R_TILEPRO_SHAMT_X0 : constant := 51;
R_TILEPRO_SHAMT_X1 : constant := 52;
R_TILEPRO_SHAMT_Y0 : constant := 53;
R_TILEPRO_SHAMT_Y1 : constant := 54;
R_TILEPRO_TLS_DTPMOD32 : constant := 82;
R_TILEPRO_TLS_DTPOFF32 : constant := 83;
R_TILEPRO_TLS_GD_CALL : constant := 60;
R_TILEPRO_TLS_IE_LOAD : constant := 65;
R_TILEPRO_TLS_TPOFF32 : constant := 84;
R_X86_64_16 : constant := 12;
R_X86_64_32 : constant := 10;
R_X86_64_32S : constant := 11;
R_X86_64_64 : constant := 1;
R_X86_64_8 : constant := 14;
R_X86_64_COPY : constant := 5;
R_X86_64_DTPMOD64 : constant := 16;
R_X86_64_DTPOFF32 : constant := 21;
R_X86_64_DTPOFF64 : constant := 17;
R_X86_64_GLOB_DAT : constant := 6;
R_X86_64_GOT32 : constant := 3;
R_X86_64_GOT64 : constant := 27;
R_X86_64_GOTOFF64 : constant := 25;
R_X86_64_GOTPC32 : constant := 26;
R_X86_64_GOTPC32_TLSDESC : constant := 34;
R_X86_64_GOTPC64 : constant := 29;
R_X86_64_GOTPCREL : constant := 9;
R_X86_64_GOTPCREL64 : constant := 28;
R_X86_64_GOTPCRELX : constant := 41;
R_X86_64_GOTPLT64 : constant := 30;
R_X86_64_GOTTPOFF : constant := 22;
R_X86_64_IRELATIVE : constant := 37;
R_X86_64_JUMP_SLOT : constant := 7;
R_X86_64_NONE : constant := 0;
R_X86_64_NUM : constant := 43;
R_X86_64_PC16 : constant := 13;
R_X86_64_PC32 : constant := 2;
R_X86_64_PC64 : constant := 24;
R_X86_64_PC8 : constant := 15;
R_X86_64_PLT32 : constant := 4;
R_X86_64_PLTOFF64 : constant := 31;
R_X86_64_RELATIVE : constant := 8;
R_X86_64_RELATIVE64 : constant := 38;
R_X86_64_REX_GOTPCRELX : constant := 42;
R_X86_64_SIZE32 : constant := 32;
R_X86_64_SIZE64 : constant := 33;
R_X86_64_TLSDESC : constant := 36;
R_X86_64_TLSDESC_CALL : constant := 35;
R_X86_64_TLSGD : constant := 19;
R_X86_64_TLSLD : constant := 20;
R_X86_64_TPOFF32 : constant := 23;
R_X86_64_TPOFF64 : constant := 18;
SELFMAG : constant := 4;
SHF_ALLOC : constant := 2;
SHF_ALPHA_GPREL : constant := 268435456;
SHF_ARM_COMDEF : constant := -2147483648;
SHF_ARM_ENTRYSECT : constant := 268435456;
SHF_COMPRESSED : constant := 2048;
SHF_EXCLUDE : constant := 2147483648;
SHF_EXECINSTR : constant := 4;
SHF_GROUP : constant := 512;
SHF_IA_64_NORECOV : constant := 536870912;
SHF_IA_64_SHORT : constant := 268435456;
SHF_INFO_LINK : constant := 64;
SHF_LINK_ORDER : constant := 128;
SHF_MASKOS : constant := 267386880;
SHF_MASKPROC : constant := -268435456;
SHF_MERGE : constant := 16;
SHF_MIPS_ADDR : constant := 1073741824;
SHF_MIPS_GPREL : constant := 268435456;
SHF_MIPS_LOCAL : constant := 67108864;
SHF_MIPS_MERGE : constant := 536870912;
SHF_MIPS_NAMES : constant := 33554432;
SHF_MIPS_NODUPE : constant := 16777216;
SHF_MIPS_NOSTRIP : constant := 134217728;
SHF_MIPS_STRINGS : constant := -2147483648;
SHF_ORDERED : constant := 1073741824;
SHF_OS_NONCONFORMING : constant := 256;
SHF_PARISC_HUGE : constant := 1073741824;
SHF_PARISC_SBP : constant := -2147483648;
SHF_PARISC_SHORT : constant := 536870912;
SHF_STRINGS : constant := 32;
SHF_TLS : constant := 1024;
SHF_WRITE : constant := 1;
SHN_ABS : constant := 65521;
SHN_AFTER : constant := 65281;
SHN_BEFORE : constant := 65280;
SHN_COMMON : constant := 65522;
SHN_HIOS : constant := 65343;
SHN_HIPROC : constant := 65311;
SHN_HIRESERVE : constant := 65535;
SHN_LOOS : constant := 65312;
SHN_LOPROC : constant := 65280;
SHN_LORESERVE : constant := 65280;
SHN_MIPS_ACOMMON : constant := 65280;
SHN_MIPS_DATA : constant := 65282;
SHN_MIPS_SCOMMON : constant := 65283;
SHN_MIPS_SUNDEFINED : constant := 65284;
SHN_MIPS_TEXT : constant := 65281;
SHN_PARISC_ANSI_COMMON : constant := 65280;
SHN_PARISC_HUGE_COMMON : constant := 65281;
SHN_UNDEF : constant := 0;
SHN_XINDEX : constant := 65535;
SHT_ALPHA_DEBUG : constant := 1879048193;
SHT_ALPHA_REGINFO : constant := 1879048194;
SHT_ARM_ATTRIBUTES : constant := 1879048195;
SHT_ARM_EXIDX : constant := 1879048193;
SHT_ARM_PREEMPTMAP : constant := 1879048194;
SHT_CHECKSUM : constant := 1879048184;
SHT_DYNAMIC : constant := 6;
SHT_DYNSYM : constant := 11;
SHT_FINI_ARRAY : constant := 15;
SHT_GNU_ATTRIBUTES : constant := 1879048181;
SHT_GNU_HASH : constant := 1879048182;
SHT_GNU_LIBLIST : constant := 1879048183;
SHT_GNU_verdef : constant := 1879048189;
SHT_GNU_verneed : constant := 1879048190;
SHT_GNU_versym : constant := 1879048191;
SHT_GROUP : constant := 17;
SHT_HASH : constant := 5;
SHT_HIOS : constant := 1879048191;
SHT_HIPROC : constant := 2147483647;
SHT_HISUNW : constant := 1879048191;
SHT_HIUSER : constant := -1879048193;
SHT_IA_64_EXT : constant := 1879048192;
SHT_IA_64_UNWIND : constant := 1879048193;
SHT_INIT_ARRAY : constant := 14;
SHT_LOOS : constant := 1610612736;
SHT_LOPROC : constant := 1879048192;
SHT_LOSUNW : constant := 1879048186;
SHT_LOUSER : constant := -2147483648;
SHT_MIPS_AUXSYM : constant := 1879048214;
SHT_MIPS_CONFLICT : constant := 1879048194;
SHT_MIPS_CONTENT : constant := 1879048204;
SHT_MIPS_DEBUG : constant := 1879048197;
SHT_MIPS_DELTACLASS : constant := 1879048221;
SHT_MIPS_DELTADECL : constant := 1879048223;
SHT_MIPS_DELTAINST : constant := 1879048220;
SHT_MIPS_DELTASYM : constant := 1879048219;
SHT_MIPS_DENSE : constant := 1879048211;
SHT_MIPS_DWARF : constant := 1879048222;
SHT_MIPS_EH_REGION : constant := 1879048231;
SHT_MIPS_EVENTS : constant := 1879048225;
SHT_MIPS_EXTSYM : constant := 1879048210;
SHT_MIPS_FDESC : constant := 1879048209;
SHT_MIPS_GPTAB : constant := 1879048195;
SHT_MIPS_IFACE : constant := 1879048203;
SHT_MIPS_LIBLIST : constant := 1879048192;
SHT_MIPS_LINE : constant := 1879048217;
SHT_MIPS_LOCSTR : constant := 1879048216;
SHT_MIPS_LOCSYM : constant := 1879048213;
SHT_MIPS_MSYM : constant := 1879048193;
SHT_MIPS_OPTIONS : constant := 1879048205;
SHT_MIPS_OPTSYM : constant := 1879048215;
SHT_MIPS_PACKAGE : constant := 1879048199;
SHT_MIPS_PACKSYM : constant := 1879048200;
SHT_MIPS_PDESC : constant := 1879048212;
SHT_MIPS_PDR_EXCEPTION : constant := 1879048233;
SHT_MIPS_PIXIE : constant := 1879048227;
SHT_MIPS_REGINFO : constant := 1879048198;
SHT_MIPS_RELD : constant := 1879048201;
SHT_MIPS_RFDESC : constant := 1879048218;
SHT_MIPS_SHDR : constant := 1879048208;
SHT_MIPS_SYMBOL_LIB : constant := 1879048224;
SHT_MIPS_TRANSLATE : constant := 1879048226;
SHT_MIPS_UCODE : constant := 1879048196;
SHT_MIPS_WHIRL : constant := 1879048230;
SHT_MIPS_XLATE : constant := 1879048228;
SHT_MIPS_XLATE_DEBUG : constant := 1879048229;
SHT_MIPS_XLATE_OLD : constant := 1879048232;
SHT_NOBITS : constant := 8;
SHT_NOTE : constant := 7;
SHT_NULL : constant := 0;
SHT_NUM : constant := 19;
SHT_PARISC_DOC : constant := 1879048194;
SHT_PARISC_EXT : constant := 1879048192;
SHT_PARISC_UNWIND : constant := 1879048193;
SHT_PREINIT_ARRAY : constant := 16;
SHT_PROGBITS : constant := 1;
SHT_REL : constant := 9;
SHT_RELA : constant := 4;
SHT_SHLIB : constant := 10;
SHT_STRTAB : constant := 3;
SHT_SUNW_COMDAT : constant := 1879048187;
SHT_SUNW_move : constant := 1879048186;
SHT_SUNW_syminfo : constant := 1879048188;
SHT_SYMTAB : constant := 2;
SHT_SYMTAB_SHNDX : constant := 18;
STB_GLOBAL : constant := 1;
STB_GNU_UNIQUE : constant := 10;
STB_HIOS : constant := 12;
STB_HIPROC : constant := 15;
STB_LOCAL : constant := 0;
STB_LOOS : constant := 10;
STB_LOPROC : constant := 13;
STB_MIPS_SPLIT_COMMON : constant := 13;
STB_NUM : constant := 3;
STB_WEAK : constant := 2;
STN_UNDEF : constant := 0;
STO_ALPHA_NOPV : constant := 128;
STO_ALPHA_STD_GPLOAD : constant := 136;
STO_MIPS_DEFAULT : constant := 0;
STO_MIPS_HIDDEN : constant := 2;
STO_MIPS_INTERNAL : constant := 1;
STO_MIPS_PLT : constant := 8;
STO_MIPS_PROTECTED : constant := 3;
STO_MIPS_SC_ALIGN_UNUSED : constant := 255;
STO_PPC64_LOCAL_BIT : constant := 5;
STO_PPC64_LOCAL_MASK : constant := 224;
STT_ARM_16BIT : constant := 15;
STT_ARM_TFUNC : constant := 13;
STT_COMMON : constant := 5;
STT_FILE : constant := 4;
STT_FUNC : constant := 2;
STT_GNU_IFUNC : constant := 10;
STT_HIOS : constant := 12;
STT_HIPROC : constant := 15;
STT_HP_OPAQUE : constant := 11;
STT_HP_STUB : constant := 12;
STT_LOOS : constant := 10;
STT_LOPROC : constant := 13;
STT_NOTYPE : constant := 0;
STT_NUM : constant := 7;
STT_OBJECT : constant := 1;
STT_PARISC_MILLICODE : constant := 13;
STT_SECTION : constant := 3;
STT_SPARC_REGISTER : constant := 13;
STT_TLS : constant := 6;
STV_DEFAULT : constant := 0;
STV_HIDDEN : constant := 2;
STV_INTERNAL : constant := 1;
STV_PROTECTED : constant := 3;
SYMINFO_BT_LOWRESERVE : constant := 65280;
SYMINFO_BT_PARENT : constant := 65534;
SYMINFO_BT_SELF : constant := 65535;
SYMINFO_CURRENT : constant := 1;
SYMINFO_FLG_COPY : constant := 4;
SYMINFO_FLG_DIRECT : constant := 1;
SYMINFO_FLG_LAZYLOAD : constant := 8;
SYMINFO_FLG_PASSTHRU : constant := 2;
SYMINFO_NONE : constant := 0;
SYMINFO_NUM : constant := 2;
VER_DEF_CURRENT : constant := 1;
VER_DEF_NONE : constant := 0;
VER_DEF_NUM : constant := 2;
VER_FLG_BASE : constant := 1;
VER_FLG_WEAK : constant := 2;
VER_NDX_ELIMINATE : constant := 65281;
VER_NDX_GLOBAL : constant := 1;
VER_NDX_LOCAL : constant := 0;
VER_NDX_LORESERVE : constant := 65280;
VER_NEED_CURRENT : constant := 1;
VER_NEED_NONE : constant := 0;
VER_NEED_NUM : constant := 2;
ELF_H : constant := 1;
end C.elf;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.endian is
pragma Preelaborate;
BIG_ENDIAN : constant := 4321;
BYTE_ORDER : constant := 1234;
LITTLE_ENDIAN : constant := 1234;
PDP_ENDIAN : constant := 3412;
ENDIAN_H : constant := 1;
qqBIG_ENDIAN : constant := 4321;
FLOAT_WORD_ORDER : constant := 1234;
qqLITTLE_ENDIAN : constant := 1234;
-- __LONG_LONG_PAIR (function macro)
qqPDP_ENDIAN : constant := 3412;
-- be16toh (function macro)
-- be32toh (function macro)
-- be64toh (function macro)
-- htobe16 (function macro)
-- htobe32 (function macro)
-- htobe64 (function macro)
-- htole16 (function macro)
-- htole32 (function macro)
-- htole64 (function macro)
-- le16toh (function macro)
-- le32toh (function macro)
-- le64toh (function macro)
end C.endian;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.asm_generic.errno;
with C.asm_generic.errno_base;
with C.bits.errno;
package C.errno is
pragma Preelaborate;
EADDRINUSE : constant := asm_generic.errno.EADDRINUSE;
EADDRNOTAVAIL : constant := asm_generic.errno.EADDRNOTAVAIL;
EADV : constant := asm_generic.errno.EADV;
EAFNOSUPPORT : constant := asm_generic.errno.EAFNOSUPPORT;
EALREADY : constant := asm_generic.errno.EALREADY;
EBADE : constant := asm_generic.errno.EBADE;
EBADFD : constant := asm_generic.errno.EBADFD;
EBADMSG : constant := asm_generic.errno.EBADMSG;
EBADR : constant := asm_generic.errno.EBADR;
EBADRQC : constant := asm_generic.errno.EBADRQC;
EBADSLT : constant := asm_generic.errno.EBADSLT;
EBFONT : constant := asm_generic.errno.EBFONT;
ECANCELED : constant := asm_generic.errno.ECANCELED;
ECHRNG : constant := asm_generic.errno.ECHRNG;
ECOMM : constant := asm_generic.errno.ECOMM;
ECONNABORTED : constant := asm_generic.errno.ECONNABORTED;
ECONNREFUSED : constant := asm_generic.errno.ECONNREFUSED;
ECONNRESET : constant := asm_generic.errno.ECONNRESET;
EDEADLK : constant := asm_generic.errno.EDEADLK;
EDEADLOCK : constant := asm_generic.errno.EDEADLOCK;
EDESTADDRREQ : constant := asm_generic.errno.EDESTADDRREQ;
EDOTDOT : constant := asm_generic.errno.EDOTDOT;
EDQUOT : constant := asm_generic.errno.EDQUOT;
EHOSTDOWN : constant := asm_generic.errno.EHOSTDOWN;
EHOSTUNREACH : constant := asm_generic.errno.EHOSTUNREACH;
EHWPOISON : constant := asm_generic.errno.EHWPOISON;
EIDRM : constant := asm_generic.errno.EIDRM;
EILSEQ : constant := asm_generic.errno.EILSEQ;
EINPROGRESS : constant := asm_generic.errno.EINPROGRESS;
EISCONN : constant := asm_generic.errno.EISCONN;
EISNAM : constant := asm_generic.errno.EISNAM;
EKEYEXPIRED : constant := asm_generic.errno.EKEYEXPIRED;
EKEYREJECTED : constant := asm_generic.errno.EKEYREJECTED;
EKEYREVOKED : constant := asm_generic.errno.EKEYREVOKED;
EL2HLT : constant := asm_generic.errno.EL2HLT;
EL2NSYNC : constant := asm_generic.errno.EL2NSYNC;
EL3HLT : constant := asm_generic.errno.EL3HLT;
EL3RST : constant := asm_generic.errno.EL3RST;
ELIBACC : constant := asm_generic.errno.ELIBACC;
ELIBBAD : constant := asm_generic.errno.ELIBBAD;
ELIBEXEC : constant := asm_generic.errno.ELIBEXEC;
ELIBMAX : constant := asm_generic.errno.ELIBMAX;
ELIBSCN : constant := asm_generic.errno.ELIBSCN;
ELNRNG : constant := asm_generic.errno.ELNRNG;
ELOOP : constant := asm_generic.errno.ELOOP;
EMEDIUMTYPE : constant := asm_generic.errno.EMEDIUMTYPE;
EMSGSIZE : constant := asm_generic.errno.EMSGSIZE;
EMULTIHOP : constant := asm_generic.errno.EMULTIHOP;
ENAMETOOLONG : constant := asm_generic.errno.ENAMETOOLONG;
ENAVAIL : constant := asm_generic.errno.ENAVAIL;
ENETDOWN : constant := asm_generic.errno.ENETDOWN;
ENETRESET : constant := asm_generic.errno.ENETRESET;
ENETUNREACH : constant := asm_generic.errno.ENETUNREACH;
ENOANO : constant := asm_generic.errno.ENOANO;
ENOBUFS : constant := asm_generic.errno.ENOBUFS;
ENOCSI : constant := asm_generic.errno.ENOCSI;
ENODATA : constant := asm_generic.errno.ENODATA;
ENOKEY : constant := asm_generic.errno.ENOKEY;
ENOLCK : constant := asm_generic.errno.ENOLCK;
ENOLINK : constant := asm_generic.errno.ENOLINK;
ENOMEDIUM : constant := asm_generic.errno.ENOMEDIUM;
ENOMSG : constant := asm_generic.errno.ENOMSG;
ENONET : constant := asm_generic.errno.ENONET;
ENOPKG : constant := asm_generic.errno.ENOPKG;
ENOPROTOOPT : constant := asm_generic.errno.ENOPROTOOPT;
ENOSR : constant := asm_generic.errno.ENOSR;
ENOSTR : constant := asm_generic.errno.ENOSTR;
ENOSYS : constant := asm_generic.errno.ENOSYS;
ENOTCONN : constant := asm_generic.errno.ENOTCONN;
ENOTEMPTY : constant := asm_generic.errno.ENOTEMPTY;
ENOTNAM : constant := asm_generic.errno.ENOTNAM;
ENOTRECOVERABLE : constant := asm_generic.errno.ENOTRECOVERABLE;
ENOTSOCK : constant := asm_generic.errno.ENOTSOCK;
ENOTUNIQ : constant := asm_generic.errno.ENOTUNIQ;
EOPNOTSUPP : constant := asm_generic.errno.EOPNOTSUPP;
EOVERFLOW : constant := asm_generic.errno.EOVERFLOW;
EOWNERDEAD : constant := asm_generic.errno.EOWNERDEAD;
EPFNOSUPPORT : constant := asm_generic.errno.EPFNOSUPPORT;
EPROTO : constant := asm_generic.errno.EPROTO;
EPROTONOSUPPORT : constant := asm_generic.errno.EPROTONOSUPPORT;
EPROTOTYPE : constant := asm_generic.errno.EPROTOTYPE;
EREMCHG : constant := asm_generic.errno.EREMCHG;
EREMOTE : constant := asm_generic.errno.EREMOTE;
EREMOTEIO : constant := asm_generic.errno.EREMOTEIO;
ERESTART : constant := asm_generic.errno.ERESTART;
ERFKILL : constant := asm_generic.errno.ERFKILL;
ESHUTDOWN : constant := asm_generic.errno.ESHUTDOWN;
ESOCKTNOSUPPORT : constant := asm_generic.errno.ESOCKTNOSUPPORT;
ESRMNT : constant := asm_generic.errno.ESRMNT;
ESTALE : constant := asm_generic.errno.ESTALE;
ESTRPIPE : constant := asm_generic.errno.ESTRPIPE;
ETIME : constant := asm_generic.errno.ETIME;
ETIMEDOUT : constant := asm_generic.errno.ETIMEDOUT;
ETOOMANYREFS : constant := asm_generic.errno.ETOOMANYREFS;
EUCLEAN : constant := asm_generic.errno.EUCLEAN;
EUNATCH : constant := asm_generic.errno.EUNATCH;
EUSERS : constant := asm_generic.errno.EUSERS;
EWOULDBLOCK : constant := asm_generic.errno.EWOULDBLOCK;
EXFULL : constant := asm_generic.errno.EXFULL;
-- ASM_GENERIC_ERRNO_H renames asm_generic.errno.ASM_GENERIC_ERR... (empty)
E2BIG : constant := asm_generic.errno_base.E2BIG;
EACCES : constant := asm_generic.errno_base.EACCES;
EAGAIN : constant := asm_generic.errno_base.EAGAIN;
EBADF : constant := asm_generic.errno_base.EBADF;
EBUSY : constant := asm_generic.errno_base.EBUSY;
ECHILD : constant := asm_generic.errno_base.ECHILD;
EDOM : constant := asm_generic.errno_base.EDOM;
EEXIST : constant := asm_generic.errno_base.EEXIST;
EFAULT : constant := asm_generic.errno_base.EFAULT;
EFBIG : constant := asm_generic.errno_base.EFBIG;
EINTR : constant := asm_generic.errno_base.EINTR;
EINVAL : constant := asm_generic.errno_base.EINVAL;
EIO : constant := asm_generic.errno_base.EIO;
EISDIR : constant := asm_generic.errno_base.EISDIR;
EMFILE : constant := asm_generic.errno_base.EMFILE;
EMLINK : constant := asm_generic.errno_base.EMLINK;
ENFILE : constant := asm_generic.errno_base.ENFILE;
ENODEV : constant := asm_generic.errno_base.ENODEV;
ENOENT : constant := asm_generic.errno_base.ENOENT;
ENOEXEC : constant := asm_generic.errno_base.ENOEXEC;
ENOMEM : constant := asm_generic.errno_base.ENOMEM;
ENOSPC : constant := asm_generic.errno_base.ENOSPC;
ENOTBLK : constant := asm_generic.errno_base.ENOTBLK;
ENOTDIR : constant := asm_generic.errno_base.ENOTDIR;
ENOTTY : constant := asm_generic.errno_base.ENOTTY;
ENXIO : constant := asm_generic.errno_base.ENXIO;
EPERM : constant := asm_generic.errno_base.EPERM;
EPIPE : constant := asm_generic.errno_base.EPIPE;
ERANGE : constant := asm_generic.errno_base.ERANGE;
EROFS : constant := asm_generic.errno_base.EROFS;
ESPIPE : constant := asm_generic.errno_base.ESPIPE;
ESRCH : constant := asm_generic.errno_base.ESRCH;
ETXTBSY : constant := asm_generic.errno_base.ETXTBSY;
EXDEV : constant := asm_generic.errno_base.EXDEV;
-- ASM_GENERIC_ERRNO_BASE_H renames asm_generic.errno_base.ASM_G... (empty)
function errno_location return signed_int_ptr
renames bits.errno.errno_location;
ENOTSUP : constant := bits.errno.ENOTSUP;
function errno return signed_int renames bits.errno.errno;
program_invocation_name : aliased char_ptr;
pragma Import (C, program_invocation_name, "program_invocation_name");
program_invocation_short_name : aliased char_ptr;
pragma Import (C, program_invocation_short_name,
"program_invocation_short_name");
subtype error_t is signed_int;
ERRNO_H : constant := 1;
error_t_defined : constant := 1;
end C.errno;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.fcntl_linux;
with C.bits.types;
with C.bits.uio;
with C.stddef;
with C.sys.types;
package C.fcntl is
pragma Preelaborate;
subtype enum_pid_type is bits.fcntl_linux.enum_pid_type;
function F_OWNER_TID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_TID;
function F_OWNER_PID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_PID;
function F_OWNER_PGRP return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_PGRP;
function F_OWNER_GID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_GID;
subtype struct_f_owner_ex is bits.fcntl_linux.struct_f_owner_ex;
subtype struct_file_handle is bits.fcntl_linux.struct_file_handle;
function readahead (fd : signed_int; offset : bits.types.off64_t;
count : stddef.size_t) return sys.types.ssize_t
renames bits.fcntl_linux.readahead;
function sync_file_range (fd : signed_int; offset : bits.types.off64_t;
count : bits.types.off64_t; flags : unsigned_int) return signed_int
renames bits.fcntl_linux.sync_file_range;
function vmsplice (fdout : signed_int;
iov : access constant bits.uio.struct_iovec; count : stddef.size_t;
flags : unsigned_int) return sys.types.ssize_t
renames bits.fcntl_linux.vmsplice;
function splice (fdin : signed_int; offin : access bits.types.off64_t;
fdout : signed_int; offout : access bits.types.off64_t;
len : stddef.size_t; flags : unsigned_int) return sys.types.ssize_t
renames bits.fcntl_linux.splice;
function tee (fdin : signed_int; fdout : signed_int; len : stddef.size_t;
flags : unsigned_int) return sys.types.ssize_t
renames bits.fcntl_linux.tee;
function fallocate (fd : signed_int; mode : signed_int;
offset : bits.types.off64_t; len : bits.types.off64_t)
return signed_int renames bits.fcntl_linux.fallocate;
function fallocate64 (fd : signed_int; mode : signed_int;
offset : bits.types.off64_t; len : bits.types.off64_t)
return signed_int renames bits.fcntl_linux.fallocate64;
function name_to_handle_at (dfd : signed_int; name : access constant char;
handle : access bits.fcntl_linux.struct_file_handle;
mnt_id : access signed_int; flags : signed_int) return signed_int
renames bits.fcntl_linux.name_to_handle_at;
function open_by_handle_at (mountdirfd : signed_int;
handle : access bits.fcntl_linux.struct_file_handle;
flags : signed_int) return signed_int
renames bits.fcntl_linux.open_by_handle_at;
AT_EACCESS : constant := bits.fcntl_linux.AT_EACCESS;
AT_EMPTY_PATH : constant := bits.fcntl_linux.AT_EMPTY_PATH;
AT_FDCWD : constant := bits.fcntl_linux.AT_FDCWD;
AT_NO_AUTOMOUNT : constant := bits.fcntl_linux.AT_NO_AUTOMOUNT;
AT_REMOVEDIR : constant := bits.fcntl_linux.AT_REMOVEDIR;
AT_SYMLINK_FOLLOW : constant := bits.fcntl_linux.AT_SYMLINK_FOLLOW;
AT_SYMLINK_NOFOLLOW : constant := bits.fcntl_linux.AT_SYMLINK_NOFOLLOW;
DN_ACCESS : constant := bits.fcntl_linux.DN_ACCESS;
DN_ATTRIB : constant := bits.fcntl_linux.DN_ATTRIB;
DN_CREATE : constant := bits.fcntl_linux.DN_CREATE;
DN_DELETE : constant := bits.fcntl_linux.DN_DELETE;
DN_MODIFY : constant := bits.fcntl_linux.DN_MODIFY;
DN_MULTISHOT : constant := bits.fcntl_linux.DN_MULTISHOT;
DN_RENAME : constant := bits.fcntl_linux.DN_RENAME;
FALLOC_FL_COLLAPSE_RANGE : constant :=
bits.fcntl_linux.FALLOC_FL_COLLAPSE_RANGE;
FALLOC_FL_KEEP_SIZE : constant := bits.fcntl_linux.FALLOC_FL_KEEP_SIZE;
FALLOC_FL_PUNCH_HOLE : constant := bits.fcntl_linux.FALLOC_FL_PUNCH_HOLE;
FALLOC_FL_ZERO_RANGE : constant := bits.fcntl_linux.FALLOC_FL_ZERO_RANGE;
FAPPEND : constant := bits.fcntl_linux.FAPPEND;
FASYNC : constant := bits.fcntl_linux.FASYNC;
FD_CLOEXEC : constant := bits.fcntl_linux.FD_CLOEXEC;
FFSYNC : constant := bits.fcntl_linux.FFSYNC;
FNDELAY : constant := bits.fcntl_linux.FNDELAY;
FNONBLOCK : constant := bits.fcntl_linux.FNONBLOCK;
F_DUPFD : constant := bits.fcntl_linux.F_DUPFD;
F_DUPFD_CLOEXEC : constant := bits.fcntl_linux.F_DUPFD_CLOEXEC;
F_EXLCK : constant := bits.fcntl_linux.F_EXLCK;
F_GETFD : constant := bits.fcntl_linux.F_GETFD;
F_GETFL : constant := bits.fcntl_linux.F_GETFL;
F_GETLEASE : constant := bits.fcntl_linux.F_GETLEASE;
F_GETLK : constant := bits.fcntl_linux.F_GETLK;
F_GETLK64 : constant := bits.fcntl_linux.F_GETLK64;
F_GETOWN : constant := bits.fcntl_linux.F_GETOWN;
F_GETOWN_EX : constant := bits.fcntl_linux.F_GETOWN_EX;
F_GETPIPE_SZ : constant := bits.fcntl_linux.F_GETPIPE_SZ;
F_GETSIG : constant := bits.fcntl_linux.F_GETSIG;
F_NOTIFY : constant := bits.fcntl_linux.F_NOTIFY;
F_OFD_GETLK : constant := bits.fcntl_linux.F_OFD_GETLK;
F_OFD_SETLK : constant := bits.fcntl_linux.F_OFD_SETLK;
F_OFD_SETLKW : constant := bits.fcntl_linux.F_OFD_SETLKW;
F_RDLCK : constant := bits.fcntl_linux.F_RDLCK;
F_SETFD : constant := bits.fcntl_linux.F_SETFD;
F_SETFL : constant := bits.fcntl_linux.F_SETFL;
F_SETLEASE : constant := bits.fcntl_linux.F_SETLEASE;
F_SETLK : constant := bits.fcntl_linux.F_SETLK;
F_SETLK64 : constant := bits.fcntl_linux.F_SETLK64;
F_SETLKW : constant := bits.fcntl_linux.F_SETLKW;
F_SETLKW64 : constant := bits.fcntl_linux.F_SETLKW64;
F_SETOWN : constant := bits.fcntl_linux.F_SETOWN;
F_SETOWN_EX : constant := bits.fcntl_linux.F_SETOWN_EX;
F_SETPIPE_SZ : constant := bits.fcntl_linux.F_SETPIPE_SZ;
F_SETSIG : constant := bits.fcntl_linux.F_SETSIG;
F_SHLCK : constant := bits.fcntl_linux.F_SHLCK;
F_UNLCK : constant := bits.fcntl_linux.F_UNLCK;
F_WRLCK : constant := bits.fcntl_linux.F_WRLCK;
LOCK_EX : constant := bits.fcntl_linux.LOCK_EX;
LOCK_MAND : constant := bits.fcntl_linux.LOCK_MAND;
LOCK_NB : constant := bits.fcntl_linux.LOCK_NB;
LOCK_READ : constant := bits.fcntl_linux.LOCK_READ;
LOCK_RW : constant := bits.fcntl_linux.LOCK_RW;
LOCK_SH : constant := bits.fcntl_linux.LOCK_SH;
LOCK_UN : constant := bits.fcntl_linux.LOCK_UN;
LOCK_WRITE : constant := bits.fcntl_linux.LOCK_WRITE;
MAX_HANDLE_SZ : constant := bits.fcntl_linux.MAX_HANDLE_SZ;
O_ACCMODE : constant := bits.fcntl_linux.O_ACCMODE;
O_APPEND : constant := bits.fcntl_linux.O_APPEND;
O_ASYNC : constant := bits.fcntl_linux.O_ASYNC;
O_CLOEXEC : constant := bits.fcntl_linux.O_CLOEXEC;
O_CREAT : constant := bits.fcntl_linux.O_CREAT;
O_DIRECT : constant := bits.fcntl_linux.O_DIRECT;
O_DIRECTORY : constant := bits.fcntl_linux.O_DIRECTORY;
O_DSYNC : constant := bits.fcntl_linux.O_DSYNC;
O_EXCL : constant := bits.fcntl_linux.O_EXCL;
O_FSYNC : constant := bits.fcntl_linux.O_FSYNC;
O_LARGEFILE : constant := bits.fcntl_linux.O_LARGEFILE;
O_NDELAY : constant := bits.fcntl_linux.O_NDELAY;
O_NOATIME : constant := bits.fcntl_linux.O_NOATIME;
O_NOCTTY : constant := bits.fcntl_linux.O_NOCTTY;
O_NOFOLLOW : constant := bits.fcntl_linux.O_NOFOLLOW;
O_NONBLOCK : constant := bits.fcntl_linux.O_NONBLOCK;
O_PATH : constant := bits.fcntl_linux.O_PATH;
O_RDONLY : constant := bits.fcntl_linux.O_RDONLY;
O_RDWR : constant := bits.fcntl_linux.O_RDWR;
O_RSYNC : constant := bits.fcntl_linux.O_RSYNC;
O_SYNC : constant := bits.fcntl_linux.O_SYNC;
O_TMPFILE : constant := bits.fcntl_linux.O_TMPFILE;
O_TRUNC : constant := bits.fcntl_linux.O_TRUNC;
O_WRONLY : constant := bits.fcntl_linux.O_WRONLY;
POSIX_FADV_DONTNEED : constant := bits.fcntl_linux.POSIX_FADV_DONTNEED;
POSIX_FADV_NOREUSE : constant := bits.fcntl_linux.POSIX_FADV_NOREUSE;
POSIX_FADV_NORMAL : constant := bits.fcntl_linux.POSIX_FADV_NORMAL;
POSIX_FADV_RANDOM : constant := bits.fcntl_linux.POSIX_FADV_RANDOM;
POSIX_FADV_SEQUENTIAL : constant :=
bits.fcntl_linux.POSIX_FADV_SEQUENTIAL;
POSIX_FADV_WILLNEED : constant := bits.fcntl_linux.POSIX_FADV_WILLNEED;
SPLICE_F_GIFT : constant := bits.fcntl_linux.SPLICE_F_GIFT;
SPLICE_F_MORE : constant := bits.fcntl_linux.SPLICE_F_MORE;
SPLICE_F_MOVE : constant := bits.fcntl_linux.SPLICE_F_MOVE;
SPLICE_F_NONBLOCK : constant := bits.fcntl_linux.SPLICE_F_NONBLOCK;
SYNC_FILE_RANGE_WAIT_AFTER : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WAIT_AFTER;
SYNC_FILE_RANGE_WAIT_BEFORE : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WAIT_BEFORE;
SYNC_FILE_RANGE_WRITE : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WRITE;
qqF_GETOWN : constant := bits.fcntl_linux.qqF_GETOWN;
qqF_GETOWN_EX : constant := bits.fcntl_linux.qqF_GETOWN_EX;
qqF_GETSIG : constant := bits.fcntl_linux.qqF_GETSIG;
qqF_SETOWN : constant := bits.fcntl_linux.qqF_SETOWN;
qqF_SETOWN_EX : constant := bits.fcntl_linux.qqF_SETOWN_EX;
qqF_SETSIG : constant := bits.fcntl_linux.qqF_SETSIG;
qqO_CLOEXEC : constant := bits.fcntl_linux.qqO_CLOEXEC;
qqO_DIRECT : constant := bits.fcntl_linux.qqO_DIRECT;
qqO_DIRECTORY : constant := bits.fcntl_linux.qqO_DIRECTORY;
qqO_DSYNC : constant := bits.fcntl_linux.qqO_DSYNC;
qqO_LARGEFILE : constant := bits.fcntl_linux.qqO_LARGEFILE;
qqO_NOATIME : constant := bits.fcntl_linux.qqO_NOATIME;
qqO_NOFOLLOW : constant := bits.fcntl_linux.qqO_NOFOLLOW;
qqO_PATH : constant := bits.fcntl_linux.qqO_PATH;
qqO_TMPFILE : constant := bits.fcntl_linux.qqO_TMPFILE;
qqPOSIX_FADV_DONTNEED : constant :=
bits.fcntl_linux.qqPOSIX_FADV_DONTNEED;
qqPOSIX_FADV_NOREUSE : constant := bits.fcntl_linux.qqPOSIX_FADV_NOREUSE;
O_EXLOCK : constant := 0;
O_SHLOCK : constant := 0;
function fcntl (fd : signed_int; cmd : signed_int) return signed_int;
function fcntl (a1 : signed_int; a2 : signed_int; a3 : signed_int)
return signed_int;
pragma Import (C, fcntl, "fcntl");
function open (file : access constant char; oflag : signed_int)
return signed_int;
function open (a1 : access constant char; a2 : signed_int;
a3 : bits.types.mode_t) return signed_int;
pragma Import (C, open, "open64");
function open64 (file : access constant char; oflag : signed_int)
return signed_int;
pragma Import (C, open64, "open64");
function openat (fd : signed_int; file : access constant char;
oflag : signed_int) return signed_int;
pragma Import (C, openat, "openat64");
function openat64 (fd : signed_int; file : access constant char;
oflag : signed_int) return signed_int;
pragma Import (C, openat64, "openat64");
function creat (file : access constant char; mode : sys.types.mode_t)
return signed_int;
pragma Import (C, creat, "creat64");
function creat64 (file : access constant char; mode : sys.types.mode_t)
return signed_int;
pragma Import (C, creat64, "creat64");
function posix_fadvise (fd : signed_int; offset : bits.types.off64_t;
len : bits.types.off64_t; advise : signed_int) return signed_int;
pragma Import (C, posix_fadvise, "posix_fadvise64");
function posix_fadvise64 (fd : signed_int; offset : sys.types.off64_t;
len : sys.types.off64_t; advise : signed_int) return signed_int;
pragma Import (C, posix_fadvise64, "posix_fadvise64");
function posix_fallocate (fd : signed_int; offset : bits.types.off64_t;
len : bits.types.off64_t) return signed_int;
pragma Import (C, posix_fallocate, "posix_fallocate64");
function posix_fallocate64 (fd : signed_int; offset : sys.types.off64_t;
len : sys.types.off64_t) return signed_int;
pragma Import (C, posix_fallocate64, "posix_fallocate64");
FCNTL_H : constant := 1;
-- __OPEN_NEEDS_MODE (function macro)
end C.fcntl;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.features is
pragma Preelaborate;
ATFILE_SOURCE : constant := 1;
DEFAULT_SOURCE : constant := 1;
FEATURES_H : constant := 1;
ISOC11_SOURCE : constant := 1;
ISOC95_SOURCE : constant := 1;
ISOC99_SOURCE : constant := 1;
LARGEFILE64_SOURCE : constant := 1;
LARGEFILE_SOURCE : constant := 1;
POSIX_C_SOURCE : constant := 200809;
POSIX_SOURCE : constant := 1;
XOPEN_SOURCE : constant := 700;
XOPEN_SOURCE_EXTENDED : constant := 1;
qqGLIBC_MINORqq : constant := 24;
-- __GLIBC_PREREQ (function macro)
qqGLIBCqq : constant := 2;
-- __GNUC_PREREQ (function macro)
qqGNU_LIBRARYqq : constant := 6;
-- __KERNEL_STRICT_NAMES (empty)
USE_ATFILE : constant := 1;
USE_FILE_OFFSET64 : constant := 1;
USE_FORTIFY_LEVEL : constant := 0;
USE_ISOC11 : constant := 1;
USE_ISOC95 : constant := 1;
USE_ISOC99 : constant := 1;
USE_LARGEFILE : constant := 1;
USE_LARGEFILE64 : constant := 1;
USE_MISC : constant := 1;
USE_POSIX : constant := 1;
USE_POSIX199309 : constant := 1;
USE_POSIX199506 : constant := 1;
USE_POSIX2 : constant := 1;
USE_UNIX98 : constant := 1;
USE_XOPEN : constant := 1;
USE_XOPEN2K : constant := 1;
USE_XOPEN2K8XSI : constant := 1;
USE_XOPEN2KXSI : constant := 1;
USE_XOPEN_EXTENDED : constant := 1;
end C.features;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.fnmatch is
pragma Preelaborate;
function fnmatch (pattern : access constant char;
name : access constant char; flags : signed_int) return signed_int;
pragma Import (C, fnmatch, "fnmatch");
FNM_CASEFOLD : constant := 16;
FNM_EXTMATCH : constant := 32;
FNM_FILE_NAME : constant := 1;
FNM_LEADING_DIR : constant := 8;
FNM_NOESCAPE : constant := 2;
FNM_NOMATCH : constant := 1;
FNM_NOSYS : constant := -1;
FNM_PATHNAME : constant := 1;
FNM_PERIOD : constant := 4;
FNMATCH_H : constant := 1;
end C.fnmatch;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.getopt is
pragma Preelaborate;
optarg : aliased char_ptr;
pragma Import (C, optarg, "optarg");
optind : aliased signed_int;
pragma Import (C, optind, "optind");
opterr : aliased signed_int;
pragma Import (C, opterr, "opterr");
optopt : aliased signed_int;
pragma Import (C, optopt, "optopt");
function getopt (argc : signed_int; argv : access char_ptr;
shortopts : access constant char) return signed_int;
pragma Import (C, getopt, "getopt");
end C.getopt;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.gnu.stubs_32 is
pragma Preelaborate;
-- __stub_chflags (empty)
-- __stub_fattach (empty)
-- __stub_fchflags (empty)
-- __stub_fdetach (empty)
-- __stub_gtty (empty)
-- __stub_lchmod (empty)
-- __stub_revoke (empty)
-- __stub_setlogin (empty)
-- __stub_sigreturn (empty)
-- __stub_sstk (empty)
-- __stub_stty (empty)
end C.gnu.stubs_32;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.gnu is
pragma Preelaborate;
end C.gnu;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.stddef;
with C.stdio;
package C.grp is
pragma Preelaborate;
type struct_group;
type struct_group is record
gr_name : aliased char_ptr;
gr_passwd : aliased char_ptr;
gr_gid : aliased bits.types.gid_t;
gr_mem : aliased char_ptr_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_group);
type struct_group_ptr is access all struct_group;
for struct_group_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_group_ptr);
pragma Convention (C, struct_group_ptr);
type struct_group_ptr_ptr is access all struct_group_ptr;
for struct_group_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_group_ptr_ptr);
pragma Convention (C, struct_group_ptr_ptr);
procedure setgrent;
pragma Import (C, setgrent, "setgrent");
procedure endgrent;
pragma Import (C, endgrent, "endgrent");
function getgrent return struct_group_ptr;
pragma Import (C, getgrent, "getgrent");
function fgetgrent (stream : access stdio.FILE) return struct_group_ptr;
pragma Import (C, fgetgrent, "fgetgrent");
function getgrgid (gid : bits.types.gid_t) return struct_group_ptr;
pragma Import (C, getgrgid, "getgrgid");
function getgrnam (name : access constant char) return struct_group_ptr;
pragma Import (C, getgrnam, "getgrnam");
function getgrgid_r (gid : bits.types.gid_t;
resultbuf : access struct_group; buffer : access char;
buflen : stddef.size_t; result : access struct_group_ptr)
return signed_int;
pragma Import (C, getgrgid_r, "getgrgid_r");
function getgrnam_r (name : access constant char;
resultbuf : access struct_group; buffer : access char;
buflen : stddef.size_t; result : access struct_group_ptr)
return signed_int;
pragma Import (C, getgrnam_r, "getgrnam_r");
function fgetgrent_r (stream : access stdio.FILE;
resultbuf : access struct_group; buffer : access char;
buflen : stddef.size_t; result : access struct_group_ptr)
return signed_int;
pragma Import (C, fgetgrent_r, "fgetgrent_r");
function setgroups (n : stddef.size_t;
groups : access constant bits.types.gid_t) return signed_int;
pragma Import (C, setgroups, "setgroups");
function getgrouplist (user : access constant char;
group : bits.types.gid_t; groups : access bits.types.gid_t;
ngroups : access signed_int) return signed_int;
pragma Import (C, getgrouplist, "getgrouplist");
function initgroups (user : access constant char;
group : bits.types.gid_t) return signed_int;
pragma Import (C, initgroups, "initgroups");
NSS_BUFLEN_GROUP : constant := 1024;
GRP_H : constant := 1;
end C.grp;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
package C.iconv is
pragma Preelaborate;
subtype iconv_t is void_ptr;
function iconv_open (tocode : access constant char;
fromcode : access constant char) return iconv_t;
pragma Import (C, iconv_open, "iconv_open");
function iconv (cd : iconv_t; inbuf : access char_ptr;
inbytesleft : access stddef.size_t; outbuf : access char_ptr;
outbytesleft : access stddef.size_t) return stddef.size_t;
function iconv (cd : iconv_t; inbuf : access char_const_ptr;
inbytesleft : access stddef.size_t; outbuf : access char_ptr;
outbytesleft : access stddef.size_t) return stddef.size_t;
pragma Import (C, iconv, "iconv");
function iconv_close (cd : iconv_t) return signed_int;
pragma Import (C, iconv_close, "iconv_close");
ICONV_H : constant := 1;
end C.iconv;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.qG_config;
with C.stdarg;
with C.stddef;
package C.libio is
pragma Preelaborate;
type struct_IO_jump_t (<>) is limited private;
type struct_IO_FILE;
type struct_IO_FILE_ptr is access all struct_IO_FILE;
for struct_IO_FILE_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_IO_FILE_ptr);
pragma Convention (C, struct_IO_FILE_ptr);
-- subtype _IO_lock_t is void (typedef)
subtype IO_lock_t_ptr is void_ptr;
type struct_IO_marker;
type struct_IO_marker_ptr is access all struct_IO_marker;
for struct_IO_marker_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_IO_marker_ptr);
pragma Convention (C, struct_IO_marker_ptr);
type struct_IO_marker is record
next : aliased struct_IO_marker_ptr;
sbuf : aliased struct_IO_FILE_ptr;
pos : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_IO_marker);
type enum_codecvt_result;
type enum_codecvt_result is (codecvt_ok, codecvt_partial, codecvt_error,
codecvt_noconv);
for enum_codecvt_result use (codecvt_ok => 0, codecvt_partial => 1,
codecvt_error => 2, codecvt_noconv => 3);
pragma Convention (C, enum_codecvt_result);
type struct_IO_FILE is record
flags : aliased signed_int;
IO_read_ptr : aliased char_ptr;
IO_read_end : aliased char_ptr;
IO_read_base : aliased char_ptr;
IO_write_base : aliased char_ptr;
IO_write_ptr : aliased char_ptr;
IO_write_end : aliased char_ptr;
IO_buf_base : aliased char_ptr;
IO_buf_end : aliased char_ptr;
IO_save_base : aliased char_ptr;
IO_backup_base : aliased char_ptr;
IO_save_end : aliased char_ptr;
markers : aliased struct_IO_marker_ptr;
chain : aliased struct_IO_FILE_ptr;
fileno : aliased signed_int;
flags2 : aliased signed_int;
old_offset : aliased bits.types.off_t;
cur_column : aliased unsigned_short;
vtable_offset : aliased signed_char;
shortbuf : aliased char_array (0 .. 0);
lock : aliased IO_lock_t_ptr;
offset : aliased bits.types.off64_t;
pad1 : aliased void_ptr;
pad2 : aliased void_ptr;
pad3 : aliased void_ptr;
pad4 : aliased void_ptr;
pad5 : aliased stddef.size_t;
mode : aliased signed_int;
unused2 : aliased char_array (0 .. 39);
end record;
pragma Convention (C_Pass_By_Copy, struct_IO_FILE);
subtype IO_FILE is struct_IO_FILE;
subtype IO_FILE_ptr is struct_IO_FILE_ptr;
type struct_IO_FILE_plus (<>) is limited private;
-- extern _IO_2_1_stdin_ (opaque type)
-- extern _IO_2_1_stdout_ (opaque type)
-- extern _IO_2_1_stderr_ (opaque type)
-- subtype __io_read_fn is ... (function type)
-- subtype __io_write_fn is ... (function type)
-- subtype __io_seek_fn is ... (function type)
-- subtype __io_close_fn is ... (function type)
function underflow (a1 : access IO_FILE) return signed_int;
pragma Import (C, underflow, "__underflow");
function uflow (a1 : access IO_FILE) return signed_int;
pragma Import (C, uflow, "__uflow");
function overflow (a1 : access IO_FILE; a2 : signed_int)
return signed_int;
pragma Import (C, overflow, "__overflow");
function IO_getc (fp : access IO_FILE) return signed_int;
pragma Import (C, IO_getc, "_IO_getc");
function IO_putc (c : signed_int; fp : access IO_FILE) return signed_int;
pragma Import (C, IO_putc, "_IO_putc");
function IO_feof (fp : access IO_FILE) return signed_int;
pragma Import (C, IO_feof, "_IO_feof");
function IO_ferror (fp : access IO_FILE) return signed_int;
pragma Import (C, IO_ferror, "_IO_ferror");
function IO_peekc_locked (fp : access IO_FILE) return signed_int;
pragma Import (C, IO_peekc_locked, "_IO_peekc_locked");
procedure qIO_flockfile (a1 : access IO_FILE);
pragma Import (C, qIO_flockfile, "_IO_flockfile");
procedure qIO_funlockfile (a1 : access IO_FILE);
pragma Import (C, qIO_funlockfile, "_IO_funlockfile");
function qIO_ftrylockfile (a1 : access IO_FILE) return signed_int;
pragma Import (C, qIO_ftrylockfile, "_IO_ftrylockfile");
function IO_vfscanf (a1 : access IO_FILE; a2 : access constant char;
a3 : stdarg.qqgnuc_va_list; a4 : access signed_int) return signed_int;
pragma Import (C, IO_vfscanf, "_IO_vfscanf");
function IO_vfprintf (a1 : access IO_FILE; a2 : access constant char;
a3 : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, IO_vfprintf, "_IO_vfprintf");
function IO_padn (a1 : access IO_FILE; a2 : signed_int;
a3 : bits.types.ssize_t) return bits.types.ssize_t;
pragma Import (C, IO_padn, "_IO_padn");
function IO_sgetn (a1 : access IO_FILE; a2 : void_ptr; a3 : stddef.size_t)
return stddef.size_t;
pragma Import (C, IO_sgetn, "_IO_sgetn");
function IO_seekoff (a1 : access IO_FILE; a2 : bits.types.off64_t;
a3 : signed_int; a4 : signed_int) return bits.types.off64_t;
pragma Import (C, IO_seekoff, "_IO_seekoff");
function IO_seekpos (a1 : access IO_FILE; a2 : bits.types.off64_t;
a3 : signed_int) return bits.types.off64_t;
pragma Import (C, IO_seekpos, "_IO_seekpos");
procedure IO_free_backup_area (a1 : access IO_FILE);
pragma Import (C, IO_free_backup_area, "_IO_free_backup_area");
EOF : constant := -1;
IOS_APPEND : constant := 8;
IOS_ATEND : constant := 4;
IOS_BIN : constant := 128;
IOS_INPUT : constant := 1;
IOS_NOCREATE : constant := 32;
IOS_NOREPLACE : constant := 64;
IOS_OUTPUT : constant := 2;
IOS_TRUNC : constant := 16;
IO_BAD_SEEN : constant := 16384;
-- _IO_BE (function macro)
IO_BOOLALPHA : constant := 65536;
IO_BUFSIZ : constant := 8192;
IO_CURRENTLY_PUTTING : constant := 2048;
IO_DEC : constant := 16;
IO_DELETE_DONT_CLOSE : constant := 64;
IO_DONT_CLOSE : constant := 32768;
IO_EOF_SEEN : constant := 16;
IO_ERR_SEEN : constant := 32;
IO_FIXED : constant := 4096;
IO_FLAGS2_MMAP : constant := 1;
IO_FLAGS2_NOTCANCEL : constant := 2;
IO_FLAGS2_USER_WBUF : constant := 8;
-- _IO_HAVE_ST_BLKSIZE (unparsible)
IO_HEX : constant := 64;
IO_INTERNAL : constant := 8;
IO_IN_BACKUP : constant := 256;
IO_IS_APPENDING : constant := 4096;
IO_IS_FILEBUF : constant := 8192;
IO_LEFT : constant := 2;
IO_LINE_BUF : constant := 512;
IO_LINKED : constant := 128;
IO_MAGIC : constant := -72548352;
IO_MAGIC_MASK : constant := -65536;
IO_NO_READS : constant := 4;
IO_NO_WRITES : constant := 8;
IO_OCT : constant := 32;
-- _IO_PENDING_OUTPUT_COUNT (uninterpretable)
IO_RIGHT : constant := 4;
IO_SCIENTIFIC : constant := 2048;
IO_SHOWBASE : constant := 128;
IO_SHOWPOINT : constant := 256;
IO_SHOWPOS : constant := 1024;
IO_SKIPWS : constant := 1;
IO_STDIO : constant := 16384;
-- _IO_STDIO_H (empty)
IO_TIED_PUT_GET : constant := 1024;
IO_UNBUFFERED : constant := 2;
IO_UNIFIED_JUMPTABLES : constant := 1;
IO_UNITBUF : constant := 8192;
IO_UPPERCASE : constant := 512;
IO_USER_BUF : constant := 1;
IO_USER_LOCK : constant := 32768;
-- _IO_cleanup_region_end (empty)
-- _IO_cleanup_region_start (empty)
-- _IO_feof_unlocked (uninterpretable)
-- _IO_ferror_unlocked (uninterpretable)
-- ._IO_file_flags renames ._flags (accessor)
-- _IO_flockfile (empty)
subtype IO_fpos64_t is qG_config.G_fpos64_t;
subtype IO_fpos_t is qG_config.G_fpos_t;
-- _IO_ftrylockfile (empty)
-- _IO_funlockfile (empty)
-- _IO_getc_unlocked (uninterpretable)
-- _IO_iconv_t (unparsible)
subtype IO_off64_t is bits.types.off64_t;
subtype IO_off_t is bits.types.off_t;
-- _IO_peekc (uninterpretable)
-- _IO_peekc_unlocked (uninterpretable)
subtype IO_pid_t is bits.types.pid_t;
-- _IO_putc_unlocked (uninterpretable)
subtype IO_size_t is stddef.size_t;
subtype IO_ssize_t is bits.types.ssize_t;
-- _IO_stderr (unparsible)
-- _IO_stdin (unparsible)
-- _IO_stdout (unparsible)
subtype IO_uid_t is bits.types.uid_t;
subtype IO_va_list is stdarg.qqgnuc_va_list;
-- _IO_wint_t (unparsible)
OLD_STDIO_MAGIC : constant := -88342528;
-- __HAVE_COLUMN (empty)
private
type struct_IO_jump_t is null record;
type struct_IO_FILE_plus is null record;
end C.libio;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.limits is
pragma Preelaborate;
MB_LEN_MAX : constant := 16;
LIBC_LIMITS_H : constant := 1;
CHAR_BIT : constant := 8;
CHAR_MAX : constant := 127;
CHAR_MIN : constant := -128;
INT_MAX : constant := 2147483647;
INT_MIN : constant := -2147483648;
LLONG_MAX : constant := 9223372036854775807;
LLONG_MIN : constant := -9223372036854775808;
LONG_LONG_MAX : constant := 9223372036854775807;
LONG_LONG_MIN : constant := -9223372036854775808;
LONG_MAX : constant := 2147483647;
LONG_MIN : constant := -2147483648;
SCHAR_MAX : constant := 127;
SCHAR_MIN : constant := -128;
SHRT_MAX : constant := 32767;
SHRT_MIN : constant := -32768;
UCHAR_MAX : constant := 255;
UINT_MAX : constant := 4294967295;
ULLONG_MAX : constant := 18446744073709551615;
ULONG_LONG_MAX : constant := 18446744073709551615;
ULONG_MAX : constant := 4294967295;
USHRT_MAX : constant := 65535;
-- _GCC_LIMITS_H_ (empty)
-- _LIMITS_H___ (empty)
end C.limits;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.linux.ioctl is
pragma Preelaborate;
-- _LINUX_IOCTL_H (empty)
end C.linux.ioctl;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.linux.limits is
pragma Preelaborate;
MAX_CANON : constant := 255;
MAX_INPUT : constant := 255;
NAME_MAX : constant := 255;
NGROUPS_MAX : constant := 65536;
PATH_MAX : constant := 4096;
PIPE_BUF : constant := 4096;
RTSIG_MAX : constant := 32;
XATTR_LIST_MAX : constant := 65536;
XATTR_NAME_MAX : constant := 255;
XATTR_SIZE_MAX : constant := 65536;
-- _LINUX_LIMITS_H (empty)
end C.linux.limits;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.linux is
pragma Preelaborate;
end C.linux;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
with C.stdio;
package C.malloc is
pragma Preelaborate;
function memalign (alignment : stddef.size_t; size : stddef.size_t)
return void_ptr;
pragma Import (C, memalign, "memalign");
function pvalloc (size : stddef.size_t) return void_ptr;
pragma Import (C, pvalloc, "pvalloc");
type access_84b70f93 is access function (size : stddef.ptrdiff_t)
return void_ptr;
pragma Convention (C, access_84b70f93);
morecore : aliased access_84b70f93;
pragma Import (C, morecore, "__morecore");
function default_morecore (size : stddef.ptrdiff_t) return void_ptr;
pragma Import (C, default_morecore, "__default_morecore");
type struct_mallinfo;
type struct_mallinfo is record
arena : aliased signed_int;
ordblks : aliased signed_int;
smblks : aliased signed_int;
hblks : aliased signed_int;
hblkhd : aliased signed_int;
usmblks : aliased signed_int;
fsmblks : aliased signed_int;
uordblks : aliased signed_int;
fordblks : aliased signed_int;
keepcost : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_mallinfo);
function mallinfo return struct_mallinfo;
pragma Import (C, mallinfo, "mallinfo");
function mallopt (param : signed_int; val : signed_int) return signed_int;
pragma Import (C, mallopt, "mallopt");
function malloc_trim (pad : stddef.size_t) return signed_int;
pragma Import (C, malloc_trim, "malloc_trim");
function malloc_usable_size (ptr : void_ptr) return stddef.size_t;
pragma Import (C, malloc_usable_size, "malloc_usable_size");
type access_e823f645 is access procedure;
pragma Convention (C, access_e823f645);
procedure malloc_stats;
pragma Import (C, malloc_stats, "malloc_stats");
function malloc_info (options : signed_int; fp : access stdio.FILE)
return signed_int;
pragma Import (C, malloc_info, "malloc_info");
function malloc_get_state return void_ptr;
pragma Import (C, malloc_get_state, "malloc_get_state");
function malloc_set_state (ptr : void_ptr) return signed_int;
pragma Import (C, malloc_set_state, "malloc_set_state");
type access_631e4f67 is access procedure (ptr : void_ptr;
a2 : void_const_ptr);
pragma Convention (C, access_631e4f67);
free_hook : aliased access_631e4f67;
pragma Import (C, free_hook, "__free_hook");
type access_6f3c9913 is access function (size : stddef.size_t;
a2 : void_const_ptr) return void_ptr;
pragma Convention (C, access_6f3c9913);
malloc_hook : aliased access_6f3c9913;
pragma Import (C, malloc_hook, "__malloc_hook");
type access_c09d6d2c is access function (ptr : void_ptr;
size : stddef.size_t; a3 : void_const_ptr) return void_ptr;
pragma Convention (C, access_c09d6d2c);
realloc_hook : aliased access_c09d6d2c;
pragma Import (C, realloc_hook, "__realloc_hook");
type access_fe91e7a9 is access function (alignment : stddef.size_t;
size : stddef.size_t; a3 : void_const_ptr) return void_ptr;
pragma Convention (C, access_fe91e7a9);
memalign_hook : aliased access_fe91e7a9;
pragma Import (C, memalign_hook, "__memalign_hook");
after_morecore_hook : aliased access_e823f645;
pragma Import (C, after_morecore_hook, "__after_morecore_hook");
procedure malloc_check_init;
pragma Import (C, malloc_check_init, "__malloc_check_init");
M_ARENA_MAX : constant := -8;
M_ARENA_TEST : constant := -7;
M_CHECK_ACTION : constant := -5;
M_GRAIN : constant := 3;
M_KEEP : constant := 4;
M_MMAP_MAX : constant := -4;
M_MMAP_THRESHOLD : constant := -3;
M_MXFAST : constant := 1;
M_NLBLKS : constant := 2;
M_PERTURB : constant := -6;
M_TOP_PAD : constant := -2;
M_TRIM_THRESHOLD : constant := -1;
MALLOC_H : constant := 1;
-- __MALLOC_DEPRECATED (attribute)
-- __MALLOC_HOOK_VOLATILE (alias of volatile)
end C.malloc;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package body C.netdb is
function h_errno return signed_int is
begin
return h_errno_location.all;
end h_errno;
end C.netdb;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.netdb;
with C.bits.siginfo;
with C.bits.sockaddr;
with C.bits.socket;
with C.bits.types;
with C.stddef;
with C.stdint;
with C.time;
with C.unistd;
package C.netdb is
pragma Preelaborate;
function h_errno_location return signed_int_ptr;
pragma Import (C, h_errno_location, "__h_errno_location");
procedure herror (str : access constant char);
pragma Import (C, herror, "herror");
function hstrerror (err_num : signed_int) return char_const_ptr;
pragma Import (C, hstrerror, "hstrerror");
type struct_hostent;
type struct_hostent is record
h_name : aliased char_ptr;
h_aliases : aliased char_ptr_ptr;
h_addrtype : aliased signed_int;
h_length : aliased signed_int;
h_addr_list : aliased char_ptr_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_hostent);
type struct_hostent_ptr is access all struct_hostent;
for struct_hostent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_hostent_ptr);
pragma Convention (C, struct_hostent_ptr);
type struct_hostent_ptr_ptr is access all struct_hostent_ptr;
for struct_hostent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_hostent_ptr_ptr);
pragma Convention (C, struct_hostent_ptr_ptr);
procedure sethostent (stay_open : signed_int);
pragma Import (C, sethostent, "sethostent");
procedure endhostent;
pragma Import (C, endhostent, "endhostent");
function gethostent return struct_hostent_ptr;
pragma Import (C, gethostent, "gethostent");
function gethostbyaddr (addr : void_const_ptr; len : bits.types.socklen_t;
A_type : signed_int) return struct_hostent_ptr;
pragma Import (C, gethostbyaddr, "gethostbyaddr");
function gethostbyname (name : access constant char)
return struct_hostent_ptr;
pragma Import (C, gethostbyname, "gethostbyname");
function gethostbyname2 (name : access constant char; af : signed_int)
return struct_hostent_ptr;
pragma Import (C, gethostbyname2, "gethostbyname2");
function gethostent_r (result_buf : access struct_hostent;
buf : access char; buflen : stddef.size_t;
result : access struct_hostent_ptr; h_errnop : access signed_int)
return signed_int;
pragma Import (C, gethostent_r, "gethostent_r");
function gethostbyaddr_r (addr : void_const_ptr;
len : bits.types.socklen_t; A_type : signed_int;
result_buf : access struct_hostent; buf : access char;
buflen : stddef.size_t; result : access struct_hostent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, gethostbyaddr_r, "gethostbyaddr_r");
function gethostbyname_r (name : access constant char;
result_buf : access struct_hostent; buf : access char;
buflen : stddef.size_t; result : access struct_hostent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, gethostbyname_r, "gethostbyname_r");
function gethostbyname2_r (name : access constant char; af : signed_int;
result_buf : access struct_hostent; buf : access char;
buflen : stddef.size_t; result : access struct_hostent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, gethostbyname2_r, "gethostbyname2_r");
procedure setnetent (stay_open : signed_int);
pragma Import (C, setnetent, "setnetent");
procedure endnetent;
pragma Import (C, endnetent, "endnetent");
function getnetent return bits.netdb.struct_netent_ptr;
pragma Import (C, getnetent, "getnetent");
function getnetbyaddr (net : stdint.uint32_t; A_type : signed_int)
return bits.netdb.struct_netent_ptr;
pragma Import (C, getnetbyaddr, "getnetbyaddr");
function getnetbyname (name : access constant char)
return bits.netdb.struct_netent_ptr;
pragma Import (C, getnetbyname, "getnetbyname");
function getnetent_r (result_buf : access bits.netdb.struct_netent;
buf : access char; buflen : stddef.size_t;
result : access bits.netdb.struct_netent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, getnetent_r, "getnetent_r");
function getnetbyaddr_r (net : stdint.uint32_t; A_type : signed_int;
result_buf : access bits.netdb.struct_netent; buf : access char;
buflen : stddef.size_t; result : access bits.netdb.struct_netent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, getnetbyaddr_r, "getnetbyaddr_r");
function getnetbyname_r (name : access constant char;
result_buf : access bits.netdb.struct_netent; buf : access char;
buflen : stddef.size_t; result : access bits.netdb.struct_netent_ptr;
h_errnop : access signed_int) return signed_int;
pragma Import (C, getnetbyname_r, "getnetbyname_r");
type struct_servent;
type struct_servent is record
s_name : aliased char_ptr;
s_aliases : aliased char_ptr_ptr;
s_port : aliased signed_int;
s_proto : aliased char_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_servent);
type struct_servent_ptr is access all struct_servent;
for struct_servent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_servent_ptr);
pragma Convention (C, struct_servent_ptr);
type struct_servent_ptr_ptr is access all struct_servent_ptr;
for struct_servent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_servent_ptr_ptr);
pragma Convention (C, struct_servent_ptr_ptr);
procedure setservent (stay_open : signed_int);
pragma Import (C, setservent, "setservent");
procedure endservent;
pragma Import (C, endservent, "endservent");
function getservent return struct_servent_ptr;
pragma Import (C, getservent, "getservent");
function getservbyname (name : access constant char;
proto : access constant char) return struct_servent_ptr;
pragma Import (C, getservbyname, "getservbyname");
function getservbyport (port : signed_int; proto : access constant char)
return struct_servent_ptr;
pragma Import (C, getservbyport, "getservbyport");
function getservent_r (result_buf : access struct_servent;
buf : access char; buflen : stddef.size_t;
result : access struct_servent_ptr) return signed_int;
pragma Import (C, getservent_r, "getservent_r");
function getservbyname_r (name : access constant char;
proto : access constant char; result_buf : access struct_servent;
buf : access char; buflen : stddef.size_t;
result : access struct_servent_ptr) return signed_int;
pragma Import (C, getservbyname_r, "getservbyname_r");
function getservbyport_r (port : signed_int; proto : access constant char;
result_buf : access struct_servent; buf : access char;
buflen : stddef.size_t; result : access struct_servent_ptr)
return signed_int;
pragma Import (C, getservbyport_r, "getservbyport_r");
type struct_protoent;
type struct_protoent is record
p_name : aliased char_ptr;
p_aliases : aliased char_ptr_ptr;
p_proto : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_protoent);
type struct_protoent_ptr is access all struct_protoent;
for struct_protoent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_protoent_ptr);
pragma Convention (C, struct_protoent_ptr);
type struct_protoent_ptr_ptr is access all struct_protoent_ptr;
for struct_protoent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_protoent_ptr_ptr);
pragma Convention (C, struct_protoent_ptr_ptr);
procedure setprotoent (stay_open : signed_int);
pragma Import (C, setprotoent, "setprotoent");
procedure endprotoent;
pragma Import (C, endprotoent, "endprotoent");
function getprotoent return struct_protoent_ptr;
pragma Import (C, getprotoent, "getprotoent");
function getprotobyname (name : access constant char)
return struct_protoent_ptr;
pragma Import (C, getprotobyname, "getprotobyname");
function getprotobynumber (proto : signed_int) return struct_protoent_ptr;
pragma Import (C, getprotobynumber, "getprotobynumber");
function getprotoent_r (result_buf : access struct_protoent;
buf : access char; buflen : stddef.size_t;
result : access struct_protoent_ptr) return signed_int;
pragma Import (C, getprotoent_r, "getprotoent_r");
function getprotobyname_r (name : access constant char;
result_buf : access struct_protoent; buf : access char;
buflen : stddef.size_t; result : access struct_protoent_ptr)
return signed_int;
pragma Import (C, getprotobyname_r, "getprotobyname_r");
function getprotobynumber_r (proto : signed_int;
result_buf : access struct_protoent; buf : access char;
buflen : stddef.size_t; result : access struct_protoent_ptr)
return signed_int;
pragma Import (C, getprotobynumber_r, "getprotobynumber_r");
function setnetgrent (netgroup : access constant char) return signed_int;
pragma Import (C, setnetgrent, "setnetgrent");
procedure endnetgrent;
pragma Import (C, endnetgrent, "endnetgrent");
function getnetgrent (hostp : access char_ptr; userp : access char_ptr;
domainp : access char_ptr) return signed_int;
pragma Import (C, getnetgrent, "getnetgrent");
function innetgr (netgroup : access constant char;
host : access constant char; user : access constant char;
domain : access constant char) return signed_int;
pragma Import (C, innetgr, "innetgr");
function getnetgrent_r (hostp : access char_ptr; userp : access char_ptr;
domainp : access char_ptr; buffer : access char;
buflen : stddef.size_t) return signed_int;
pragma Import (C, getnetgrent_r, "getnetgrent_r");
function rcmd (ahost : access char_ptr; rport : unsigned_short;
locuser : access constant char; remuser : access constant char;
cmd : access constant char; fd2p : access signed_int)
return signed_int;
pragma Import (C, rcmd, "rcmd");
function rcmd_af (ahost : access char_ptr; rport : unsigned_short;
locuser : access constant char; remuser : access constant char;
cmd : access constant char; fd2p : access signed_int;
af : bits.sockaddr.sa_family_t) return signed_int;
pragma Import (C, rcmd_af, "rcmd_af");
function rexec (ahost : access char_ptr; rport : signed_int;
name : access constant char; pass : access constant char;
cmd : access constant char; fd2p : access signed_int)
return signed_int;
pragma Import (C, rexec, "rexec");
function rexec_af (ahost : access char_ptr; rport : signed_int;
name : access constant char; pass : access constant char;
cmd : access constant char; fd2p : access signed_int;
af : bits.sockaddr.sa_family_t) return signed_int;
pragma Import (C, rexec_af, "rexec_af");
function ruserok (rhost : access constant char; suser : signed_int;
remuser : access constant char; locuser : access constant char)
return signed_int;
pragma Import (C, ruserok, "ruserok");
function ruserok_af (rhost : access constant char; suser : signed_int;
remuser : access constant char; locuser : access constant char;
af : bits.sockaddr.sa_family_t) return signed_int;
pragma Import (C, ruserok_af, "ruserok_af");
function iruserok (raddr : stdint.uint32_t; suser : signed_int;
remuser : access constant char; locuser : access constant char)
return signed_int;
pragma Import (C, iruserok, "iruserok");
function iruserok_af (raddr : void_const_ptr; suser : signed_int;
remuser : access constant char; locuser : access constant char;
af : bits.sockaddr.sa_family_t) return signed_int;
pragma Import (C, iruserok_af, "iruserok_af");
function rresvport (alport : access signed_int) return signed_int;
pragma Import (C, rresvport, "rresvport");
function rresvport_af (alport : access signed_int;
af : bits.sockaddr.sa_family_t) return signed_int;
pragma Import (C, rresvport_af, "rresvport_af");
type struct_addrinfo;
type struct_addrinfo_ptr is access all struct_addrinfo;
for struct_addrinfo_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_addrinfo_ptr);
pragma Convention (C, struct_addrinfo_ptr);
type struct_addrinfo_ptr_ptr is access all struct_addrinfo_ptr;
for struct_addrinfo_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_addrinfo_ptr_ptr);
pragma Convention (C, struct_addrinfo_ptr_ptr);
type struct_addrinfo is record
ai_flags : aliased signed_int;
ai_family : aliased signed_int;
ai_socktype : aliased signed_int;
ai_protocol : aliased signed_int;
ai_addrlen : aliased unistd.socklen_t;
ai_addr : aliased bits.socket.struct_sockaddr_ptr;
ai_canonname : aliased char_ptr;
ai_next : aliased struct_addrinfo_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_addrinfo);
type struct_addrinfo_const_ptr is access constant struct_addrinfo;
for struct_addrinfo_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_addrinfo_const_ptr);
pragma Convention (C, struct_addrinfo_const_ptr);
type struct_gaicb;
type struct_gaicb is record
ar_name : aliased char_const_ptr;
ar_service : aliased char_const_ptr;
ar_request : aliased struct_addrinfo_const_ptr;
ar_result : aliased struct_addrinfo_ptr;
F_return : aliased signed_int;
glibc_reserved : aliased signed_int_array (0 .. 4);
end record;
pragma Convention (C_Pass_By_Copy, struct_gaicb);
type struct_gaicb_ptr is access all struct_gaicb;
for struct_gaicb_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_gaicb_ptr);
pragma Convention (C, struct_gaicb_ptr);
type struct_gaicb_ptr_array is array (size_t range <>) of
aliased struct_gaicb_ptr;
pragma Convention (C, struct_gaicb_ptr_array);
type struct_gaicb_ptr_ptr is access all struct_gaicb_ptr;
for struct_gaicb_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_gaicb_ptr_ptr);
pragma Convention (C, struct_gaicb_ptr_ptr);
type struct_gaicb_const_ptr is access constant struct_gaicb;
for struct_gaicb_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_gaicb_const_ptr);
pragma Convention (C, struct_gaicb_const_ptr);
type struct_gaicb_const_ptr_array is array (size_t range <>) of
aliased struct_gaicb_const_ptr;
pragma Convention (C, struct_gaicb_const_ptr_array);
type struct_gaicb_const_ptr_ptr is access all struct_gaicb_const_ptr;
for struct_gaicb_const_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_gaicb_const_ptr_ptr);
pragma Convention (C, struct_gaicb_const_ptr_ptr);
function getaddrinfo (name : access constant char;
service : access constant char; req : access constant struct_addrinfo;
pai : access struct_addrinfo_ptr) return signed_int;
pragma Import (C, getaddrinfo, "getaddrinfo");
procedure freeaddrinfo (ai : access struct_addrinfo);
pragma Import (C, freeaddrinfo, "freeaddrinfo");
function gai_strerror (ecode : signed_int) return char_const_ptr;
pragma Import (C, gai_strerror, "gai_strerror");
function getnameinfo (sa : access constant bits.socket.struct_sockaddr;
salen : unistd.socklen_t; host : access char;
hostlen : unistd.socklen_t; serv : access char;
servlen : unistd.socklen_t; flags : signed_int) return signed_int;
pragma Import (C, getnameinfo, "getnameinfo");
function getaddrinfo_a (mode : signed_int; list : access struct_gaicb_ptr;
ent : signed_int; sig : access bits.siginfo.struct_sigevent)
return signed_int;
pragma Import (C, getaddrinfo_a, "getaddrinfo_a");
function gai_suspend (list : access struct_gaicb_const_ptr;
ent : signed_int; timeout : access constant time.struct_timespec)
return signed_int;
pragma Import (C, gai_suspend, "gai_suspend");
function gai_error (req : access struct_gaicb) return signed_int;
pragma Import (C, gai_error, "gai_error");
function gai_cancel (gaicbp : access struct_gaicb) return signed_int;
pragma Import (C, gai_cancel, "gai_cancel");
AI_ADDRCONFIG : constant := 32;
AI_ALL : constant := 16;
AI_CANONIDN : constant := 128;
AI_CANONNAME : constant := 2;
AI_IDN : constant := 64;
AI_IDN_ALLOW_UNASSIGNED : constant := 256;
AI_IDN_USE_STD3_ASCII_RULES : constant := 512;
AI_NUMERICHOST : constant := 4;
AI_NUMERICSERV : constant := 1024;
AI_PASSIVE : constant := 1;
AI_V4MAPPED : constant := 8;
EAI_ADDRFAMILY : constant := -9;
EAI_AGAIN : constant := -3;
EAI_ALLDONE : constant := -103;
EAI_BADFLAGS : constant := -1;
EAI_CANCELED : constant := -101;
EAI_FAIL : constant := -4;
EAI_FAMILY : constant := -6;
EAI_IDN_ENCODE : constant := -105;
EAI_INPROGRESS : constant := -100;
EAI_INTR : constant := -104;
EAI_MEMORY : constant := -10;
EAI_NODATA : constant := -5;
EAI_NONAME : constant := -2;
EAI_NOTCANCELED : constant := -102;
EAI_OVERFLOW : constant := -12;
EAI_SERVICE : constant := -8;
EAI_SOCKTYPE : constant := -7;
EAI_SYSTEM : constant := -11;
GAI_NOWAIT : constant := 1;
GAI_WAIT : constant := 0;
HOST_NOT_FOUND : constant := 1;
IPPORT_RESERVED : constant := 1024;
NETDB_INTERNAL : constant := -1;
NETDB_SUCCESS : constant := 0;
NI_DGRAM : constant := 16;
NI_IDN : constant := 32;
NI_IDN_ALLOW_UNASSIGNED : constant := 64;
NI_IDN_USE_STD3_ASCII_RULES : constant := 128;
NI_MAXHOST : constant := 1025;
NI_MAXSERV : constant := 32;
NI_NAMEREQD : constant := 8;
NI_NOFQDN : constant := 4;
NI_NUMERICHOST : constant := 1;
NI_NUMERICSERV : constant := 2;
NO_ADDRESS : constant := 4;
NO_DATA : constant := 4;
NO_RECOVERY : constant := 3;
SCOPE_DELIMITER : constant char := '%';
TRY_AGAIN : constant := 2;
NETDB_H : constant := 1;
PATH_HEQUIV : constant char_array (0 .. 16) := "/etc/hosts.equiv"
& char'Val (0);
PATH_HOSTS : constant char_array (0 .. 10) := "/etc/hosts" & char'Val (0);
PATH_NETWORKS : constant char_array (0 .. 13) := "/etc/networks"
& char'Val (0);
PATH_NSSWITCH_CONF : constant char_array (0 .. 18) := "/etc/nsswitch.conf"
& char'Val (0);
PATH_PROTOCOLS : constant char_array (0 .. 14) := "/etc/protocols"
& char'Val (0);
PATH_SERVICES : constant char_array (0 .. 13) := "/etc/services"
& char'Val (0);
-- __need_sigevent_t (empty)
-- h_addr (unparsible)
function h_errno return signed_int;
pragma Inline_Always (h_errno);
end C.netdb;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.sockaddr;
with C.bits.socket;
with C.stdint;
with C.unistd;
package C.netinet.in_h is
pragma Preelaborate;
subtype uint32_t_array4 is stdint.uint32_t_array (0 .. 3);
subtype uint16_t_array8 is stdint.uint16_t_array (0 .. 7);
subtype uint8_t_array16 is stdint.uint8_t_array (0 .. 15);
subtype in_addr_t is stdint.uint32_t;
type struct_in_addr;
type struct_in_addr is record
s_addr : aliased in_addr_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_in_addr);
type struct_in_addr_array is array (size_t range <>) of
aliased struct_in_addr;
pragma Convention (C, struct_in_addr_array);
type struct_in_addr_ptr is access all struct_in_addr;
for struct_in_addr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_in_addr_ptr);
pragma Convention (C, struct_in_addr_ptr);
type struct_in_addr_const_ptr is access constant struct_in_addr;
for struct_in_addr_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_in_addr_const_ptr);
pragma Convention (C, struct_in_addr_const_ptr);
-- #include <bits/in.h>
type enum_8ba83774 is (IPPROTO_IP, IPPROTO_ICMP, IPPROTO_IGMP,
IPPROTO_IPIP, IPPROTO_TCP, IPPROTO_EGP, IPPROTO_PUP, IPPROTO_UDP,
IPPROTO_IDP, IPPROTO_TP, IPPROTO_DCCP, IPPROTO_IPV6, IPPROTO_RSVP,
IPPROTO_GRE, IPPROTO_ESP, IPPROTO_AH, IPPROTO_MTP, IPPROTO_BEETPH,
IPPROTO_ENCAP, IPPROTO_PIM, IPPROTO_COMP, IPPROTO_SCTP,
IPPROTO_UDPLITE, IPPROTO_MPLS, IPPROTO_RAW, IPPROTO_MAX);
for enum_8ba83774 use (IPPROTO_IP => 0, IPPROTO_ICMP => 1,
IPPROTO_IGMP => 2, IPPROTO_IPIP => 4, IPPROTO_TCP => 6,
IPPROTO_EGP => 8, IPPROTO_PUP => 12, IPPROTO_UDP => 17,
IPPROTO_IDP => 22, IPPROTO_TP => 29, IPPROTO_DCCP => 33,
IPPROTO_IPV6 => 41, IPPROTO_RSVP => 46, IPPROTO_GRE => 47,
IPPROTO_ESP => 50, IPPROTO_AH => 51, IPPROTO_MTP => 92,
IPPROTO_BEETPH => 94, IPPROTO_ENCAP => 98, IPPROTO_PIM => 103,
IPPROTO_COMP => 108, IPPROTO_SCTP => 132, IPPROTO_UDPLITE => 136,
IPPROTO_MPLS => 137, IPPROTO_RAW => 255, IPPROTO_MAX => 256);
pragma Convention (C, enum_8ba83774);
for enum_8ba83774'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_8ba83774, signed_int);
type enum_21aca102 is (IPPROTO_HOPOPTS, IPPROTO_ROUTING, IPPROTO_FRAGMENT,
IPPROTO_ICMPV6, IPPROTO_NONE, IPPROTO_DSTOPTS, IPPROTO_MH);
for enum_21aca102 use (IPPROTO_HOPOPTS => 0, IPPROTO_ROUTING => 43,
IPPROTO_FRAGMENT => 44, IPPROTO_ICMPV6 => 58, IPPROTO_NONE => 59,
IPPROTO_DSTOPTS => 60, IPPROTO_MH => 135);
pragma Convention (C, enum_21aca102);
for enum_21aca102'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_21aca102, signed_int);
subtype in_port_t is stdint.uint16_t;
type enum_4bdbd5f7 is (IPPORT_ECHO, IPPORT_DISCARD, IPPORT_SYSTAT,
IPPORT_DAYTIME, IPPORT_NETSTAT, IPPORT_FTP, IPPORT_TELNET, IPPORT_SMTP,
IPPORT_TIMESERVER, IPPORT_NAMESERVER, IPPORT_WHOIS, IPPORT_MTP,
IPPORT_TFTP, IPPORT_RJE, IPPORT_FINGER, IPPORT_TTYLINK, IPPORT_SUPDUP,
IPPORT_EXECSERVER, IPPORT_LOGINSERVER, IPPORT_CMDSERVER,
IPPORT_EFSSERVER, IPPORT_RESERVED, IPPORT_USERRESERVED);
for enum_4bdbd5f7 use (IPPORT_ECHO => 7, IPPORT_DISCARD => 9,
IPPORT_SYSTAT => 11, IPPORT_DAYTIME => 13, IPPORT_NETSTAT => 15,
IPPORT_FTP => 21, IPPORT_TELNET => 23, IPPORT_SMTP => 25,
IPPORT_TIMESERVER => 37, IPPORT_NAMESERVER => 42, IPPORT_WHOIS => 43,
IPPORT_MTP => 57, IPPORT_TFTP => 69, IPPORT_RJE => 77,
IPPORT_FINGER => 79, IPPORT_TTYLINK => 87, IPPORT_SUPDUP => 95,
IPPORT_EXECSERVER => 512, IPPORT_LOGINSERVER => 513,
IPPORT_CMDSERVER => 514, IPPORT_EFSSERVER => 520,
IPPORT_RESERVED => 1024, IPPORT_USERRESERVED => 5000);
pragma Convention (C, enum_4bdbd5f7);
function IPPORT_BIFFUDP return enum_4bdbd5f7 renames IPPORT_EXECSERVER;
function IPPORT_WHOSERVER return enum_4bdbd5f7 renames IPPORT_LOGINSERVER;
function IPPORT_ROUTESERVER return enum_4bdbd5f7 renames IPPORT_EFSSERVER;
for enum_4bdbd5f7'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_4bdbd5f7, signed_int);
type struct_in6_addr;
type union_3f2ab434 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
u6_addr8 : stdint.uint8_t_array (0 .. 15);
when 1 =>
u6_addr16 : stdint.uint16_t_array (0 .. 7);
when others =>
u6_addr32 : stdint.uint32_t_array (0 .. 3);
end case;
end record;
pragma Unchecked_Union (union_3f2ab434);
pragma Convention (C_Pass_By_Copy, union_3f2ab434);
type struct_in6_addr is record
in6_u : aliased union_3f2ab434;
end record;
pragma Convention (C_Pass_By_Copy, struct_in6_addr);
type struct_in6_addr_const_ptr is access constant struct_in6_addr;
for struct_in6_addr_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_in6_addr_const_ptr);
pragma Convention (C, struct_in6_addr_const_ptr);
type struct_in6_addr_ptr is access all struct_in6_addr;
for struct_in6_addr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_in6_addr_ptr);
pragma Convention (C, struct_in6_addr_ptr);
in6addr_any : aliased struct_in6_addr;
pragma Import (C, in6addr_any, "in6addr_any");
in6addr_loopback : aliased struct_in6_addr;
pragma Import (C, in6addr_loopback, "in6addr_loopback");
type struct_sockaddr_in;
type struct_sockaddr_in is record
sin_family : aliased bits.sockaddr.sa_family_t;
sin_port : aliased in_port_t;
sin_addr : aliased struct_in_addr;
sin_zero : aliased unsigned_char_array (0 .. 7);
end record;
pragma Convention (C_Pass_By_Copy, struct_sockaddr_in);
type struct_sockaddr_in_ptr is access all struct_sockaddr_in;
for struct_sockaddr_in_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_in_ptr);
pragma Convention (C, struct_sockaddr_in_ptr);
type struct_sockaddr_in_const_ptr is access constant struct_sockaddr_in;
for struct_sockaddr_in_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_in_const_ptr);
pragma Convention (C, struct_sockaddr_in_const_ptr);
type struct_sockaddr_in6;
type struct_sockaddr_in6 is record
sin6_family : aliased bits.sockaddr.sa_family_t;
sin6_port : aliased in_port_t;
sin6_flowinfo : aliased stdint.uint32_t;
sin6_addr : aliased struct_in6_addr;
sin6_scope_id : aliased stdint.uint32_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_sockaddr_in6);
type struct_sockaddr_in6_ptr is access all struct_sockaddr_in6;
for struct_sockaddr_in6_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_in6_ptr);
pragma Convention (C, struct_sockaddr_in6_ptr);
type struct_sockaddr_in6_const_ptr is access constant struct_sockaddr_in6;
for struct_sockaddr_in6_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_in6_const_ptr);
pragma Convention (C, struct_sockaddr_in6_const_ptr);
type struct_ip_mreq;
type struct_ip_mreq is record
imr_multiaddr : aliased struct_in_addr;
imr_interface : aliased struct_in_addr;
end record;
pragma Convention (C_Pass_By_Copy, struct_ip_mreq);
type struct_ip_mreq_source;
type struct_ip_mreq_source is record
imr_multiaddr : aliased struct_in_addr;
imr_interface : aliased struct_in_addr;
imr_sourceaddr : aliased struct_in_addr;
end record;
pragma Convention (C_Pass_By_Copy, struct_ip_mreq_source);
type struct_ipv6_mreq;
type struct_ipv6_mreq is record
ipv6mr_multiaddr : aliased struct_in6_addr;
ipv6mr_interface : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_ipv6_mreq);
type struct_group_req;
type struct_group_req is record
gr_interface : aliased stdint.uint32_t;
gr_group : aliased bits.socket.struct_sockaddr_storage;
end record;
pragma Convention (C_Pass_By_Copy, struct_group_req);
type struct_group_source_req;
type struct_group_source_req is record
gsr_interface : aliased stdint.uint32_t;
gsr_group : aliased bits.socket.struct_sockaddr_storage;
gsr_source : aliased bits.socket.struct_sockaddr_storage;
end record;
pragma Convention (C_Pass_By_Copy, struct_group_source_req);
type struct_ip_msfilter;
type struct_ip_msfilter is record
imsf_multiaddr : aliased struct_in_addr;
imsf_interface : aliased struct_in_addr;
imsf_fmode : aliased stdint.uint32_t;
imsf_numsrc : aliased stdint.uint32_t;
imsf_slist : aliased struct_in_addr_array (0 .. 0);
end record;
pragma Convention (C_Pass_By_Copy, struct_ip_msfilter);
type struct_group_filter;
type struct_group_filter is record
gf_interface : aliased stdint.uint32_t;
gf_group : aliased bits.socket.struct_sockaddr_storage;
gf_fmode : aliased stdint.uint32_t;
gf_numsrc : aliased stdint.uint32_t;
gf_slist : aliased bits.socket.struct_sockaddr_storage_array (0 .. 0);
end record;
pragma Convention (C_Pass_By_Copy, struct_group_filter);
function ntohl (netlong : stdint.uint32_t) return stdint.uint32_t;
pragma Import (C, ntohl, "ntohl");
function ntohs (netshort : stdint.uint16_t) return stdint.uint16_t;
pragma Import (C, ntohs, "ntohs");
function htonl (hostlong : stdint.uint32_t) return stdint.uint32_t;
pragma Import (C, htonl, "htonl");
function htons (hostshort : stdint.uint16_t) return stdint.uint16_t;
pragma Import (C, htons, "htons");
function bindresvport (sockfd : signed_int;
sock_in : access struct_sockaddr_in) return signed_int;
pragma Import (C, bindresvport, "bindresvport");
function bindresvport6 (sockfd : signed_int;
sock_in : access struct_sockaddr_in6) return signed_int;
pragma Import (C, bindresvport6, "bindresvport6");
type struct_in6_pktinfo;
type struct_in6_pktinfo is record
ipi6_addr : aliased struct_in6_addr;
ipi6_ifindex : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_in6_pktinfo);
type struct_ip6_mtuinfo;
type struct_ip6_mtuinfo is record
ip6m_addr : aliased struct_sockaddr_in6;
ip6m_mtu : aliased stdint.uint32_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_ip6_mtuinfo);
function inet6_option_space (nbytes : signed_int) return signed_int;
pragma Import (C, inet6_option_space, "inet6_option_space");
function inet6_option_init (bp : void_ptr;
cmsgp : access bits.socket.struct_cmsghdr_ptr; A_type : signed_int)
return signed_int;
pragma Import (C, inet6_option_init, "inet6_option_init");
function inet6_option_append (cmsg : access bits.socket.struct_cmsghdr;
typep : access constant stdint.uint8_t; multx : signed_int;
plusy : signed_int) return signed_int;
pragma Import (C, inet6_option_append, "inet6_option_append");
function inet6_option_alloc (cmsg : access bits.socket.struct_cmsghdr;
datalen : signed_int; multx : signed_int; plusy : signed_int)
return stdint.uint8_t_ptr;
pragma Import (C, inet6_option_alloc, "inet6_option_alloc");
function inet6_option_next (
cmsg : access constant bits.socket.struct_cmsghdr;
tptrp : access stdint.uint8_t_ptr) return signed_int;
pragma Import (C, inet6_option_next, "inet6_option_next");
function inet6_option_find (
cmsg : access constant bits.socket.struct_cmsghdr;
tptrp : access stdint.uint8_t_ptr; A_type : signed_int)
return signed_int;
pragma Import (C, inet6_option_find, "inet6_option_find");
function inet6_opt_init (extbuf : void_ptr; extlen : unistd.socklen_t)
return signed_int;
pragma Import (C, inet6_opt_init, "inet6_opt_init");
function inet6_opt_append (extbuf : void_ptr; extlen : unistd.socklen_t;
offset : signed_int; A_type : stdint.uint8_t; len : unistd.socklen_t;
align : stdint.uint8_t; databufp : access void_ptr) return signed_int;
pragma Import (C, inet6_opt_append, "inet6_opt_append");
function inet6_opt_finish (extbuf : void_ptr; extlen : unistd.socklen_t;
offset : signed_int) return signed_int;
pragma Import (C, inet6_opt_finish, "inet6_opt_finish");
function inet6_opt_set_val (databuf : void_ptr; offset : signed_int;
val : void_ptr; vallen : unistd.socklen_t) return signed_int;
pragma Import (C, inet6_opt_set_val, "inet6_opt_set_val");
function inet6_opt_next (extbuf : void_ptr; extlen : unistd.socklen_t;
offset : signed_int; typep : access stdint.uint8_t;
lenp : access unistd.socklen_t; databufp : access void_ptr)
return signed_int;
pragma Import (C, inet6_opt_next, "inet6_opt_next");
function inet6_opt_find (extbuf : void_ptr; extlen : unistd.socklen_t;
offset : signed_int; A_type : stdint.uint8_t;
lenp : access unistd.socklen_t; databufp : access void_ptr)
return signed_int;
pragma Import (C, inet6_opt_find, "inet6_opt_find");
function inet6_opt_get_val (databuf : void_ptr; offset : signed_int;
val : void_ptr; vallen : unistd.socklen_t) return signed_int;
pragma Import (C, inet6_opt_get_val, "inet6_opt_get_val");
function inet6_rth_space (A_type : signed_int; segments : signed_int)
return unistd.socklen_t;
pragma Import (C, inet6_rth_space, "inet6_rth_space");
function inet6_rth_init (bp : void_ptr; bp_len : unistd.socklen_t;
A_type : signed_int; segments : signed_int) return void_ptr;
pragma Import (C, inet6_rth_init, "inet6_rth_init");
function inet6_rth_add (bp : void_ptr;
addr : access constant struct_in6_addr) return signed_int;
pragma Import (C, inet6_rth_add, "inet6_rth_add");
function inet6_rth_reverse (A_in : void_const_ptr; A_out : void_ptr)
return signed_int;
pragma Import (C, inet6_rth_reverse, "inet6_rth_reverse");
function inet6_rth_segments (bp : void_const_ptr) return signed_int;
pragma Import (C, inet6_rth_segments, "inet6_rth_segments");
function inet6_rth_getaddr (bp : void_const_ptr; index : signed_int)
return struct_in6_addr_ptr;
pragma Import (C, inet6_rth_getaddr, "inet6_rth_getaddr");
function getipv4sourcefilter (s : signed_int;
interface_addr : struct_in_addr; group : struct_in_addr;
fmode : access stdint.uint32_t; numsrc : access stdint.uint32_t;
slist : access struct_in_addr) return signed_int;
pragma Import (C, getipv4sourcefilter, "getipv4sourcefilter");
function setipv4sourcefilter (s : signed_int;
interface_addr : struct_in_addr; group : struct_in_addr;
fmode : stdint.uint32_t; numsrc : stdint.uint32_t;
slist : access constant struct_in_addr) return signed_int;
pragma Import (C, setipv4sourcefilter, "setipv4sourcefilter");
function getsourcefilter (s : signed_int;
interface_addr : stdint.uint32_t;
group : access constant bits.socket.struct_sockaddr;
grouplen : unistd.socklen_t; fmode : access stdint.uint32_t;
numsrc : access stdint.uint32_t;
slist : access bits.socket.struct_sockaddr_storage) return signed_int;
pragma Import (C, getsourcefilter, "getsourcefilter");
function setsourcefilter (s : signed_int;
interface_addr : stdint.uint32_t;
group : access constant bits.socket.struct_sockaddr;
grouplen : unistd.socklen_t; fmode : stdint.uint32_t;
numsrc : stdint.uint32_t;
slist : access constant bits.socket.struct_sockaddr_storage)
return signed_int;
pragma Import (C, setsourcefilter, "setsourcefilter");
-- GROUP_FILTER_SIZE (function macro)
-- IN6ADDR_ANY_INIT (plase type with #pragma instance)
-- IN6ADDR_LOOPBACK_INIT (plase type with #pragma instance)
-- IN6_ARE_ADDR_EQUAL (function macro)
-- IN6_IS_ADDR_LINKLOCAL (function macro)
-- IN6_IS_ADDR_LOOPBACK (function macro)
-- IN6_IS_ADDR_MC_GLOBAL (function macro)
-- IN6_IS_ADDR_MC_LINKLOCAL (function macro)
-- IN6_IS_ADDR_MC_NODELOCAL (function macro)
-- IN6_IS_ADDR_MC_ORGLOCAL (function macro)
-- IN6_IS_ADDR_MC_SITELOCAL (function macro)
-- IN6_IS_ADDR_MULTICAST (function macro)
-- IN6_IS_ADDR_SITELOCAL (function macro)
-- IN6_IS_ADDR_UNSPECIFIED (function macro)
-- IN6_IS_ADDR_V4COMPAT (function macro)
-- IN6_IS_ADDR_V4MAPPED (function macro)
INADDR_ALLHOSTS_GROUP : constant := 3758096385;
INADDR_ALLRTRS_GROUP : constant := 3758096386;
INADDR_ANY : constant := 0;
INADDR_BROADCAST : constant := 4294967295;
INADDR_LOOPBACK : constant := 2130706433;
INADDR_MAX_LOCAL_GROUP : constant := 3758096639;
INADDR_NONE : constant := 4294967295;
INADDR_UNSPEC_GROUP : constant := 3758096384;
INET6_ADDRSTRLEN : constant := 46;
INET_ADDRSTRLEN : constant := 16;
-- IN_BADCLASS (function macro)
-- IN_CLASSA (function macro)
IN_CLASSA_HOST : constant := 16777215;
IN_CLASSA_MAX : constant := 128;
IN_CLASSA_NET : constant := -16777216;
IN_CLASSA_NSHIFT : constant := 24;
-- IN_CLASSB (function macro)
IN_CLASSB_HOST : constant := 65535;
IN_CLASSB_MAX : constant := 65536;
IN_CLASSB_NET : constant := -65536;
IN_CLASSB_NSHIFT : constant := 16;
-- IN_CLASSC (function macro)
IN_CLASSC_HOST : constant := 255;
IN_CLASSC_NET : constant := -256;
IN_CLASSC_NSHIFT : constant := 8;
-- IN_CLASSD (function macro)
-- IN_EXPERIMENTAL (function macro)
IN_LOOPBACKNET : constant := 127;
-- IN_MULTICAST (function macro)
-- IPPROTO_AH (repeating itself)
-- IPPROTO_BEETPH (repeating itself)
-- IPPROTO_COMP (repeating itself)
-- IPPROTO_DCCP (repeating itself)
-- IPPROTO_DSTOPTS (repeating itself)
-- IPPROTO_EGP (repeating itself)
-- IPPROTO_ENCAP (repeating itself)
-- IPPROTO_ESP (repeating itself)
-- IPPROTO_FRAGMENT (repeating itself)
-- IPPROTO_GRE (repeating itself)
-- IPPROTO_HOPOPTS (repeating itself)
-- IPPROTO_ICMP (repeating itself)
-- IPPROTO_ICMPV6 (repeating itself)
-- IPPROTO_IDP (repeating itself)
-- IPPROTO_IGMP (repeating itself)
-- IPPROTO_IP (repeating itself)
-- IPPROTO_IPIP (repeating itself)
-- IPPROTO_IPV6 (repeating itself)
-- IPPROTO_MH (repeating itself)
-- IPPROTO_MPLS (repeating itself)
-- IPPROTO_MTP (repeating itself)
-- IPPROTO_NONE (repeating itself)
-- IPPROTO_PIM (repeating itself)
-- IPPROTO_PUP (repeating itself)
-- IPPROTO_RAW (repeating itself)
-- IPPROTO_ROUTING (repeating itself)
-- IPPROTO_RSVP (repeating itself)
-- IPPROTO_SCTP (repeating itself)
-- IPPROTO_TCP (repeating itself)
-- IPPROTO_TP (repeating itself)
-- IPPROTO_UDP (repeating itself)
-- IPPROTO_UDPLITE (repeating itself)
-- IP_MSFILTER_SIZE (function macro)
NETINET_IN_H : constant := 1;
-- .s6_addr renames .__in6_u.__u6_addr8 (accessor)
-- .s6_addr16 renames .__in6_u.__u6_addr16 (accessor)
-- .s6_addr32 renames .__in6_u.__u6_addr32 (accessor)
end C.netinet.in_h;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.netinet is
pragma Preelaborate;
end C.netinet;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.poll;
with C.bits.sigset;
with C.sys.poll;
with C.time;
package C.poll is
pragma Preelaborate;
POLLERR : constant := bits.poll.POLLERR;
POLLHUP : constant := bits.poll.POLLHUP;
POLLIN : constant := bits.poll.POLLIN;
POLLMSG : constant := bits.poll.POLLMSG;
POLLNVAL : constant := bits.poll.POLLNVAL;
POLLOUT : constant := bits.poll.POLLOUT;
POLLPRI : constant := bits.poll.POLLPRI;
POLLRDBAND : constant := bits.poll.POLLRDBAND;
POLLRDHUP : constant := bits.poll.POLLRDHUP;
POLLRDNORM : constant := bits.poll.POLLRDNORM;
POLLREMOVE : constant := bits.poll.POLLREMOVE;
POLLWRBAND : constant := bits.poll.POLLWRBAND;
POLLWRNORM : constant := bits.poll.POLLWRNORM;
subtype nfds_t is sys.poll.nfds_t;
subtype struct_pollfd is sys.poll.struct_pollfd;
function poll (fds : access sys.poll.struct_pollfd;
nfds : sys.poll.nfds_t; timeout : signed_int) return signed_int
renames sys.poll.poll;
function ppoll (fds : access sys.poll.struct_pollfd;
nfds : sys.poll.nfds_t; timeout : access constant time.struct_timespec;
ss : access constant bits.sigset.sigset_t) return signed_int
renames sys.poll.ppoll;
SYS_POLL_H : constant := sys.poll.SYS_POLL_H;
end C.poll;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.pthreadtypes;
with C.bits.sched;
with C.bits.setjmp;
with C.bits.siginfo;
with C.bits.sigset;
with C.bits.sigthread;
with C.bits.types;
with C.stddef;
with C.time;
package C.pthread is
pragma Preelaborate;
subtype pthread_t is bits.pthreadtypes.pthread_t;
subtype union_pthread_attr_t is bits.pthreadtypes.union_pthread_attr_t;
subtype pthread_attr_t is bits.pthreadtypes.pthread_attr_t;
subtype struct_pthread_internal_slist is
bits.pthreadtypes.struct_pthread_internal_slist;
subtype pthread_slist_t is bits.pthreadtypes.pthread_slist_t;
subtype struct_pthread_mutex_s is
bits.pthreadtypes.struct_pthread_mutex_s;
subtype pthread_mutex_t is bits.pthreadtypes.pthread_mutex_t;
subtype pthread_mutexattr_t is bits.pthreadtypes.pthread_mutexattr_t;
subtype pthread_cond_t is bits.pthreadtypes.pthread_cond_t;
subtype pthread_condattr_t is bits.pthreadtypes.pthread_condattr_t;
subtype pthread_key_t is bits.pthreadtypes.pthread_key_t;
subtype pthread_once_t is bits.pthreadtypes.pthread_once_t;
subtype pthread_rwlock_t is bits.pthreadtypes.pthread_rwlock_t;
subtype pthread_rwlockattr_t is bits.pthreadtypes.pthread_rwlockattr_t;
subtype pthread_spinlock_t is bits.pthreadtypes.pthread_spinlock_t;
subtype pthread_barrier_t is bits.pthreadtypes.pthread_barrier_t;
subtype pthread_barrierattr_t is bits.pthreadtypes.pthread_barrierattr_t;
BITS_PTHREADTYPES_H : constant := bits.pthreadtypes.BITS_PTHREADTYPES_H;
-- PTHREAD_RWLOCK_ELISION_EXTRA renames bits.pthreadtypes.P... (unparsible)
-- PTHREAD_SPINS renames bits.pthreadtypes.PTHREAD_SPINS (unparsible)
SIZEOF_PTHREAD_ATTR_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_ATTR_T;
SIZEOF_PTHREAD_BARRIERATTR_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_BARRIERATTR_T;
SIZEOF_PTHREAD_BARRIER_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_BARRIER_T;
SIZEOF_PTHREAD_CONDATTR_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_CONDATTR_T;
SIZEOF_PTHREAD_COND_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_COND_T;
SIZEOF_PTHREAD_MUTEXATTR_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_MUTEXATTR_T;
SIZEOF_PTHREAD_MUTEX_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_MUTEX_T;
SIZEOF_PTHREAD_RWLOCKATTR_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_RWLOCKATTR_T;
SIZEOF_PTHREAD_RWLOCK_T : constant :=
bits.pthreadtypes.SIZEOF_PTHREAD_RWLOCK_T;
-- cleanup_fct_attribute renames __attribute__((...)) (macro)
-- .elision renames .__elision_data.__elision (accessor)
have_pthread_attr_t : constant := bits.pthreadtypes.have_pthread_attr_t;
-- .spins renames .__elision_data.__espins (accessor)
function pthread_sigmask (how : signed_int;
newmask : access constant bits.sigset.sigset_t;
oldmask : access bits.sigset.sigset_t) return signed_int
renames bits.sigthread.pthread_sigmask;
function pthread_kill (threadid : bits.pthreadtypes.pthread_t;
signo : signed_int) return signed_int
renames bits.sigthread.pthread_kill;
function pthread_sigqueue (threadid : bits.pthreadtypes.pthread_t;
signo : signed_int; value : bits.siginfo.union_sigval)
return signed_int renames bits.sigthread.pthread_sigqueue;
BITS_SIGTHREAD_H : constant := bits.sigthread.BITS_SIGTHREAD_H;
type enum_718c61c2 is (PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED);
for enum_718c61c2 use (PTHREAD_CREATE_JOINABLE => 0,
PTHREAD_CREATE_DETACHED => 1);
pragma Convention (C, enum_718c61c2);
for enum_718c61c2'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_718c61c2, signed_int);
type enum_27c06e45 is (PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE_NP,
PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_ADAPTIVE_NP);
for enum_27c06e45 use (PTHREAD_MUTEX_TIMED_NP => 0,
PTHREAD_MUTEX_RECURSIVE_NP => 1, PTHREAD_MUTEX_ERRORCHECK_NP => 2,
PTHREAD_MUTEX_ADAPTIVE_NP => 3);
pragma Convention (C, enum_27c06e45);
function PTHREAD_MUTEX_NORMAL return enum_27c06e45
renames PTHREAD_MUTEX_TIMED_NP;
function PTHREAD_MUTEX_RECURSIVE return enum_27c06e45
renames PTHREAD_MUTEX_RECURSIVE_NP;
function PTHREAD_MUTEX_ERRORCHECK return enum_27c06e45
renames PTHREAD_MUTEX_ERRORCHECK_NP;
function PTHREAD_MUTEX_DEFAULT return enum_27c06e45
renames PTHREAD_MUTEX_TIMED_NP;
function PTHREAD_MUTEX_FAST_NP return enum_27c06e45
renames PTHREAD_MUTEX_TIMED_NP;
for enum_27c06e45'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_27c06e45, signed_int);
type enum_05ea5636 is (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST);
for enum_05ea5636 use (PTHREAD_MUTEX_STALLED => 0,
PTHREAD_MUTEX_ROBUST => 1);
pragma Convention (C, enum_05ea5636);
function PTHREAD_MUTEX_STALLED_NP return enum_05ea5636
renames PTHREAD_MUTEX_STALLED;
function PTHREAD_MUTEX_ROBUST_NP return enum_05ea5636
renames PTHREAD_MUTEX_ROBUST;
for enum_05ea5636'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_05ea5636, signed_int);
type enum_ebde5d14 is (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
PTHREAD_PRIO_PROTECT);
for enum_ebde5d14 use (PTHREAD_PRIO_NONE => 0, PTHREAD_PRIO_INHERIT => 1,
PTHREAD_PRIO_PROTECT => 2);
pragma Convention (C, enum_ebde5d14);
for enum_ebde5d14'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_ebde5d14, signed_int);
type enum_219483a3 is (PTHREAD_RWLOCK_PREFER_READER_NP,
PTHREAD_RWLOCK_PREFER_WRITER_NP,
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);
for enum_219483a3 use (PTHREAD_RWLOCK_PREFER_READER_NP => 0,
PTHREAD_RWLOCK_PREFER_WRITER_NP => 1,
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP => 2);
pragma Convention (C, enum_219483a3);
function PTHREAD_RWLOCK_DEFAULT_NP return enum_219483a3
renames PTHREAD_RWLOCK_PREFER_READER_NP;
for enum_219483a3'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_219483a3, signed_int);
type enum_72f8fd11 is (PTHREAD_INHERIT_SCHED, PTHREAD_EXPLICIT_SCHED);
for enum_72f8fd11 use (PTHREAD_INHERIT_SCHED => 0,
PTHREAD_EXPLICIT_SCHED => 1);
pragma Convention (C, enum_72f8fd11);
for enum_72f8fd11'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_72f8fd11, signed_int);
type enum_2f1fa79d is (PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS);
for enum_2f1fa79d use (PTHREAD_SCOPE_SYSTEM => 0,
PTHREAD_SCOPE_PROCESS => 1);
pragma Convention (C, enum_2f1fa79d);
for enum_2f1fa79d'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_2f1fa79d, signed_int);
type enum_e2fc7815 is (PTHREAD_PROCESS_PRIVATE, PTHREAD_PROCESS_SHARED);
for enum_e2fc7815 use (PTHREAD_PROCESS_PRIVATE => 0,
PTHREAD_PROCESS_SHARED => 1);
pragma Convention (C, enum_e2fc7815);
for enum_e2fc7815'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_e2fc7815, signed_int);
type struct_pthread_cleanup_buffer;
type struct_pthread_cleanup_buffer_ptr is
access all struct_pthread_cleanup_buffer;
for struct_pthread_cleanup_buffer_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_pthread_cleanup_buffer_ptr);
pragma Convention (C, struct_pthread_cleanup_buffer_ptr);
type access_bc6d13c3 is access procedure (a1 : void_ptr);
pragma Convention (C, access_bc6d13c3);
type struct_pthread_cleanup_buffer is record
routine : aliased access_bc6d13c3;
arg : aliased void_ptr;
canceltype : aliased signed_int;
prev : aliased struct_pthread_cleanup_buffer_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_pthread_cleanup_buffer);
type enum_4e64fe01 is (PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE);
for enum_4e64fe01 use (PTHREAD_CANCEL_ENABLE => 0,
PTHREAD_CANCEL_DISABLE => 1);
pragma Convention (C, enum_4e64fe01);
for enum_4e64fe01'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_4e64fe01, signed_int);
type enum_00199b18 is (PTHREAD_CANCEL_DEFERRED,
PTHREAD_CANCEL_ASYNCHRONOUS);
for enum_00199b18 use (PTHREAD_CANCEL_DEFERRED => 0,
PTHREAD_CANCEL_ASYNCHRONOUS => 1);
pragma Convention (C, enum_00199b18);
for enum_00199b18'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_00199b18, signed_int);
type access_2f296aa4 is access function (a1 : void_ptr) return void_ptr;
pragma Convention (C, access_2f296aa4);
function pthread_create (newthread : access bits.pthreadtypes.pthread_t;
attr : access constant bits.pthreadtypes.pthread_attr_t;
start_routine : access_2f296aa4; arg : void_ptr) return signed_int;
pragma Import (C, pthread_create, "pthread_create");
procedure pthread_exit (retval : void_ptr);
pragma No_Return (pthread_exit);
pragma Import (C, pthread_exit, "pthread_exit");
function pthread_join (th : bits.pthreadtypes.pthread_t;
thread_return : access void_ptr) return signed_int;
pragma Import (C, pthread_join, "pthread_join");
function pthread_tryjoin_np (th : bits.pthreadtypes.pthread_t;
thread_return : access void_ptr) return signed_int;
pragma Import (C, pthread_tryjoin_np, "pthread_tryjoin_np");
function pthread_timedjoin_np (th : bits.pthreadtypes.pthread_t;
thread_return : access void_ptr;
abstime : access constant time.struct_timespec) return signed_int;
pragma Import (C, pthread_timedjoin_np, "pthread_timedjoin_np");
function pthread_detach (th : bits.pthreadtypes.pthread_t)
return signed_int;
pragma Import (C, pthread_detach, "pthread_detach");
function pthread_self return bits.pthreadtypes.pthread_t;
pragma Import (C, pthread_self, "pthread_self");
function pthread_equal (thread1 : bits.pthreadtypes.pthread_t;
thread2 : bits.pthreadtypes.pthread_t) return signed_int;
pragma Import (C, pthread_equal, "pthread_equal");
function pthread_attr_init (
attr : access bits.pthreadtypes.pthread_attr_t) return signed_int;
pragma Import (C, pthread_attr_init, "pthread_attr_init");
function pthread_attr_destroy (
attr : access bits.pthreadtypes.pthread_attr_t) return signed_int;
pragma Import (C, pthread_attr_destroy, "pthread_attr_destroy");
function pthread_attr_getdetachstate (
attr : access constant bits.pthreadtypes.pthread_attr_t;
detachstate : access signed_int) return signed_int;
pragma Import (C, pthread_attr_getdetachstate,
"pthread_attr_getdetachstate");
function pthread_attr_setdetachstate (
attr : access bits.pthreadtypes.pthread_attr_t;
detachstate : signed_int) return signed_int;
pragma Import (C, pthread_attr_setdetachstate,
"pthread_attr_setdetachstate");
function pthread_attr_getguardsize (
attr : access constant bits.pthreadtypes.pthread_attr_t;
guardsize : access stddef.size_t) return signed_int;
pragma Import (C, pthread_attr_getguardsize, "pthread_attr_getguardsize");
function pthread_attr_setguardsize (
attr : access bits.pthreadtypes.pthread_attr_t;
guardsize : stddef.size_t) return signed_int;
pragma Import (C, pthread_attr_setguardsize, "pthread_attr_setguardsize");
function pthread_attr_getschedparam (
attr : access constant bits.pthreadtypes.pthread_attr_t;
param : access bits.sched.struct_sched_param) return signed_int;
pragma Import (C, pthread_attr_getschedparam,
"pthread_attr_getschedparam");
function pthread_attr_setschedparam (
attr : access bits.pthreadtypes.pthread_attr_t;
param : access constant bits.sched.struct_sched_param)
return signed_int;
pragma Import (C, pthread_attr_setschedparam,
"pthread_attr_setschedparam");
function pthread_attr_getschedpolicy (
attr : access constant bits.pthreadtypes.pthread_attr_t;
policy : access signed_int) return signed_int;
pragma Import (C, pthread_attr_getschedpolicy,
"pthread_attr_getschedpolicy");
function pthread_attr_setschedpolicy (
attr : access bits.pthreadtypes.pthread_attr_t; policy : signed_int)
return signed_int;
pragma Import (C, pthread_attr_setschedpolicy,
"pthread_attr_setschedpolicy");
function pthread_attr_getinheritsched (
attr : access constant bits.pthreadtypes.pthread_attr_t;
inherit : access signed_int) return signed_int;
pragma Import (C, pthread_attr_getinheritsched,
"pthread_attr_getinheritsched");
function pthread_attr_setinheritsched (
attr : access bits.pthreadtypes.pthread_attr_t; inherit : signed_int)
return signed_int;
pragma Import (C, pthread_attr_setinheritsched,
"pthread_attr_setinheritsched");
function pthread_attr_getscope (
attr : access constant bits.pthreadtypes.pthread_attr_t;
scope : access signed_int) return signed_int;
pragma Import (C, pthread_attr_getscope, "pthread_attr_getscope");
function pthread_attr_setscope (
attr : access bits.pthreadtypes.pthread_attr_t; scope : signed_int)
return signed_int;
pragma Import (C, pthread_attr_setscope, "pthread_attr_setscope");
function pthread_attr_getstackaddr (
attr : access constant bits.pthreadtypes.pthread_attr_t;
stackaddr : access void_ptr) return signed_int;
pragma Import (C, pthread_attr_getstackaddr, "pthread_attr_getstackaddr");
function pthread_attr_setstackaddr (
attr : access bits.pthreadtypes.pthread_attr_t; stackaddr : void_ptr)
return signed_int;
pragma Import (C, pthread_attr_setstackaddr, "pthread_attr_setstackaddr");
function pthread_attr_getstacksize (
attr : access constant bits.pthreadtypes.pthread_attr_t;
stacksize : access stddef.size_t) return signed_int;
pragma Import (C, pthread_attr_getstacksize, "pthread_attr_getstacksize");
function pthread_attr_setstacksize (
attr : access bits.pthreadtypes.pthread_attr_t;
stacksize : stddef.size_t) return signed_int;
pragma Import (C, pthread_attr_setstacksize, "pthread_attr_setstacksize");
function pthread_attr_getstack (
attr : access constant bits.pthreadtypes.pthread_attr_t;
stackaddr : access void_ptr; stacksize : access stddef.size_t)
return signed_int;
pragma Import (C, pthread_attr_getstack, "pthread_attr_getstack");
function pthread_attr_setstack (
attr : access bits.pthreadtypes.pthread_attr_t; stackaddr : void_ptr;
stacksize : stddef.size_t) return signed_int;
pragma Import (C, pthread_attr_setstack, "pthread_attr_setstack");
function pthread_attr_setaffinity_np (
attr : access bits.pthreadtypes.pthread_attr_t;
cpusetsize : stddef.size_t;
cpuset : access constant bits.sched.cpu_set_t) return signed_int;
pragma Import (C, pthread_attr_setaffinity_np,
"pthread_attr_setaffinity_np");
function pthread_attr_getaffinity_np (
attr : access constant bits.pthreadtypes.pthread_attr_t;
cpusetsize : stddef.size_t; cpuset : access bits.sched.cpu_set_t)
return signed_int;
pragma Import (C, pthread_attr_getaffinity_np,
"pthread_attr_getaffinity_np");
function pthread_getattr_default_np (
attr : access bits.pthreadtypes.pthread_attr_t) return signed_int;
pragma Import (C, pthread_getattr_default_np,
"pthread_getattr_default_np");
function pthread_setattr_default_np (
attr : access constant bits.pthreadtypes.pthread_attr_t)
return signed_int;
pragma Import (C, pthread_setattr_default_np,
"pthread_setattr_default_np");
function pthread_getattr_np (th : bits.pthreadtypes.pthread_t;
attr : access bits.pthreadtypes.pthread_attr_t) return signed_int;
pragma Import (C, pthread_getattr_np, "pthread_getattr_np");
function pthread_setschedparam (
target_thread : bits.pthreadtypes.pthread_t; policy : signed_int;
param : access constant bits.sched.struct_sched_param)
return signed_int;
pragma Import (C, pthread_setschedparam, "pthread_setschedparam");
function pthread_getschedparam (
target_thread : bits.pthreadtypes.pthread_t;
policy : access signed_int;
param : access bits.sched.struct_sched_param) return signed_int;
pragma Import (C, pthread_getschedparam, "pthread_getschedparam");
function pthread_setschedprio (
target_thread : bits.pthreadtypes.pthread_t; prio : signed_int)
return signed_int;
pragma Import (C, pthread_setschedprio, "pthread_setschedprio");
function pthread_getname_np (target_thread : bits.pthreadtypes.pthread_t;
buf : access char; buflen : stddef.size_t) return signed_int;
pragma Import (C, pthread_getname_np, "pthread_getname_np");
function pthread_setname_np (target_thread : bits.pthreadtypes.pthread_t;
name : access constant char) return signed_int;
pragma Import (C, pthread_setname_np, "pthread_setname_np");
function pthread_getconcurrency return signed_int;
pragma Import (C, pthread_getconcurrency, "pthread_getconcurrency");
function pthread_setconcurrency (level : signed_int) return signed_int;
pragma Import (C, pthread_setconcurrency, "pthread_setconcurrency");
function pthread_yield return signed_int;
procedure pthread_yield;
pragma Import (C, pthread_yield, "pthread_yield");
function pthread_setaffinity_np (th : bits.pthreadtypes.pthread_t;
cpusetsize : stddef.size_t;
cpuset : access constant bits.sched.cpu_set_t) return signed_int;
pragma Import (C, pthread_setaffinity_np, "pthread_setaffinity_np");
function pthread_getaffinity_np (th : bits.pthreadtypes.pthread_t;
cpusetsize : stddef.size_t; cpuset : access bits.sched.cpu_set_t)
return signed_int;
pragma Import (C, pthread_getaffinity_np, "pthread_getaffinity_np");
type access_e823f645 is access procedure;
pragma Convention (C, access_e823f645);
function pthread_once (
once_control : access bits.pthreadtypes.pthread_once_t;
init_routine : access_e823f645) return signed_int;
pragma Import (C, pthread_once, "pthread_once");
function pthread_setcancelstate (state : signed_int;
oldstate : access signed_int) return signed_int;
pragma Import (C, pthread_setcancelstate, "pthread_setcancelstate");
function pthread_setcanceltype (A_type : signed_int;
oldtype : access signed_int) return signed_int;
pragma Import (C, pthread_setcanceltype, "pthread_setcanceltype");
function pthread_cancel (th : bits.pthreadtypes.pthread_t)
return signed_int;
pragma Import (C, pthread_cancel, "pthread_cancel");
procedure pthread_testcancel;
pragma Import (C, pthread_testcancel, "pthread_testcancel");
type struct_2d47901c is record
cancel_jmp_buf : aliased bits.setjmp.jmp_buf;
mask_was_saved : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_2d47901c);
type struct_2d47901c_array is array (size_t range <>) of
aliased struct_2d47901c;
pragma Convention (C, struct_2d47901c_array);
type struct_e069e9b4 is record
cancel_jmp_buf : aliased struct_2d47901c_array (0 .. 0);
pad : aliased void_ptr_array (0 .. 3);
end record;
pragma Convention (C_Pass_By_Copy, struct_e069e9b4);
type struct_e069e9b4_ptr is access all struct_e069e9b4;
for struct_e069e9b4_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_e069e9b4_ptr);
pragma Convention (C, struct_e069e9b4_ptr);
subtype pthread_unwind_buf_t is struct_e069e9b4;
subtype pthread_unwind_buf_t_ptr is struct_e069e9b4_ptr;
type struct_pthread_cleanup_frame;
type struct_pthread_cleanup_frame is record
cancel_routine : aliased access_bc6d13c3;
cancel_arg : aliased void_ptr;
do_it : aliased signed_int;
cancel_type : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_pthread_cleanup_frame);
procedure pthread_register_cancel (buf : access pthread_unwind_buf_t);
pragma Import (C, pthread_register_cancel, "__pthread_register_cancel");
procedure pthread_unregister_cancel (buf : access pthread_unwind_buf_t);
pragma Import (C, pthread_unregister_cancel,
"__pthread_unregister_cancel");
procedure pthread_register_cancel_defer (
buf : access pthread_unwind_buf_t);
pragma Import (C, pthread_register_cancel_defer,
"__pthread_register_cancel_defer");
procedure pthread_unregister_cancel_restore (
buf : access pthread_unwind_buf_t);
pragma Import (C, pthread_unregister_cancel_restore,
"__pthread_unregister_cancel_restore");
procedure pthread_unwind_next (buf : access pthread_unwind_buf_t);
pragma No_Return (pthread_unwind_next);
pragma Import (C, pthread_unwind_next, "__pthread_unwind_next");
pragma Weak_External (pthread_unwind_next);
type struct_jmp_buf_tag (<>) is limited private;
type struct_jmp_buf_tag_ptr is access all struct_jmp_buf_tag;
for struct_jmp_buf_tag_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_jmp_buf_tag_ptr);
pragma Convention (C, struct_jmp_buf_tag_ptr);
function sigsetjmp (env : access struct_jmp_buf_tag;
savemask : signed_int) return signed_int;
pragma Import (C, sigsetjmp, "__sigsetjmp");
function pthread_mutex_init (
mutex : access bits.pthreadtypes.pthread_mutex_t;
mutexattr : access constant bits.pthreadtypes.pthread_mutexattr_t)
return signed_int;
pragma Import (C, pthread_mutex_init, "pthread_mutex_init");
function pthread_mutex_destroy (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_destroy, "pthread_mutex_destroy");
function pthread_mutex_trylock (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_trylock, "pthread_mutex_trylock");
function pthread_mutex_lock (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_lock, "pthread_mutex_lock");
function pthread_mutex_timedlock (
mutex : access bits.pthreadtypes.pthread_mutex_t;
abstime : access constant time.struct_timespec) return signed_int;
pragma Import (C, pthread_mutex_timedlock, "pthread_mutex_timedlock");
function pthread_mutex_unlock (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_unlock, "pthread_mutex_unlock");
function pthread_mutex_getprioceiling (
mutex : access constant bits.pthreadtypes.pthread_mutex_t;
prioceiling : access signed_int) return signed_int;
pragma Import (C, pthread_mutex_getprioceiling,
"pthread_mutex_getprioceiling");
function pthread_mutex_setprioceiling (
mutex : access bits.pthreadtypes.pthread_mutex_t;
prioceiling : signed_int; old_ceiling : access signed_int)
return signed_int;
pragma Import (C, pthread_mutex_setprioceiling,
"pthread_mutex_setprioceiling");
function pthread_mutex_consistent (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_consistent, "pthread_mutex_consistent");
function pthread_mutex_consistent_np (
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_mutex_consistent_np,
"pthread_mutex_consistent_np");
function pthread_mutexattr_init (
attr : access bits.pthreadtypes.pthread_mutexattr_t) return signed_int;
pragma Import (C, pthread_mutexattr_init, "pthread_mutexattr_init");
function pthread_mutexattr_destroy (
attr : access bits.pthreadtypes.pthread_mutexattr_t) return signed_int;
pragma Import (C, pthread_mutexattr_destroy, "pthread_mutexattr_destroy");
function pthread_mutexattr_getpshared (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
pshared : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_getpshared,
"pthread_mutexattr_getpshared");
function pthread_mutexattr_setpshared (
attr : access bits.pthreadtypes.pthread_mutexattr_t;
pshared : signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_setpshared,
"pthread_mutexattr_setpshared");
function pthread_mutexattr_gettype (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
kind : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_gettype, "pthread_mutexattr_gettype");
function pthread_mutexattr_settype (
attr : access bits.pthreadtypes.pthread_mutexattr_t; kind : signed_int)
return signed_int;
pragma Import (C, pthread_mutexattr_settype, "pthread_mutexattr_settype");
function pthread_mutexattr_getprotocol (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
protocol : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_getprotocol,
"pthread_mutexattr_getprotocol");
function pthread_mutexattr_setprotocol (
attr : access bits.pthreadtypes.pthread_mutexattr_t;
protocol : signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_setprotocol,
"pthread_mutexattr_setprotocol");
function pthread_mutexattr_getprioceiling (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
prioceiling : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_getprioceiling,
"pthread_mutexattr_getprioceiling");
function pthread_mutexattr_setprioceiling (
attr : access bits.pthreadtypes.pthread_mutexattr_t;
prioceiling : signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_setprioceiling,
"pthread_mutexattr_setprioceiling");
function pthread_mutexattr_getrobust (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
robustness : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_getrobust,
"pthread_mutexattr_getrobust");
function pthread_mutexattr_getrobust_np (
attr : access constant bits.pthreadtypes.pthread_mutexattr_t;
robustness : access signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_getrobust_np,
"pthread_mutexattr_getrobust_np");
function pthread_mutexattr_setrobust (
attr : access bits.pthreadtypes.pthread_mutexattr_t;
robustness : signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_setrobust,
"pthread_mutexattr_setrobust");
function pthread_mutexattr_setrobust_np (
attr : access bits.pthreadtypes.pthread_mutexattr_t;
robustness : signed_int) return signed_int;
pragma Import (C, pthread_mutexattr_setrobust_np,
"pthread_mutexattr_setrobust_np");
function pthread_rwlock_init (
rwlock : access bits.pthreadtypes.pthread_rwlock_t;
attr : access constant bits.pthreadtypes.pthread_rwlockattr_t)
return signed_int;
pragma Import (C, pthread_rwlock_init, "pthread_rwlock_init");
function pthread_rwlock_destroy (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_destroy, "pthread_rwlock_destroy");
function pthread_rwlock_rdlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_rdlock, "pthread_rwlock_rdlock");
function pthread_rwlock_tryrdlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_tryrdlock, "pthread_rwlock_tryrdlock");
function pthread_rwlock_timedrdlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t;
abstime : access constant time.struct_timespec) return signed_int;
pragma Import (C, pthread_rwlock_timedrdlock,
"pthread_rwlock_timedrdlock");
function pthread_rwlock_wrlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_wrlock, "pthread_rwlock_wrlock");
function pthread_rwlock_trywrlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_trywrlock, "pthread_rwlock_trywrlock");
function pthread_rwlock_timedwrlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t;
abstime : access constant time.struct_timespec) return signed_int;
pragma Import (C, pthread_rwlock_timedwrlock,
"pthread_rwlock_timedwrlock");
function pthread_rwlock_unlock (
rwlock : access bits.pthreadtypes.pthread_rwlock_t) return signed_int;
pragma Import (C, pthread_rwlock_unlock, "pthread_rwlock_unlock");
function pthread_rwlockattr_init (
attr : access bits.pthreadtypes.pthread_rwlockattr_t)
return signed_int;
pragma Import (C, pthread_rwlockattr_init, "pthread_rwlockattr_init");
function pthread_rwlockattr_destroy (
attr : access bits.pthreadtypes.pthread_rwlockattr_t)
return signed_int;
pragma Import (C, pthread_rwlockattr_destroy,
"pthread_rwlockattr_destroy");
function pthread_rwlockattr_getpshared (
attr : access constant bits.pthreadtypes.pthread_rwlockattr_t;
pshared : access signed_int) return signed_int;
pragma Import (C, pthread_rwlockattr_getpshared,
"pthread_rwlockattr_getpshared");
function pthread_rwlockattr_setpshared (
attr : access bits.pthreadtypes.pthread_rwlockattr_t;
pshared : signed_int) return signed_int;
pragma Import (C, pthread_rwlockattr_setpshared,
"pthread_rwlockattr_setpshared");
function pthread_rwlockattr_getkind_np (
attr : access constant bits.pthreadtypes.pthread_rwlockattr_t;
pref : access signed_int) return signed_int;
pragma Import (C, pthread_rwlockattr_getkind_np,
"pthread_rwlockattr_getkind_np");
function pthread_rwlockattr_setkind_np (
attr : access bits.pthreadtypes.pthread_rwlockattr_t;
pref : signed_int) return signed_int;
pragma Import (C, pthread_rwlockattr_setkind_np,
"pthread_rwlockattr_setkind_np");
function pthread_cond_init (
cond : access bits.pthreadtypes.pthread_cond_t;
cond_attr : access constant bits.pthreadtypes.pthread_condattr_t)
return signed_int;
pragma Import (C, pthread_cond_init, "pthread_cond_init");
function pthread_cond_destroy (
cond : access bits.pthreadtypes.pthread_cond_t) return signed_int;
pragma Import (C, pthread_cond_destroy, "pthread_cond_destroy");
function pthread_cond_signal (
cond : access bits.pthreadtypes.pthread_cond_t) return signed_int;
pragma Import (C, pthread_cond_signal, "pthread_cond_signal");
function pthread_cond_broadcast (
cond : access bits.pthreadtypes.pthread_cond_t) return signed_int;
pragma Import (C, pthread_cond_broadcast, "pthread_cond_broadcast");
function pthread_cond_wait (
cond : access bits.pthreadtypes.pthread_cond_t;
mutex : access bits.pthreadtypes.pthread_mutex_t) return signed_int;
pragma Import (C, pthread_cond_wait, "pthread_cond_wait");
function pthread_cond_timedwait (
cond : access bits.pthreadtypes.pthread_cond_t;
mutex : access bits.pthreadtypes.pthread_mutex_t;
abstime : access constant time.struct_timespec) return signed_int;
pragma Import (C, pthread_cond_timedwait, "pthread_cond_timedwait");
function pthread_condattr_init (
attr : access bits.pthreadtypes.pthread_condattr_t) return signed_int;
pragma Import (C, pthread_condattr_init, "pthread_condattr_init");
function pthread_condattr_destroy (
attr : access bits.pthreadtypes.pthread_condattr_t) return signed_int;
pragma Import (C, pthread_condattr_destroy, "pthread_condattr_destroy");
function pthread_condattr_getpshared (
attr : access constant bits.pthreadtypes.pthread_condattr_t;
pshared : access signed_int) return signed_int;
pragma Import (C, pthread_condattr_getpshared,
"pthread_condattr_getpshared");
function pthread_condattr_setpshared (
attr : access bits.pthreadtypes.pthread_condattr_t;
pshared : signed_int) return signed_int;
pragma Import (C, pthread_condattr_setpshared,
"pthread_condattr_setpshared");
function pthread_condattr_getclock (
attr : access constant bits.pthreadtypes.pthread_condattr_t;
clock_id : access bits.types.qqclockid_t) return signed_int;
pragma Import (C, pthread_condattr_getclock, "pthread_condattr_getclock");
function pthread_condattr_setclock (
attr : access bits.pthreadtypes.pthread_condattr_t;
clock_id : bits.types.qqclockid_t) return signed_int;
pragma Import (C, pthread_condattr_setclock, "pthread_condattr_setclock");
function pthread_spin_init (
lock : access bits.pthreadtypes.pthread_spinlock_t;
pshared : signed_int) return signed_int;
pragma Import (C, pthread_spin_init, "pthread_spin_init");
function pthread_spin_destroy (
lock : access bits.pthreadtypes.pthread_spinlock_t) return signed_int;
pragma Import (C, pthread_spin_destroy, "pthread_spin_destroy");
function pthread_spin_lock (
lock : access bits.pthreadtypes.pthread_spinlock_t) return signed_int;
pragma Import (C, pthread_spin_lock, "pthread_spin_lock");
function pthread_spin_trylock (
lock : access bits.pthreadtypes.pthread_spinlock_t) return signed_int;
pragma Import (C, pthread_spin_trylock, "pthread_spin_trylock");
function pthread_spin_unlock (
lock : access bits.pthreadtypes.pthread_spinlock_t) return signed_int;
pragma Import (C, pthread_spin_unlock, "pthread_spin_unlock");
function pthread_barrier_init (
barrier : access bits.pthreadtypes.pthread_barrier_t;
attr : access constant bits.pthreadtypes.pthread_barrierattr_t;
count : unsigned_int) return signed_int;
pragma Import (C, pthread_barrier_init, "pthread_barrier_init");
function pthread_barrier_destroy (
barrier : access bits.pthreadtypes.pthread_barrier_t)
return signed_int;
pragma Import (C, pthread_barrier_destroy, "pthread_barrier_destroy");
function pthread_barrier_wait (
barrier : access bits.pthreadtypes.pthread_barrier_t)
return signed_int;
pragma Import (C, pthread_barrier_wait, "pthread_barrier_wait");
function pthread_barrierattr_init (
attr : access bits.pthreadtypes.pthread_barrierattr_t)
return signed_int;
pragma Import (C, pthread_barrierattr_init, "pthread_barrierattr_init");
function pthread_barrierattr_destroy (
attr : access bits.pthreadtypes.pthread_barrierattr_t)
return signed_int;
pragma Import (C, pthread_barrierattr_destroy,
"pthread_barrierattr_destroy");
function pthread_barrierattr_getpshared (
attr : access constant bits.pthreadtypes.pthread_barrierattr_t;
pshared : access signed_int) return signed_int;
pragma Import (C, pthread_barrierattr_getpshared,
"pthread_barrierattr_getpshared");
function pthread_barrierattr_setpshared (
attr : access bits.pthreadtypes.pthread_barrierattr_t;
pshared : signed_int) return signed_int;
pragma Import (C, pthread_barrierattr_setpshared,
"pthread_barrierattr_setpshared");
function pthread_key_create (key : access bits.pthreadtypes.pthread_key_t;
destr_function : access_bc6d13c3) return signed_int;
pragma Import (C, pthread_key_create, "pthread_key_create");
function pthread_key_delete (key : bits.pthreadtypes.pthread_key_t)
return signed_int;
pragma Import (C, pthread_key_delete, "pthread_key_delete");
function pthread_getspecific (key : bits.pthreadtypes.pthread_key_t)
return void_ptr;
pragma Import (C, pthread_getspecific, "pthread_getspecific");
function pthread_setspecific (key : bits.pthreadtypes.pthread_key_t;
pointer : void_const_ptr) return signed_int;
pragma Import (C, pthread_setspecific, "pthread_setspecific");
function pthread_getcpuclockid (thread_id : bits.pthreadtypes.pthread_t;
clock_id : access bits.types.qqclockid_t) return signed_int;
pragma Import (C, pthread_getcpuclockid, "pthread_getcpuclockid");
function pthread_atfork (prepare : access_e823f645;
parent : access_e823f645; child : access_e823f645) return signed_int;
pragma Import (C, pthread_atfork, "pthread_atfork");
-- PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP (plase type with #pragma instance)
PTHREAD_BARRIER_SERIAL_THREAD : constant := -1;
PTHREAD_CANCELED : constant void_ptr := void_ptr (System'To_Address (-1));
-- PTHREAD_CANCEL_ASYNCHRONOUS (repeating itself)
-- PTHREAD_CANCEL_DEFERRED (repeating itself)
-- PTHREAD_CANCEL_DISABLE (repeating itself)
-- PTHREAD_CANCEL_ENABLE (repeating itself)
PTHREAD_COND_INITIALIZER : constant bits.pthreadtypes.pthread_cond_t := (
Unchecked_Tag => 0, data => (lock => 0, futex => unsigned_int'(0),
total_seq => unsigned_long_long'(0),
wakeup_seq => unsigned_long_long'(0),
woken_seq => unsigned_long_long'(0),
mutex => void_ptr (System'To_Address (0)),
nwaiters => unsigned_int'(0), broadcast_seq => unsigned_int'(0)));
-- PTHREAD_CREATE_DETACHED (repeating itself)
-- PTHREAD_CREATE_JOINABLE (repeating itself)
-- PTHREAD_ERRORCHECK_MUTEX_INITIALIZ... (plase type with #pragma instance)
-- PTHREAD_EXPLICIT_SCHED (repeating itself)
-- PTHREAD_INHERIT_SCHED (repeating itself)
PTHREAD_MUTEX_INITIALIZER : constant bits.pthreadtypes.pthread_mutex_t :=
(Unchecked_Tag => 0, data => (lock => 0, count => unsigned_int'(0),
owner => 0, kind => 0, nusers => unsigned_int'(0),
anonymous_1 => (Unchecked_Tag => 0, elision_data => (
espins => signed_short'(0), elision => signed_short'(0)))));
PTHREAD_ONCE_INIT : constant := 0;
-- PTHREAD_PROCESS_PRIVATE (repeating itself)
-- PTHREAD_PROCESS_SHARED (repeating itself)
-- PTHREAD_RECURSIVE_MUTEX_INITIALIZE... (plase type with #pragma instance)
PTHREAD_RWLOCK_INITIALIZER : constant
bits.pthreadtypes.pthread_rwlock_t := (Unchecked_Tag => 0, data => (
lock => 0, nr_readers => unsigned_int'(0),
readers_wakeup => unsigned_int'(0), writer_wakeup => unsigned_int'(0),
nr_readers_queued => unsigned_int'(0),
nr_writers_queued => unsigned_int'(0), flags => unsigned_char'(0),
shared => unsigned_char'(0), rwelision => signed_char'(0),
pad2 => unsigned_char'(0), writer => 0));
-- PTHREAD_RWLOCK_WRITER_NONRECURSIVE... (plase type with #pragma instance)
-- PTHREAD_SCOPE_PROCESS (repeating itself)
-- PTHREAD_SCOPE_SYSTEM (repeating itself)
PTHREAD_H : constant := 1;
-- pthread_cleanup_pop (unparsible)
-- pthread_cleanup_pop_restore_np (unparsible)
-- pthread_cleanup_push (unparsible)
-- pthread_cleanup_push_defer_np (unparsible)
private
type struct_jmp_buf_tag is null record;
end C.pthread;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.stddef;
with C.stdio;
package C.pwd is
pragma Preelaborate;
type struct_passwd;
type struct_passwd is record
pw_name : aliased char_ptr;
pw_passwd : aliased char_ptr;
pw_uid : aliased bits.types.uid_t;
pw_gid : aliased bits.types.gid_t;
pw_gecos : aliased char_ptr;
pw_dir : aliased char_ptr;
pw_shell : aliased char_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_passwd);
type struct_passwd_ptr is access all struct_passwd;
for struct_passwd_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_passwd_ptr);
pragma Convention (C, struct_passwd_ptr);
type struct_passwd_ptr_ptr is access all struct_passwd_ptr;
for struct_passwd_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_passwd_ptr_ptr);
pragma Convention (C, struct_passwd_ptr_ptr);
type struct_passwd_const_ptr is access constant struct_passwd;
for struct_passwd_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_passwd_const_ptr);
pragma Convention (C, struct_passwd_const_ptr);
procedure setpwent;
pragma Import (C, setpwent, "setpwent");
procedure endpwent;
pragma Import (C, endpwent, "endpwent");
function getpwent return struct_passwd_ptr;
pragma Import (C, getpwent, "getpwent");
function fgetpwent (stream : access stdio.FILE) return struct_passwd_ptr;
pragma Import (C, fgetpwent, "fgetpwent");
function putpwent (p : access constant struct_passwd;
f : access stdio.FILE) return signed_int;
pragma Import (C, putpwent, "putpwent");
function getpwuid (uid : bits.types.uid_t) return struct_passwd_ptr;
pragma Import (C, getpwuid, "getpwuid");
function getpwnam (name : access constant char) return struct_passwd_ptr;
pragma Import (C, getpwnam, "getpwnam");
function getpwent_r (resultbuf : access struct_passwd;
buffer : access char; buflen : stddef.size_t;
result : access struct_passwd_ptr) return signed_int;
pragma Import (C, getpwent_r, "getpwent_r");
function getpwuid_r (uid : bits.types.uid_t;
resultbuf : access struct_passwd; buffer : access char;
buflen : stddef.size_t; result : access struct_passwd_ptr)
return signed_int;
pragma Import (C, getpwuid_r, "getpwuid_r");
function getpwnam_r (name : access constant char;
resultbuf : access struct_passwd; buffer : access char;
buflen : stddef.size_t; result : access struct_passwd_ptr)
return signed_int;
pragma Import (C, getpwnam_r, "getpwnam_r");
function fgetpwent_r (stream : access stdio.FILE;
resultbuf : access struct_passwd; buffer : access char;
buflen : stddef.size_t; result : access struct_passwd_ptr)
return signed_int;
pragma Import (C, fgetpwent_r, "fgetpwent_r");
NSS_BUFLEN_PASSWD : constant := 1024;
PWD_H : constant := 1;
-- __need_FILE (empty)
end C.pwd;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.stdarg;
with C.wchar;
package C.qG_config is
pragma Preelaborate;
type struct_fd142c10 is record
pos : aliased bits.types.off_t;
state : aliased wchar.mbstate_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_fd142c10);
subtype G_fpos_t is struct_fd142c10;
type struct_9323d3dc is record
pos : aliased bits.types.off64_t;
state : aliased wchar.mbstate_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_9323d3dc);
type struct_9323d3dc_ptr is access all struct_9323d3dc;
for struct_9323d3dc_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_9323d3dc_ptr);
pragma Convention (C, struct_9323d3dc_ptr);
type struct_9323d3dc_const_ptr is access constant struct_9323d3dc;
for struct_9323d3dc_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_9323d3dc_const_ptr);
pragma Convention (C, struct_9323d3dc_const_ptr);
subtype G_fpos64_t is struct_9323d3dc;
subtype G_fpos64_t_ptr is struct_9323d3dc_ptr;
subtype G_fpos64_t_const_ptr is struct_9323d3dc_const_ptr;
G_BUFSIZ : constant := 8192;
G_HAVE_MMAP : constant := 1;
G_HAVE_MREMAP : constant := 1;
-- _G_HAVE_ST_BLKSIZE (unparsible)
G_IO_IO_FILE_VERSION : constant := 131073;
G_config_h : constant := 1;
subtype G_va_list is stdarg.qqgnuc_va_list;
end C.qG_config;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
package C.rpc.netdb is
pragma Preelaborate;
type struct_rpcent;
type struct_rpcent is record
r_name : aliased char_ptr;
r_aliases : aliased char_ptr_ptr;
r_number : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_rpcent);
type struct_rpcent_ptr is access all struct_rpcent;
for struct_rpcent_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rpcent_ptr);
pragma Convention (C, struct_rpcent_ptr);
type struct_rpcent_ptr_ptr is access all struct_rpcent_ptr;
for struct_rpcent_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_rpcent_ptr_ptr);
pragma Convention (C, struct_rpcent_ptr_ptr);
procedure setrpcent (stayopen : signed_int);
pragma Import (C, setrpcent, "setrpcent");
procedure endrpcent;
pragma Import (C, endrpcent, "endrpcent");
function getrpcbyname (name : access constant char)
return struct_rpcent_ptr;
pragma Import (C, getrpcbyname, "getrpcbyname");
function getrpcbynumber (number : signed_int) return struct_rpcent_ptr;
pragma Import (C, getrpcbynumber, "getrpcbynumber");
function getrpcent return struct_rpcent_ptr;
pragma Import (C, getrpcent, "getrpcent");
function getrpcbyname_r (name : access constant char;
result_buf : access struct_rpcent; buffer : access char;
buflen : stddef.size_t; result : access struct_rpcent_ptr)
return signed_int;
pragma Import (C, getrpcbyname_r, "getrpcbyname_r");
function getrpcbynumber_r (number : signed_int;
result_buf : access struct_rpcent; buffer : access char;
buflen : stddef.size_t; result : access struct_rpcent_ptr)
return signed_int;
pragma Import (C, getrpcbynumber_r, "getrpcbynumber_r");
function getrpcent_r (result_buf : access struct_rpcent;
buffer : access char; buflen : stddef.size_t;
result : access struct_rpcent_ptr) return signed_int;
pragma Import (C, getrpcent_r, "getrpcent_r");
RPC_NETDB_H : constant := 1;
end C.rpc.netdb;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.rpc is
pragma Preelaborate;
end C.rpc;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.sched;
with C.bits.types;
with C.stddef;
with C.time;
package C.sched is
pragma Preelaborate;
function sched_setparam (pid : bits.types.pid_t;
param : access constant bits.sched.struct_sched_param)
return signed_int;
pragma Import (C, sched_setparam, "sched_setparam");
function sched_getparam (pid : bits.types.pid_t;
param : access bits.sched.struct_sched_param) return signed_int;
pragma Import (C, sched_getparam, "sched_getparam");
function sched_setscheduler (pid : bits.types.pid_t; policy : signed_int;
param : access constant bits.sched.struct_sched_param)
return signed_int;
pragma Import (C, sched_setscheduler, "sched_setscheduler");
function sched_getscheduler (pid : bits.types.pid_t) return signed_int;
pragma Import (C, sched_getscheduler, "sched_getscheduler");
function sched_yield return signed_int;
pragma Import (C, sched_yield, "sched_yield");
function sched_get_priority_max (algorithm : signed_int)
return signed_int;
pragma Import (C, sched_get_priority_max, "sched_get_priority_max");
function sched_get_priority_min (algorithm : signed_int)
return signed_int;
pragma Import (C, sched_get_priority_min, "sched_get_priority_min");
function sched_rr_get_interval (pid : bits.types.pid_t;
t : access time.struct_timespec) return signed_int;
pragma Import (C, sched_rr_get_interval, "sched_rr_get_interval");
function sched_setaffinity (pid : bits.types.pid_t;
cpusetsize : stddef.size_t;
cpuset : access constant bits.sched.cpu_set_t) return signed_int;
pragma Import (C, sched_setaffinity, "sched_setaffinity");
function sched_getaffinity (pid : bits.types.pid_t;
cpusetsize : stddef.size_t; cpuset : access bits.sched.cpu_set_t)
return signed_int;
pragma Import (C, sched_getaffinity, "sched_getaffinity");
-- CPU_ALLOC (function macro)
-- CPU_ALLOC_SIZE (function macro)
-- CPU_AND (uninterpretable)
-- CPU_AND_S (uninterpretable)
-- CPU_CLR (uninterpretable)
-- CPU_CLR_S (uninterpretable)
-- CPU_COUNT (function macro)
-- CPU_COUNT_S (function macro)
-- CPU_EQUAL (function macro)
-- CPU_EQUAL_S (function macro)
-- CPU_FREE (function macro)
-- CPU_ISSET (uninterpretable)
-- CPU_ISSET_S (uninterpretable)
-- CPU_OR (uninterpretable)
-- CPU_OR_S (uninterpretable)
-- CPU_SET (uninterpretable)
CPU_SETSIZE : constant := 1024;
-- CPU_SET_S (uninterpretable)
-- CPU_XOR (uninterpretable)
-- CPU_XOR_S (uninterpretable)
-- CPU_ZERO (function macro)
-- CPU_ZERO_S (function macro)
SCHED_H : constant := 1;
-- sched_priority (unparsible)
end C.sched;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package body C.signal is
function SIGRTMAX return signed_int is
begin
return libc_current_sigrtmax;
end SIGRTMAX;
function SIGRTMIN return signed_int is
begin
return libc_current_sigrtmin;
end SIGRTMIN;
end C.signal;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.sigcontext;
with C.bits.siginfo;
with C.bits.sigset;
with C.bits.sigstack;
with C.bits.types;
with C.time;
package C.signal is
pragma Preelaborate;
subtype struct_sigstack is bits.sigstack.struct_sigstack;
function SS_ONSTACK return bits.sigstack.enum_83418de0
renames bits.sigstack.SS_ONSTACK;
function SS_DISABLE return bits.sigstack.enum_83418de0
renames bits.sigstack.SS_DISABLE;
subtype struct_sigaltstack is bits.sigstack.struct_sigaltstack;
subtype stack_t is bits.sigstack.stack_t;
MINSIGSTKSZ : constant := bits.sigstack.MINSIGSTKSZ;
SIGSTKSZ : constant := bits.sigstack.SIGSTKSZ;
-- SS_DISABLE renames bits.sigstack.SS_DISABLE (repeating itself)
-- SS_ONSTACK renames bits.sigstack.SS_ONSTACK (repeating itself)
subtype union_sigval is bits.siginfo.union_sigval;
subtype sigval_t is bits.siginfo.sigval_t;
subtype sigchld_clock_t is bits.siginfo.sigchld_clock_t;
subtype siginfo_t is bits.siginfo.siginfo_t;
function SI_ASYNCNL return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_ASYNCNL;
function SI_TKILL return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_TKILL;
function SI_SIGIO return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_SIGIO;
function SI_ASYNCIO return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_ASYNCIO;
function SI_MESGQ return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_MESGQ;
function SI_TIMER return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_TIMER;
function SI_QUEUE return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_QUEUE;
function SI_USER return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_USER;
function SI_KERNEL return bits.siginfo.enum_77b4bd3c
renames bits.siginfo.SI_KERNEL;
function ILL_ILLOPC return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_ILLOPC;
function ILL_ILLOPN return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_ILLOPN;
function ILL_ILLADR return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_ILLADR;
function ILL_ILLTRP return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_ILLTRP;
function ILL_PRVOPC return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_PRVOPC;
function ILL_PRVREG return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_PRVREG;
function ILL_COPROC return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_COPROC;
function ILL_BADSTK return bits.siginfo.enum_a9af99da
renames bits.siginfo.ILL_BADSTK;
function FPE_INTDIV return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_INTDIV;
function FPE_INTOVF return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_INTOVF;
function FPE_FLTDIV return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTDIV;
function FPE_FLTOVF return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTOVF;
function FPE_FLTUND return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTUND;
function FPE_FLTRES return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTRES;
function FPE_FLTINV return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTINV;
function FPE_FLTSUB return bits.siginfo.enum_aff13027
renames bits.siginfo.FPE_FLTSUB;
function SEGV_MAPERR return bits.siginfo.enum_1c467f51
renames bits.siginfo.SEGV_MAPERR;
function SEGV_ACCERR return bits.siginfo.enum_1c467f51
renames bits.siginfo.SEGV_ACCERR;
function BUS_ADRALN return bits.siginfo.enum_15dc5223
renames bits.siginfo.BUS_ADRALN;
function BUS_ADRERR return bits.siginfo.enum_15dc5223
renames bits.siginfo.BUS_ADRERR;
function BUS_OBJERR return bits.siginfo.enum_15dc5223
renames bits.siginfo.BUS_OBJERR;
function BUS_MCEERR_AR return bits.siginfo.enum_15dc5223
renames bits.siginfo.BUS_MCEERR_AR;
function BUS_MCEERR_AO return bits.siginfo.enum_15dc5223
renames bits.siginfo.BUS_MCEERR_AO;
function TRAP_BRKPT return bits.siginfo.enum_4a5aaba1
renames bits.siginfo.TRAP_BRKPT;
function TRAP_TRACE return bits.siginfo.enum_4a5aaba1
renames bits.siginfo.TRAP_TRACE;
function CLD_EXITED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_EXITED;
function CLD_KILLED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_KILLED;
function CLD_DUMPED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_DUMPED;
function CLD_TRAPPED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_TRAPPED;
function CLD_STOPPED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_STOPPED;
function CLD_CONTINUED return bits.siginfo.enum_cadf86a9
renames bits.siginfo.CLD_CONTINUED;
function POLL_IN return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_IN;
function POLL_OUT return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_OUT;
function POLL_MSG return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_MSG;
function POLL_ERR return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_ERR;
function POLL_PRI return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_PRI;
function POLL_HUP return bits.siginfo.enum_6454b2a2
renames bits.siginfo.POLL_HUP;
subtype struct_sigevent is bits.siginfo.struct_sigevent;
subtype sigevent_t is bits.siginfo.sigevent_t;
function SIGEV_SIGNAL return bits.siginfo.enum_ccbc04c8
renames bits.siginfo.SIGEV_SIGNAL;
function SIGEV_NONE return bits.siginfo.enum_ccbc04c8
renames bits.siginfo.SIGEV_NONE;
function SIGEV_THREAD return bits.siginfo.enum_ccbc04c8
renames bits.siginfo.SIGEV_THREAD;
function SIGEV_THREAD_ID return bits.siginfo.enum_ccbc04c8
renames bits.siginfo.SIGEV_THREAD_ID;
-- BUS_ADRALN renames bits.siginfo.BUS_ADRALN (repeating itself)
-- BUS_ADRERR renames bits.siginfo.BUS_ADRERR (repeating itself)
-- BUS_MCEERR_AO renames bits.siginfo.BUS_MCEERR_AO (repeating itself)
-- BUS_MCEERR_AR renames bits.siginfo.BUS_MCEERR_AR (repeating itself)
-- BUS_OBJERR renames bits.siginfo.BUS_OBJERR (repeating itself)
-- CLD_CONTINUED renames bits.siginfo.CLD_CONTINUED (repeating itself)
-- CLD_DUMPED renames bits.siginfo.CLD_DUMPED (repeating itself)
-- CLD_EXITED renames bits.siginfo.CLD_EXITED (repeating itself)
-- CLD_KILLED renames bits.siginfo.CLD_KILLED (repeating itself)
-- CLD_STOPPED renames bits.siginfo.CLD_STOPPED (repeating itself)
-- CLD_TRAPPED renames bits.siginfo.CLD_TRAPPED (repeating itself)
-- FPE_FLTDIV renames bits.siginfo.FPE_FLTDIV (repeating itself)
-- FPE_FLTINV renames bits.siginfo.FPE_FLTINV (repeating itself)
-- FPE_FLTOVF renames bits.siginfo.FPE_FLTOVF (repeating itself)
-- FPE_FLTRES renames bits.siginfo.FPE_FLTRES (repeating itself)
-- FPE_FLTSUB renames bits.siginfo.FPE_FLTSUB (repeating itself)
-- FPE_FLTUND renames bits.siginfo.FPE_FLTUND (repeating itself)
-- FPE_INTDIV renames bits.siginfo.FPE_INTDIV (repeating itself)
-- FPE_INTOVF renames bits.siginfo.FPE_INTOVF (repeating itself)
-- ILL_BADSTK renames bits.siginfo.ILL_BADSTK (repeating itself)
-- ILL_COPROC renames bits.siginfo.ILL_COPROC (repeating itself)
-- ILL_ILLADR renames bits.siginfo.ILL_ILLADR (repeating itself)
-- ILL_ILLOPC renames bits.siginfo.ILL_ILLOPC (repeating itself)
-- ILL_ILLOPN renames bits.siginfo.ILL_ILLOPN (repeating itself)
-- ILL_ILLTRP renames bits.siginfo.ILL_ILLTRP (repeating itself)
-- ILL_PRVOPC renames bits.siginfo.ILL_PRVOPC (repeating itself)
-- ILL_PRVREG renames bits.siginfo.ILL_PRVREG (repeating itself)
-- POLL_ERR renames bits.siginfo.POLL_ERR (repeating itself)
-- POLL_HUP renames bits.siginfo.POLL_HUP (repeating itself)
-- POLL_IN renames bits.siginfo.POLL_IN (repeating itself)
-- POLL_MSG renames bits.siginfo.POLL_MSG (repeating itself)
-- POLL_OUT renames bits.siginfo.POLL_OUT (repeating itself)
-- POLL_PRI renames bits.siginfo.POLL_PRI (repeating itself)
-- SEGV_ACCERR renames bits.siginfo.SEGV_ACCERR (repeating itself)
-- SEGV_MAPERR renames bits.siginfo.SEGV_MAPERR (repeating itself)
-- SIGEV_NONE renames bits.siginfo.SIGEV_NONE (repeating itself)
-- SIGEV_SIGNAL renames bits.siginfo.SIGEV_SIGNAL (repeating itself)
-- SIGEV_THREAD renames bits.siginfo.SIGEV_THREAD (repeating itself)
-- SIGEV_THREAD_ID renames bits.siginfo.SIGEV_THREAD_ID (repeating itself)
-- SI_ASYNCIO renames bits.siginfo.SI_ASYNCIO (repeating itself)
-- SI_ASYNCNL renames bits.siginfo.SI_ASYNCNL (repeating itself)
-- SI_KERNEL renames bits.siginfo.SI_KERNEL (repeating itself)
-- SI_MESGQ renames bits.siginfo.SI_MESGQ (repeating itself)
-- SI_QUEUE renames bits.siginfo.SI_QUEUE (repeating itself)
-- SI_SIGIO renames bits.siginfo.SI_SIGIO (repeating itself)
-- SI_TIMER renames bits.siginfo.SI_TIMER (repeating itself)
-- SI_TKILL renames bits.siginfo.SI_TKILL (repeating itself)
-- SI_USER renames bits.siginfo.SI_USER (repeating itself)
-- TRAP_BRKPT renames bits.siginfo.TRAP_BRKPT (repeating itself)
-- TRAP_TRACE renames bits.siginfo.TRAP_TRACE (repeating itself)
SIGEV_MAX_SIZE : constant := bits.siginfo.SIGEV_MAX_SIZE;
SIGEV_PAD_SIZE : constant := bits.siginfo.SIGEV_PAD_SIZE;
-- SI_ALIGNMENT renames bits.siginfo.SI_ALIGNMENT (empty)
SI_MAX_SIZE : constant := bits.siginfo.SI_MAX_SIZE;
SI_PAD_SIZE : constant := bits.siginfo.SI_PAD_SIZE;
have_sigevent_t : constant := bits.siginfo.have_sigevent_t;
have_siginfo_t : constant := bits.siginfo.have_siginfo_t;
have_sigval_t : constant := bits.siginfo.have_sigval_t;
-- .si_addr renames ._sifields._sigfault.si_addr (accessor)
-- .si_addr_lsb renames ._sifields._sigfault.si_addr_lsb (accessor)
-- .si_arch renames ._sifields._sigsys._arch (accessor)
-- .si_band renames ._sifields._sigpoll.si_band (accessor)
-- .si_call_addr renames ._sifields._sigsys._call_addr (accessor)
-- .si_fd renames ._sifields._sigpoll.si_fd (accessor)
-- si_int renames bits.siginfo.si_int (unparsible)
-- .si_lower renames ._sifields._sigfault.si_addr_bnd._lower (accessor)
-- .si_overrun renames ._sifields._timer.si_overrun (accessor)
-- .si_pid renames ._sifields._kill.si_pid (accessor)
-- si_ptr renames bits.siginfo.si_ptr (unparsible)
-- .si_status renames ._sifields._sigchld.si_status (accessor)
-- .si_stime renames ._sifields._sigchld.si_stime (accessor)
-- .si_syscall renames ._sifields._sigsys._syscall (accessor)
-- .si_timerid renames ._sifields._timer.si_tid (accessor)
-- .si_uid renames ._sifields._kill.si_uid (accessor)
-- .si_upper renames ._sifields._sigfault.si_addr_bnd._upper (accessor)
-- .si_utime renames ._sifields._sigchld.si_utime (accessor)
-- .sigev_notify_attributes renames ._sigev_un._sigev_thread.... (accessor)
-- .sigev_notify_function renames ._sigev_un._sigev_thread._f... (accessor)
subtype sig_atomic_t is bits.sigset.sig_atomic_t;
subtype sigset_t is bits.sigset.sigset_t;
subtype sigset_t_ptr is bits.sigset.sigset_t_ptr;
subtype sigset_t_const_ptr is bits.sigset.sigset_t_const_ptr;
-- #include <time.h>
-- #include <bits/siginfo.h>
type access_c4454459 is access procedure (a1 : signed_int);
pragma Convention (C, access_c4454459);
subtype qqsighandler_t is access_c4454459;
function Cast is new Ada.Unchecked_Conversion (signed_int,
qqsighandler_t);
function qqsysv_signal (sig : signed_int; handler : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, qqsysv_signal, "__sysv_signal");
function sysv_signal (sig : signed_int; handler : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, sysv_signal, "sysv_signal");
function signal (sig : signed_int; handler : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, signal, "signal");
function bsd_signal (sig : signed_int; handler : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, bsd_signal, "bsd_signal");
function kill (pid : bits.types.pid_t; sig : signed_int)
return signed_int;
pragma Import (C, kill, "kill");
function killpg (pgrp : bits.types.pid_t; sig : signed_int)
return signed_int;
pragma Import (C, killpg, "killpg");
function C_raise (sig : signed_int) return signed_int;
pragma Import (C, C_raise, "raise");
function ssignal (sig : signed_int; handler : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, ssignal, "ssignal");
function gsignal (sig : signed_int) return signed_int;
pragma Import (C, gsignal, "gsignal");
procedure psignal (sig : signed_int; s : access constant char);
pragma Import (C, psignal, "psignal");
procedure psiginfo (pinfo : access constant bits.siginfo.siginfo_t;
s : access constant char);
pragma Import (C, psiginfo, "psiginfo");
function sigpause (sig : signed_int) return signed_int;
pragma Import (C, sigpause, "_xpg_sigpause");
function sigblock (mask : signed_int) return signed_int;
pragma Import (C, sigblock, "sigblock");
function sigsetmask (mask : signed_int) return signed_int;
pragma Import (C, sigsetmask, "sigsetmask");
function siggetmask return signed_int;
pragma Import (C, siggetmask, "siggetmask");
subtype sighandler_t is qqsighandler_t;
subtype sig_t is qqsighandler_t;
function sigemptyset (set : access sigset_t) return signed_int;
pragma Import (C, sigemptyset, "sigemptyset");
function sigfillset (set : access sigset_t) return signed_int;
pragma Import (C, sigfillset, "sigfillset");
function sigaddset (set : access sigset_t; signo : signed_int)
return signed_int;
pragma Import (C, sigaddset, "sigaddset");
function sigdelset (set : access sigset_t; signo : signed_int)
return signed_int;
pragma Import (C, sigdelset, "sigdelset");
function sigismember (set : access constant sigset_t; signo : signed_int)
return signed_int;
pragma Import (C, sigismember, "sigismember");
function sigisemptyset (set : access constant sigset_t) return signed_int;
pragma Import (C, sigisemptyset, "sigisemptyset");
function sigandset (set : access sigset_t;
left : access constant sigset_t; right : access constant sigset_t)
return signed_int;
pragma Import (C, sigandset, "sigandset");
function sigorset (set : access sigset_t; left : access constant sigset_t;
right : access constant sigset_t) return signed_int;
pragma Import (C, sigorset, "sigorset");
-- #include <bits/sigaction.h>
type struct_sigaction;
type access_880251f6 is access procedure (a1 : signed_int;
a2 : access bits.siginfo.siginfo_t; a3 : void_ptr);
pragma Convention (C, access_880251f6);
type union_d5c02b77 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
sa_handler : qqsighandler_t;
when others =>
sa_sigaction : access_880251f6;
end case;
end record;
pragma Unchecked_Union (union_d5c02b77);
pragma Convention (C_Pass_By_Copy, union_d5c02b77);
type access_e823f645 is access procedure;
pragma Convention (C, access_e823f645);
type struct_sigaction is record
sigaction_handler : aliased union_d5c02b77;
sa_mask : aliased bits.sigset.sigset_t;
sa_flags : aliased signed_int;
sa_restorer : aliased access_e823f645;
end record;
pragma Convention (C_Pass_By_Copy, struct_sigaction);
type struct_sigaction_const_ptr is access constant struct_sigaction;
for struct_sigaction_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigaction_const_ptr);
pragma Convention (C, struct_sigaction_const_ptr);
type struct_sigaction_ptr is access all struct_sigaction;
for struct_sigaction_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sigaction_ptr);
pragma Convention (C, struct_sigaction_ptr);
SA_INTERRUPT : constant := 536870912;
SA_NOCLDSTOP : constant := 1;
SA_NOCLDWAIT : constant := 2;
SA_NODEFER : constant := 1073741824;
SA_NOMASK : constant := 1073741824;
SA_ONESHOT : constant := -2147483648;
SA_ONSTACK : constant := 134217728;
SA_RESETHAND : constant := -2147483648;
SA_RESTART : constant := 268435456;
SA_SIGINFO : constant := 4;
SA_STACK : constant := 134217728;
SIG_BLOCK : constant := 0;
SIG_SETMASK : constant := 2;
SIG_UNBLOCK : constant := 1;
-- .sa_handler renames .__sigaction_handler.sa_handler (accessor)
-- .sa_sigaction renames .__sigaction_handler.sa_sigaction (accessor)
function sigprocmask (how : signed_int; set : access constant sigset_t;
oset : access sigset_t) return signed_int;
pragma Import (C, sigprocmask, "sigprocmask");
function sigsuspend (set : access constant sigset_t) return signed_int;
pragma Import (C, sigsuspend, "sigsuspend");
function sigaction (sig : signed_int;
act : access constant struct_sigaction; oact : access struct_sigaction)
return signed_int;
pragma Import (C, sigaction, "sigaction");
function sigpending (set : access sigset_t) return signed_int;
pragma Import (C, sigpending, "sigpending");
function sigwait (set : access constant sigset_t; sig : access signed_int)
return signed_int;
pragma Import (C, sigwait, "sigwait");
function sigwaitinfo (set : access constant sigset_t;
info : access bits.siginfo.siginfo_t) return signed_int;
pragma Import (C, sigwaitinfo, "sigwaitinfo");
function sigtimedwait (set : access constant sigset_t;
info : access bits.siginfo.siginfo_t;
timeout : access constant time.struct_timespec) return signed_int;
pragma Import (C, sigtimedwait, "sigtimedwait");
function sigqueue (pid : bits.types.pid_t; sig : signed_int;
val : bits.siginfo.union_sigval) return signed_int;
pragma Import (C, sigqueue, "sigqueue");
qsys_siglist : aliased char_const_ptr_array (0 .. 64);
pragma Import (C, qsys_siglist, "_sys_siglist");
sys_siglist : aliased char_const_ptr_array (0 .. 64);
pragma Import (C, sys_siglist, "sys_siglist");
-- #include <bits/sigcontext.h>
function sigreturn (scp : access bits.sigcontext.struct_sigcontext)
return signed_int;
pragma Import (C, sigreturn, "sigreturn");
function siginterrupt (sig : signed_int; interrupt : signed_int)
return signed_int;
pragma Import (C, siginterrupt, "siginterrupt");
-- #include <bits/sigstack.h>
function sigstack (ss : access bits.sigstack.struct_sigstack;
oss : access bits.sigstack.struct_sigstack) return signed_int;
pragma Import (C, sigstack, "sigstack");
function sigaltstack (
ss : access constant bits.sigstack.struct_sigaltstack;
oss : access bits.sigstack.struct_sigaltstack) return signed_int;
pragma Import (C, sigaltstack, "sigaltstack");
function sighold (sig : signed_int) return signed_int;
pragma Import (C, sighold, "sighold");
function sigrelse (sig : signed_int) return signed_int;
pragma Import (C, sigrelse, "sigrelse");
function sigignore (sig : signed_int) return signed_int;
pragma Import (C, sigignore, "sigignore");
function sigset (sig : signed_int; disp : qqsighandler_t)
return qqsighandler_t;
pragma Import (C, sigset, "sigset");
-- #include <bits/sigthread.h>
function libc_current_sigrtmin return signed_int;
pragma Import (C, libc_current_sigrtmin, "__libc_current_sigrtmin");
function libc_current_sigrtmax return signed_int;
pragma Import (C, libc_current_sigrtmax, "__libc_current_sigrtmax");
NSIG : constant := 65;
-- _SIGNAL_H (empty)
-- __sig_atomic_t_defined (empty)
-- __sigset_t_defined (empty)
-- sigmask (function macro)
SIGABRT : constant := 6;
SIGALRM : constant := 14;
SIGBUS : constant := 7;
SIGCHLD : constant := 17;
SIGCLD : constant := 17;
SIGCONT : constant := 18;
SIGFPE : constant := 8;
SIGHUP : constant := 1;
SIGILL : constant := 4;
SIGINT : constant := 2;
SIGIO : constant := 29;
SIGIOT : constant := 6;
SIGKILL : constant := 9;
SIGPIPE : constant := 13;
SIGPOLL : constant := 29;
SIGPROF : constant := 27;
SIGPWR : constant := 30;
SIGQUIT : constant := 3;
function SIGRTMAX return signed_int;
pragma Inline_Always (SIGRTMAX);
function SIGRTMIN return signed_int;
pragma Inline_Always (SIGRTMIN);
SIGSEGV : constant := 11;
SIGSTKFLT : constant := 16;
SIGSTOP : constant := 19;
SIGSYS : constant := 31;
SIGTERM : constant := 15;
SIGTRAP : constant := 5;
SIGTSTP : constant := 20;
SIGTTIN : constant := 21;
SIGTTOU : constant := 22;
SIGUNUSED : constant := 31;
SIGURG : constant := 23;
SIGUSR1 : constant := 10;
SIGUSR2 : constant := 12;
SIGVTALRM : constant := 26;
SIGWINCH : constant := 28;
SIGXCPU : constant := 24;
SIGXFSZ : constant := 25;
SIG_DFL : constant qqsighandler_t := null;
function SIG_ERR (Value : signed_int := -1) return qqsighandler_t
renames Cast;
function SIG_HOLD (Value : signed_int := 2) return qqsighandler_t
renames Cast;
function SIG_IGN (Value : signed_int := 1) return qqsighandler_t
renames Cast;
qNSIG : constant := 65;
qqSIGRTMAX : constant := 64;
qqSIGRTMIN : constant := 32;
end C.signal;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.sched;
with C.signal;
with C.sys.types;
package C.spawn is
pragma Preelaborate;
type struct_f74be287 is record
flags : aliased signed_short;
pgrp : aliased sys.types.pid_t;
sd : aliased signal.sigset_t;
ss : aliased signal.sigset_t;
sp : aliased bits.sched.struct_sched_param;
policy : aliased signed_int;
pad : aliased signed_int_array (0 .. 15);
end record;
pragma Convention (C_Pass_By_Copy, struct_f74be287);
type struct_f74be287_const_ptr is access constant struct_f74be287;
for struct_f74be287_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_f74be287_const_ptr);
pragma Convention (C, struct_f74be287_const_ptr);
type struct_f74be287_ptr is access all struct_f74be287;
for struct_f74be287_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_f74be287_ptr);
pragma Convention (C, struct_f74be287_ptr);
subtype posix_spawnattr_t is struct_f74be287;
subtype posix_spawnattr_t_const_ptr is struct_f74be287_const_ptr;
subtype posix_spawnattr_t_ptr is struct_f74be287_ptr;
type struct_spawn_action (<>) is limited private;
type struct_spawn_action_ptr is access all struct_spawn_action;
for struct_spawn_action_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_spawn_action_ptr);
pragma Convention (C, struct_spawn_action_ptr);
type struct_6dd66674 is record
allocated : aliased signed_int;
used : aliased signed_int;
actions : aliased struct_spawn_action_ptr;
pad : aliased signed_int_array (0 .. 15);
end record;
pragma Convention (C_Pass_By_Copy, struct_6dd66674);
type struct_6dd66674_const_ptr is access constant struct_6dd66674;
for struct_6dd66674_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_6dd66674_const_ptr);
pragma Convention (C, struct_6dd66674_const_ptr);
type struct_6dd66674_ptr is access all struct_6dd66674;
for struct_6dd66674_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_6dd66674_ptr);
pragma Convention (C, struct_6dd66674_ptr);
subtype posix_spawn_file_actions_t is struct_6dd66674;
subtype posix_spawn_file_actions_t_const_ptr is struct_6dd66674_const_ptr;
subtype posix_spawn_file_actions_t_ptr is struct_6dd66674_ptr;
function posix_spawn (pid : access sys.types.pid_t;
path : access constant char;
file_actions : access constant posix_spawn_file_actions_t;
attrp : access constant posix_spawnattr_t; argv : access char_ptr;
envp : access char_ptr) return signed_int;
pragma Import (C, posix_spawn, "posix_spawn");
function posix_spawnp (pid : access sys.types.pid_t;
file : access constant char;
file_actions : access constant posix_spawn_file_actions_t;
attrp : access constant posix_spawnattr_t; argv : access char_ptr;
envp : access char_ptr) return signed_int;
pragma Import (C, posix_spawnp, "posix_spawnp");
function posix_spawnattr_init (attr : access posix_spawnattr_t)
return signed_int;
pragma Import (C, posix_spawnattr_init, "posix_spawnattr_init");
function posix_spawnattr_destroy (attr : access posix_spawnattr_t)
return signed_int;
pragma Import (C, posix_spawnattr_destroy, "posix_spawnattr_destroy");
function posix_spawnattr_getsigdefault (
attr : access constant posix_spawnattr_t;
sigdefault : access signal.sigset_t) return signed_int;
pragma Import (C, posix_spawnattr_getsigdefault,
"posix_spawnattr_getsigdefault");
function posix_spawnattr_setsigdefault (attr : access posix_spawnattr_t;
sigdefault : access constant signal.sigset_t) return signed_int;
pragma Import (C, posix_spawnattr_setsigdefault,
"posix_spawnattr_setsigdefault");
function posix_spawnattr_getsigmask (
attr : access constant posix_spawnattr_t;
sigmask : access signal.sigset_t) return signed_int;
pragma Import (C, posix_spawnattr_getsigmask,
"posix_spawnattr_getsigmask");
function posix_spawnattr_setsigmask (attr : access posix_spawnattr_t;
sigmask : access constant signal.sigset_t) return signed_int;
pragma Import (C, posix_spawnattr_setsigmask,
"posix_spawnattr_setsigmask");
function posix_spawnattr_getflags (
attr : access constant posix_spawnattr_t; flags : access signed_short)
return signed_int;
pragma Import (C, posix_spawnattr_getflags, "posix_spawnattr_getflags");
function posix_spawnattr_setflags (attr : access posix_spawnattr_t;
flags : signed_short) return signed_int;
pragma Import (C, posix_spawnattr_setflags, "posix_spawnattr_setflags");
function posix_spawnattr_getpgroup (
attr : access constant posix_spawnattr_t;
pgroup : access sys.types.pid_t) return signed_int;
pragma Import (C, posix_spawnattr_getpgroup, "posix_spawnattr_getpgroup");
function posix_spawnattr_setpgroup (attr : access posix_spawnattr_t;
pgroup : sys.types.pid_t) return signed_int;
pragma Import (C, posix_spawnattr_setpgroup, "posix_spawnattr_setpgroup");
function posix_spawnattr_getschedpolicy (
attr : access constant posix_spawnattr_t;
schedpolicy : access signed_int) return signed_int;
pragma Import (C, posix_spawnattr_getschedpolicy,
"posix_spawnattr_getschedpolicy");
function posix_spawnattr_setschedpolicy (attr : access posix_spawnattr_t;
schedpolicy : signed_int) return signed_int;
pragma Import (C, posix_spawnattr_setschedpolicy,
"posix_spawnattr_setschedpolicy");
function posix_spawnattr_getschedparam (
attr : access constant posix_spawnattr_t;
schedparam : access bits.sched.struct_sched_param) return signed_int;
pragma Import (C, posix_spawnattr_getschedparam,
"posix_spawnattr_getschedparam");
function posix_spawnattr_setschedparam (attr : access posix_spawnattr_t;
schedparam : access constant bits.sched.struct_sched_param)
return signed_int;
pragma Import (C, posix_spawnattr_setschedparam,
"posix_spawnattr_setschedparam");
function posix_spawn_file_actions_init (
file_actions : access posix_spawn_file_actions_t) return signed_int;
pragma Import (C, posix_spawn_file_actions_init,
"posix_spawn_file_actions_init");
function posix_spawn_file_actions_destroy (
file_actions : access posix_spawn_file_actions_t) return signed_int;
pragma Import (C, posix_spawn_file_actions_destroy,
"posix_spawn_file_actions_destroy");
function posix_spawn_file_actions_addopen (
file_actions : access posix_spawn_file_actions_t; fd : signed_int;
path : access constant char; oflag : signed_int;
mode : sys.types.mode_t) return signed_int;
pragma Import (C, posix_spawn_file_actions_addopen,
"posix_spawn_file_actions_addopen");
function posix_spawn_file_actions_addclose (
file_actions : access posix_spawn_file_actions_t; fd : signed_int)
return signed_int;
pragma Import (C, posix_spawn_file_actions_addclose,
"posix_spawn_file_actions_addclose");
function posix_spawn_file_actions_adddup2 (
file_actions : access posix_spawn_file_actions_t; fd : signed_int;
newfd : signed_int) return signed_int;
pragma Import (C, posix_spawn_file_actions_adddup2,
"posix_spawn_file_actions_adddup2");
POSIX_SPAWN_RESETIDS : constant := 1;
POSIX_SPAWN_SETPGROUP : constant := 2;
POSIX_SPAWN_SETSCHEDPARAM : constant := 16;
POSIX_SPAWN_SETSCHEDULER : constant := 32;
POSIX_SPAWN_SETSIGDEF : constant := 4;
POSIX_SPAWN_SETSIGMASK : constant := 8;
POSIX_SPAWN_USEVFORK : constant := 64;
SPAWN_H : constant := 1;
-- __need_sigset_t (empty)
private
type struct_spawn_action is null record;
end C.spawn;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.stdarg is
pragma Preelaborate;
subtype qqgnuc_va_list is builtin_va_list;
-- __GNUC_VA_LIST (empty)
end C.stdarg;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.stddef is
pragma Preelaborate;
subtype ptrdiff_t is Standard.C.ptrdiff_t;
subtype size_t is Standard.C.size_t;
subtype size_t_ptr is Standard.C.size_t_ptr;
subtype wchar_t is Standard.C.wchar_t;
subtype wchar_t_ptr is Standard.C.wchar_t_ptr;
subtype wchar_t_const_ptr is Standard.C.wchar_t_const_ptr;
C_NULL : constant void_ptr := void_ptr (System'To_Address (0));
-- _ANSI_STDDEF_H (empty)
-- _BSD_PTRDIFF_T_ (empty)
-- _BSD_SIZE_T_ (empty)
-- _BSD_SIZE_T_DEFINED_ (empty)
-- _GCC_PTRDIFF_T (empty)
-- _GCC_SIZE_T (empty)
-- _GCC_WCHAR_T (empty)
-- _PTRDIFF_T (empty)
-- _PTRDIFF_T_ (empty)
-- _PTRDIFF_T_DECLARED (empty)
-- _SIZET_ (empty)
-- _SIZE_T (empty)
-- _SIZE_T_ (empty)
-- _SIZE_T_DECLARED (empty)
-- _SIZE_T_DEFINED (empty)
-- _SIZE_T_DEFINED_ (empty)
-- _STDDEF_H (empty)
-- _STDDEF_H_ (empty)
-- _SYS_SIZE_T_H (empty)
-- _T_PTRDIFF (empty)
-- _T_PTRDIFF_ (empty)
-- _T_SIZE (empty)
-- _T_SIZE_ (empty)
-- _T_WCHAR (empty)
-- _T_WCHAR_ (empty)
-- _WCHAR_T (empty)
-- _WCHAR_T_ (empty)
-- _WCHAR_T_DECLARED (empty)
-- _WCHAR_T_DEFINED (empty)
-- _WCHAR_T_DEFINED_ (empty)
-- _WCHAR_T_H (empty)
-- __INT_WCHAR_T_H (empty)
-- __PTRDIFF_T (empty)
-- __SIZE_T (empty)
-- __SIZE_T__ (empty)
-- __WCHAR_T (empty)
-- __WCHAR_T__ (empty)
-- ___int_ptrdiff_t_h (empty)
-- ___int_size_t_h (empty)
-- ___int_wchar_t_h (empty)
-- __size_t (empty)
-- __size_t__ (empty)
-- __wchar_t__ (empty)
-- offsetof (unparsible)
end C.stddef;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.stdint is
pragma Preelaborate;
subtype int8_t is signed_char;
subtype int16_t is signed_short;
subtype int32_t is signed_int;
subtype int32_t_ptr is signed_int_ptr;
subtype int64_t is signed_long_long;
subtype uint8_t is unsigned_char;
subtype uint8_t_array is unsigned_char_array;
subtype uint8_t_const_ptr is unsigned_char_const_ptr;
subtype uint8_t_ptr is unsigned_char_ptr;
subtype uint8_t_ptr_ptr is unsigned_char_ptr_ptr;
subtype uint16_t is unsigned_short;
subtype uint16_t_array is unsigned_short_array;
subtype uint32_t is unsigned_int;
subtype uint32_t_array is unsigned_int_array;
subtype uint32_t_ptr is unsigned_int_ptr;
subtype uint64_t is unsigned_long_long;
subtype int_least8_t is signed_char;
subtype int_least16_t is signed_short;
subtype int_least32_t is signed_int;
subtype int_least64_t is signed_long_long;
subtype uint_least8_t is unsigned_char;
subtype uint_least16_t is unsigned_short;
subtype uint_least32_t is unsigned_int;
subtype uint_least64_t is unsigned_long_long;
subtype int_fast8_t is signed_char;
subtype int_fast16_t is signed_int;
subtype int_fast32_t is signed_int;
subtype int_fast64_t is signed_long_long;
subtype uint_fast8_t is unsigned_char;
subtype uint_fast16_t is unsigned_int;
subtype uint_fast32_t is unsigned_int;
subtype uint_fast64_t is unsigned_long_long;
subtype intptr_t is signed_int;
subtype uintptr_t is unsigned_int;
subtype uintptr_t_ptr is unsigned_int_ptr;
subtype intmax_t is signed_long_long;
subtype uintmax_t is unsigned_long_long;
-- INT16_C (function macro)
INT16_MAX : constant := 32767;
INT16_MIN : constant := -32768;
-- INT32_C (function macro)
INT32_MAX : constant := 2147483647;
INT32_MIN : constant := -2147483648;
-- INT64_C (has # or ##)
INT64_MAX : constant := 9223372036854775807;
INT64_MIN : constant := -9223372036854775808;
-- INT8_C (function macro)
INT8_MAX : constant := 127;
INT8_MIN : constant := -128;
-- INTMAX_C (has # or ##)
INTMAX_MAX : constant := 9223372036854775807;
INTMAX_MIN : constant := -9223372036854775808;
INTPTR_MAX : constant := 2147483647;
INTPTR_MIN : constant := -2147483648;
INT_FAST16_MAX : constant := 2147483647;
INT_FAST16_MIN : constant := -2147483648;
INT_FAST32_MAX : constant := 2147483647;
INT_FAST32_MIN : constant := -2147483648;
INT_FAST64_MAX : constant := 9223372036854775807;
INT_FAST64_MIN : constant := -9223372036854775808;
INT_FAST8_MAX : constant := 127;
INT_FAST8_MIN : constant := -128;
INT_LEAST16_MAX : constant := 32767;
INT_LEAST16_MIN : constant := -32768;
INT_LEAST32_MAX : constant := 2147483647;
INT_LEAST32_MIN : constant := -2147483648;
INT_LEAST64_MAX : constant := 9223372036854775807;
INT_LEAST64_MIN : constant := -9223372036854775808;
INT_LEAST8_MAX : constant := 127;
INT_LEAST8_MIN : constant := -128;
PTRDIFF_MAX : constant := 2147483647;
PTRDIFF_MIN : constant := -2147483648;
SIG_ATOMIC_MAX : constant := 2147483647;
SIG_ATOMIC_MIN : constant := -2147483648;
SIZE_MAX : constant := 4294967295;
-- UINT16_C (function macro)
UINT16_MAX : constant := 65535;
-- UINT32_C (has # or ##)
UINT32_MAX : constant := 4294967295;
-- UINT64_C (has # or ##)
UINT64_MAX : constant := 18446744073709551615;
-- UINT8_C (function macro)
UINT8_MAX : constant := 255;
-- UINTMAX_C (has # or ##)
UINTMAX_MAX : constant := 18446744073709551615;
UINTPTR_MAX : constant := 4294967295;
UINT_FAST16_MAX : constant := 4294967295;
UINT_FAST32_MAX : constant := 4294967295;
UINT_FAST64_MAX : constant := 18446744073709551615;
UINT_FAST8_MAX : constant := 255;
UINT_LEAST16_MAX : constant := 65535;
UINT_LEAST32_MAX : constant := 4294967295;
UINT_LEAST64_MAX : constant := 18446744073709551615;
UINT_LEAST8_MAX : constant := 255;
WCHAR_MAX : constant := 2147483647;
WCHAR_MIN : constant := -2147483648;
WINT_MAX : constant := 4294967295;
WINT_MIN : constant := 0;
STDINT_H : constant := 1;
-- __int8_t_defined (empty)
-- __intptr_t_defined (empty)
-- __uint32_t_defined (empty)
-- _GCC_WRAP_STDINT_H (empty)
end C.stdint;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.libio;
with C.qG_config;
with C.stdarg;
with C.stddef;
package C.stdio is
pragma Preelaborate;
subtype FILE is libio.struct_IO_FILE;
subtype FILE_ptr is libio.struct_IO_FILE_ptr;
subtype qqFILE is libio.struct_IO_FILE;
subtype va_list is stdarg.qqgnuc_va_list;
subtype fpos_t is qG_config.G_fpos64_t;
subtype fpos_t_ptr is qG_config.G_fpos64_t_ptr;
subtype fpos_t_const_ptr is qG_config.G_fpos64_t_const_ptr;
subtype fpos64_t is qG_config.G_fpos64_t;
subtype fpos64_t_ptr is qG_config.G_fpos64_t_ptr;
subtype fpos64_t_const_ptr is qG_config.G_fpos64_t_const_ptr;
stdin : aliased libio.struct_IO_FILE_ptr;
pragma Import (C, stdin, "stdin");
stdout : aliased libio.struct_IO_FILE_ptr;
pragma Import (C, stdout, "stdout");
stderr : aliased libio.struct_IO_FILE_ptr;
pragma Import (C, stderr, "stderr");
function remove (filename : access constant char) return signed_int;
pragma Import (C, remove, "remove");
function rename (old : access constant char; A_new : access constant char)
return signed_int;
pragma Import (C, rename, "rename");
function renameat (oldfd : signed_int; old : access constant char;
newfd : signed_int; A_new : access constant char) return signed_int;
pragma Import (C, renameat, "renameat");
function tmpfile return FILE_ptr;
pragma Import (C, tmpfile, "tmpfile64");
function tmpfile64 return FILE_ptr;
pragma Import (C, tmpfile64, "tmpfile64");
function tmpnam (s : access char) return char_ptr;
pragma Import (C, tmpnam, "tmpnam");
function tmpnam_r (s : access char) return char_ptr;
pragma Import (C, tmpnam_r, "tmpnam_r");
function tempnam (dir : access constant char; pfx : access constant char)
return char_ptr;
pragma Import (C, tempnam, "tempnam");
function fclose (stream : access FILE) return signed_int;
pragma Import (C, fclose, "fclose");
function fflush (stream : access FILE) return signed_int;
pragma Import (C, fflush, "fflush");
function fflush_unlocked (stream : access FILE) return signed_int;
pragma Import (C, fflush_unlocked, "fflush_unlocked");
function fopen (filename : access constant char;
modes : access constant char) return FILE_ptr;
pragma Import (C, fopen, "fopen64");
function freopen (filename : access constant char;
modes : access constant char; stream : access FILE) return FILE_ptr;
pragma Import (C, freopen, "freopen64");
function fopen64 (filename : access constant char;
modes : access constant char) return FILE_ptr;
pragma Import (C, fopen64, "fopen64");
function freopen64 (filename : access constant char;
modes : access constant char; stream : access FILE) return FILE_ptr;
pragma Import (C, freopen64, "freopen64");
function fdopen (fd : signed_int; modes : access constant char)
return FILE_ptr;
pragma Import (C, fdopen, "fdopen");
procedure setbuf (stream : access FILE; buf : access char);
pragma Import (C, setbuf, "setbuf");
function setvbuf (stream : access FILE; buf : access char;
modes : signed_int; n : stddef.size_t) return signed_int;
pragma Import (C, setvbuf, "setvbuf");
procedure setbuffer (stream : access FILE; buf : access char;
size : stddef.size_t);
pragma Import (C, setbuffer, "setbuffer");
procedure setlinebuf (stream : access FILE);
pragma Import (C, setlinebuf, "setlinebuf");
function fprintf (stream : access FILE; format : access constant char)
return signed_int;
pragma Import (C, fprintf, "fprintf");
function printf (format : access constant char) return signed_int;
pragma Import (C, printf, "printf");
function sprintf (s : access char; format : access constant char)
return signed_int;
pragma Import (C, sprintf, "sprintf");
function vfprintf (s : access FILE; format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vfprintf, "vfprintf");
function vprintf (format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vprintf, "vprintf");
function vsprintf (s : access char; format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vsprintf, "vsprintf");
function snprintf (s : access char; maxlen : stddef.size_t;
format : access constant char) return signed_int;
pragma Import (C, snprintf, "snprintf");
function vsnprintf (s : access char; maxlen : stddef.size_t;
format : access constant char; arg : stdarg.qqgnuc_va_list)
return signed_int;
pragma Import (C, vsnprintf, "vsnprintf");
function fscanf (stream : access FILE; format : access constant char)
return signed_int;
pragma Import (C, fscanf, "_isoc99_fscanf");
function scanf (format : access constant char) return signed_int;
pragma Import (C, scanf, "_isoc99_scanf");
function sscanf (s : access constant char; format : access constant char)
return signed_int;
pragma Import (C, sscanf, "_isoc99_sscanf");
function vfscanf (s : access FILE; format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vfscanf, "_isoc99_vfscanf");
function vscanf (format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vscanf, "_isoc99_vscanf");
function vsscanf (s : access constant char; format : access constant char;
arg : stdarg.qqgnuc_va_list) return signed_int;
pragma Import (C, vsscanf, "_isoc99_vsscanf");
function fgetc (stream : access FILE) return signed_int;
pragma Import (C, fgetc, "fgetc");
function getc (stream : access FILE) return signed_int;
pragma Import (C, getc, "getc");
function getchar return signed_int;
pragma Import (C, getchar, "getchar");
function getc_unlocked (stream : access FILE) return signed_int;
pragma Import (C, getc_unlocked, "getc_unlocked");
function getchar_unlocked return signed_int;
pragma Import (C, getchar_unlocked, "getchar_unlocked");
function fgetc_unlocked (stream : access FILE) return signed_int;
pragma Import (C, fgetc_unlocked, "fgetc_unlocked");
function fputc (c : signed_int; stream : access FILE) return signed_int;
pragma Import (C, fputc, "fputc");
function putc (c : signed_int; stream : access FILE) return signed_int;
pragma Import (C, putc, "putc");
function putchar (c : signed_int) return signed_int;
pragma Import (C, putchar, "putchar");
function fputc_unlocked (c : signed_int; stream : access FILE)
return signed_int;
pragma Import (C, fputc_unlocked, "fputc_unlocked");
function putc_unlocked (c : signed_int; stream : access FILE)
return signed_int;
pragma Import (C, putc_unlocked, "putc_unlocked");
function putchar_unlocked (c : signed_int) return signed_int;
pragma Import (C, putchar_unlocked, "putchar_unlocked");
function getw (stream : access FILE) return signed_int;
pragma Import (C, getw, "getw");
function putw (w : signed_int; stream : access FILE) return signed_int;
pragma Import (C, putw, "putw");
function fgets (s : access char; n : signed_int; stream : access FILE)
return char_ptr;
pragma Import (C, fgets, "fgets");
function fputs (s : access constant char; stream : access FILE)
return signed_int;
pragma Import (C, fputs, "fputs");
function puts (s : access constant char) return signed_int;
pragma Import (C, puts, "puts");
function ungetc (c : signed_int; stream : access FILE) return signed_int;
pragma Import (C, ungetc, "ungetc");
function fread (ptr : void_ptr; size : stddef.size_t; n : stddef.size_t;
stream : access FILE) return stddef.size_t;
pragma Import (C, fread, "fread");
function fwrite (ptr : void_const_ptr; size : stddef.size_t;
n : stddef.size_t; s : access FILE) return stddef.size_t;
pragma Import (C, fwrite, "fwrite");
function fread_unlocked (ptr : void_ptr; size : stddef.size_t;
n : stddef.size_t; stream : access FILE) return stddef.size_t;
pragma Import (C, fread_unlocked, "fread_unlocked");
function fwrite_unlocked (ptr : void_const_ptr; size : stddef.size_t;
n : stddef.size_t; stream : access FILE) return stddef.size_t;
pragma Import (C, fwrite_unlocked, "fwrite_unlocked");
function fseek (stream : access FILE; off : signed_long;
whence : signed_int) return signed_int;
pragma Import (C, fseek, "fseek");
function ftell (stream : access FILE) return signed_long;
pragma Import (C, ftell, "ftell");
procedure rewind (stream : access FILE);
pragma Import (C, rewind, "rewind");
function fseeko (stream : access FILE; off : bits.types.off64_t;
whence : signed_int) return signed_int;
pragma Import (C, fseeko, "fseeko64");
function ftello (stream : access FILE) return bits.types.off64_t;
pragma Import (C, ftello, "ftello64");
function fgetpos (stream : access FILE; pos : access fpos_t)
return signed_int;
pragma Import (C, fgetpos, "fgetpos64");
function fsetpos (stream : access FILE; pos : access constant fpos_t)
return signed_int;
pragma Import (C, fsetpos, "fsetpos64");
function fseeko64 (stream : access FILE; off : bits.types.off64_t;
whence : signed_int) return signed_int;
pragma Import (C, fseeko64, "fseeko64");
function ftello64 (stream : access FILE) return bits.types.off64_t;
pragma Import (C, ftello64, "ftello64");
function fgetpos64 (stream : access FILE; pos : access fpos64_t)
return signed_int;
pragma Import (C, fgetpos64, "fgetpos64");
function fsetpos64 (stream : access FILE; pos : access constant fpos64_t)
return signed_int;
pragma Import (C, fsetpos64, "fsetpos64");
procedure clearerr (stream : access FILE);
pragma Import (C, clearerr, "clearerr");
function feof (stream : access FILE) return signed_int;
pragma Import (C, feof, "feof");
function ferror (stream : access FILE) return signed_int;
pragma Import (C, ferror, "ferror");
procedure clearerr_unlocked (stream : access FILE);
pragma Import (C, clearerr_unlocked, "clearerr_unlocked");
function feof_unlocked (stream : access FILE) return signed_int;
pragma Import (C, feof_unlocked, "feof_unlocked");
function ferror_unlocked (stream : access FILE) return signed_int;
pragma Import (C, ferror_unlocked, "ferror_unlocked");
procedure perror (s : access constant char);
pragma Import (C, perror, "perror");
-- #include <bits/sys_errlist.h>
function fileno (stream : access FILE) return signed_int;
pragma Import (C, fileno, "fileno");
function fileno_unlocked (stream : access FILE) return signed_int;
pragma Import (C, fileno_unlocked, "fileno_unlocked");
function popen (command : access constant char;
modes : access constant char) return FILE_ptr;
pragma Import (C, popen, "popen");
function pclose (stream : access FILE) return signed_int;
pragma Import (C, pclose, "pclose");
function ctermid (s : access char) return char_ptr;
pragma Import (C, ctermid, "ctermid");
procedure flockfile (stream : access FILE);
pragma Import (C, flockfile, "flockfile");
function ftrylockfile (stream : access FILE) return signed_int;
pragma Import (C, ftrylockfile, "ftrylockfile");
procedure funlockfile (stream : access FILE);
pragma Import (C, funlockfile, "funlockfile");
BUFSIZ : constant := 8192;
P_tmpdir : constant char_array (0 .. 4) := "/tmp" & char'Val (0);
IOFBF : constant := 0;
IOLBF : constant := 1;
IONBF : constant := 2;
STDIO_H : constant := 1;
-- _STDIO_USES_IOSTREAM (empty)
-- _VA_LIST_DEFINED (empty)
FILE_defined : constant := 1;
qqqqFILE_defined : constant := 1;
-- stderr (repeating itself)
-- stdin (repeating itself)
-- stdout (repeating itself)
end C.stdio;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package body C.stdlib is
function MB_CUR_MAX return stddef.size_t is
begin
return ctype_get_mb_cur_max;
end MB_CUR_MAX;
end C.stdlib;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
with C.stdint;
with C.xlocale;
package C.stdlib is
pragma Preelaborate;
type struct_3210b632 is record
quot : aliased signed_int;
F_rem : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_3210b632);
subtype div_t is struct_3210b632;
type struct_b762d41b is record
quot : aliased signed_long;
F_rem : aliased signed_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_b762d41b);
subtype ldiv_t is struct_b762d41b;
type struct_b37d1920 is record
quot : aliased signed_long_long;
F_rem : aliased signed_long_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_b37d1920);
subtype lldiv_t is struct_b37d1920;
function ctype_get_mb_cur_max return stddef.size_t;
pragma Import (C, ctype_get_mb_cur_max, "__ctype_get_mb_cur_max");
function atof (nptr : access constant char) return double;
pragma Import (C, atof, "atof");
function atoi (nptr : access constant char) return signed_int;
pragma Import (C, atoi, "atoi");
function atol (nptr : access constant char) return signed_long;
pragma Import (C, atol, "atol");
function atoll (nptr : access constant char) return signed_long_long;
pragma Import (C, atoll, "atoll");
function strtod (nptr : access constant char; endptr : access char_ptr)
return double;
pragma Import (C, strtod, "strtod");
function strtof (nptr : access constant char; endptr : access char_ptr)
return float;
pragma Import (C, strtof, "strtof");
function strtold (nptr : access constant char; endptr : access char_ptr)
return long_double;
pragma Import (C, strtold, "strtold");
function strtol (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return signed_long;
pragma Import (C, strtol, "strtol");
function strtoul (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return unsigned_long;
pragma Import (C, strtoul, "strtoul");
function strtoq (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return signed_long_long;
pragma Import (C, strtoq, "strtoq");
function strtouq (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return unsigned_long_long;
pragma Import (C, strtouq, "strtouq");
function strtoll (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return signed_long_long;
pragma Import (C, strtoll, "strtoll");
function strtoull (nptr : access constant char; endptr : access char_ptr;
base : signed_int) return unsigned_long_long;
pragma Import (C, strtoull, "strtoull");
function strtol_l (nptr : access constant char; endptr : access char_ptr;
base : signed_int; loc : access xlocale.struct_locale_struct)
return signed_long;
pragma Import (C, strtol_l, "strtol_l");
function strtoul_l (nptr : access constant char; endptr : access char_ptr;
base : signed_int; loc : access xlocale.struct_locale_struct)
return unsigned_long;
pragma Import (C, strtoul_l, "strtoul_l");
function strtoll_l (nptr : access constant char; endptr : access char_ptr;
base : signed_int; loc : access xlocale.struct_locale_struct)
return signed_long_long;
pragma Import (C, strtoll_l, "strtoll_l");
function strtoull_l (nptr : access constant char;
endptr : access char_ptr; base : signed_int;
loc : access xlocale.struct_locale_struct) return unsigned_long_long;
pragma Import (C, strtoull_l, "strtoull_l");
function strtod_l (nptr : access constant char; endptr : access char_ptr;
loc : access xlocale.struct_locale_struct) return double;
pragma Import (C, strtod_l, "strtod_l");
function strtof_l (nptr : access constant char; endptr : access char_ptr;
loc : access xlocale.struct_locale_struct) return float;
pragma Import (C, strtof_l, "strtof_l");
function strtold_l (nptr : access constant char; endptr : access char_ptr;
loc : access xlocale.struct_locale_struct) return long_double;
pragma Import (C, strtold_l, "strtold_l");
function l64a (n : signed_long) return char_ptr;
pragma Import (C, l64a, "l64a");
function a64l (s : access constant char) return signed_long;
pragma Import (C, a64l, "a64l");
function random return signed_long;
pragma Import (C, random, "random");
procedure srandom (seed : unsigned_int);
pragma Import (C, srandom, "srandom");
function initstate (seed : unsigned_int; statebuf : access char;
statelen : stddef.size_t) return char_ptr;
pragma Import (C, initstate, "initstate");
function setstate (statebuf : access char) return char_ptr;
pragma Import (C, setstate, "setstate");
type struct_random_data;
type struct_random_data is record
fptr : aliased stdint.int32_t_ptr;
rptr : aliased stdint.int32_t_ptr;
state : aliased stdint.int32_t_ptr;
rand_type : aliased signed_int;
rand_deg : aliased signed_int;
rand_sep : aliased signed_int;
end_ptr : aliased stdint.int32_t_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_random_data);
type struct_random_data_ptr is access all struct_random_data;
for struct_random_data_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_random_data_ptr);
pragma Convention (C, struct_random_data_ptr);
function random_r (buf : access struct_random_data;
result : access stdint.int32_t) return signed_int;
pragma Import (C, random_r, "random_r");
function srandom_r (seed : unsigned_int; buf : access struct_random_data)
return signed_int;
pragma Import (C, srandom_r, "srandom_r");
function initstate_r (seed : unsigned_int; statebuf : access char;
statelen : stddef.size_t; buf : access struct_random_data)
return signed_int;
pragma Import (C, initstate_r, "initstate_r");
function setstate_r (statebuf : access char;
buf : access struct_random_data) return signed_int;
pragma Import (C, setstate_r, "setstate_r");
function rand return signed_int;
pragma Import (C, rand, "rand");
procedure srand (seed : unsigned_int);
pragma Import (C, srand, "srand");
function rand_r (seed : access unsigned_int) return signed_int;
pragma Import (C, rand_r, "rand_r");
function drand48 return double;
pragma Import (C, drand48, "drand48");
function erand48 (xsubi : access unsigned_short) return double;
pragma Import (C, erand48, "erand48");
function lrand48 return signed_long;
pragma Import (C, lrand48, "lrand48");
function nrand48 (xsubi : access unsigned_short) return signed_long;
pragma Import (C, nrand48, "nrand48");
function mrand48 return signed_long;
pragma Import (C, mrand48, "mrand48");
function jrand48 (xsubi : access unsigned_short) return signed_long;
pragma Import (C, jrand48, "jrand48");
procedure srand48 (seedval : signed_long);
pragma Import (C, srand48, "srand48");
function seed48 (seed16v : access unsigned_short)
return unsigned_short_ptr;
pragma Import (C, seed48, "seed48");
procedure lcong48 (param : access unsigned_short);
pragma Import (C, lcong48, "lcong48");
type struct_drand48_data;
type struct_drand48_data is record
x : aliased unsigned_short_array (0 .. 2);
old_x : aliased unsigned_short_array (0 .. 2);
c : aliased unsigned_short;
init : aliased unsigned_short;
a : aliased unsigned_long_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_drand48_data);
type struct_drand48_data_ptr is access all struct_drand48_data;
for struct_drand48_data_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_drand48_data_ptr);
pragma Convention (C, struct_drand48_data_ptr);
function drand48_r (buffer : access struct_drand48_data;
result : access double) return signed_int;
pragma Import (C, drand48_r, "drand48_r");
function erand48_r (xsubi : access unsigned_short;
buffer : access struct_drand48_data; result : access double)
return signed_int;
pragma Import (C, erand48_r, "erand48_r");
function lrand48_r (buffer : access struct_drand48_data;
result : access signed_long) return signed_int;
pragma Import (C, lrand48_r, "lrand48_r");
function nrand48_r (xsubi : access unsigned_short;
buffer : access struct_drand48_data; result : access signed_long)
return signed_int;
pragma Import (C, nrand48_r, "nrand48_r");
function mrand48_r (buffer : access struct_drand48_data;
result : access signed_long) return signed_int;
pragma Import (C, mrand48_r, "mrand48_r");
function jrand48_r (xsubi : access unsigned_short;
buffer : access struct_drand48_data; result : access signed_long)
return signed_int;
pragma Import (C, jrand48_r, "jrand48_r");
function srand48_r (seedval : signed_long;
buffer : access struct_drand48_data) return signed_int;
pragma Import (C, srand48_r, "srand48_r");
function seed48_r (seed16v : access unsigned_short;
buffer : access struct_drand48_data) return signed_int;
pragma Import (C, seed48_r, "seed48_r");
function lcong48_r (param : access unsigned_short;
buffer : access struct_drand48_data) return signed_int;
pragma Import (C, lcong48_r, "lcong48_r");
function malloc (size : stddef.size_t) return void_ptr;
pragma Import (C, malloc, "malloc");
function calloc (nmemb : stddef.size_t; size : stddef.size_t)
return void_ptr;
pragma Import (C, calloc, "calloc");
function realloc (ptr : void_ptr; size : stddef.size_t) return void_ptr;
pragma Import (C, realloc, "realloc");
procedure free (ptr : void_ptr);
pragma Import (C, free, "free");
procedure cfree (ptr : void_ptr);
pragma Import (C, cfree, "cfree");
-- #include <alloca.h>
function valloc (size : stddef.size_t) return void_ptr;
pragma Import (C, valloc, "valloc");
function posix_memalign (memptr : access void_ptr;
alignment : stddef.size_t; size : stddef.size_t) return signed_int;
pragma Import (C, posix_memalign, "posix_memalign");
function aligned_alloc (alignment : stddef.size_t; size : stddef.size_t)
return void_ptr;
pragma Import (C, aligned_alloc, "aligned_alloc");
type access_e823f645 is access procedure;
pragma Convention (C, access_e823f645);
procedure C_abort;
pragma No_Return (C_abort);
pragma Import (C, C_abort, "abort");
function atexit (func : access_e823f645) return signed_int;
pragma Import (C, atexit, "atexit");
function at_quick_exit (func : access_e823f645) return signed_int;
pragma Import (C, at_quick_exit, "at_quick_exit");
type access_e23946a4 is access procedure (status : signed_int;
arg : void_ptr);
pragma Convention (C, access_e23946a4);
function on_exit (func : access_e23946a4; arg : void_ptr)
return signed_int;
pragma Import (C, on_exit, "on_exit");
procedure C_exit (status : signed_int);
pragma No_Return (C_exit);
pragma Import (C, C_exit, "exit");
procedure quick_exit (status : signed_int);
pragma No_Return (quick_exit);
pragma Import (C, quick_exit, "quick_exit");
procedure C_qExit_U (status : signed_int);
pragma No_Return (C_qExit_U);
pragma Import (C, C_qExit_U, "_Exit");
function getenv (name : access constant char) return char_ptr;
pragma Import (C, getenv, "getenv");
function secure_getenv (name : access constant char) return char_ptr;
pragma Import (C, secure_getenv, "secure_getenv");
function putenv (string : access char) return signed_int;
pragma Import (C, putenv, "putenv");
function setenv (name : access constant char;
value : access constant char; replace : signed_int) return signed_int;
pragma Import (C, setenv, "setenv");
function unsetenv (name : access constant char) return signed_int;
pragma Import (C, unsetenv, "unsetenv");
function clearenv return signed_int;
pragma Import (C, clearenv, "clearenv");
function mktemp (template : access char) return char_ptr;
pragma Import (C, mktemp, "mktemp");
function mkstemp (template : access char) return signed_int;
pragma Import (C, mkstemp, "mkstemp64");
function mkstemp64 (template : access char) return signed_int;
pragma Import (C, mkstemp64, "mkstemp64");
function mkstemps (template : access char; suffixlen : signed_int)
return signed_int;
pragma Import (C, mkstemps, "mkstemps64");
function mkstemps64 (template : access char; suffixlen : signed_int)
return signed_int;
pragma Import (C, mkstemps64, "mkstemps64");
function mkdtemp (template : access char) return char_ptr;
pragma Import (C, mkdtemp, "mkdtemp");
function mkostemp (template : access char; flags : signed_int)
return signed_int;
pragma Import (C, mkostemp, "mkostemp64");
function mkostemp64 (template : access char; flags : signed_int)
return signed_int;
pragma Import (C, mkostemp64, "mkostemp64");
function mkostemps (template : access char; suffixlen : signed_int;
flags : signed_int) return signed_int;
pragma Import (C, mkostemps, "mkostemps64");
function mkostemps64 (template : access char; suffixlen : signed_int;
flags : signed_int) return signed_int;
pragma Import (C, mkostemps64, "mkostemps64");
function C_system (command : access constant char) return signed_int;
pragma Import (C, C_system, "system");
function canonicalize_file_name (name : access constant char)
return char_ptr;
pragma Import (C, canonicalize_file_name, "canonicalize_file_name");
function realpath (name : access constant char; resolved : access char)
return char_ptr;
pragma Import (C, realpath, "realpath");
type access_9017117e is access function (a1 : void_const_ptr;
a2 : void_const_ptr) return signed_int;
pragma Convention (C, access_9017117e);
subtype qqcompar_fn_t is access_9017117e;
subtype comparison_fn_t is qqcompar_fn_t;
type access_1d739cf8 is access function (a1 : void_const_ptr;
a2 : void_const_ptr; a3 : void_ptr) return signed_int;
pragma Convention (C, access_1d739cf8);
subtype compar_d_fn_t is access_1d739cf8;
function bsearch (key : void_const_ptr; base : void_const_ptr;
nmemb : stddef.size_t; size : stddef.size_t; compar : qqcompar_fn_t)
return void_ptr;
pragma Import (C, bsearch, "bsearch");
procedure qsort (base : void_ptr; nmemb : stddef.size_t;
size : stddef.size_t; compar : qqcompar_fn_t);
pragma Import (C, qsort, "qsort");
procedure qsort_r (base : void_ptr; nmemb : stddef.size_t;
size : stddef.size_t; compar : compar_d_fn_t; arg : void_ptr);
pragma Import (C, qsort_r, "qsort_r");
function C_abs (x : signed_int) return signed_int;
pragma Import (C, C_abs, "abs");
function labs (x : signed_long) return signed_long;
pragma Import (C, labs, "labs");
function llabs (x : signed_long_long) return signed_long_long;
pragma Import (C, llabs, "llabs");
function div (numer : signed_int; denom : signed_int) return div_t;
pragma Import (C, div, "div");
function ldiv (numer : signed_long; denom : signed_long) return ldiv_t;
pragma Import (C, ldiv, "ldiv");
function lldiv (numer : signed_long_long; denom : signed_long_long)
return lldiv_t;
pragma Import (C, lldiv, "lldiv");
function ecvt (value : double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int) return char_ptr;
pragma Import (C, ecvt, "ecvt");
function fcvt (value : double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int) return char_ptr;
pragma Import (C, fcvt, "fcvt");
function gcvt (value : double; ndigit : signed_int; buf : access char)
return char_ptr;
pragma Import (C, gcvt, "gcvt");
function qecvt (value : long_double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int) return char_ptr;
pragma Import (C, qecvt, "qecvt");
function qfcvt (value : long_double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int) return char_ptr;
pragma Import (C, qfcvt, "qfcvt");
function qgcvt (value : long_double; ndigit : signed_int;
buf : access char) return char_ptr;
pragma Import (C, qgcvt, "qgcvt");
function ecvt_r (value : double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int; buf : access char;
len : stddef.size_t) return signed_int;
pragma Import (C, ecvt_r, "ecvt_r");
function fcvt_r (value : double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int; buf : access char;
len : stddef.size_t) return signed_int;
pragma Import (C, fcvt_r, "fcvt_r");
function qecvt_r (value : long_double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int; buf : access char;
len : stddef.size_t) return signed_int;
pragma Import (C, qecvt_r, "qecvt_r");
function qfcvt_r (value : long_double; ndigit : signed_int;
decpt : access signed_int; sign : access signed_int; buf : access char;
len : stddef.size_t) return signed_int;
pragma Import (C, qfcvt_r, "qfcvt_r");
function mblen (s : access constant char; n : stddef.size_t)
return signed_int;
pragma Import (C, mblen, "mblen");
function mbtowc (pwc : access stddef.wchar_t; s : access constant char;
n : stddef.size_t) return signed_int;
pragma Import (C, mbtowc, "mbtowc");
function wctomb (s : access char; wchar : stddef.wchar_t)
return signed_int;
pragma Import (C, wctomb, "wctomb");
function mbstowcs (pwcs : access stddef.wchar_t; s : access constant char;
n : stddef.size_t) return stddef.size_t;
pragma Import (C, mbstowcs, "mbstowcs");
function wcstombs (s : access char; pwcs : access constant stddef.wchar_t;
n : stddef.size_t) return stddef.size_t;
pragma Import (C, wcstombs, "wcstombs");
function rpmatch (response : access constant char) return signed_int;
pragma Import (C, rpmatch, "rpmatch");
function getsubopt (optionp : access char_ptr; tokens : access char_ptr;
valuep : access char_ptr) return signed_int;
pragma Import (C, getsubopt, "getsubopt");
procedure setkey (key : access constant char);
pragma Import (C, setkey, "setkey");
function posix_openpt (oflag : signed_int) return signed_int;
pragma Import (C, posix_openpt, "posix_openpt");
function grantpt (fd : signed_int) return signed_int;
pragma Import (C, grantpt, "grantpt");
function unlockpt (fd : signed_int) return signed_int;
pragma Import (C, unlockpt, "unlockpt");
function ptsname (fd : signed_int) return char_ptr;
pragma Import (C, ptsname, "ptsname");
function ptsname_r (fd : signed_int; buf : access char;
buflen : stddef.size_t) return signed_int;
pragma Import (C, ptsname_r, "ptsname_r");
function getpt return signed_int;
pragma Import (C, getpt, "getpt");
function getloadavg (loadavg : access double; nelem : signed_int)
return signed_int;
pragma Import (C, getloadavg, "getloadavg");
EXIT_FAILURE : constant := 1;
EXIT_SUCCESS : constant := 0;
function MB_CUR_MAX return stddef.size_t;
pragma Inline_Always (MB_CUR_MAX);
RAND_MAX : constant := 2147483647;
-- WEXITSTATUS (unparsible)
-- WIFCONTINUED (unparsible)
-- WIFEXITED (unparsible)
-- WIFSIGNALED (unparsible)
-- WIFSTOPPED (unparsible)
-- WSTOPSIG (unparsible)
-- WTERMSIG (unparsible)
STDLIB_H : constant := 1;
-- __COMPAR_FN_T (empty)
ldiv_t_defined : constant := 1;
lldiv_t_defined : constant := 1;
-- __malloc_and_calloc_defined (empty)
end C.stdlib;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.stddef;
with C.xlocale;
package C.string is
pragma Preelaborate;
function memcpy (dest : void_ptr; src : void_const_ptr; n : stddef.size_t)
return void_ptr;
pragma Import (C, memcpy, "memcpy");
function memmove (dest : void_ptr; src : void_const_ptr;
n : stddef.size_t) return void_ptr;
pragma Import (C, memmove, "memmove");
function memccpy (dest : void_ptr; src : void_const_ptr; c : signed_int;
n : stddef.size_t) return void_ptr;
pragma Import (C, memccpy, "memccpy");
function memset (s : void_ptr; c : signed_int; n : stddef.size_t)
return void_ptr;
pragma Import (C, memset, "memset");
function memcmp (s1 : void_const_ptr; s2 : void_const_ptr;
n : stddef.size_t) return signed_int;
pragma Import (C, memcmp, "memcmp");
function memchr (s : void_const_ptr; c : signed_int; n : stddef.size_t)
return void_ptr;
pragma Import (C, memchr, "memchr");
function rawmemchr (s : void_const_ptr; c : signed_int) return void_ptr;
pragma Import (C, rawmemchr, "rawmemchr");
function memrchr (s : void_const_ptr; c : signed_int; n : stddef.size_t)
return void_ptr;
pragma Import (C, memrchr, "memrchr");
function strcpy (dest : access char; src : access constant char)
return char_ptr;
pragma Import (C, strcpy, "strcpy");
function strncpy (dest : access char; src : access constant char;
n : stddef.size_t) return char_ptr;
pragma Import (C, strncpy, "strncpy");
function strcat (dest : access char; src : access constant char)
return char_ptr;
pragma Import (C, strcat, "strcat");
function strncat (dest : access char; src : access constant char;
n : stddef.size_t) return char_ptr;
pragma Import (C, strncat, "strncat");
function strcmp (s1 : access constant char; s2 : access constant char)
return signed_int;
pragma Import (C, strcmp, "strcmp");
function strncmp (s1 : access constant char; s2 : access constant char;
n : stddef.size_t) return signed_int;
pragma Import (C, strncmp, "strncmp");
function strcoll (s1 : access constant char; s2 : access constant char)
return signed_int;
pragma Import (C, strcoll, "strcoll");
function strxfrm (dest : access char; src : access constant char;
n : stddef.size_t) return stddef.size_t;
pragma Import (C, strxfrm, "strxfrm");
function strcoll_l (s1 : access constant char; s2 : access constant char;
l : access xlocale.struct_locale_struct) return signed_int;
pragma Import (C, strcoll_l, "strcoll_l");
function strxfrm_l (dest : access char; src : access constant char;
n : stddef.size_t; l : access xlocale.struct_locale_struct)
return stddef.size_t;
pragma Import (C, strxfrm_l, "strxfrm_l");
function strdup (s : access constant char) return char_ptr;
pragma Import (C, strdup, "strdup");
function strndup (string : access constant char; n : stddef.size_t)
return char_ptr;
pragma Import (C, strndup, "strndup");
function strchr (s : access constant char; c : signed_int)
return char_ptr;
pragma Import (C, strchr, "strchr");
function strrchr (s : access constant char; c : signed_int)
return char_ptr;
pragma Import (C, strrchr, "strrchr");
function strchrnul (s : access constant char; c : signed_int)
return char_ptr;
pragma Import (C, strchrnul, "strchrnul");
function strcspn (s : access constant char; reject : access constant char)
return stddef.size_t;
pragma Import (C, strcspn, "strcspn");
function strspn (s : access constant char;
A_accept : access constant char) return stddef.size_t;
pragma Import (C, strspn, "strspn");
function strpbrk (s : access constant char;
A_accept : access constant char) return char_ptr;
pragma Import (C, strpbrk, "strpbrk");
function strstr (haystack : access constant char;
needle : access constant char) return char_ptr;
pragma Import (C, strstr, "strstr");
function strtok (s : access char; delim : access constant char)
return char_ptr;
pragma Import (C, strtok, "strtok");
function qqstrtok_r (s : access char; delim : access constant char;
save_ptr : access char_ptr) return char_ptr;
pragma Import (C, qqstrtok_r, "__strtok_r");
function strtok_r (s : access char; delim : access constant char;
save_ptr : access char_ptr) return char_ptr;
pragma Import (C, strtok_r, "strtok_r");
function strcasestr (haystack : access constant char;
needle : access constant char) return char_ptr;
pragma Import (C, strcasestr, "strcasestr");
function memmem (haystack : void_const_ptr; haystacklen : stddef.size_t;
needle : void_const_ptr; needlelen : stddef.size_t) return void_ptr;
pragma Import (C, memmem, "memmem");
function qqmempcpy (dest : void_ptr; src : void_const_ptr;
n : stddef.size_t) return void_ptr;
pragma Import (C, qqmempcpy, "__mempcpy");
function mempcpy (dest : void_ptr; src : void_const_ptr;
n : stddef.size_t) return void_ptr;
pragma Import (C, mempcpy, "mempcpy");
function strlen (s : access constant char) return stddef.size_t;
pragma Import (C, strlen, "strlen");
function strnlen (string : access constant char; maxlen : stddef.size_t)
return stddef.size_t;
pragma Import (C, strnlen, "strnlen");
function strerror (errnum : signed_int) return char_ptr;
pragma Import (C, strerror, "strerror");
function strerror_r (errnum : signed_int; buf : access char;
buflen : stddef.size_t) return char_ptr;
pragma Import (C, strerror_r, "strerror_r");
function strerror_l (errnum : signed_int;
l : access xlocale.struct_locale_struct) return char_ptr;
pragma Import (C, strerror_l, "strerror_l");
procedure qqbzero (s : void_ptr; n : stddef.size_t);
pragma Import (C, qqbzero, "__bzero");
procedure bcopy (src : void_const_ptr; dest : void_ptr;
n : stddef.size_t);
pragma Import (C, bcopy, "bcopy");
procedure bzero (s : void_ptr; n : stddef.size_t);
pragma Import (C, bzero, "bzero");
function bcmp (s1 : void_const_ptr; s2 : void_const_ptr;
n : stddef.size_t) return signed_int;
pragma Import (C, bcmp, "bcmp");
function index (s : access constant char; c : signed_int) return char_ptr;
pragma Import (C, index, "index");
function rindex (s : access constant char; c : signed_int)
return char_ptr;
pragma Import (C, rindex, "rindex");
function ffs (i : signed_int) return signed_int;
pragma Import (C, ffs, "ffs");
function ffsl (l : signed_long) return signed_int;
pragma Import (C, ffsl, "ffsl");
function ffsll (ll : signed_long_long) return signed_int;
pragma Import (C, ffsll, "ffsll");
function strcasecmp (s1 : access constant char; s2 : access constant char)
return signed_int;
pragma Import (C, strcasecmp, "strcasecmp");
function strncasecmp (s1 : access constant char;
s2 : access constant char; n : stddef.size_t) return signed_int;
pragma Import (C, strncasecmp, "strncasecmp");
function strcasecmp_l (s1 : access constant char;
s2 : access constant char; loc : access xlocale.struct_locale_struct)
return signed_int;
pragma Import (C, strcasecmp_l, "strcasecmp_l");
function strncasecmp_l (s1 : access constant char;
s2 : access constant char; n : stddef.size_t;
loc : access xlocale.struct_locale_struct) return signed_int;
pragma Import (C, strncasecmp_l, "strncasecmp_l");
function strsep (stringp : access char_ptr; delim : access constant char)
return char_ptr;
pragma Import (C, strsep, "strsep");
function strsignal (sig : signed_int) return char_ptr;
pragma Import (C, strsignal, "strsignal");
function qqstpcpy (dest : access char; src : access constant char)
return char_ptr;
pragma Import (C, qqstpcpy, "__stpcpy");
function stpcpy (dest : access char; src : access constant char)
return char_ptr;
pragma Import (C, stpcpy, "stpcpy");
function qqstpncpy (dest : access char; src : access constant char;
n : stddef.size_t) return char_ptr;
pragma Import (C, qqstpncpy, "__stpncpy");
function stpncpy (dest : access char; src : access constant char;
n : stddef.size_t) return char_ptr;
pragma Import (C, stpncpy, "stpncpy");
function strverscmp (s1 : access constant char; s2 : access constant char)
return signed_int;
pragma Import (C, strverscmp, "strverscmp");
function strfry (string : access char) return char_ptr;
pragma Import (C, strfry, "strfry");
function memfrob (s : void_ptr; n : stddef.size_t) return void_ptr;
pragma Import (C, memfrob, "memfrob");
function basename (filename : access constant char) return char_ptr;
pragma Import (C, basename, "basename");
STRING_H : constant := 1;
-- strdupa (function macro)
-- strndupa (function macro)
end C.string;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.sys.cdefs is
pragma Preelaborate;
SYS_CDEFS_H : constant := 1;
-- __ASMNAME (unparsible)
-- __ASMNAME2 (unparsible)
-- __BEGIN_DECLS (empty)
-- __BEGIN_NAMESPACE_C99 (empty)
-- __BEGIN_NAMESPACE_STD (empty)
-- __CONCAT (has # or ##)
-- __END_DECLS (empty)
-- __END_NAMESPACE_C99 (empty)
-- __END_NAMESPACE_STD (empty)
-- __LDBL_REDIR (unparsible)
-- __LDBL_REDIR1 (unparsible)
-- __LDBL_REDIR1_NTH (unparsible)
-- __LDBL_REDIR_DECL (empty)
-- __LDBL_REDIR_NTH (unparsible)
-- __LEAF (unparsible)
-- __LEAF_ATTR (attribute)
-- __NTH (unparsible)
-- __P (function macro)
-- __PMT (function macro)
-- __REDIRECT (has # or ##)
-- __REDIRECT_LDBL (unparsible)
-- __REDIRECT_NTH (has # or ##)
-- __REDIRECT_NTHNL (has # or ##)
-- __REDIRECT_NTH_LDBL (unparsible)
-- __STRING (has # or ##)
-- __THROW (attribute)
-- __THROWNL (attribute)
-- __USING_NAMESPACE_C99 (empty)
-- __USING_NAMESPACE_STD (empty)
-- __always_inline (alias of inline)
-- __attribute_alloc_size__ (unparsible)
-- __attribute_artificial__ (attribute)
-- __attribute_const__ (attribute)
-- __attribute_deprecated__ (attribute)
-- __attribute_format_arg__ (parameterized declaration-specifiers)
-- __attribute_format_strfmon__ (parameterized declaration-specifiers)
-- __attribute_malloc__ (attribute)
-- __attribute_noinline__ (attribute)
-- __attribute_pure__ (attribute)
-- __attribute_used__ (attribute)
-- __attribute_warn_unused_result__ (attribute)
-- __bos (function macro)
-- __bos0 (function macro)
-- __errordecl (unparsible)
-- __extern_always_inline (unparsible)
-- __extern_inline (alias of inline)
-- __flexarr (unparsible)
-- __fortify_function (unparsible)
-- __glibc_likely (function macro)
-- __glibc_unlikely (function macro)
subtype long_double_t is long_double;
-- __nonnull (unparsible)
-- __ptr_t (unparsible)
-- __restrict_arr (alias of restrict)
-- __va_arg_pack (unparsible)
-- __va_arg_pack_len (unparsible)
-- __warnattr (unparsible)
-- __warndecl (unparsible)
-- __wur (empty)
end C.sys.cdefs;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.fcntl_linux;
with C.bits.types;
with C.bits.uio;
with C.stddef;
with C.sys.types;
package C.sys.file is
pragma Preelaborate;
subtype enum_pid_type is bits.fcntl_linux.enum_pid_type;
function F_OWNER_TID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_TID;
function F_OWNER_PID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_PID;
function F_OWNER_PGRP return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_PGRP;
function F_OWNER_GID return bits.fcntl_linux.enum_pid_type
renames bits.fcntl_linux.F_OWNER_GID;
subtype struct_f_owner_ex is bits.fcntl_linux.struct_f_owner_ex;
subtype struct_file_handle is bits.fcntl_linux.struct_file_handle;
function readahead (fd : signed_int; offset : bits.types.off64_t;
count : stddef.size_t) return types.ssize_t
renames bits.fcntl_linux.readahead;
function sync_file_range (fd : signed_int; offset : bits.types.off64_t;
count : bits.types.off64_t; flags : unsigned_int) return signed_int
renames bits.fcntl_linux.sync_file_range;
function vmsplice (fdout : signed_int;
iov : access constant bits.uio.struct_iovec; count : stddef.size_t;
flags : unsigned_int) return types.ssize_t
renames bits.fcntl_linux.vmsplice;
function splice (fdin : signed_int; offin : access bits.types.off64_t;
fdout : signed_int; offout : access bits.types.off64_t;
len : stddef.size_t; flags : unsigned_int) return types.ssize_t
renames bits.fcntl_linux.splice;
function tee (fdin : signed_int; fdout : signed_int; len : stddef.size_t;
flags : unsigned_int) return types.ssize_t
renames bits.fcntl_linux.tee;
function fallocate (fd : signed_int; mode : signed_int;
offset : bits.types.off64_t; len : bits.types.off64_t)
return signed_int renames bits.fcntl_linux.fallocate;
function fallocate64 (fd : signed_int; mode : signed_int;
offset : bits.types.off64_t; len : bits.types.off64_t)
return signed_int renames bits.fcntl_linux.fallocate64;
function name_to_handle_at (dfd : signed_int; name : access constant char;
handle : access bits.fcntl_linux.struct_file_handle;
mnt_id : access signed_int; flags : signed_int) return signed_int
renames bits.fcntl_linux.name_to_handle_at;
function open_by_handle_at (mountdirfd : signed_int;
handle : access bits.fcntl_linux.struct_file_handle;
flags : signed_int) return signed_int
renames bits.fcntl_linux.open_by_handle_at;
AT_EACCESS : constant := bits.fcntl_linux.AT_EACCESS;
AT_EMPTY_PATH : constant := bits.fcntl_linux.AT_EMPTY_PATH;
AT_FDCWD : constant := bits.fcntl_linux.AT_FDCWD;
AT_NO_AUTOMOUNT : constant := bits.fcntl_linux.AT_NO_AUTOMOUNT;
AT_REMOVEDIR : constant := bits.fcntl_linux.AT_REMOVEDIR;
AT_SYMLINK_FOLLOW : constant := bits.fcntl_linux.AT_SYMLINK_FOLLOW;
AT_SYMLINK_NOFOLLOW : constant := bits.fcntl_linux.AT_SYMLINK_NOFOLLOW;
DN_ACCESS : constant := bits.fcntl_linux.DN_ACCESS;
DN_ATTRIB : constant := bits.fcntl_linux.DN_ATTRIB;
DN_CREATE : constant := bits.fcntl_linux.DN_CREATE;
DN_DELETE : constant := bits.fcntl_linux.DN_DELETE;
DN_MODIFY : constant := bits.fcntl_linux.DN_MODIFY;
DN_MULTISHOT : constant := bits.fcntl_linux.DN_MULTISHOT;
DN_RENAME : constant := bits.fcntl_linux.DN_RENAME;
FALLOC_FL_COLLAPSE_RANGE : constant :=
bits.fcntl_linux.FALLOC_FL_COLLAPSE_RANGE;
FALLOC_FL_KEEP_SIZE : constant := bits.fcntl_linux.FALLOC_FL_KEEP_SIZE;
FALLOC_FL_PUNCH_HOLE : constant := bits.fcntl_linux.FALLOC_FL_PUNCH_HOLE;
FALLOC_FL_ZERO_RANGE : constant := bits.fcntl_linux.FALLOC_FL_ZERO_RANGE;
FAPPEND : constant := bits.fcntl_linux.FAPPEND;
FASYNC : constant := bits.fcntl_linux.FASYNC;
FD_CLOEXEC : constant := bits.fcntl_linux.FD_CLOEXEC;
FFSYNC : constant := bits.fcntl_linux.FFSYNC;
FNDELAY : constant := bits.fcntl_linux.FNDELAY;
FNONBLOCK : constant := bits.fcntl_linux.FNONBLOCK;
F_DUPFD : constant := bits.fcntl_linux.F_DUPFD;
F_DUPFD_CLOEXEC : constant := bits.fcntl_linux.F_DUPFD_CLOEXEC;
F_EXLCK : constant := bits.fcntl_linux.F_EXLCK;
F_GETFD : constant := bits.fcntl_linux.F_GETFD;
F_GETFL : constant := bits.fcntl_linux.F_GETFL;
F_GETLEASE : constant := bits.fcntl_linux.F_GETLEASE;
F_GETLK : constant := bits.fcntl_linux.F_GETLK;
F_GETLK64 : constant := bits.fcntl_linux.F_GETLK64;
F_GETOWN : constant := bits.fcntl_linux.F_GETOWN;
F_GETOWN_EX : constant := bits.fcntl_linux.F_GETOWN_EX;
F_GETPIPE_SZ : constant := bits.fcntl_linux.F_GETPIPE_SZ;
F_GETSIG : constant := bits.fcntl_linux.F_GETSIG;
F_NOTIFY : constant := bits.fcntl_linux.F_NOTIFY;
F_OFD_GETLK : constant := bits.fcntl_linux.F_OFD_GETLK;
F_OFD_SETLK : constant := bits.fcntl_linux.F_OFD_SETLK;
F_OFD_SETLKW : constant := bits.fcntl_linux.F_OFD_SETLKW;
F_RDLCK : constant := bits.fcntl_linux.F_RDLCK;
F_SETFD : constant := bits.fcntl_linux.F_SETFD;
F_SETFL : constant := bits.fcntl_linux.F_SETFL;
F_SETLEASE : constant := bits.fcntl_linux.F_SETLEASE;
F_SETLK : constant := bits.fcntl_linux.F_SETLK;
F_SETLK64 : constant := bits.fcntl_linux.F_SETLK64;
F_SETLKW : constant := bits.fcntl_linux.F_SETLKW;
F_SETLKW64 : constant := bits.fcntl_linux.F_SETLKW64;
F_SETOWN : constant := bits.fcntl_linux.F_SETOWN;
F_SETOWN_EX : constant := bits.fcntl_linux.F_SETOWN_EX;
F_SETPIPE_SZ : constant := bits.fcntl_linux.F_SETPIPE_SZ;
F_SETSIG : constant := bits.fcntl_linux.F_SETSIG;
F_SHLCK : constant := bits.fcntl_linux.F_SHLCK;
F_UNLCK : constant := bits.fcntl_linux.F_UNLCK;
F_WRLCK : constant := bits.fcntl_linux.F_WRLCK;
LOCK_EX : constant := bits.fcntl_linux.LOCK_EX;
LOCK_MAND : constant := bits.fcntl_linux.LOCK_MAND;
LOCK_NB : constant := bits.fcntl_linux.LOCK_NB;
LOCK_READ : constant := bits.fcntl_linux.LOCK_READ;
LOCK_RW : constant := bits.fcntl_linux.LOCK_RW;
LOCK_SH : constant := bits.fcntl_linux.LOCK_SH;
LOCK_UN : constant := bits.fcntl_linux.LOCK_UN;
LOCK_WRITE : constant := bits.fcntl_linux.LOCK_WRITE;
MAX_HANDLE_SZ : constant := bits.fcntl_linux.MAX_HANDLE_SZ;
O_ACCMODE : constant := bits.fcntl_linux.O_ACCMODE;
O_APPEND : constant := bits.fcntl_linux.O_APPEND;
O_ASYNC : constant := bits.fcntl_linux.O_ASYNC;
O_CLOEXEC : constant := bits.fcntl_linux.O_CLOEXEC;
O_CREAT : constant := bits.fcntl_linux.O_CREAT;
O_DIRECT : constant := bits.fcntl_linux.O_DIRECT;
O_DIRECTORY : constant := bits.fcntl_linux.O_DIRECTORY;
O_DSYNC : constant := bits.fcntl_linux.O_DSYNC;
O_EXCL : constant := bits.fcntl_linux.O_EXCL;
O_FSYNC : constant := bits.fcntl_linux.O_FSYNC;
O_LARGEFILE : constant := bits.fcntl_linux.O_LARGEFILE;
O_NDELAY : constant := bits.fcntl_linux.O_NDELAY;
O_NOATIME : constant := bits.fcntl_linux.O_NOATIME;
O_NOCTTY : constant := bits.fcntl_linux.O_NOCTTY;
O_NOFOLLOW : constant := bits.fcntl_linux.O_NOFOLLOW;
O_NONBLOCK : constant := bits.fcntl_linux.O_NONBLOCK;
O_PATH : constant := bits.fcntl_linux.O_PATH;
O_RDONLY : constant := bits.fcntl_linux.O_RDONLY;
O_RDWR : constant := bits.fcntl_linux.O_RDWR;
O_RSYNC : constant := bits.fcntl_linux.O_RSYNC;
O_SYNC : constant := bits.fcntl_linux.O_SYNC;
O_TMPFILE : constant := bits.fcntl_linux.O_TMPFILE;
O_TRUNC : constant := bits.fcntl_linux.O_TRUNC;
O_WRONLY : constant := bits.fcntl_linux.O_WRONLY;
POSIX_FADV_DONTNEED : constant := bits.fcntl_linux.POSIX_FADV_DONTNEED;
POSIX_FADV_NOREUSE : constant := bits.fcntl_linux.POSIX_FADV_NOREUSE;
POSIX_FADV_NORMAL : constant := bits.fcntl_linux.POSIX_FADV_NORMAL;
POSIX_FADV_RANDOM : constant := bits.fcntl_linux.POSIX_FADV_RANDOM;
POSIX_FADV_SEQUENTIAL : constant :=
bits.fcntl_linux.POSIX_FADV_SEQUENTIAL;
POSIX_FADV_WILLNEED : constant := bits.fcntl_linux.POSIX_FADV_WILLNEED;
SPLICE_F_GIFT : constant := bits.fcntl_linux.SPLICE_F_GIFT;
SPLICE_F_MORE : constant := bits.fcntl_linux.SPLICE_F_MORE;
SPLICE_F_MOVE : constant := bits.fcntl_linux.SPLICE_F_MOVE;
SPLICE_F_NONBLOCK : constant := bits.fcntl_linux.SPLICE_F_NONBLOCK;
SYNC_FILE_RANGE_WAIT_AFTER : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WAIT_AFTER;
SYNC_FILE_RANGE_WAIT_BEFORE : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WAIT_BEFORE;
SYNC_FILE_RANGE_WRITE : constant :=
bits.fcntl_linux.SYNC_FILE_RANGE_WRITE;
qqF_GETOWN : constant := bits.fcntl_linux.qqF_GETOWN;
qqF_GETOWN_EX : constant := bits.fcntl_linux.qqF_GETOWN_EX;
qqF_GETSIG : constant := bits.fcntl_linux.qqF_GETSIG;
qqF_SETOWN : constant := bits.fcntl_linux.qqF_SETOWN;
qqF_SETOWN_EX : constant := bits.fcntl_linux.qqF_SETOWN_EX;
qqF_SETSIG : constant := bits.fcntl_linux.qqF_SETSIG;
qqO_CLOEXEC : constant := bits.fcntl_linux.qqO_CLOEXEC;
qqO_DIRECT : constant := bits.fcntl_linux.qqO_DIRECT;
qqO_DIRECTORY : constant := bits.fcntl_linux.qqO_DIRECTORY;
qqO_DSYNC : constant := bits.fcntl_linux.qqO_DSYNC;
qqO_LARGEFILE : constant := bits.fcntl_linux.qqO_LARGEFILE;
qqO_NOATIME : constant := bits.fcntl_linux.qqO_NOATIME;
qqO_NOFOLLOW : constant := bits.fcntl_linux.qqO_NOFOLLOW;
qqO_PATH : constant := bits.fcntl_linux.qqO_PATH;
qqO_TMPFILE : constant := bits.fcntl_linux.qqO_TMPFILE;
qqPOSIX_FADV_DONTNEED : constant :=
bits.fcntl_linux.qqPOSIX_FADV_DONTNEED;
qqPOSIX_FADV_NOREUSE : constant := bits.fcntl_linux.qqPOSIX_FADV_NOREUSE;
function flock (fd : signed_int; operation : signed_int)
return signed_int;
pragma Import (C, flock, "flock");
SYS_FILE_H : constant := 1;
LOCK_ATOMIC : constant := 16;
end C.sys.file;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.asm_generic.ioctls;
with C.bits.ioctl_types;
package C.sys.ioctl is
pragma Preelaborate;
FIOASYNC : constant := asm_generic.ioctls.FIOASYNC;
FIOCLEX : constant := asm_generic.ioctls.FIOCLEX;
FIONBIO : constant := asm_generic.ioctls.FIONBIO;
FIONCLEX : constant := asm_generic.ioctls.FIONCLEX;
FIONREAD : constant := asm_generic.ioctls.FIONREAD;
FIOQSIZE : constant := asm_generic.ioctls.FIOQSIZE;
TCFLSH : constant := asm_generic.ioctls.TCFLSH;
TCGETA : constant := asm_generic.ioctls.TCGETA;
TCGETS : constant := asm_generic.ioctls.TCGETS;
-- TCGETS2 renames asm_generic.ioctls.TCGETS2 (unparsible)
TCGETX : constant := asm_generic.ioctls.TCGETX;
TCSBRK : constant := asm_generic.ioctls.TCSBRK;
TCSBRKP : constant := asm_generic.ioctls.TCSBRKP;
TCSETA : constant := asm_generic.ioctls.TCSETA;
TCSETAF : constant := asm_generic.ioctls.TCSETAF;
TCSETAW : constant := asm_generic.ioctls.TCSETAW;
TCSETS : constant := asm_generic.ioctls.TCSETS;
-- TCSETS2 renames asm_generic.ioctls.TCSETS2 (unparsible)
TCSETSF : constant := asm_generic.ioctls.TCSETSF;
-- TCSETSF2 renames asm_generic.ioctls.TCSETSF2 (unparsible)
TCSETSW : constant := asm_generic.ioctls.TCSETSW;
-- TCSETSW2 renames asm_generic.ioctls.TCSETSW2 (unparsible)
TCSETX : constant := asm_generic.ioctls.TCSETX;
TCSETXF : constant := asm_generic.ioctls.TCSETXF;
TCSETXW : constant := asm_generic.ioctls.TCSETXW;
TCXONC : constant := asm_generic.ioctls.TCXONC;
TIOCCBRK : constant := asm_generic.ioctls.TIOCCBRK;
TIOCCONS : constant := asm_generic.ioctls.TIOCCONS;
TIOCEXCL : constant := asm_generic.ioctls.TIOCEXCL;
TIOCGDEV : constant := asm_generic.ioctls.TIOCGDEV;
TIOCGETD : constant := asm_generic.ioctls.TIOCGETD;
TIOCGEXCL : constant := asm_generic.ioctls.TIOCGEXCL;
TIOCGICOUNT : constant := asm_generic.ioctls.TIOCGICOUNT;
TIOCGLCKTRMIOS : constant := asm_generic.ioctls.TIOCGLCKTRMIOS;
TIOCGPGRP : constant := asm_generic.ioctls.TIOCGPGRP;
TIOCGPKT : constant := asm_generic.ioctls.TIOCGPKT;
TIOCGPTLCK : constant := asm_generic.ioctls.TIOCGPTLCK;
TIOCGPTN : constant := asm_generic.ioctls.TIOCGPTN;
TIOCGRS485 : constant := asm_generic.ioctls.TIOCGRS485;
TIOCGSERIAL : constant := asm_generic.ioctls.TIOCGSERIAL;
TIOCGSID : constant := asm_generic.ioctls.TIOCGSID;
TIOCGSOFTCAR : constant := asm_generic.ioctls.TIOCGSOFTCAR;
TIOCGWINSZ : constant := asm_generic.ioctls.TIOCGWINSZ;
TIOCINQ : constant := asm_generic.ioctls.TIOCINQ;
TIOCLINUX : constant := asm_generic.ioctls.TIOCLINUX;
TIOCMBIC : constant := asm_generic.ioctls.TIOCMBIC;
TIOCMBIS : constant := asm_generic.ioctls.TIOCMBIS;
TIOCMGET : constant := asm_generic.ioctls.TIOCMGET;
TIOCMIWAIT : constant := asm_generic.ioctls.TIOCMIWAIT;
TIOCMSET : constant := asm_generic.ioctls.TIOCMSET;
TIOCNOTTY : constant := asm_generic.ioctls.TIOCNOTTY;
TIOCNXCL : constant := asm_generic.ioctls.TIOCNXCL;
TIOCOUTQ : constant := asm_generic.ioctls.TIOCOUTQ;
TIOCPKT : constant := asm_generic.ioctls.TIOCPKT;
TIOCPKT_DATA : constant := asm_generic.ioctls.TIOCPKT_DATA;
TIOCPKT_DOSTOP : constant := asm_generic.ioctls.TIOCPKT_DOSTOP;
TIOCPKT_FLUSHREAD : constant := asm_generic.ioctls.TIOCPKT_FLUSHREAD;
TIOCPKT_FLUSHWRITE : constant := asm_generic.ioctls.TIOCPKT_FLUSHWRITE;
TIOCPKT_IOCTL : constant := asm_generic.ioctls.TIOCPKT_IOCTL;
TIOCPKT_NOSTOP : constant := asm_generic.ioctls.TIOCPKT_NOSTOP;
TIOCPKT_START : constant := asm_generic.ioctls.TIOCPKT_START;
TIOCPKT_STOP : constant := asm_generic.ioctls.TIOCPKT_STOP;
TIOCSBRK : constant := asm_generic.ioctls.TIOCSBRK;
TIOCSCTTY : constant := asm_generic.ioctls.TIOCSCTTY;
TIOCSERCONFIG : constant := asm_generic.ioctls.TIOCSERCONFIG;
TIOCSERGETLSR : constant := asm_generic.ioctls.TIOCSERGETLSR;
TIOCSERGETMULTI : constant := asm_generic.ioctls.TIOCSERGETMULTI;
TIOCSERGSTRUCT : constant := asm_generic.ioctls.TIOCSERGSTRUCT;
TIOCSERGWILD : constant := asm_generic.ioctls.TIOCSERGWILD;
TIOCSERSETMULTI : constant := asm_generic.ioctls.TIOCSERSETMULTI;
TIOCSERSWILD : constant := asm_generic.ioctls.TIOCSERSWILD;
TIOCSER_TEMT : constant := asm_generic.ioctls.TIOCSER_TEMT;
TIOCSETD : constant := asm_generic.ioctls.TIOCSETD;
TIOCSIG : constant := asm_generic.ioctls.TIOCSIG;
TIOCSLCKTRMIOS : constant := asm_generic.ioctls.TIOCSLCKTRMIOS;
TIOCSPGRP : constant := asm_generic.ioctls.TIOCSPGRP;
TIOCSPTLCK : constant := asm_generic.ioctls.TIOCSPTLCK;
TIOCSRS485 : constant := asm_generic.ioctls.TIOCSRS485;
TIOCSSERIAL : constant := asm_generic.ioctls.TIOCSSERIAL;
TIOCSSOFTCAR : constant := asm_generic.ioctls.TIOCSSOFTCAR;
TIOCSTI : constant := asm_generic.ioctls.TIOCSTI;
TIOCSWINSZ : constant := asm_generic.ioctls.TIOCSWINSZ;
TIOCVHANGUP : constant := asm_generic.ioctls.TIOCVHANGUP;
-- ASM_GENERIC_IOCTLS_H renames asm_generic.ioctls.ASM_GENERIC_I... (empty)
subtype struct_winsize is bits.ioctl_types.struct_winsize;
subtype struct_termio is bits.ioctl_types.struct_termio;
NCC : constant := bits.ioctl_types.NCC;
N_6PACK : constant := bits.ioctl_types.N_6PACK;
N_AX25 : constant := bits.ioctl_types.N_AX25;
N_HCI : constant := bits.ioctl_types.N_HCI;
N_HDLC : constant := bits.ioctl_types.N_HDLC;
N_IRDA : constant := bits.ioctl_types.N_IRDA;
N_MASC : constant := bits.ioctl_types.N_MASC;
N_MOUSE : constant := bits.ioctl_types.N_MOUSE;
N_PPP : constant := bits.ioctl_types.N_PPP;
N_PROFIBUS_FDL : constant := bits.ioctl_types.N_PROFIBUS_FDL;
N_R3964 : constant := bits.ioctl_types.N_R3964;
N_SLIP : constant := bits.ioctl_types.N_SLIP;
N_SMSBLOCK : constant := bits.ioctl_types.N_SMSBLOCK;
N_STRIP : constant := bits.ioctl_types.N_STRIP;
N_SYNC_PPP : constant := bits.ioctl_types.N_SYNC_PPP;
N_TTY : constant := bits.ioctl_types.N_TTY;
N_X25 : constant := bits.ioctl_types.N_X25;
TIOCM_CAR : constant := bits.ioctl_types.TIOCM_CAR;
TIOCM_CD : constant := bits.ioctl_types.TIOCM_CD;
TIOCM_CTS : constant := bits.ioctl_types.TIOCM_CTS;
TIOCM_DSR : constant := bits.ioctl_types.TIOCM_DSR;
TIOCM_DTR : constant := bits.ioctl_types.TIOCM_DTR;
TIOCM_LE : constant := bits.ioctl_types.TIOCM_LE;
TIOCM_RI : constant := bits.ioctl_types.TIOCM_RI;
TIOCM_RNG : constant := bits.ioctl_types.TIOCM_RNG;
TIOCM_RTS : constant := bits.ioctl_types.TIOCM_RTS;
TIOCM_SR : constant := bits.ioctl_types.TIOCM_SR;
TIOCM_ST : constant := bits.ioctl_types.TIOCM_ST;
function ioctl (fd : signed_int; request : unsigned_long)
return signed_int;
function ioctl (a1 : signed_int; a2 : unsigned_long;
a3 : access bits.ioctl_types.struct_winsize) return signed_int;
pragma Import (C, ioctl, "ioctl");
SYS_IOCTL_H : constant := 1;
end C.sys.ioctl;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.mman_linux;
with C.bits.types;
with C.stddef;
with C.sys.types;
package C.sys.mman is
pragma Preelaborate;
MADV_DODUMP : constant := bits.mman_linux.MADV_DODUMP;
MADV_DOFORK : constant := bits.mman_linux.MADV_DOFORK;
MADV_DONTDUMP : constant := bits.mman_linux.MADV_DONTDUMP;
MADV_DONTFORK : constant := bits.mman_linux.MADV_DONTFORK;
MADV_DONTNEED : constant := bits.mman_linux.MADV_DONTNEED;
MADV_FREE : constant := bits.mman_linux.MADV_FREE;
MADV_HUGEPAGE : constant := bits.mman_linux.MADV_HUGEPAGE;
MADV_HWPOISON : constant := bits.mman_linux.MADV_HWPOISON;
MADV_MERGEABLE : constant := bits.mman_linux.MADV_MERGEABLE;
MADV_NOHUGEPAGE : constant := bits.mman_linux.MADV_NOHUGEPAGE;
MADV_NORMAL : constant := bits.mman_linux.MADV_NORMAL;
MADV_RANDOM : constant := bits.mman_linux.MADV_RANDOM;
MADV_REMOVE : constant := bits.mman_linux.MADV_REMOVE;
MADV_SEQUENTIAL : constant := bits.mman_linux.MADV_SEQUENTIAL;
MADV_UNMERGEABLE : constant := bits.mman_linux.MADV_UNMERGEABLE;
MADV_WILLNEED : constant := bits.mman_linux.MADV_WILLNEED;
MAP_ANON : constant := bits.mman_linux.MAP_ANON;
MAP_ANONYMOUS : constant := bits.mman_linux.MAP_ANONYMOUS;
MAP_FILE : constant := bits.mman_linux.MAP_FILE;
MAP_FIXED : constant := bits.mman_linux.MAP_FIXED;
MAP_HUGE_MASK : constant := bits.mman_linux.MAP_HUGE_MASK;
MAP_HUGE_SHIFT : constant := bits.mman_linux.MAP_HUGE_SHIFT;
MAP_PRIVATE : constant := bits.mman_linux.MAP_PRIVATE;
MAP_SHARED : constant := bits.mman_linux.MAP_SHARED;
MAP_TYPE : constant := bits.mman_linux.MAP_TYPE;
MCL_CURRENT : constant := bits.mman_linux.MCL_CURRENT;
MCL_FUTURE : constant := bits.mman_linux.MCL_FUTURE;
MCL_ONFAULT : constant := bits.mman_linux.MCL_ONFAULT;
MREMAP_FIXED : constant := bits.mman_linux.MREMAP_FIXED;
MREMAP_MAYMOVE : constant := bits.mman_linux.MREMAP_MAYMOVE;
MS_ASYNC : constant := bits.mman_linux.MS_ASYNC;
MS_INVALIDATE : constant := bits.mman_linux.MS_INVALIDATE;
MS_SYNC : constant := bits.mman_linux.MS_SYNC;
POSIX_MADV_DONTNEED : constant := bits.mman_linux.POSIX_MADV_DONTNEED;
POSIX_MADV_NORMAL : constant := bits.mman_linux.POSIX_MADV_NORMAL;
POSIX_MADV_RANDOM : constant := bits.mman_linux.POSIX_MADV_RANDOM;
POSIX_MADV_SEQUENTIAL : constant := bits.mman_linux.POSIX_MADV_SEQUENTIAL;
POSIX_MADV_WILLNEED : constant := bits.mman_linux.POSIX_MADV_WILLNEED;
PROT_EXEC : constant := bits.mman_linux.PROT_EXEC;
PROT_GROWSDOWN : constant := bits.mman_linux.PROT_GROWSDOWN;
PROT_GROWSUP : constant := bits.mman_linux.PROT_GROWSUP;
PROT_NONE : constant := bits.mman_linux.PROT_NONE;
PROT_READ : constant := bits.mman_linux.PROT_READ;
PROT_WRITE : constant := bits.mman_linux.PROT_WRITE;
function mmap (addr : void_ptr; len : stddef.size_t; prot : signed_int;
flags : signed_int; fd : signed_int; offset : bits.types.off64_t)
return void_ptr;
pragma Import (C, mmap, "mmap64");
function mmap64 (addr : void_ptr; len : stddef.size_t; prot : signed_int;
flags : signed_int; fd : signed_int; offset : bits.types.off64_t)
return void_ptr;
pragma Import (C, mmap64, "mmap64");
function munmap (addr : void_ptr; len : stddef.size_t) return signed_int;
pragma Import (C, munmap, "munmap");
function mprotect (addr : void_ptr; len : stddef.size_t;
prot : signed_int) return signed_int;
pragma Import (C, mprotect, "mprotect");
function msync (addr : void_ptr; len : stddef.size_t; flags : signed_int)
return signed_int;
pragma Import (C, msync, "msync");
function madvise (addr : void_ptr; len : stddef.size_t;
advice : signed_int) return signed_int;
pragma Import (C, madvise, "madvise");
function posix_madvise (addr : void_ptr; len : stddef.size_t;
advice : signed_int) return signed_int;
pragma Import (C, posix_madvise, "posix_madvise");
function mlock (addr : void_const_ptr; len : stddef.size_t)
return signed_int;
pragma Import (C, mlock, "mlock");
function munlock (addr : void_const_ptr; len : stddef.size_t)
return signed_int;
pragma Import (C, munlock, "munlock");
function mlockall (flags : signed_int) return signed_int;
pragma Import (C, mlockall, "mlockall");
function munlockall return signed_int;
pragma Import (C, munlockall, "munlockall");
function mincore (start : void_ptr; len : stddef.size_t;
vec : access unsigned_char) return signed_int;
pragma Import (C, mincore, "mincore");
function mremap (addr : void_ptr; old_len : stddef.size_t;
new_len : stddef.size_t; flags : signed_int) return void_ptr;
pragma Import (C, mremap, "mremap");
function remap_file_pages (start : void_ptr; size : stddef.size_t;
prot : signed_int; pgoff : stddef.size_t; flags : signed_int)
return signed_int;
pragma Import (C, remap_file_pages, "remap_file_pages");
function shm_open (name : access constant char; oflag : signed_int;
mode : types.mode_t) return signed_int;
pragma Import (C, shm_open, "shm_open");
function shm_unlink (name : access constant char) return signed_int;
pragma Import (C, shm_unlink, "shm_unlink");
MAP_FAILED : constant void_ptr := void_ptr (System'To_Address (-1));
SYS_MMAN_H : constant := 1;
end C.sys.mman;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
package C.sys.mount is
pragma Preelaborate;
type enum_47839349 is (MS_RDONLY, MS_NOSUID, MS_NODEV, MS_NOEXEC,
MS_SYNCHRONOUS, MS_REMOUNT, MS_MANDLOCK, MS_DIRSYNC, MS_NOATIME,
MS_NODIRATIME, MS_BIND, MS_MOVE, MS_REC, MS_SILENT, MS_POSIXACL,
MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED, MS_RELATIME,
MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_LAZYTIME, MS_ACTIVE,
MS_NOUSER);
for enum_47839349 use (MS_RDONLY => 1, MS_NOSUID => 2, MS_NODEV => 4,
MS_NOEXEC => 8, MS_SYNCHRONOUS => 16, MS_REMOUNT => 32,
MS_MANDLOCK => 64, MS_DIRSYNC => 128, MS_NOATIME => 1024,
MS_NODIRATIME => 2048, MS_BIND => 4096, MS_MOVE => 8192,
MS_REC => 16384, MS_SILENT => 32768, MS_POSIXACL => 65536,
MS_UNBINDABLE => 131072, MS_PRIVATE => 262144, MS_SLAVE => 524288,
MS_SHARED => 1048576, MS_RELATIME => 2097152, MS_KERNMOUNT => 4194304,
MS_I_VERSION => 8388608, MS_STRICTATIME => 16777216,
MS_LAZYTIME => 33554432, MS_ACTIVE => 1073741824,
MS_NOUSER => 2147483648);
pragma Convention (C, enum_47839349);
for enum_47839349'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_47839349, signed_int);
type enum_422f2530 is (MNT_FORCE, MNT_DETACH, MNT_EXPIRE,
UMOUNT_NOFOLLOW);
for enum_422f2530 use (MNT_FORCE => 1, MNT_DETACH => 2, MNT_EXPIRE => 4,
UMOUNT_NOFOLLOW => 8);
pragma Convention (C, enum_422f2530);
for enum_422f2530'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_422f2530, signed_int);
function mount (special_file : access constant char;
dir : access constant char; fstype : access constant char;
rwflag : unsigned_long; data : void_const_ptr) return signed_int;
pragma Import (C, mount, "mount");
function umount (special_file : access constant char) return signed_int;
pragma Import (C, umount, "umount");
function umount2 (special_file : access constant char; flags : signed_int)
return signed_int;
pragma Import (C, umount2, "umount2");
BLKBSZGET : constant := 2147750512;
BLKBSZSET : constant := 1074008689;
BLKFLSBUF : constant := 4705;
BLKFRAGET : constant := 4709;
BLKFRASET : constant := 4708;
BLKGETSIZE : constant := 4704;
BLKGETSIZE64 : constant := 2147750514;
BLKRAGET : constant := 4707;
BLKRASET : constant := 4706;
BLKROGET : constant := 4702;
BLKROSET : constant := 4701;
BLKRRPART : constant := 4703;
BLKSECTGET : constant := 4711;
BLKSECTSET : constant := 4710;
BLKSSZGET : constant := 4712;
BLOCK_SIZE : constant := 1024;
BLOCK_SIZE_BITS : constant := 10;
-- MNT_DETACH (repeating itself)
-- MNT_EXPIRE (repeating itself)
-- MNT_FORCE (repeating itself)
-- MS_ACTIVE (repeating itself)
-- MS_BIND (repeating itself)
-- MS_DIRSYNC (repeating itself)
-- MS_I_VERSION (repeating itself)
-- MS_KERNMOUNT (repeating itself)
-- MS_LAZYTIME (repeating itself)
-- MS_MANDLOCK (repeating itself)
MS_MGC_MSK : constant := -65536;
MS_MGC_VAL : constant := -1058209792;
-- MS_MOVE (repeating itself)
-- MS_NOATIME (repeating itself)
-- MS_NODEV (repeating itself)
-- MS_NODIRATIME (repeating itself)
-- MS_NOEXEC (repeating itself)
-- MS_NOSUID (repeating itself)
-- MS_NOUSER (repeating itself)
-- MS_POSIXACL (repeating itself)
-- MS_PRIVATE (repeating itself)
-- MS_RDONLY (repeating itself)
-- MS_REC (repeating itself)
-- MS_RELATIME (repeating itself)
-- MS_REMOUNT (repeating itself)
MS_RMT_MASK : constant := 41943121;
-- MS_SHARED (repeating itself)
-- MS_SILENT (repeating itself)
-- MS_SLAVE (repeating itself)
-- MS_STRICTATIME (repeating itself)
-- MS_SYNCHRONOUS (repeating itself)
-- MS_UNBINDABLE (repeating itself)
-- UMOUNT_NOFOLLOW (repeating itself)
SYS_MOUNT_H : constant := 1;
end C.sys.mount;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.sigset;
with C.time;
package C.sys.poll is
pragma Preelaborate;
subtype nfds_t is unsigned_long;
type struct_pollfd;
type struct_pollfd is record
fd : aliased signed_int;
events : aliased signed_short;
revents : aliased signed_short;
end record;
pragma Convention (C_Pass_By_Copy, struct_pollfd);
type struct_pollfd_ptr is access all struct_pollfd;
for struct_pollfd_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_pollfd_ptr);
pragma Convention (C, struct_pollfd_ptr);
function poll (fds : access struct_pollfd; nfds : nfds_t;
timeout : signed_int) return signed_int;
pragma Import (C, poll, "poll");
function ppoll (fds : access struct_pollfd; nfds : nfds_t;
timeout : access constant time.struct_timespec;
ss : access constant bits.sigset.sigset_t) return signed_int;
pragma Import (C, ppoll, "ppoll");
SYS_POLL_H : constant := 1;
end C.sys.poll;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.resource;
with C.bits.types;
with C.sys.types;
package C.sys.resource is
pragma Preelaborate;
subtype enum_rlimit_resource is bits.resource.enum_rlimit_resource;
function RLIMIT_CPU return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_CPU;
function RLIMIT_FSIZE return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_FSIZE;
function RLIMIT_DATA return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_DATA;
function RLIMIT_STACK return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_STACK;
function RLIMIT_CORE return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_CORE;
function qqRLIMIT_RSS return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_RSS;
function RLIMIT_NOFILE return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_NOFILE;
function qqRLIMIT_OFILE return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_OFILE;
function RLIMIT_AS return bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_AS;
function qqRLIMIT_NPROC return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_NPROC;
function qqRLIMIT_MEMLOCK return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_MEMLOCK;
function qqRLIMIT_LOCKS return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_LOCKS;
function qqRLIMIT_SIGPENDING return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_SIGPENDING;
function qqRLIMIT_MSGQUEUE return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_MSGQUEUE;
function qqRLIMIT_NICE return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_NICE;
function qqRLIMIT_RTPRIO return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_RTPRIO;
function qqRLIMIT_RTTIME return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_RTTIME;
function qqRLIMIT_NLIMITS return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIMIT_NLIMITS;
function qqRLIM_NLIMITS return bits.resource.enum_rlimit_resource
renames bits.resource.qqRLIM_NLIMITS;
subtype rlim_t is bits.resource.rlim_t;
subtype rlim64_t is bits.resource.rlim64_t;
subtype struct_rlimit is bits.resource.struct_rlimit;
subtype struct_rlimit64 is bits.resource.struct_rlimit64;
subtype enum_rusage_who is bits.resource.enum_rusage_who;
function RUSAGE_SELF return bits.resource.enum_rusage_who
renames bits.resource.RUSAGE_SELF;
function RUSAGE_CHILDREN return bits.resource.enum_rusage_who
renames bits.resource.RUSAGE_CHILDREN;
function RUSAGE_THREAD return bits.resource.enum_rusage_who
renames bits.resource.RUSAGE_THREAD;
subtype struct_rusage is bits.resource.struct_rusage;
subtype enum_priority_which is bits.resource.enum_priority_which;
function PRIO_PROCESS return bits.resource.enum_priority_which
renames bits.resource.PRIO_PROCESS;
function PRIO_PGRP return bits.resource.enum_priority_which
renames bits.resource.PRIO_PGRP;
function PRIO_USER return bits.resource.enum_priority_which
renames bits.resource.PRIO_USER;
function prlimit (pid : bits.types.pid_t;
resource : bits.resource.enum_rlimit_resource;
new_limit : access constant bits.resource.struct_rlimit;
old_limit : access bits.resource.struct_rlimit) return signed_int
renames bits.resource.prlimit;
function prlimit64 (pid : bits.types.pid_t;
resource : bits.resource.enum_rlimit_resource;
new_limit : access constant bits.resource.struct_rlimit64;
old_limit : access bits.resource.struct_rlimit64) return signed_int
renames bits.resource.prlimit64;
PRIO_MAX : constant := bits.resource.PRIO_MAX;
PRIO_MIN : constant := bits.resource.PRIO_MIN;
-- PRIO_PGRP renames bits.resource.PRIO_PGRP (repeating itself)
-- PRIO_PROCESS renames bits.resource.PRIO_PROCESS (repeating itself)
-- PRIO_USER renames bits.resource.PRIO_USER (repeating itself)
RLIM64_INFINITY : constant := bits.resource.RLIM64_INFINITY;
-- RLIMIT_AS renames bits.resource.RLIMIT_AS (repeating itself)
-- RLIMIT_CORE renames bits.resource.RLIMIT_CORE (repeating itself)
-- RLIMIT_CPU renames bits.resource.RLIMIT_CPU (repeating itself)
-- RLIMIT_DATA renames bits.resource.RLIMIT_DATA (repeating itself)
-- RLIMIT_FSIZE renames bits.resource.RLIMIT_FSIZE (repeating itself)
RLIMIT_LOCKS : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_LOCKS;
RLIMIT_MEMLOCK : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_MEMLOCK;
RLIMIT_MSGQUEUE : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_MSGQUEUE;
RLIMIT_NICE : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_NICE;
RLIMIT_NLIMITS : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_NLIMITS;
-- RLIMIT_NOFILE renames bits.resource.RLIMIT_NOFILE (repeating itself)
RLIMIT_NPROC : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_NPROC;
RLIMIT_OFILE : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_OFILE;
RLIMIT_RSS : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_RSS;
RLIMIT_RTPRIO : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_RTPRIO;
RLIMIT_RTTIME : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_RTTIME;
RLIMIT_SIGPENDING : bits.resource.enum_rlimit_resource
renames bits.resource.RLIMIT_SIGPENDING;
-- RLIMIT_STACK renames bits.resource.RLIMIT_STACK (repeating itself)
RLIM_INFINITY : constant := bits.resource.RLIM_INFINITY;
RLIM_NLIMITS : bits.resource.enum_rlimit_resource
renames bits.resource.RLIM_NLIMITS;
RLIM_SAVED_CUR : constant := bits.resource.RLIM_SAVED_CUR;
RLIM_SAVED_MAX : constant := bits.resource.RLIM_SAVED_MAX;
-- RUSAGE_CHILDREN renames bits.resource.RUSAGE_CHILDREN (repeating itself)
-- RUSAGE_LWP renames bits.resource.RUSAGE_LWP (repeating itself)
-- RUSAGE_SELF renames bits.resource.RUSAGE_SELF (repeating itself)
-- RUSAGE_THREAD renames bits.resource.RUSAGE_THREAD (repeating itself)
subtype rlimit_resource_t is bits.resource.enum_rlimit_resource;
subtype rusage_who_t is bits.resource.enum_rusage_who;
subtype priority_which_t is bits.resource.enum_priority_which;
function getrlimit (resource : rlimit_resource_t;
rlimits : access bits.resource.struct_rlimit) return signed_int;
pragma Import (C, getrlimit, "getrlimit64");
function getrlimit64 (resource : rlimit_resource_t;
rlimits : access bits.resource.struct_rlimit64) return signed_int;
pragma Import (C, getrlimit64, "getrlimit64");
function setrlimit (resource : rlimit_resource_t;
rlimits : access constant bits.resource.struct_rlimit)
return signed_int;
pragma Import (C, setrlimit, "setrlimit64");
function setrlimit64 (resource : rlimit_resource_t;
rlimits : access constant bits.resource.struct_rlimit64)
return signed_int;
pragma Import (C, setrlimit64, "setrlimit64");
function getrusage (who : rusage_who_t;
usage : access bits.resource.struct_rusage) return signed_int;
pragma Import (C, getrusage, "getrusage");
function getpriority (which : priority_which_t; who : types.id_t)
return signed_int;
pragma Import (C, getpriority, "getpriority");
function setpriority (which : priority_which_t; who : types.id_t;
prio : signed_int) return signed_int;
pragma Import (C, setpriority, "setpriority");
SYS_RESOURCE_H : constant := 1;
end C.sys.resource;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.sigset;
with C.bits.time;
with C.time;
package C.sys.select_h is
pragma Preelaborate;
subtype qqfd_mask is signed_long;
subtype qqfd_mask_array is signed_long_array;
type struct_03cc3551 is record
fds_bits : aliased qqfd_mask_array (0 .. 31);
end record;
pragma Convention (C_Pass_By_Copy, struct_03cc3551);
type struct_03cc3551_ptr is access all struct_03cc3551;
for struct_03cc3551_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_03cc3551_ptr);
pragma Convention (C, struct_03cc3551_ptr);
subtype fd_set is struct_03cc3551;
subtype fd_set_ptr is struct_03cc3551_ptr;
subtype fd_mask is qqfd_mask;
function C_select (nfds : signed_int; readfds : access fd_set;
writefds : access fd_set; exceptfds : access fd_set;
timeout : access bits.time.struct_timeval) return signed_int;
pragma Import (C, C_select, "select");
function pselect (nfds : signed_int; readfds : access fd_set;
writefds : access fd_set; exceptfds : access fd_set;
timeout : access constant time.struct_timespec;
sigmask : access constant bits.sigset.sigset_t) return signed_int;
pragma Import (C, pselect, "pselect");
-- FD_CLR (uninterpretable)
-- FD_ISSET (uninterpretable)
-- FD_SET (uninterpretable)
FD_SETSIZE : constant := 1024;
-- FD_ZERO (uninterpretable)
NFDBITS : constant := 32;
SYS_SELECT_H : constant := 1;
-- __FDS_BITS (uninterpretable)
-- __FD_ELT (function macro)
-- __FD_MASK (function macro)
qqNFDBITS : constant := 32;
-- __need_timespec (empty)
end C.sys.select_h;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.stddef;
with C.sys.types;
package C.sys.sendfile is
pragma Preelaborate;
function sendfile (out_fd : signed_int; in_fd : signed_int;
offset : access bits.types.off64_t; count : stddef.size_t)
return types.ssize_t;
pragma Import (C, sendfile, "sendfile64");
function sendfile64 (out_fd : signed_int; in_fd : signed_int;
offset : access bits.types.off64_t; count : stddef.size_t)
return types.ssize_t;
pragma Import (C, sendfile64, "sendfile64");
SYS_SENDFILE_H : constant := 1;
end C.sys.sendfile;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.asm_generic.socket;
with C.bits.socket;
with C.bits.socket_type;
with C.netinet.in_h;
with C.stddef;
with C.sys.types;
with C.time;
with C.unistd;
package C.sys.socket is
pragma Preelaborate;
SCM_TIMESTAMP : constant := asm_generic.socket.SCM_TIMESTAMP;
SCM_TIMESTAMPING : constant := asm_generic.socket.SCM_TIMESTAMPING;
SCM_TIMESTAMPNS : constant := asm_generic.socket.SCM_TIMESTAMPNS;
SCM_WIFI_STATUS : constant := asm_generic.socket.SCM_WIFI_STATUS;
SOL_SOCKET : constant := asm_generic.socket.SOL_SOCKET;
SO_ACCEPTCONN : constant := asm_generic.socket.SO_ACCEPTCONN;
SO_ATTACH_BPF : constant := asm_generic.socket.SO_ATTACH_BPF;
SO_ATTACH_FILTER : constant := asm_generic.socket.SO_ATTACH_FILTER;
SO_ATTACH_REUSEPORT_CBPF : constant :=
asm_generic.socket.SO_ATTACH_REUSEPORT_CBPF;
SO_ATTACH_REUSEPORT_EBPF : constant :=
asm_generic.socket.SO_ATTACH_REUSEPORT_EBPF;
SO_BINDTODEVICE : constant := asm_generic.socket.SO_BINDTODEVICE;
SO_BPF_EXTENSIONS : constant := asm_generic.socket.SO_BPF_EXTENSIONS;
SO_BROADCAST : constant := asm_generic.socket.SO_BROADCAST;
SO_BSDCOMPAT : constant := asm_generic.socket.SO_BSDCOMPAT;
SO_BUSY_POLL : constant := asm_generic.socket.SO_BUSY_POLL;
SO_CNX_ADVICE : constant := asm_generic.socket.SO_CNX_ADVICE;
SO_DEBUG : constant := asm_generic.socket.SO_DEBUG;
SO_DETACH_BPF : constant := asm_generic.socket.SO_DETACH_BPF;
SO_DETACH_FILTER : constant := asm_generic.socket.SO_DETACH_FILTER;
SO_DOMAIN : constant := asm_generic.socket.SO_DOMAIN;
SO_DONTROUTE : constant := asm_generic.socket.SO_DONTROUTE;
SO_ERROR : constant := asm_generic.socket.SO_ERROR;
SO_GET_FILTER : constant := asm_generic.socket.SO_GET_FILTER;
SO_INCOMING_CPU : constant := asm_generic.socket.SO_INCOMING_CPU;
SO_KEEPALIVE : constant := asm_generic.socket.SO_KEEPALIVE;
SO_LINGER : constant := asm_generic.socket.SO_LINGER;
SO_LOCK_FILTER : constant := asm_generic.socket.SO_LOCK_FILTER;
SO_MARK : constant := asm_generic.socket.SO_MARK;
SO_MAX_PACING_RATE : constant := asm_generic.socket.SO_MAX_PACING_RATE;
SO_NOFCS : constant := asm_generic.socket.SO_NOFCS;
SO_NO_CHECK : constant := asm_generic.socket.SO_NO_CHECK;
SO_OOBINLINE : constant := asm_generic.socket.SO_OOBINLINE;
SO_PASSCRED : constant := asm_generic.socket.SO_PASSCRED;
SO_PASSSEC : constant := asm_generic.socket.SO_PASSSEC;
SO_PEEK_OFF : constant := asm_generic.socket.SO_PEEK_OFF;
SO_PEERCRED : constant := asm_generic.socket.SO_PEERCRED;
SO_PEERNAME : constant := asm_generic.socket.SO_PEERNAME;
SO_PEERSEC : constant := asm_generic.socket.SO_PEERSEC;
SO_PRIORITY : constant := asm_generic.socket.SO_PRIORITY;
SO_PROTOCOL : constant := asm_generic.socket.SO_PROTOCOL;
SO_RCVBUF : constant := asm_generic.socket.SO_RCVBUF;
SO_RCVBUFFORCE : constant := asm_generic.socket.SO_RCVBUFFORCE;
SO_RCVLOWAT : constant := asm_generic.socket.SO_RCVLOWAT;
SO_RCVTIMEO : constant := asm_generic.socket.SO_RCVTIMEO;
SO_REUSEADDR : constant := asm_generic.socket.SO_REUSEADDR;
SO_REUSEPORT : constant := asm_generic.socket.SO_REUSEPORT;
SO_RXQ_OVFL : constant := asm_generic.socket.SO_RXQ_OVFL;
SO_SECURITY_AUTHENTICATION : constant :=
asm_generic.socket.SO_SECURITY_AUTHENTICATION;
SO_SECURITY_ENCRYPTION_NETWORK : constant :=
asm_generic.socket.SO_SECURITY_ENCRYPTION_NETWORK;
SO_SECURITY_ENCRYPTION_TRANSPORT : constant :=
asm_generic.socket.SO_SECURITY_ENCRYPTION_TRANSPORT;
SO_SELECT_ERR_QUEUE : constant := asm_generic.socket.SO_SELECT_ERR_QUEUE;
SO_SNDBUF : constant := asm_generic.socket.SO_SNDBUF;
SO_SNDBUFFORCE : constant := asm_generic.socket.SO_SNDBUFFORCE;
SO_SNDLOWAT : constant := asm_generic.socket.SO_SNDLOWAT;
SO_SNDTIMEO : constant := asm_generic.socket.SO_SNDTIMEO;
SO_TIMESTAMP : constant := asm_generic.socket.SO_TIMESTAMP;
SO_TIMESTAMPING : constant := asm_generic.socket.SO_TIMESTAMPING;
SO_TIMESTAMPNS : constant := asm_generic.socket.SO_TIMESTAMPNS;
SO_TYPE : constant := asm_generic.socket.SO_TYPE;
SO_WIFI_STATUS : constant := asm_generic.socket.SO_WIFI_STATUS;
-- ASM_GENERIC_SOCKET_H renames asm_generic.socket.ASM_GENERIC_S... (empty)
subtype struct_sockaddr is bits.socket.struct_sockaddr;
subtype struct_sockaddr_storage is bits.socket.struct_sockaddr_storage;
function MSG_OOB return bits.socket.enum_0efe6d18
renames bits.socket.MSG_OOB;
function MSG_PEEK return bits.socket.enum_0efe6d18
renames bits.socket.MSG_PEEK;
function MSG_DONTROUTE return bits.socket.enum_0efe6d18
renames bits.socket.MSG_DONTROUTE;
function MSG_TRYHARD return bits.socket.enum_0efe6d18
renames bits.socket.MSG_TRYHARD;
function MSG_CTRUNC return bits.socket.enum_0efe6d18
renames bits.socket.MSG_CTRUNC;
function MSG_PROXY return bits.socket.enum_0efe6d18
renames bits.socket.MSG_PROXY;
function MSG_TRUNC return bits.socket.enum_0efe6d18
renames bits.socket.MSG_TRUNC;
function MSG_DONTWAIT return bits.socket.enum_0efe6d18
renames bits.socket.MSG_DONTWAIT;
function MSG_EOR return bits.socket.enum_0efe6d18
renames bits.socket.MSG_EOR;
function MSG_WAITALL return bits.socket.enum_0efe6d18
renames bits.socket.MSG_WAITALL;
function MSG_FIN return bits.socket.enum_0efe6d18
renames bits.socket.MSG_FIN;
function MSG_SYN return bits.socket.enum_0efe6d18
renames bits.socket.MSG_SYN;
function MSG_CONFIRM return bits.socket.enum_0efe6d18
renames bits.socket.MSG_CONFIRM;
function MSG_RST return bits.socket.enum_0efe6d18
renames bits.socket.MSG_RST;
function MSG_ERRQUEUE return bits.socket.enum_0efe6d18
renames bits.socket.MSG_ERRQUEUE;
function MSG_NOSIGNAL return bits.socket.enum_0efe6d18
renames bits.socket.MSG_NOSIGNAL;
function MSG_MORE return bits.socket.enum_0efe6d18
renames bits.socket.MSG_MORE;
function MSG_WAITFORONE return bits.socket.enum_0efe6d18
renames bits.socket.MSG_WAITFORONE;
function MSG_BATCH return bits.socket.enum_0efe6d18
renames bits.socket.MSG_BATCH;
function MSG_FASTOPEN return bits.socket.enum_0efe6d18
renames bits.socket.MSG_FASTOPEN;
function MSG_CMSG_CLOEXEC return bits.socket.enum_0efe6d18
renames bits.socket.MSG_CMSG_CLOEXEC;
subtype struct_msghdr is bits.socket.struct_msghdr;
subtype struct_cmsghdr is bits.socket.struct_cmsghdr;
function qqcmsg_nxthdr (mhdr : access bits.socket.struct_msghdr;
cmsg : access bits.socket.struct_cmsghdr)
return bits.socket.struct_cmsghdr_ptr
renames bits.socket.qqcmsg_nxthdr;
function SCM_RIGHTS return bits.socket.enum_010b5d53
renames bits.socket.SCM_RIGHTS;
function SCM_CREDENTIALS return bits.socket.enum_010b5d53
renames bits.socket.SCM_CREDENTIALS;
subtype struct_ucred is bits.socket.struct_ucred;
subtype struct_linger is bits.socket.struct_linger;
AF_ALG : constant := bits.socket.AF_ALG;
AF_APPLETALK : constant := bits.socket.AF_APPLETALK;
AF_ASH : constant := bits.socket.AF_ASH;
AF_ATMPVC : constant := bits.socket.AF_ATMPVC;
AF_ATMSVC : constant := bits.socket.AF_ATMSVC;
AF_AX25 : constant := bits.socket.AF_AX25;
AF_BLUETOOTH : constant := bits.socket.AF_BLUETOOTH;
AF_BRIDGE : constant := bits.socket.AF_BRIDGE;
AF_CAIF : constant := bits.socket.AF_CAIF;
AF_CAN : constant := bits.socket.AF_CAN;
AF_DECnet : constant := bits.socket.AF_DECnet;
AF_ECONET : constant := bits.socket.AF_ECONET;
AF_FILE : constant := bits.socket.AF_FILE;
AF_IB : constant := bits.socket.AF_IB;
AF_IEEE802154 : constant := bits.socket.AF_IEEE802154;
AF_INET : constant := bits.socket.AF_INET;
AF_INET6 : constant := bits.socket.AF_INET6;
AF_IPX : constant := bits.socket.AF_IPX;
AF_IRDA : constant := bits.socket.AF_IRDA;
AF_ISDN : constant := bits.socket.AF_ISDN;
AF_IUCV : constant := bits.socket.AF_IUCV;
AF_KCM : constant := bits.socket.AF_KCM;
AF_KEY : constant := bits.socket.AF_KEY;
AF_LLC : constant := bits.socket.AF_LLC;
AF_LOCAL : constant := bits.socket.AF_LOCAL;
AF_MAX : constant := bits.socket.AF_MAX;
AF_MPLS : constant := bits.socket.AF_MPLS;
AF_NETBEUI : constant := bits.socket.AF_NETBEUI;
AF_NETLINK : constant := bits.socket.AF_NETLINK;
AF_NETROM : constant := bits.socket.AF_NETROM;
AF_NFC : constant := bits.socket.AF_NFC;
AF_PACKET : constant := bits.socket.AF_PACKET;
AF_PHONET : constant := bits.socket.AF_PHONET;
AF_PPPOX : constant := bits.socket.AF_PPPOX;
AF_RDS : constant := bits.socket.AF_RDS;
AF_ROSE : constant := bits.socket.AF_ROSE;
AF_ROUTE : constant := bits.socket.AF_ROUTE;
AF_RXRPC : constant := bits.socket.AF_RXRPC;
AF_SECURITY : constant := bits.socket.AF_SECURITY;
AF_SNA : constant := bits.socket.AF_SNA;
AF_TIPC : constant := bits.socket.AF_TIPC;
AF_UNIX : constant := bits.socket.AF_UNIX;
AF_UNSPEC : constant := bits.socket.AF_UNSPEC;
AF_VSOCK : constant := bits.socket.AF_VSOCK;
AF_WANPIPE : constant := bits.socket.AF_WANPIPE;
AF_X25 : constant := bits.socket.AF_X25;
-- CMSG_ALIGN renames bits.socket.CMSG_ALIGN (function macro)
-- CMSG_DATA renames bits.socket.CMSG_DATA (uninterpretable)
-- CMSG_FIRSTHDR renames bits.socket.CMSG_FIRSTHDR (uninterpretable)
-- CMSG_LEN renames bits.socket.CMSG_LEN (function macro)
-- CMSG_NXTHDR renames bits.socket.CMSG_NXTHDR (function macro)
-- CMSG_SPACE renames bits.socket.CMSG_SPACE (function macro)
-- MSG_BATCH renames bits.socket.MSG_BATCH (repeating itself)
-- MSG_CMSG_CLOEXEC renames bits.socket.MSG_CMSG_CLOEXEC (repeating itself)
-- MSG_CONFIRM renames bits.socket.MSG_CONFIRM (repeating itself)
-- MSG_CTRUNC renames bits.socket.MSG_CTRUNC (repeating itself)
-- MSG_DONTROUTE renames bits.socket.MSG_DONTROUTE (repeating itself)
-- MSG_DONTWAIT renames bits.socket.MSG_DONTWAIT (repeating itself)
-- MSG_EOR renames bits.socket.MSG_EOR (repeating itself)
-- MSG_ERRQUEUE renames bits.socket.MSG_ERRQUEUE (repeating itself)
-- MSG_FASTOPEN renames bits.socket.MSG_FASTOPEN (repeating itself)
-- MSG_FIN renames bits.socket.MSG_FIN (repeating itself)
-- MSG_MORE renames bits.socket.MSG_MORE (repeating itself)
-- MSG_NOSIGNAL renames bits.socket.MSG_NOSIGNAL (repeating itself)
-- MSG_OOB renames bits.socket.MSG_OOB (repeating itself)
-- MSG_PEEK renames bits.socket.MSG_PEEK (repeating itself)
-- MSG_PROXY renames bits.socket.MSG_PROXY (repeating itself)
-- MSG_RST renames bits.socket.MSG_RST (repeating itself)
-- MSG_SYN renames bits.socket.MSG_SYN (repeating itself)
-- MSG_TRUNC renames bits.socket.MSG_TRUNC (repeating itself)
-- MSG_TRYHARD renames bits.socket.MSG_TRYHARD (repeating itself)
-- MSG_WAITALL renames bits.socket.MSG_WAITALL (repeating itself)
-- MSG_WAITFORONE renames bits.socket.MSG_WAITFORONE (repeating itself)
PF_ALG : constant := bits.socket.PF_ALG;
PF_APPLETALK : constant := bits.socket.PF_APPLETALK;
PF_ASH : constant := bits.socket.PF_ASH;
PF_ATMPVC : constant := bits.socket.PF_ATMPVC;
PF_ATMSVC : constant := bits.socket.PF_ATMSVC;
PF_AX25 : constant := bits.socket.PF_AX25;
PF_BLUETOOTH : constant := bits.socket.PF_BLUETOOTH;
PF_BRIDGE : constant := bits.socket.PF_BRIDGE;
PF_CAIF : constant := bits.socket.PF_CAIF;
PF_CAN : constant := bits.socket.PF_CAN;
PF_DECnet : constant := bits.socket.PF_DECnet;
PF_ECONET : constant := bits.socket.PF_ECONET;
PF_FILE : constant := bits.socket.PF_FILE;
PF_IB : constant := bits.socket.PF_IB;
PF_IEEE802154 : constant := bits.socket.PF_IEEE802154;
PF_INET : constant := bits.socket.PF_INET;
PF_INET6 : constant := bits.socket.PF_INET6;
PF_IPX : constant := bits.socket.PF_IPX;
PF_IRDA : constant := bits.socket.PF_IRDA;
PF_ISDN : constant := bits.socket.PF_ISDN;
PF_IUCV : constant := bits.socket.PF_IUCV;
PF_KCM : constant := bits.socket.PF_KCM;
PF_KEY : constant := bits.socket.PF_KEY;
PF_LLC : constant := bits.socket.PF_LLC;
PF_LOCAL : constant := bits.socket.PF_LOCAL;
PF_MAX : constant := bits.socket.PF_MAX;
PF_MPLS : constant := bits.socket.PF_MPLS;
PF_NETBEUI : constant := bits.socket.PF_NETBEUI;
PF_NETLINK : constant := bits.socket.PF_NETLINK;
PF_NETROM : constant := bits.socket.PF_NETROM;
PF_NFC : constant := bits.socket.PF_NFC;
PF_PACKET : constant := bits.socket.PF_PACKET;
PF_PHONET : constant := bits.socket.PF_PHONET;
PF_PPPOX : constant := bits.socket.PF_PPPOX;
PF_RDS : constant := bits.socket.PF_RDS;
PF_ROSE : constant := bits.socket.PF_ROSE;
PF_ROUTE : constant := bits.socket.PF_ROUTE;
PF_RXRPC : constant := bits.socket.PF_RXRPC;
PF_SECURITY : constant := bits.socket.PF_SECURITY;
PF_SNA : constant := bits.socket.PF_SNA;
PF_TIPC : constant := bits.socket.PF_TIPC;
PF_UNIX : constant := bits.socket.PF_UNIX;
PF_UNSPEC : constant := bits.socket.PF_UNSPEC;
PF_VSOCK : constant := bits.socket.PF_VSOCK;
PF_WANPIPE : constant := bits.socket.PF_WANPIPE;
PF_X25 : constant := bits.socket.PF_X25;
-- SCM_CREDENTIALS renames bits.socket.SCM_CREDENTIALS (repeating itself)
-- SCM_RIGHTS renames bits.socket.SCM_RIGHTS (repeating itself)
SOL_AAL : constant := bits.socket.SOL_AAL;
SOL_ALG : constant := bits.socket.SOL_ALG;
SOL_ATM : constant := bits.socket.SOL_ATM;
SOL_BLUETOOTH : constant := bits.socket.SOL_BLUETOOTH;
SOL_CAIF : constant := bits.socket.SOL_CAIF;
SOL_DCCP : constant := bits.socket.SOL_DCCP;
SOL_DECNET : constant := bits.socket.SOL_DECNET;
SOL_IRDA : constant := bits.socket.SOL_IRDA;
SOL_IUCV : constant := bits.socket.SOL_IUCV;
SOL_KCM : constant := bits.socket.SOL_KCM;
SOL_LLC : constant := bits.socket.SOL_LLC;
SOL_NETBEUI : constant := bits.socket.SOL_NETBEUI;
SOL_NETLINK : constant := bits.socket.SOL_NETLINK;
SOL_NFC : constant := bits.socket.SOL_NFC;
SOL_PACKET : constant := bits.socket.SOL_PACKET;
SOL_PNPIPE : constant := bits.socket.SOL_PNPIPE;
SOL_PPPOL2TP : constant := bits.socket.SOL_PPPOL2TP;
SOL_RAW : constant := bits.socket.SOL_RAW;
SOL_RDS : constant := bits.socket.SOL_RDS;
SOL_RXRPC : constant := bits.socket.SOL_RXRPC;
SOL_TIPC : constant := bits.socket.SOL_TIPC;
SOL_X25 : constant := bits.socket.SOL_X25;
SOMAXCONN : constant := bits.socket.SOMAXCONN;
SS_PADSIZE : constant := bits.socket.SS_PADSIZE;
-- BITS_SOCKET_H renames bits.socket.BITS_SOCKET_H (empty)
subtype ss_aligntype is unsigned_long;
subtype enum_socket_type is bits.socket_type.enum_socket_type;
function SOCK_STREAM return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_STREAM;
function SOCK_DGRAM return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_DGRAM;
function SOCK_RAW return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_RAW;
function SOCK_RDM return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_RDM;
function SOCK_SEQPACKET return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_SEQPACKET;
function SOCK_DCCP return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_DCCP;
function SOCK_PACKET return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_PACKET;
function SOCK_CLOEXEC return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_CLOEXEC;
function SOCK_NONBLOCK return bits.socket_type.enum_socket_type
renames bits.socket_type.SOCK_NONBLOCK;
-- SOCK_CLOEXEC renames bits.socket_type.SOCK_CLOEXEC (repeating itself)
-- SOCK_DCCP renames bits.socket_type.SOCK_DCCP (repeating itself)
-- SOCK_DGRAM renames bits.socket_type.SOCK_DGRAM (repeating itself)
-- SOCK_NONBLOCK renames bits.socket_type.SOCK_NONBLOCK (repeating itself)
-- SOCK_PACKET renames bits.socket_type.SOCK_PACKET (repeating itself)
-- SOCK_RAW renames bits.socket_type.SOCK_RAW (repeating itself)
-- SOCK_RDM renames bits.socket_type.SOCK_RDM (repeating itself)
-- SOCK_SEQPACKET renames bits.socket_type.SOCK_SEQPA... (repeating itself)
-- SOCK_STREAM renames bits.socket_type.SOCK_STREAM (repeating itself)
type struct_osockaddr;
type struct_osockaddr is record
sa_family : aliased unsigned_short;
sa_data : aliased unsigned_char_array (0 .. 13);
end record;
pragma Convention (C_Pass_By_Copy, struct_osockaddr);
type enum_5eaae5fd is (SHUT_RD, SHUT_WR, SHUT_RDWR);
for enum_5eaae5fd use (SHUT_RD => 0, SHUT_WR => 1, SHUT_RDWR => 2);
pragma Convention (C, enum_5eaae5fd);
for enum_5eaae5fd'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_5eaae5fd, signed_int);
type struct_sockaddr_at (<>) is limited private;
type struct_sockaddr_at_ptr is access all struct_sockaddr_at;
for struct_sockaddr_at_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_at_ptr);
pragma Convention (C, struct_sockaddr_at_ptr);
type struct_sockaddr_at_const_ptr is access constant struct_sockaddr_at;
for struct_sockaddr_at_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_at_const_ptr);
pragma Convention (C, struct_sockaddr_at_const_ptr);
type struct_sockaddr_ax25 (<>) is limited private;
type struct_sockaddr_ax25_ptr is access all struct_sockaddr_ax25;
for struct_sockaddr_ax25_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ax25_ptr);
pragma Convention (C, struct_sockaddr_ax25_ptr);
type struct_sockaddr_ax25_const_ptr is
access constant struct_sockaddr_ax25;
for struct_sockaddr_ax25_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ax25_const_ptr);
pragma Convention (C, struct_sockaddr_ax25_const_ptr);
type struct_sockaddr_dl (<>) is limited private;
type struct_sockaddr_dl_ptr is access all struct_sockaddr_dl;
for struct_sockaddr_dl_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_dl_ptr);
pragma Convention (C, struct_sockaddr_dl_ptr);
type struct_sockaddr_dl_const_ptr is access constant struct_sockaddr_dl;
for struct_sockaddr_dl_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_dl_const_ptr);
pragma Convention (C, struct_sockaddr_dl_const_ptr);
type struct_sockaddr_eon (<>) is limited private;
type struct_sockaddr_eon_ptr is access all struct_sockaddr_eon;
for struct_sockaddr_eon_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_eon_ptr);
pragma Convention (C, struct_sockaddr_eon_ptr);
type struct_sockaddr_eon_const_ptr is access constant struct_sockaddr_eon;
for struct_sockaddr_eon_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_eon_const_ptr);
pragma Convention (C, struct_sockaddr_eon_const_ptr);
type struct_sockaddr_inarp (<>) is limited private;
type struct_sockaddr_inarp_ptr is access all struct_sockaddr_inarp;
for struct_sockaddr_inarp_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_inarp_ptr);
pragma Convention (C, struct_sockaddr_inarp_ptr);
type struct_sockaddr_inarp_const_ptr is
access constant struct_sockaddr_inarp;
for struct_sockaddr_inarp_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_inarp_const_ptr);
pragma Convention (C, struct_sockaddr_inarp_const_ptr);
type struct_sockaddr_ipx (<>) is limited private;
type struct_sockaddr_ipx_ptr is access all struct_sockaddr_ipx;
for struct_sockaddr_ipx_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ipx_ptr);
pragma Convention (C, struct_sockaddr_ipx_ptr);
type struct_sockaddr_ipx_const_ptr is access constant struct_sockaddr_ipx;
for struct_sockaddr_ipx_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ipx_const_ptr);
pragma Convention (C, struct_sockaddr_ipx_const_ptr);
type struct_sockaddr_iso (<>) is limited private;
type struct_sockaddr_iso_ptr is access all struct_sockaddr_iso;
for struct_sockaddr_iso_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_iso_ptr);
pragma Convention (C, struct_sockaddr_iso_ptr);
type struct_sockaddr_iso_const_ptr is access constant struct_sockaddr_iso;
for struct_sockaddr_iso_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_iso_const_ptr);
pragma Convention (C, struct_sockaddr_iso_const_ptr);
type struct_sockaddr_ns (<>) is limited private;
type struct_sockaddr_ns_ptr is access all struct_sockaddr_ns;
for struct_sockaddr_ns_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ns_ptr);
pragma Convention (C, struct_sockaddr_ns_ptr);
type struct_sockaddr_ns_const_ptr is access constant struct_sockaddr_ns;
for struct_sockaddr_ns_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_ns_const_ptr);
pragma Convention (C, struct_sockaddr_ns_const_ptr);
type struct_sockaddr_un (<>) is limited private;
type struct_sockaddr_un_ptr is access all struct_sockaddr_un;
for struct_sockaddr_un_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_un_ptr);
pragma Convention (C, struct_sockaddr_un_ptr);
type struct_sockaddr_un_const_ptr is access constant struct_sockaddr_un;
for struct_sockaddr_un_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_un_const_ptr);
pragma Convention (C, struct_sockaddr_un_const_ptr);
type struct_sockaddr_x25 (<>) is limited private;
type struct_sockaddr_x25_ptr is access all struct_sockaddr_x25;
for struct_sockaddr_x25_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_x25_ptr);
pragma Convention (C, struct_sockaddr_x25_ptr);
type struct_sockaddr_x25_const_ptr is access constant struct_sockaddr_x25;
for struct_sockaddr_x25_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_sockaddr_x25_const_ptr);
pragma Convention (C, struct_sockaddr_x25_const_ptr);
type union_593d7321 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
sockaddr : bits.socket.struct_sockaddr_ptr;
when 1 =>
sockaddr_at : struct_sockaddr_at_ptr;
when 2 =>
sockaddr_ax25 : struct_sockaddr_ax25_ptr;
when 3 =>
sockaddr_dl : struct_sockaddr_dl_ptr;
when 4 =>
sockaddr_eon : struct_sockaddr_eon_ptr;
when 5 =>
sockaddr_in : netinet.in_h.struct_sockaddr_in_ptr;
when 6 =>
sockaddr_in6 : netinet.in_h.struct_sockaddr_in6_ptr;
when 7 =>
sockaddr_inarp : struct_sockaddr_inarp_ptr;
when 8 =>
sockaddr_ipx : struct_sockaddr_ipx_ptr;
when 9 =>
sockaddr_iso : struct_sockaddr_iso_ptr;
when 10 =>
sockaddr_ns : struct_sockaddr_ns_ptr;
when 11 =>
sockaddr_un : struct_sockaddr_un_ptr;
when others =>
sockaddr_x25 : struct_sockaddr_x25_ptr;
end case;
end record;
pragma Unchecked_Union (union_593d7321);
pragma Convention (C_Pass_By_Copy, union_593d7321);
subtype SOCKADDR_ARG is union_593d7321;
type union_cb1e89cc (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
sockaddr : bits.socket.struct_sockaddr_const_ptr;
when 1 =>
sockaddr_at : struct_sockaddr_at_const_ptr;
when 2 =>
sockaddr_ax25 : struct_sockaddr_ax25_const_ptr;
when 3 =>
sockaddr_dl : struct_sockaddr_dl_const_ptr;
when 4 =>
sockaddr_eon : struct_sockaddr_eon_const_ptr;
when 5 =>
sockaddr_in : netinet.in_h.struct_sockaddr_in_const_ptr;
when 6 =>
sockaddr_in6 : netinet.in_h.struct_sockaddr_in6_const_ptr;
when 7 =>
sockaddr_inarp : struct_sockaddr_inarp_const_ptr;
when 8 =>
sockaddr_ipx : struct_sockaddr_ipx_const_ptr;
when 9 =>
sockaddr_iso : struct_sockaddr_iso_const_ptr;
when 10 =>
sockaddr_ns : struct_sockaddr_ns_const_ptr;
when 11 =>
sockaddr_un : struct_sockaddr_un_const_ptr;
when others =>
sockaddr_x25 : struct_sockaddr_x25_const_ptr;
end case;
end record;
pragma Unchecked_Union (union_cb1e89cc);
pragma Convention (C_Pass_By_Copy, union_cb1e89cc);
subtype CONST_SOCKADDR_ARG is union_cb1e89cc;
type struct_mmsghdr;
type struct_mmsghdr is record
msg_hdr : aliased bits.socket.struct_msghdr;
msg_len : aliased unsigned_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_mmsghdr);
type struct_mmsghdr_ptr is access all struct_mmsghdr;
for struct_mmsghdr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_mmsghdr_ptr);
pragma Convention (C, struct_mmsghdr_ptr);
function socket (domain : signed_int; A_type : signed_int;
protocol : signed_int) return signed_int;
pragma Import (C, socket, "socket");
function socketpair (domain : signed_int; A_type : signed_int;
protocol : signed_int; fds : access signed_int) return signed_int;
pragma Import (C, socketpair, "socketpair");
function bind (fd : signed_int; addr : CONST_SOCKADDR_ARG;
len : unistd.socklen_t) return signed_int;
pragma Import (C, bind, "bind");
function getsockname (fd : signed_int; addr : SOCKADDR_ARG;
len : access unistd.socklen_t) return signed_int;
pragma Import (C, getsockname, "getsockname");
function connect (fd : signed_int; addr : CONST_SOCKADDR_ARG;
len : unistd.socklen_t) return signed_int;
pragma Import (C, connect, "connect");
function getpeername (fd : signed_int; addr : SOCKADDR_ARG;
len : access unistd.socklen_t) return signed_int;
pragma Import (C, getpeername, "getpeername");
function send (fd : signed_int; buf : void_const_ptr; n : stddef.size_t;
flags : signed_int) return types.ssize_t;
pragma Import (C, send, "send");
function recv (fd : signed_int; buf : void_ptr; n : stddef.size_t;
flags : signed_int) return types.ssize_t;
pragma Import (C, recv, "recv");
function sendto (fd : signed_int; buf : void_const_ptr; n : stddef.size_t;
flags : signed_int; addr : CONST_SOCKADDR_ARG;
addr_len : unistd.socklen_t) return types.ssize_t;
pragma Import (C, sendto, "sendto");
function recvfrom (fd : signed_int; buf : void_ptr; n : stddef.size_t;
flags : signed_int; addr : SOCKADDR_ARG;
addr_len : access unistd.socklen_t) return types.ssize_t;
pragma Import (C, recvfrom, "recvfrom");
function sendmsg (fd : signed_int;
message : access constant bits.socket.struct_msghdr;
flags : signed_int) return types.ssize_t;
pragma Import (C, sendmsg, "sendmsg");
function sendmmsg (fd : signed_int; vmessages : access struct_mmsghdr;
vlen : unsigned_int; flags : signed_int) return signed_int;
pragma Import (C, sendmmsg, "sendmmsg");
function recvmsg (fd : signed_int;
message : access bits.socket.struct_msghdr; flags : signed_int)
return types.ssize_t;
pragma Import (C, recvmsg, "recvmsg");
function recvmmsg (fd : signed_int; vmessages : access struct_mmsghdr;
vlen : unsigned_int; flags : signed_int;
tmo : access time.struct_timespec) return signed_int;
pragma Import (C, recvmmsg, "recvmmsg");
function getsockopt (fd : signed_int; level : signed_int;
optname : signed_int; optval : void_ptr;
optlen : access unistd.socklen_t) return signed_int;
pragma Import (C, getsockopt, "getsockopt");
function setsockopt (fd : signed_int; level : signed_int;
optname : signed_int; optval : void_const_ptr;
optlen : unistd.socklen_t) return signed_int;
pragma Import (C, setsockopt, "setsockopt");
function listen (fd : signed_int; n : signed_int) return signed_int;
pragma Import (C, listen, "listen");
function C_accept (fd : signed_int; addr : SOCKADDR_ARG;
addr_len : access unistd.socklen_t) return signed_int;
pragma Import (C, C_accept, "accept");
function accept4 (fd : signed_int; addr : SOCKADDR_ARG;
addr_len : access unistd.socklen_t; flags : signed_int)
return signed_int;
pragma Import (C, accept4, "accept4");
function shutdown (fd : signed_int; how : signed_int) return signed_int;
pragma Import (C, shutdown, "shutdown");
function sockatmark (fd : signed_int) return signed_int;
pragma Import (C, sockatmark, "sockatmark");
function isfdtype (fd : signed_int; fdtype : signed_int)
return signed_int;
pragma Import (C, isfdtype, "isfdtype");
-- SHUT_RD (repeating itself)
-- SHUT_RDWR (repeating itself)
-- SHUT_WR (repeating itself)
SYS_SOCKET_H : constant := 1;
-- __SOCKADDR_ALLTYPES (unparsible)
private
type struct_sockaddr_at is null record;
type struct_sockaddr_ax25 is null record;
type struct_sockaddr_dl is null record;
type struct_sockaddr_eon is null record;
type struct_sockaddr_inarp is null record;
type struct_sockaddr_ipx is null record;
type struct_sockaddr_iso is null record;
type struct_sockaddr_ns is null record;
type struct_sockaddr_un is null record;
type struct_sockaddr_x25 is null record;
end C.sys.socket;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.stat;
with C.bits.types;
with C.time;
package C.sys.stat is
pragma Preelaborate;
subtype struct_stat is bits.stat.struct_stat;
subtype struct_stat64 is bits.stat.struct_stat64;
UTIME_NOW : constant := bits.stat.UTIME_NOW;
UTIME_OMIT : constant := bits.stat.UTIME_OMIT;
BITS_STAT_H : constant := bits.stat.BITS_STAT_H;
MKNOD_VER : constant := bits.stat.MKNOD_VER;
MKNOD_VER_LINUX : constant := bits.stat.MKNOD_VER_LINUX;
MKNOD_VER_SVR4 : constant := bits.stat.MKNOD_VER_SVR4;
-- STATBUF_ST_BLKSIZE renames bits.stat.STATBUF_ST_BLKSIZE (empty)
-- STATBUF_ST_NSEC renames bits.stat.STATBUF_ST_NSEC (empty)
-- STATBUF_ST_RDEV renames bits.stat.STATBUF_ST_RDEV (empty)
STAT_VER : constant := bits.stat.STAT_VER;
STAT_VER_KERNEL : constant := bits.stat.STAT_VER_KERNEL;
STAT_VER_LINUX : constant := bits.stat.STAT_VER_LINUX;
STAT_VER_LINUX_OLD : constant := bits.stat.STAT_VER_LINUX_OLD;
STAT_VER_SVR4 : constant := bits.stat.STAT_VER_SVR4;
qqS_IEXEC : constant := bits.stat.S_IEXEC;
qqS_IFBLK : constant := bits.stat.S_IFBLK;
qqS_IFCHR : constant := bits.stat.S_IFCHR;
qqS_IFDIR : constant := bits.stat.S_IFDIR;
qqS_IFIFO : constant := bits.stat.S_IFIFO;
qqS_IFLNK : constant := bits.stat.S_IFLNK;
qqS_IFMT : constant := bits.stat.S_IFMT;
qqS_IFREG : constant := bits.stat.S_IFREG;
qqS_IFSOCK : constant := bits.stat.S_IFSOCK;
qqS_IREAD : constant := bits.stat.S_IREAD;
qqS_ISGID : constant := bits.stat.S_ISGID;
qqS_ISUID : constant := bits.stat.S_ISUID;
qqS_ISVTX : constant := bits.stat.S_ISVTX;
qqS_IWRITE : constant := bits.stat.S_IWRITE;
-- qqS_TYPEISMQ renames bits.stat.S_TYPEISMQ (uninterpretable)
-- qqS_TYPEISSEM renames bits.stat.S_TYPEISSEM (uninterpretable)
-- qqS_TYPEISSHM renames bits.stat.S_TYPEISSHM (uninterpretable)
function stat (file : access constant char;
buf : access bits.stat.struct_stat) return signed_int;
pragma Import (C, stat, "stat64");
function fstat (fd : signed_int; buf : access bits.stat.struct_stat)
return signed_int;
pragma Import (C, fstat, "fstat64");
function stat64 (file : access constant char;
buf : access bits.stat.struct_stat64) return signed_int;
pragma Import (C, stat64, "stat64");
function fstat64 (fd : signed_int; buf : access bits.stat.struct_stat64)
return signed_int;
pragma Import (C, fstat64, "fstat64");
function fstatat (fd : signed_int; file : access constant char;
buf : access bits.stat.struct_stat; flag : signed_int)
return signed_int;
pragma Import (C, fstatat, "fstatat64");
function fstatat64 (fd : signed_int; file : access constant char;
buf : access bits.stat.struct_stat64; flag : signed_int)
return signed_int;
pragma Import (C, fstatat64, "fstatat64");
function lstat (file : access constant char;
buf : access bits.stat.struct_stat) return signed_int;
pragma Import (C, lstat, "lstat64");
function lstat64 (file : access constant char;
buf : access bits.stat.struct_stat64) return signed_int;
pragma Import (C, lstat64, "lstat64");
function chmod (file : access constant char; mode : bits.types.mode_t)
return signed_int;
pragma Import (C, chmod, "chmod");
function lchmod (file : access constant char; mode : bits.types.mode_t)
return signed_int;
pragma Import (C, lchmod, "lchmod");
function fchmod (fd : signed_int; mode : bits.types.mode_t)
return signed_int;
pragma Import (C, fchmod, "fchmod");
function fchmodat (fd : signed_int; file : access constant char;
mode : bits.types.mode_t; flag : signed_int) return signed_int;
pragma Import (C, fchmodat, "fchmodat");
function umask (mask : bits.types.mode_t) return bits.types.mode_t;
pragma Import (C, umask, "umask");
function getumask return bits.types.mode_t;
pragma Import (C, getumask, "getumask");
function mkdir (path : access constant char; mode : bits.types.mode_t)
return signed_int;
pragma Import (C, mkdir, "mkdir");
function mkdirat (fd : signed_int; path : access constant char;
mode : bits.types.mode_t) return signed_int;
pragma Import (C, mkdirat, "mkdirat");
function mknod (path : access constant char; mode : bits.types.mode_t;
dev : bits.types.dev_t) return signed_int;
pragma Import (C, mknod, "mknod");
function mknodat (fd : signed_int; path : access constant char;
mode : bits.types.mode_t; dev : bits.types.dev_t) return signed_int;
pragma Import (C, mknodat, "mknodat");
function mkfifo (path : access constant char; mode : bits.types.mode_t)
return signed_int;
pragma Import (C, mkfifo, "mkfifo");
function mkfifoat (fd : signed_int; path : access constant char;
mode : bits.types.mode_t) return signed_int;
pragma Import (C, mkfifoat, "mkfifoat");
function utimensat (fd : signed_int; path : access constant char;
times : access time.struct_timespec; flags : signed_int)
return signed_int;
pragma Import (C, utimensat, "utimensat");
function futimens (fd : signed_int; times : access time.struct_timespec)
return signed_int;
pragma Import (C, futimens, "futimens");
function fxstat (ver : signed_int; fildes : signed_int;
stat_buf : access bits.stat.struct_stat) return signed_int;
pragma Import (C, fxstat, "_fxstat64");
function xstat (ver : signed_int; filename : access constant char;
stat_buf : access bits.stat.struct_stat) return signed_int;
pragma Import (C, xstat, "_xstat64");
function lxstat (ver : signed_int; filename : access constant char;
stat_buf : access bits.stat.struct_stat) return signed_int;
pragma Import (C, lxstat, "_lxstat64");
function fxstatat (ver : signed_int; fildes : signed_int;
filename : access constant char;
stat_buf : access bits.stat.struct_stat; flag : signed_int)
return signed_int;
pragma Import (C, fxstatat, "_fxstatat64");
function fxstat64 (ver : signed_int; fildes : signed_int;
stat_buf : access bits.stat.struct_stat64) return signed_int;
pragma Import (C, fxstat64, "__fxstat64");
function xstat64 (ver : signed_int; filename : access constant char;
stat_buf : access bits.stat.struct_stat64) return signed_int;
pragma Import (C, xstat64, "__xstat64");
function lxstat64 (ver : signed_int; filename : access constant char;
stat_buf : access bits.stat.struct_stat64) return signed_int;
pragma Import (C, lxstat64, "__lxstat64");
function fxstatat64 (ver : signed_int; fildes : signed_int;
filename : access constant char;
stat_buf : access bits.stat.struct_stat64; flag : signed_int)
return signed_int;
pragma Import (C, fxstatat64, "__fxstatat64");
function xmknod (ver : signed_int; path : access constant char;
mode : bits.types.mode_t; dev : access bits.types.dev_t)
return signed_int;
pragma Import (C, xmknod, "__xmknod");
function xmknodat (ver : signed_int; fd : signed_int;
path : access constant char; mode : bits.types.mode_t;
dev : access bits.types.dev_t) return signed_int;
pragma Import (C, xmknodat, "__xmknodat");
ACCESSPERMS : constant := 511;
ALLPERMS : constant := 4095;
DEFFILEMODE : constant := 438;
S_BLKSIZE : constant := 512;
S_IEXEC : constant := 64;
S_IFBLK : constant := 24576;
S_IFCHR : constant := 8192;
S_IFDIR : constant := 16384;
S_IFIFO : constant := 4096;
S_IFLNK : constant := 40960;
S_IFMT : constant := 61440;
S_IFREG : constant := 32768;
S_IFSOCK : constant := 49152;
S_IREAD : constant := 256;
S_IRGRP : constant := 32;
S_IROTH : constant := 4;
S_IRUSR : constant := 256;
S_IRWXG : constant := 56;
S_IRWXO : constant := 7;
S_IRWXU : constant := 448;
-- S_ISBLK (function macro)
-- S_ISCHR (function macro)
-- S_ISDIR (function macro)
-- S_ISFIFO (function macro)
S_ISGID : constant := 1024;
-- S_ISLNK (function macro)
-- S_ISREG (function macro)
-- S_ISSOCK (function macro)
S_ISUID : constant := 2048;
S_ISVTX : constant := 512;
S_IWGRP : constant := 16;
S_IWOTH : constant := 2;
S_IWRITE : constant := 128;
S_IWUSR : constant := 128;
S_IXGRP : constant := 8;
S_IXOTH : constant := 1;
S_IXUSR : constant := 64;
-- S_TYPEISMQ (uninterpretable)
-- S_TYPEISSEM (uninterpretable)
-- S_TYPEISSHM (uninterpretable)
SYS_STAT_H : constant := 1;
-- __S_ISTYPE (function macro)
end C.sys.stat;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.statfs;
package C.sys.statfs is
pragma Preelaborate;
subtype struct_statfs is bits.statfs.struct_statfs;
subtype struct_statfs64 is bits.statfs.struct_statfs64;
-- STATFS_F_FLAGS renames bits.statfs.STATFS_F_FLAGS (empty)
-- STATFS_F_FRSIZE renames bits.statfs.STATFS_F_FRSIZE (empty)
-- STATFS_F_NAMELEN renames bits.statfs.STATFS_F_NAMELEN (empty)
function statfs (file : access constant char;
buf : access bits.statfs.struct_statfs) return signed_int;
pragma Import (C, statfs, "statfs64");
function statfs64 (file : access constant char;
buf : access bits.statfs.struct_statfs64) return signed_int;
pragma Import (C, statfs64, "statfs64");
function fstatfs (fildes : signed_int;
buf : access bits.statfs.struct_statfs) return signed_int;
pragma Import (C, fstatfs, "fstatfs64");
function fstatfs64 (fildes : signed_int;
buf : access bits.statfs.struct_statfs64) return signed_int;
pragma Import (C, fstatfs64, "fstatfs64");
SYS_STATFS_H : constant := 1;
end C.sys.statfs;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.syscall;
package C.sys.syscall is
pragma Preelaborate;
SYS_llseek : constant := bits.syscall.SYS_llseek;
SYS_newselect : constant := bits.syscall.SYS_newselect;
SYS_sysctl : constant := bits.syscall.SYS_sysctl;
SYS_accept4 : constant := bits.syscall.SYS_accept4;
SYS_access : constant := bits.syscall.SYS_access;
SYS_acct : constant := bits.syscall.SYS_acct;
SYS_add_key : constant := bits.syscall.SYS_add_key;
SYS_adjtimex : constant := bits.syscall.SYS_adjtimex;
SYS_afs_syscall : constant := bits.syscall.SYS_afs_syscall;
SYS_alarm : constant := bits.syscall.SYS_alarm;
SYS_bdflush : constant := bits.syscall.SYS_bdflush;
SYS_bind : constant := bits.syscall.SYS_bind;
SYS_bpf : constant := bits.syscall.SYS_bpf;
SYS_break : constant := bits.syscall.SYS_break;
SYS_brk : constant := bits.syscall.SYS_brk;
SYS_capget : constant := bits.syscall.SYS_capget;
SYS_capset : constant := bits.syscall.SYS_capset;
SYS_chdir : constant := bits.syscall.SYS_chdir;
SYS_chmod : constant := bits.syscall.SYS_chmod;
SYS_chown : constant := bits.syscall.SYS_chown;
SYS_chown32 : constant := bits.syscall.SYS_chown32;
SYS_chroot : constant := bits.syscall.SYS_chroot;
SYS_clock_adjtime : constant := bits.syscall.SYS_clock_adjtime;
SYS_clock_getres : constant := bits.syscall.SYS_clock_getres;
SYS_clock_gettime : constant := bits.syscall.SYS_clock_gettime;
SYS_clock_nanosleep : constant := bits.syscall.SYS_clock_nanosleep;
SYS_clock_settime : constant := bits.syscall.SYS_clock_settime;
SYS_clone : constant := bits.syscall.SYS_clone;
SYS_close : constant := bits.syscall.SYS_close;
SYS_connect : constant := bits.syscall.SYS_connect;
SYS_copy_file_range : constant := bits.syscall.SYS_copy_file_range;
SYS_creat : constant := bits.syscall.SYS_creat;
SYS_create_module : constant := bits.syscall.SYS_create_module;
SYS_delete_module : constant := bits.syscall.SYS_delete_module;
SYS_dup : constant := bits.syscall.SYS_dup;
SYS_dup2 : constant := bits.syscall.SYS_dup2;
SYS_dup3 : constant := bits.syscall.SYS_dup3;
SYS_epoll_create : constant := bits.syscall.SYS_epoll_create;
SYS_epoll_create1 : constant := bits.syscall.SYS_epoll_create1;
SYS_epoll_ctl : constant := bits.syscall.SYS_epoll_ctl;
SYS_epoll_pwait : constant := bits.syscall.SYS_epoll_pwait;
SYS_epoll_wait : constant := bits.syscall.SYS_epoll_wait;
SYS_eventfd : constant := bits.syscall.SYS_eventfd;
SYS_eventfd2 : constant := bits.syscall.SYS_eventfd2;
SYS_execve : constant := bits.syscall.SYS_execve;
SYS_execveat : constant := bits.syscall.SYS_execveat;
SYS_exit : constant := bits.syscall.SYS_exit;
SYS_exit_group : constant := bits.syscall.SYS_exit_group;
SYS_faccessat : constant := bits.syscall.SYS_faccessat;
SYS_fadvise64 : constant := bits.syscall.SYS_fadvise64;
SYS_fadvise64_64 : constant := bits.syscall.SYS_fadvise64_64;
SYS_fallocate : constant := bits.syscall.SYS_fallocate;
SYS_fanotify_init : constant := bits.syscall.SYS_fanotify_init;
SYS_fanotify_mark : constant := bits.syscall.SYS_fanotify_mark;
SYS_fchdir : constant := bits.syscall.SYS_fchdir;
SYS_fchmod : constant := bits.syscall.SYS_fchmod;
SYS_fchmodat : constant := bits.syscall.SYS_fchmodat;
SYS_fchown : constant := bits.syscall.SYS_fchown;
SYS_fchown32 : constant := bits.syscall.SYS_fchown32;
SYS_fchownat : constant := bits.syscall.SYS_fchownat;
SYS_fcntl : constant := bits.syscall.SYS_fcntl;
SYS_fcntl64 : constant := bits.syscall.SYS_fcntl64;
SYS_fdatasync : constant := bits.syscall.SYS_fdatasync;
SYS_fgetxattr : constant := bits.syscall.SYS_fgetxattr;
SYS_finit_module : constant := bits.syscall.SYS_finit_module;
SYS_flistxattr : constant := bits.syscall.SYS_flistxattr;
SYS_flock : constant := bits.syscall.SYS_flock;
SYS_fork : constant := bits.syscall.SYS_fork;
SYS_fremovexattr : constant := bits.syscall.SYS_fremovexattr;
SYS_fsetxattr : constant := bits.syscall.SYS_fsetxattr;
SYS_fstat : constant := bits.syscall.SYS_fstat;
SYS_fstat64 : constant := bits.syscall.SYS_fstat64;
SYS_fstatat64 : constant := bits.syscall.SYS_fstatat64;
SYS_fstatfs : constant := bits.syscall.SYS_fstatfs;
SYS_fstatfs64 : constant := bits.syscall.SYS_fstatfs64;
SYS_fsync : constant := bits.syscall.SYS_fsync;
SYS_ftime : constant := bits.syscall.SYS_ftime;
SYS_ftruncate : constant := bits.syscall.SYS_ftruncate;
SYS_ftruncate64 : constant := bits.syscall.SYS_ftruncate64;
SYS_futex : constant := bits.syscall.SYS_futex;
SYS_futimesat : constant := bits.syscall.SYS_futimesat;
SYS_get_kernel_syms : constant := bits.syscall.SYS_get_kernel_syms;
SYS_get_mempolicy : constant := bits.syscall.SYS_get_mempolicy;
SYS_get_robust_list : constant := bits.syscall.SYS_get_robust_list;
SYS_get_thread_area : constant := bits.syscall.SYS_get_thread_area;
SYS_getcpu : constant := bits.syscall.SYS_getcpu;
SYS_getcwd : constant := bits.syscall.SYS_getcwd;
SYS_getdents : constant := bits.syscall.SYS_getdents;
SYS_getdents64 : constant := bits.syscall.SYS_getdents64;
SYS_getegid : constant := bits.syscall.SYS_getegid;
SYS_getegid32 : constant := bits.syscall.SYS_getegid32;
SYS_geteuid : constant := bits.syscall.SYS_geteuid;
SYS_geteuid32 : constant := bits.syscall.SYS_geteuid32;
SYS_getgid : constant := bits.syscall.SYS_getgid;
SYS_getgid32 : constant := bits.syscall.SYS_getgid32;
SYS_getgroups : constant := bits.syscall.SYS_getgroups;
SYS_getgroups32 : constant := bits.syscall.SYS_getgroups32;
SYS_getitimer : constant := bits.syscall.SYS_getitimer;
SYS_getpeername : constant := bits.syscall.SYS_getpeername;
SYS_getpgid : constant := bits.syscall.SYS_getpgid;
SYS_getpgrp : constant := bits.syscall.SYS_getpgrp;
SYS_getpid : constant := bits.syscall.SYS_getpid;
SYS_getpmsg : constant := bits.syscall.SYS_getpmsg;
SYS_getppid : constant := bits.syscall.SYS_getppid;
SYS_getpriority : constant := bits.syscall.SYS_getpriority;
SYS_getrandom : constant := bits.syscall.SYS_getrandom;
SYS_getresgid : constant := bits.syscall.SYS_getresgid;
SYS_getresgid32 : constant := bits.syscall.SYS_getresgid32;
SYS_getresuid : constant := bits.syscall.SYS_getresuid;
SYS_getresuid32 : constant := bits.syscall.SYS_getresuid32;
SYS_getrlimit : constant := bits.syscall.SYS_getrlimit;
SYS_getrusage : constant := bits.syscall.SYS_getrusage;
SYS_getsid : constant := bits.syscall.SYS_getsid;
SYS_getsockname : constant := bits.syscall.SYS_getsockname;
SYS_getsockopt : constant := bits.syscall.SYS_getsockopt;
SYS_gettid : constant := bits.syscall.SYS_gettid;
SYS_gettimeofday : constant := bits.syscall.SYS_gettimeofday;
SYS_getuid : constant := bits.syscall.SYS_getuid;
SYS_getuid32 : constant := bits.syscall.SYS_getuid32;
SYS_getxattr : constant := bits.syscall.SYS_getxattr;
SYS_gtty : constant := bits.syscall.SYS_gtty;
SYS_idle : constant := bits.syscall.SYS_idle;
SYS_init_module : constant := bits.syscall.SYS_init_module;
SYS_inotify_add_watch : constant := bits.syscall.SYS_inotify_add_watch;
SYS_inotify_init : constant := bits.syscall.SYS_inotify_init;
SYS_inotify_init1 : constant := bits.syscall.SYS_inotify_init1;
SYS_inotify_rm_watch : constant := bits.syscall.SYS_inotify_rm_watch;
SYS_io_cancel : constant := bits.syscall.SYS_io_cancel;
SYS_io_destroy : constant := bits.syscall.SYS_io_destroy;
SYS_io_getevents : constant := bits.syscall.SYS_io_getevents;
SYS_io_setup : constant := bits.syscall.SYS_io_setup;
SYS_io_submit : constant := bits.syscall.SYS_io_submit;
SYS_ioctl : constant := bits.syscall.SYS_ioctl;
SYS_ioperm : constant := bits.syscall.SYS_ioperm;
SYS_iopl : constant := bits.syscall.SYS_iopl;
SYS_ioprio_get : constant := bits.syscall.SYS_ioprio_get;
SYS_ioprio_set : constant := bits.syscall.SYS_ioprio_set;
SYS_ipc : constant := bits.syscall.SYS_ipc;
SYS_kcmp : constant := bits.syscall.SYS_kcmp;
SYS_kexec_load : constant := bits.syscall.SYS_kexec_load;
SYS_keyctl : constant := bits.syscall.SYS_keyctl;
SYS_kill : constant := bits.syscall.SYS_kill;
SYS_lchown : constant := bits.syscall.SYS_lchown;
SYS_lchown32 : constant := bits.syscall.SYS_lchown32;
SYS_lgetxattr : constant := bits.syscall.SYS_lgetxattr;
SYS_link : constant := bits.syscall.SYS_link;
SYS_linkat : constant := bits.syscall.SYS_linkat;
SYS_listen : constant := bits.syscall.SYS_listen;
SYS_listxattr : constant := bits.syscall.SYS_listxattr;
SYS_llistxattr : constant := bits.syscall.SYS_llistxattr;
SYS_lock : constant := bits.syscall.SYS_lock;
SYS_lookup_dcookie : constant := bits.syscall.SYS_lookup_dcookie;
SYS_lremovexattr : constant := bits.syscall.SYS_lremovexattr;
SYS_lseek : constant := bits.syscall.SYS_lseek;
SYS_lsetxattr : constant := bits.syscall.SYS_lsetxattr;
SYS_lstat : constant := bits.syscall.SYS_lstat;
SYS_lstat64 : constant := bits.syscall.SYS_lstat64;
SYS_madvise : constant := bits.syscall.SYS_madvise;
SYS_mbind : constant := bits.syscall.SYS_mbind;
SYS_membarrier : constant := bits.syscall.SYS_membarrier;
SYS_memfd_create : constant := bits.syscall.SYS_memfd_create;
SYS_migrate_pages : constant := bits.syscall.SYS_migrate_pages;
SYS_mincore : constant := bits.syscall.SYS_mincore;
SYS_mkdir : constant := bits.syscall.SYS_mkdir;
SYS_mkdirat : constant := bits.syscall.SYS_mkdirat;
SYS_mknod : constant := bits.syscall.SYS_mknod;
SYS_mknodat : constant := bits.syscall.SYS_mknodat;
SYS_mlock : constant := bits.syscall.SYS_mlock;
SYS_mlock2 : constant := bits.syscall.SYS_mlock2;
SYS_mlockall : constant := bits.syscall.SYS_mlockall;
SYS_mmap : constant := bits.syscall.SYS_mmap;
SYS_mmap2 : constant := bits.syscall.SYS_mmap2;
SYS_modify_ldt : constant := bits.syscall.SYS_modify_ldt;
SYS_mount : constant := bits.syscall.SYS_mount;
SYS_move_pages : constant := bits.syscall.SYS_move_pages;
SYS_mprotect : constant := bits.syscall.SYS_mprotect;
SYS_mpx : constant := bits.syscall.SYS_mpx;
SYS_mq_getsetattr : constant := bits.syscall.SYS_mq_getsetattr;
SYS_mq_notify : constant := bits.syscall.SYS_mq_notify;
SYS_mq_open : constant := bits.syscall.SYS_mq_open;
SYS_mq_timedreceive : constant := bits.syscall.SYS_mq_timedreceive;
SYS_mq_timedsend : constant := bits.syscall.SYS_mq_timedsend;
SYS_mq_unlink : constant := bits.syscall.SYS_mq_unlink;
SYS_mremap : constant := bits.syscall.SYS_mremap;
SYS_msync : constant := bits.syscall.SYS_msync;
SYS_munlock : constant := bits.syscall.SYS_munlock;
SYS_munlockall : constant := bits.syscall.SYS_munlockall;
SYS_munmap : constant := bits.syscall.SYS_munmap;
SYS_name_to_handle_at : constant := bits.syscall.SYS_name_to_handle_at;
SYS_nanosleep : constant := bits.syscall.SYS_nanosleep;
SYS_nfsservctl : constant := bits.syscall.SYS_nfsservctl;
SYS_nice : constant := bits.syscall.SYS_nice;
SYS_oldfstat : constant := bits.syscall.SYS_oldfstat;
SYS_oldlstat : constant := bits.syscall.SYS_oldlstat;
SYS_oldolduname : constant := bits.syscall.SYS_oldolduname;
SYS_oldstat : constant := bits.syscall.SYS_oldstat;
SYS_olduname : constant := bits.syscall.SYS_olduname;
SYS_open : constant := bits.syscall.SYS_open;
SYS_open_by_handle_at : constant := bits.syscall.SYS_open_by_handle_at;
SYS_openat : constant := bits.syscall.SYS_openat;
SYS_pause : constant := bits.syscall.SYS_pause;
SYS_perf_event_open : constant := bits.syscall.SYS_perf_event_open;
SYS_personality : constant := bits.syscall.SYS_personality;
SYS_pipe : constant := bits.syscall.SYS_pipe;
SYS_pipe2 : constant := bits.syscall.SYS_pipe2;
SYS_pivot_root : constant := bits.syscall.SYS_pivot_root;
SYS_pkey_alloc : constant := bits.syscall.SYS_pkey_alloc;
SYS_pkey_free : constant := bits.syscall.SYS_pkey_free;
SYS_pkey_mprotect : constant := bits.syscall.SYS_pkey_mprotect;
SYS_poll : constant := bits.syscall.SYS_poll;
SYS_ppoll : constant := bits.syscall.SYS_ppoll;
SYS_prctl : constant := bits.syscall.SYS_prctl;
SYS_pread64 : constant := bits.syscall.SYS_pread64;
SYS_preadv : constant := bits.syscall.SYS_preadv;
SYS_preadv2 : constant := bits.syscall.SYS_preadv2;
SYS_prlimit64 : constant := bits.syscall.SYS_prlimit64;
SYS_process_vm_readv : constant := bits.syscall.SYS_process_vm_readv;
SYS_process_vm_writev : constant := bits.syscall.SYS_process_vm_writev;
SYS_prof : constant := bits.syscall.SYS_prof;
SYS_profil : constant := bits.syscall.SYS_profil;
SYS_pselect6 : constant := bits.syscall.SYS_pselect6;
SYS_ptrace : constant := bits.syscall.SYS_ptrace;
SYS_putpmsg : constant := bits.syscall.SYS_putpmsg;
SYS_pwrite64 : constant := bits.syscall.SYS_pwrite64;
SYS_pwritev : constant := bits.syscall.SYS_pwritev;
SYS_pwritev2 : constant := bits.syscall.SYS_pwritev2;
SYS_query_module : constant := bits.syscall.SYS_query_module;
SYS_quotactl : constant := bits.syscall.SYS_quotactl;
SYS_read : constant := bits.syscall.SYS_read;
SYS_readahead : constant := bits.syscall.SYS_readahead;
SYS_readdir : constant := bits.syscall.SYS_readdir;
SYS_readlink : constant := bits.syscall.SYS_readlink;
SYS_readlinkat : constant := bits.syscall.SYS_readlinkat;
SYS_readv : constant := bits.syscall.SYS_readv;
SYS_reboot : constant := bits.syscall.SYS_reboot;
SYS_recvfrom : constant := bits.syscall.SYS_recvfrom;
SYS_recvmmsg : constant := bits.syscall.SYS_recvmmsg;
SYS_recvmsg : constant := bits.syscall.SYS_recvmsg;
SYS_remap_file_pages : constant := bits.syscall.SYS_remap_file_pages;
SYS_removexattr : constant := bits.syscall.SYS_removexattr;
SYS_rename : constant := bits.syscall.SYS_rename;
SYS_renameat : constant := bits.syscall.SYS_renameat;
SYS_renameat2 : constant := bits.syscall.SYS_renameat2;
SYS_request_key : constant := bits.syscall.SYS_request_key;
SYS_restart_syscall : constant := bits.syscall.SYS_restart_syscall;
SYS_rmdir : constant := bits.syscall.SYS_rmdir;
SYS_rt_sigaction : constant := bits.syscall.SYS_rt_sigaction;
SYS_rt_sigpending : constant := bits.syscall.SYS_rt_sigpending;
SYS_rt_sigprocmask : constant := bits.syscall.SYS_rt_sigprocmask;
SYS_rt_sigqueueinfo : constant := bits.syscall.SYS_rt_sigqueueinfo;
SYS_rt_sigreturn : constant := bits.syscall.SYS_rt_sigreturn;
SYS_rt_sigsuspend : constant := bits.syscall.SYS_rt_sigsuspend;
SYS_rt_sigtimedwait : constant := bits.syscall.SYS_rt_sigtimedwait;
SYS_rt_tgsigqueueinfo : constant := bits.syscall.SYS_rt_tgsigqueueinfo;
SYS_sched_get_priority_max : constant :=
bits.syscall.SYS_sched_get_priority_max;
SYS_sched_get_priority_min : constant :=
bits.syscall.SYS_sched_get_priority_min;
SYS_sched_getaffinity : constant := bits.syscall.SYS_sched_getaffinity;
SYS_sched_getattr : constant := bits.syscall.SYS_sched_getattr;
SYS_sched_getparam : constant := bits.syscall.SYS_sched_getparam;
SYS_sched_getscheduler : constant := bits.syscall.SYS_sched_getscheduler;
SYS_sched_rr_get_interval : constant :=
bits.syscall.SYS_sched_rr_get_interval;
SYS_sched_setaffinity : constant := bits.syscall.SYS_sched_setaffinity;
SYS_sched_setattr : constant := bits.syscall.SYS_sched_setattr;
SYS_sched_setparam : constant := bits.syscall.SYS_sched_setparam;
SYS_sched_setscheduler : constant := bits.syscall.SYS_sched_setscheduler;
SYS_sched_yield : constant := bits.syscall.SYS_sched_yield;
SYS_seccomp : constant := bits.syscall.SYS_seccomp;
SYS_select : constant := bits.syscall.SYS_select;
SYS_sendfile : constant := bits.syscall.SYS_sendfile;
SYS_sendfile64 : constant := bits.syscall.SYS_sendfile64;
SYS_sendmmsg : constant := bits.syscall.SYS_sendmmsg;
SYS_sendmsg : constant := bits.syscall.SYS_sendmsg;
SYS_sendto : constant := bits.syscall.SYS_sendto;
SYS_set_mempolicy : constant := bits.syscall.SYS_set_mempolicy;
SYS_set_robust_list : constant := bits.syscall.SYS_set_robust_list;
SYS_set_thread_area : constant := bits.syscall.SYS_set_thread_area;
SYS_set_tid_address : constant := bits.syscall.SYS_set_tid_address;
SYS_setdomainname : constant := bits.syscall.SYS_setdomainname;
SYS_setfsgid : constant := bits.syscall.SYS_setfsgid;
SYS_setfsgid32 : constant := bits.syscall.SYS_setfsgid32;
SYS_setfsuid : constant := bits.syscall.SYS_setfsuid;
SYS_setfsuid32 : constant := bits.syscall.SYS_setfsuid32;
SYS_setgid : constant := bits.syscall.SYS_setgid;
SYS_setgid32 : constant := bits.syscall.SYS_setgid32;
SYS_setgroups : constant := bits.syscall.SYS_setgroups;
SYS_setgroups32 : constant := bits.syscall.SYS_setgroups32;
SYS_sethostname : constant := bits.syscall.SYS_sethostname;
SYS_setitimer : constant := bits.syscall.SYS_setitimer;
SYS_setns : constant := bits.syscall.SYS_setns;
SYS_setpgid : constant := bits.syscall.SYS_setpgid;
SYS_setpriority : constant := bits.syscall.SYS_setpriority;
SYS_setregid : constant := bits.syscall.SYS_setregid;
SYS_setregid32 : constant := bits.syscall.SYS_setregid32;
SYS_setresgid : constant := bits.syscall.SYS_setresgid;
SYS_setresgid32 : constant := bits.syscall.SYS_setresgid32;
SYS_setresuid : constant := bits.syscall.SYS_setresuid;
SYS_setresuid32 : constant := bits.syscall.SYS_setresuid32;
SYS_setreuid : constant := bits.syscall.SYS_setreuid;
SYS_setreuid32 : constant := bits.syscall.SYS_setreuid32;
SYS_setrlimit : constant := bits.syscall.SYS_setrlimit;
SYS_setsid : constant := bits.syscall.SYS_setsid;
SYS_setsockopt : constant := bits.syscall.SYS_setsockopt;
SYS_settimeofday : constant := bits.syscall.SYS_settimeofday;
SYS_setuid : constant := bits.syscall.SYS_setuid;
SYS_setuid32 : constant := bits.syscall.SYS_setuid32;
SYS_setxattr : constant := bits.syscall.SYS_setxattr;
SYS_sgetmask : constant := bits.syscall.SYS_sgetmask;
SYS_shutdown : constant := bits.syscall.SYS_shutdown;
SYS_sigaction : constant := bits.syscall.SYS_sigaction;
SYS_sigaltstack : constant := bits.syscall.SYS_sigaltstack;
SYS_signal : constant := bits.syscall.SYS_signal;
SYS_signalfd : constant := bits.syscall.SYS_signalfd;
SYS_signalfd4 : constant := bits.syscall.SYS_signalfd4;
SYS_sigpending : constant := bits.syscall.SYS_sigpending;
SYS_sigprocmask : constant := bits.syscall.SYS_sigprocmask;
SYS_sigreturn : constant := bits.syscall.SYS_sigreturn;
SYS_sigsuspend : constant := bits.syscall.SYS_sigsuspend;
SYS_socket : constant := bits.syscall.SYS_socket;
SYS_socketcall : constant := bits.syscall.SYS_socketcall;
SYS_socketpair : constant := bits.syscall.SYS_socketpair;
SYS_splice : constant := bits.syscall.SYS_splice;
SYS_ssetmask : constant := bits.syscall.SYS_ssetmask;
SYS_stat : constant := bits.syscall.SYS_stat;
SYS_stat64 : constant := bits.syscall.SYS_stat64;
SYS_statfs : constant := bits.syscall.SYS_statfs;
SYS_statfs64 : constant := bits.syscall.SYS_statfs64;
SYS_stime : constant := bits.syscall.SYS_stime;
SYS_stty : constant := bits.syscall.SYS_stty;
SYS_swapoff : constant := bits.syscall.SYS_swapoff;
SYS_swapon : constant := bits.syscall.SYS_swapon;
SYS_symlink : constant := bits.syscall.SYS_symlink;
SYS_symlinkat : constant := bits.syscall.SYS_symlinkat;
SYS_sync : constant := bits.syscall.SYS_sync;
SYS_sync_file_range : constant := bits.syscall.SYS_sync_file_range;
SYS_syncfs : constant := bits.syscall.SYS_syncfs;
SYS_sysfs : constant := bits.syscall.SYS_sysfs;
SYS_sysinfo : constant := bits.syscall.SYS_sysinfo;
SYS_syslog : constant := bits.syscall.SYS_syslog;
SYS_tee : constant := bits.syscall.SYS_tee;
SYS_tgkill : constant := bits.syscall.SYS_tgkill;
SYS_time : constant := bits.syscall.SYS_time;
SYS_timer_create : constant := bits.syscall.SYS_timer_create;
SYS_timer_delete : constant := bits.syscall.SYS_timer_delete;
SYS_timer_getoverrun : constant := bits.syscall.SYS_timer_getoverrun;
SYS_timer_gettime : constant := bits.syscall.SYS_timer_gettime;
SYS_timer_settime : constant := bits.syscall.SYS_timer_settime;
SYS_timerfd_create : constant := bits.syscall.SYS_timerfd_create;
SYS_timerfd_gettime : constant := bits.syscall.SYS_timerfd_gettime;
SYS_timerfd_settime : constant := bits.syscall.SYS_timerfd_settime;
SYS_times : constant := bits.syscall.SYS_times;
SYS_tkill : constant := bits.syscall.SYS_tkill;
SYS_truncate : constant := bits.syscall.SYS_truncate;
SYS_truncate64 : constant := bits.syscall.SYS_truncate64;
SYS_ugetrlimit : constant := bits.syscall.SYS_ugetrlimit;
SYS_ulimit : constant := bits.syscall.SYS_ulimit;
SYS_umask : constant := bits.syscall.SYS_umask;
SYS_umount : constant := bits.syscall.SYS_umount;
SYS_umount2 : constant := bits.syscall.SYS_umount2;
SYS_uname : constant := bits.syscall.SYS_uname;
SYS_unlink : constant := bits.syscall.SYS_unlink;
SYS_unlinkat : constant := bits.syscall.SYS_unlinkat;
SYS_unshare : constant := bits.syscall.SYS_unshare;
SYS_uselib : constant := bits.syscall.SYS_uselib;
SYS_userfaultfd : constant := bits.syscall.SYS_userfaultfd;
SYS_ustat : constant := bits.syscall.SYS_ustat;
SYS_utime : constant := bits.syscall.SYS_utime;
SYS_utimensat : constant := bits.syscall.SYS_utimensat;
SYS_utimes : constant := bits.syscall.SYS_utimes;
SYS_vfork : constant := bits.syscall.SYS_vfork;
SYS_vhangup : constant := bits.syscall.SYS_vhangup;
SYS_vm86 : constant := bits.syscall.SYS_vm86;
SYS_vm86old : constant := bits.syscall.SYS_vm86old;
SYS_vmsplice : constant := bits.syscall.SYS_vmsplice;
SYS_vserver : constant := bits.syscall.SYS_vserver;
SYS_wait4 : constant := bits.syscall.SYS_wait4;
SYS_waitid : constant := bits.syscall.SYS_waitid;
SYS_waitpid : constant := bits.syscall.SYS_waitpid;
SYS_write : constant := bits.syscall.SYS_write;
SYS_writev : constant := bits.syscall.SYS_writev;
SYSCALL_H : constant := 1;
end C.sys.syscall;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.sys.sysmacros is
pragma Preelaborate;
function gnu_dev_major (dev : unsigned_long_long) return unsigned_int;
pragma Import (C, gnu_dev_major, "gnu_dev_major");
function gnu_dev_minor (dev : unsigned_long_long) return unsigned_int;
pragma Import (C, gnu_dev_minor, "gnu_dev_minor");
function gnu_dev_makedev (major : unsigned_int; minor : unsigned_int)
return unsigned_long_long;
pragma Import (C, gnu_dev_makedev, "gnu_dev_makedev");
SYS_SYSMACROS_H : constant := 1;
-- major (unparsible)
-- makedev (unparsible)
-- minor (unparsible)
end C.sys.sysmacros;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.time;
with C.bits.types;
package C.sys.time is
pragma Preelaborate;
subtype struct_timeval is bits.time.struct_timeval;
subtype struct_timex is bits.time.struct_timex;
ADJ_ESTERROR : constant := bits.time.ADJ_ESTERROR;
ADJ_FREQUENCY : constant := bits.time.ADJ_FREQUENCY;
ADJ_MAXERROR : constant := bits.time.ADJ_MAXERROR;
ADJ_MICRO : constant := bits.time.ADJ_MICRO;
ADJ_NANO : constant := bits.time.ADJ_NANO;
ADJ_OFFSET : constant := bits.time.ADJ_OFFSET;
ADJ_OFFSET_SINGLESHOT : constant := bits.time.ADJ_OFFSET_SINGLESHOT;
ADJ_OFFSET_SS_READ : constant := bits.time.ADJ_OFFSET_SS_READ;
ADJ_SETOFFSET : constant := bits.time.ADJ_SETOFFSET;
ADJ_STATUS : constant := bits.time.ADJ_STATUS;
ADJ_TAI : constant := bits.time.ADJ_TAI;
ADJ_TICK : constant := bits.time.ADJ_TICK;
ADJ_TIMECONST : constant := bits.time.ADJ_TIMECONST;
MOD_CLKA : constant := bits.time.MOD_CLKA;
MOD_CLKB : constant := bits.time.MOD_CLKB;
MOD_ESTERROR : constant := bits.time.MOD_ESTERROR;
MOD_FREQUENCY : constant := bits.time.MOD_FREQUENCY;
MOD_MAXERROR : constant := bits.time.MOD_MAXERROR;
MOD_MICRO : constant := bits.time.MOD_MICRO;
MOD_NANO : constant := bits.time.MOD_NANO;
MOD_OFFSET : constant := bits.time.MOD_OFFSET;
MOD_STATUS : constant := bits.time.MOD_STATUS;
MOD_TAI : constant := bits.time.MOD_TAI;
MOD_TIMECONST : constant := bits.time.MOD_TIMECONST;
STA_CLK : constant := bits.time.STA_CLK;
STA_CLOCKERR : constant := bits.time.STA_CLOCKERR;
STA_DEL : constant := bits.time.STA_DEL;
STA_FLL : constant := bits.time.STA_FLL;
STA_FREQHOLD : constant := bits.time.STA_FREQHOLD;
STA_INS : constant := bits.time.STA_INS;
STA_MODE : constant := bits.time.STA_MODE;
STA_NANO : constant := bits.time.STA_NANO;
STA_PLL : constant := bits.time.STA_PLL;
STA_PPSERROR : constant := bits.time.STA_PPSERROR;
STA_PPSFREQ : constant := bits.time.STA_PPSFREQ;
STA_PPSJITTER : constant := bits.time.STA_PPSJITTER;
STA_PPSSIGNAL : constant := bits.time.STA_PPSSIGNAL;
STA_PPSTIME : constant := bits.time.STA_PPSTIME;
STA_PPSWANDER : constant := bits.time.STA_PPSWANDER;
STA_RONLY : constant := bits.time.STA_RONLY;
STA_UNSYNC : constant := bits.time.STA_UNSYNC;
BITS_TIMEX_H : constant := bits.time.BITS_TIMEX_H;
function clock_adjtime (clock_id : bits.types.qqclockid_t;
utx : access bits.time.struct_timex) return signed_int
renames bits.time.clock_adjtime;
CLOCKS_PER_SEC : constant := bits.time.CLOCKS_PER_SEC;
CLOCK_BOOTTIME : constant := bits.time.CLOCK_BOOTTIME;
CLOCK_BOOTTIME_ALARM : constant := bits.time.CLOCK_BOOTTIME_ALARM;
CLOCK_MONOTONIC : constant := bits.time.CLOCK_MONOTONIC;
CLOCK_MONOTONIC_COARSE : constant := bits.time.CLOCK_MONOTONIC_COARSE;
CLOCK_MONOTONIC_RAW : constant := bits.time.CLOCK_MONOTONIC_RAW;
CLOCK_PROCESS_CPUTIME_ID : constant := bits.time.CLOCK_PROCESS_CPUTIME_ID;
CLOCK_REALTIME : constant := bits.time.CLOCK_REALTIME;
CLOCK_REALTIME_ALARM : constant := bits.time.CLOCK_REALTIME_ALARM;
CLOCK_REALTIME_COARSE : constant := bits.time.CLOCK_REALTIME_COARSE;
CLOCK_TAI : constant := bits.time.CLOCK_TAI;
CLOCK_THREAD_CPUTIME_ID : constant := bits.time.CLOCK_THREAD_CPUTIME_ID;
TIMER_ABSTIME : constant := bits.time.TIMER_ABSTIME;
BITS_TIME_H : constant := bits.time.BITS_TIME_H;
qSTRUCT_TIMEVAL : constant := bits.time.qSTRUCT_TIMEVAL;
type struct_timezone;
type struct_timezone is record
tz_minuteswest : aliased signed_int;
tz_dsttime : aliased signed_int;
end record;
pragma Convention (C_Pass_By_Copy, struct_timezone);
type struct_timezone_ptr is access all struct_timezone;
for struct_timezone_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timezone_ptr);
pragma Convention (C, struct_timezone_ptr);
type struct_timezone_const_ptr is access constant struct_timezone;
for struct_timezone_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timezone_const_ptr);
pragma Convention (C, struct_timezone_const_ptr);
subtype timezone_ptr_t is struct_timezone_ptr;
function gettimeofday (tv : access bits.time.struct_timeval;
tz : access struct_timezone) return signed_int;
pragma Import (C, gettimeofday, "gettimeofday");
function settimeofday (tv : access constant bits.time.struct_timeval;
tz : access constant struct_timezone) return signed_int;
pragma Import (C, settimeofday, "settimeofday");
function adjtime (A_delta : access constant bits.time.struct_timeval;
olddelta : access bits.time.struct_timeval) return signed_int;
pragma Import (C, adjtime, "adjtime");
type enum_itimer_which;
type enum_itimer_which is (ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF);
for enum_itimer_which use (ITIMER_REAL => 0, ITIMER_VIRTUAL => 1,
ITIMER_PROF => 2);
pragma Convention (C, enum_itimer_which);
type struct_itimerval;
type struct_itimerval is record
it_interval : aliased bits.time.struct_timeval;
it_value : aliased bits.time.struct_timeval;
end record;
pragma Convention (C_Pass_By_Copy, struct_itimerval);
type struct_itimerval_ptr is access all struct_itimerval;
for struct_itimerval_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_itimerval_ptr);
pragma Convention (C, struct_itimerval_ptr);
type struct_itimerval_const_ptr is access constant struct_itimerval;
for struct_itimerval_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_itimerval_const_ptr);
pragma Convention (C, struct_itimerval_const_ptr);
subtype itimer_which_t is enum_itimer_which;
function getitimer (which : itimer_which_t;
value : access struct_itimerval) return signed_int;
pragma Import (C, getitimer, "getitimer");
function setitimer (which : itimer_which_t;
A_new : access constant struct_itimerval;
old : access struct_itimerval) return signed_int;
pragma Import (C, setitimer, "setitimer");
function utimes (file : access constant char;
tvp : access bits.time.struct_timeval) return signed_int;
pragma Import (C, utimes, "utimes");
function lutimes (file : access constant char;
tvp : access bits.time.struct_timeval) return signed_int;
pragma Import (C, lutimes, "lutimes");
function futimes (fd : signed_int; tvp : access bits.time.struct_timeval)
return signed_int;
pragma Import (C, futimes, "futimes");
function futimesat (fd : signed_int; file : access constant char;
tvp : access bits.time.struct_timeval) return signed_int;
pragma Import (C, futimesat, "futimesat");
-- ITIMER_PROF (repeating itself)
-- ITIMER_REAL (repeating itself)
-- ITIMER_VIRTUAL (repeating itself)
-- TIMESPEC_TO_TIMEVAL (uninterpretable)
-- TIMEVAL_TO_TIMESPEC (uninterpretable)
SYS_TIME_H : constant := 1;
-- __need_time_t (empty)
-- timeradd (uninterpretable)
-- timerclear (uninterpretable)
-- timercmp (unparsible)
-- timerisset (uninterpretable)
-- timersub (uninterpretable)
end C.sys.time;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.sys.ttydefaults is
pragma Preelaborate;
CBRK : constant char := char'Val (0);
CDISCARD : constant := 15;
CDSUSP : constant := 25;
CEOF : constant := 4;
CEOL : constant char := char'Val (0);
CEOT : constant := 4;
CERASE : constant := 127;
CFLUSH : constant := 15;
CINTR : constant := 3;
CKILL : constant := 21;
CLNEXT : constant := 22;
CMIN : constant := 1;
CQUIT : constant := 28;
CREPRINT : constant := 18;
CRPRNT : constant := 18;
CSTART : constant := 17;
CSTATUS : constant char := char'Val (0);
CSTOP : constant := 19;
CSUSP : constant := 26;
CTIME : constant := 0;
-- CTRL (function macro)
CWERASE : constant := 23;
TTYDEF_CFLAG : constant := 1440;
TTYDEF_IFLAG : constant := 11554;
TTYDEF_LFLAG : constant := 35355;
TTYDEF_OFLAG : constant := 6149;
TTYDEF_SPEED : constant := 13;
-- _SYS_TTYDEFAULTS_H_ (empty)
end C.sys.ttydefaults;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
package C.sys.types is
pragma Preelaborate;
subtype qqu_char is bits.types.u_char;
subtype qqu_short is bits.types.u_short;
subtype qqu_int is bits.types.u_int;
subtype qqu_long is bits.types.u_long;
subtype int8_t is bits.types.int8_t;
subtype uint8_t is bits.types.uint8_t;
subtype int16_t is bits.types.int16_t;
subtype uint16_t is bits.types.uint16_t;
subtype int32_t is bits.types.int32_t;
subtype uint32_t is bits.types.uint32_t;
subtype int64_t is bits.types.int64_t;
subtype uint64_t is bits.types.uint64_t;
subtype qqquad_t is bits.types.quad_t;
subtype qqu_quad_t is bits.types.u_quad_t;
subtype qqdev_t is bits.types.dev_t;
subtype qquid_t is bits.types.uid_t;
subtype qqgid_t is bits.types.gid_t;
subtype qqino_t is bits.types.ino_t;
subtype qqino64_t is bits.types.ino64_t;
subtype qqmode_t is bits.types.mode_t;
subtype qqnlink_t is bits.types.nlink_t;
subtype qqoff_t is bits.types.off_t;
subtype qqoff64_t is bits.types.off64_t;
subtype qqpid_t is bits.types.pid_t;
subtype qqfsid_t is bits.types.fsid_t;
subtype clock_t is bits.types.qqclock_t;
subtype rlim_t is bits.types.rlim_t;
subtype rlim64_t is bits.types.rlim64_t;
subtype qqid_t is bits.types.id_t;
subtype time_t is bits.types.qqtime_t;
subtype qquseconds_t is bits.types.useconds_t;
subtype qqsuseconds_t is bits.types.suseconds_t;
subtype qqdaddr_t is bits.types.daddr_t;
subtype qqkey_t is bits.types.key_t;
subtype clockid_t is bits.types.qqclockid_t;
subtype timer_t is bits.types.qqtimer_t;
subtype qqblksize_t is bits.types.blksize_t;
subtype qqblkcnt_t is bits.types.blkcnt_t;
subtype qqblkcnt64_t is bits.types.blkcnt64_t;
subtype qqfsblkcnt_t is bits.types.fsblkcnt_t;
subtype qqfsblkcnt64_t is bits.types.fsblkcnt64_t;
subtype qqfsfilcnt_t is bits.types.fsfilcnt_t;
subtype qqfsfilcnt64_t is bits.types.fsfilcnt64_t;
subtype fsword_t is bits.types.fsword_t;
subtype qqssize_t is bits.types.ssize_t;
subtype syscall_slong_t is bits.types.syscall_slong_t;
subtype syscall_ulong_t is bits.types.syscall_ulong_t;
subtype qqloff_t is bits.types.loff_t;
subtype qaddr_t is bits.types.qaddr_t;
subtype qqcaddr_t is bits.types.caddr_t;
subtype intptr_t is bits.types.intptr_t;
subtype socklen_t is bits.types.socklen_t;
BITS_TYPES_H : constant := bits.types.BITS_TYPES_H;
subtype S16_TYPE is signed_short;
subtype S32_TYPE is signed_int;
subtype S64_TYPE is bits.types.quad_t;
subtype SLONG32_TYPE is signed_long;
subtype SLONGWORD_TYPE is signed_long;
subtype SQUAD_TYPE is bits.types.quad_t;
subtype SWORD_TYPE is signed_int;
subtype U16_TYPE is unsigned_short;
subtype U32_TYPE is unsigned_int;
subtype U64_TYPE is bits.types.u_quad_t;
subtype ULONG32_TYPE is unsigned_long;
subtype ULONGWORD_TYPE is unsigned_long;
subtype UQUAD_TYPE is bits.types.u_quad_t;
subtype UWORD_TYPE is unsigned_int;
subtype u_char is bits.types.u_char;
subtype u_short is bits.types.u_short;
subtype u_int is bits.types.u_int;
subtype u_long is bits.types.u_long;
subtype quad_t is bits.types.quad_t;
subtype u_quad_t is bits.types.u_quad_t;
subtype fsid_t is bits.types.fsid_t;
subtype loff_t is bits.types.loff_t;
subtype ino_t is bits.types.ino64_t;
subtype ino64_t is bits.types.ino64_t;
subtype dev_t is bits.types.dev_t;
subtype gid_t is bits.types.gid_t;
subtype mode_t is bits.types.mode_t;
subtype nlink_t is bits.types.nlink_t;
subtype uid_t is bits.types.uid_t;
subtype off_t is bits.types.off64_t;
subtype off64_t is bits.types.off64_t;
subtype pid_t is bits.types.pid_t;
subtype pid_t_ptr is bits.types.pid_t_ptr;
subtype id_t is bits.types.id_t;
subtype ssize_t is bits.types.ssize_t;
subtype daddr_t is bits.types.daddr_t;
subtype caddr_t is bits.types.caddr_t;
subtype key_t is bits.types.key_t;
-- #include <time.h>
subtype useconds_t is bits.types.useconds_t;
subtype suseconds_t is bits.types.suseconds_t;
subtype ulong is unsigned_long;
subtype ushort is unsigned_short;
subtype uint is unsigned_int;
subtype u_int8_t is unsigned_char;
subtype u_int16_t is unsigned_short;
subtype u_int32_t is unsigned_int;
subtype u_int64_t is unsigned_long_long;
subtype register_t is signed_int;
-- #include <bits/byteswap.h>
-- #include <sys/sysmacros.h>
subtype blksize_t is bits.types.blksize_t;
subtype blkcnt_t is bits.types.blkcnt64_t;
subtype fsblkcnt_t is bits.types.fsblkcnt64_t;
subtype fsfilcnt_t is bits.types.fsfilcnt64_t;
subtype blkcnt64_t is bits.types.blkcnt64_t;
subtype fsblkcnt64_t is bits.types.fsblkcnt64_t;
subtype fsfilcnt64_t is bits.types.fsfilcnt64_t;
SYS_TYPES_H : constant := 1;
qqBIT_TYPES_DEFINEDqq : constant := 1;
-- __blkcnt_t_defined (empty)
-- __blksize_t_defined (empty)
-- __daddr_t_defined (empty)
-- __dev_t_defined (empty)
-- __fsblkcnt_t_defined (empty)
-- __fsfilcnt_t_defined (empty)
-- __gid_t_defined (empty)
-- __id_t_defined (empty)
-- __ino64_t_defined (empty)
-- __ino_t_defined (empty)
-- __intN_t (has # or ##)
-- __key_t_defined (empty)
-- __mode_t_defined (empty)
-- __need_clockid_t (empty)
-- __nlink_t_defined (empty)
-- __off64_t_defined (empty)
-- __off_t_defined (empty)
-- __pid_t_defined (empty)
-- __ssize_t_defined (empty)
-- __suseconds_t_defined (empty)
-- __u_char_defined (empty)
-- __u_intN_t (has # or ##)
-- __uid_t_defined (empty)
-- __useconds_t_defined (empty)
end C.sys.types;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with C.bits.sigset;
with C.bits.sigstack;
package C.sys.ucontext is
pragma Preelaborate;
subtype greg_t is signed_int;
subtype greg_t_array is signed_int_array;
subtype gregset_t is greg_t_array (0 .. 18);
type enum_77d72e4b is (REG_GS, REG_FS, REG_ES, REG_DS, REG_EDI, REG_ESI,
REG_EBP, REG_ESP, REG_EBX, REG_EDX, REG_ECX, REG_EAX, REG_TRAPNO,
REG_ERR, REG_EIP, REG_CS, REG_EFL, REG_UESP, REG_SS);
for enum_77d72e4b use (REG_GS => 0, REG_FS => 1, REG_ES => 2, REG_DS => 3,
REG_EDI => 4, REG_ESI => 5, REG_EBP => 6, REG_ESP => 7, REG_EBX => 8,
REG_EDX => 9, REG_ECX => 10, REG_EAX => 11, REG_TRAPNO => 12,
REG_ERR => 13, REG_EIP => 14, REG_CS => 15, REG_EFL => 16,
REG_UESP => 17, REG_SS => 18);
pragma Convention (C, enum_77d72e4b);
for enum_77d72e4b'Size use signed_int'Size;
function Cast is new Ada.Unchecked_Conversion (enum_77d72e4b, signed_int);
type struct_libc_fpreg;
type struct_libc_fpreg is record
significand : aliased unsigned_short_array (0 .. 3);
exponent : aliased unsigned_short;
end record;
pragma Convention (C_Pass_By_Copy, struct_libc_fpreg);
type struct_libc_fpreg_array is array (size_t range <>) of
aliased struct_libc_fpreg;
pragma Convention (C, struct_libc_fpreg_array);
type struct_libc_fpstate;
type struct_libc_fpstate is record
cw : aliased unsigned_long;
sw : aliased unsigned_long;
tag : aliased unsigned_long;
ipoff : aliased unsigned_long;
cssel : aliased unsigned_long;
dataoff : aliased unsigned_long;
datasel : aliased unsigned_long;
st : aliased struct_libc_fpreg_array (0 .. 7);
status : aliased unsigned_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_libc_fpstate);
type struct_libc_fpstate_ptr is access all struct_libc_fpstate;
for struct_libc_fpstate_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_libc_fpstate_ptr);
pragma Convention (C, struct_libc_fpstate_ptr);
subtype fpregset_t is struct_libc_fpstate_ptr;
type struct_d51312a5 is record
gregs : aliased gregset_t;
fpregs : aliased fpregset_t;
oldmask : aliased unsigned_long;
cr2 : aliased unsigned_long;
end record;
pragma Convention (C_Pass_By_Copy, struct_d51312a5);
subtype mcontext_t is struct_d51312a5;
type struct_ucontext;
type struct_ucontext_ptr is access all struct_ucontext;
for struct_ucontext_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_ucontext_ptr);
pragma Convention (C, struct_ucontext_ptr);
type struct_ucontext is record
uc_flags : aliased unsigned_long;
uc_link : aliased struct_ucontext_ptr;
uc_stack : aliased bits.sigstack.stack_t;
uc_mcontext : aliased mcontext_t;
uc_sigmask : aliased bits.sigset.sigset_t;
fpregs_mem : aliased struct_libc_fpstate;
end record;
pragma Convention (C_Pass_By_Copy, struct_ucontext);
subtype ucontext_t is struct_ucontext;
NGREG : constant := 19;
-- REG_CS (repeating itself)
-- REG_DS (repeating itself)
-- REG_EAX (repeating itself)
-- REG_EBP (repeating itself)
-- REG_EBX (repeating itself)
-- REG_ECX (repeating itself)
-- REG_EDI (repeating itself)
-- REG_EDX (repeating itself)
-- REG_EFL (repeating itself)
-- REG_EIP (repeating itself)
-- REG_ERR (repeating itself)
-- REG_ES (repeating itself)
-- REG_ESI (repeating itself)
-- REG_ESP (repeating itself)
-- REG_FS (repeating itself)
-- REG_GS (repeating itself)
-- REG_SS (repeating itself)
-- REG_TRAPNO (repeating itself)
-- REG_UESP (repeating itself)
SYS_UCONTEXT_H : constant := 1;
end C.sys.ucontext;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.types;
with C.bits.uio;
with C.sys.types;
package C.sys.uio is
pragma Preelaborate;
subtype struct_iovec is bits.uio.struct_iovec;
function process_vm_readv (pid : types.pid_t;
lvec : access constant bits.uio.struct_iovec; liovcnt : unsigned_long;
rvec : access constant bits.uio.struct_iovec; riovcnt : unsigned_long;
flags : unsigned_long) return types.ssize_t
renames bits.uio.process_vm_readv;
function process_vm_writev (pid : types.pid_t;
lvec : access constant bits.uio.struct_iovec; liovcnt : unsigned_long;
rvec : access constant bits.uio.struct_iovec; riovcnt : unsigned_long;
flags : unsigned_long) return types.ssize_t
renames bits.uio.process_vm_writev;
UIO_MAXIOV : constant := bits.uio.UIO_MAXIOV;
BITS_UIO_H : constant := bits.uio.BITS_UIO_H;
BITS_UIO_H_FOR_SYS_UIO_H : constant := bits.uio.BITS_UIO_H_FOR_SYS_UIO_H;
function readv (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int)
return types.ssize_t;
pragma Import (C, readv, "readv");
function writev (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int)
return types.ssize_t;
pragma Import (C, writev, "writev");
function preadv (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int;
offset : bits.types.off64_t) return types.ssize_t;
pragma Import (C, preadv, "preadv64");
function pwritev (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int;
offset : bits.types.off64_t) return types.ssize_t;
pragma Import (C, pwritev, "pwritev64");
function preadv64 (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int;
offset : bits.types.off64_t) return types.ssize_t;
pragma Import (C, preadv64, "preadv64");
function pwritev64 (fd : signed_int;
iovec : access constant bits.uio.struct_iovec; count : signed_int;
offset : bits.types.off64_t) return types.ssize_t;
pragma Import (C, pwritev64, "pwritev64");
SYS_UIO_H : constant := 1;
end C.sys.uio;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.resource;
with C.bits.siginfo;
with C.bits.types;
with C.bits.waitflags;
package C.sys.wait is
pragma Preelaborate;
function P_ALL return bits.waitflags.enum_d9eff52b
renames bits.waitflags.P_ALL;
function P_PID return bits.waitflags.enum_d9eff52b
renames bits.waitflags.P_PID;
function P_PGID return bits.waitflags.enum_d9eff52b
renames bits.waitflags.P_PGID;
subtype idtype_t is bits.waitflags.idtype_t;
WCONTINUED : constant := bits.waitflags.WCONTINUED;
WEXITED : constant := bits.waitflags.WEXITED;
WNOHANG : constant := bits.waitflags.WNOHANG;
WNOWAIT : constant := bits.waitflags.WNOWAIT;
WSTOPPED : constant := bits.waitflags.WSTOPPED;
WUNTRACED : constant := bits.waitflags.WUNTRACED;
ENUM_IDTYPE_T : constant := bits.waitflags.ENUM_IDTYPE_T;
WALL : constant := bits.waitflags.WALL;
WCLONE : constant := bits.waitflags.WCLONE;
WNOTHREAD : constant := bits.waitflags.WNOTHREAD;
function wait (stat_loc : access signed_int) return bits.types.pid_t;
pragma Import (C, wait, "wait");
function waitpid (pid : bits.types.pid_t; stat_loc : access signed_int;
options : signed_int) return bits.types.pid_t;
pragma Import (C, waitpid, "waitpid");
function waitid (idtype : bits.waitflags.idtype_t; id : bits.types.id_t;
infop : access bits.siginfo.siginfo_t; options : signed_int)
return signed_int;
pragma Import (C, waitid, "waitid");
function wait3 (stat_loc : access signed_int; options : signed_int;
usage : access bits.resource.struct_rusage) return bits.types.pid_t;
pragma Import (C, wait3, "wait3");
function wait4 (pid : bits.types.pid_t; stat_loc : access signed_int;
options : signed_int; usage : access bits.resource.struct_rusage)
return bits.types.pid_t;
pragma Import (C, wait4, "wait4");
WAIT_ANY : constant := -1;
WAIT_MYPGRP : constant := 0;
-- WCOREDUMP (unparsible)
WCOREFLAG : constant := 128;
-- W_EXITCODE (function macro)
-- W_STOPCODE (function macro)
SYS_WAIT_H : constant := 1;
-- __need_siginfo_t (empty)
end C.sys.wait;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.sys is
pragma Preelaborate;
end C.sys;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.termios;
with C.bits.types;
package C.termios is
pragma Preelaborate;
subtype cc_t is bits.termios.cc_t;
subtype speed_t is bits.termios.speed_t;
subtype tcflag_t is bits.termios.tcflag_t;
subtype struct_termios is bits.termios.struct_termios;
B0 : constant := bits.termios.B0;
B1000000 : constant := bits.termios.B1000000;
B110 : constant := bits.termios.B110;
B115200 : constant := bits.termios.B115200;
B1152000 : constant := bits.termios.B1152000;
B1200 : constant := bits.termios.B1200;
B134 : constant := bits.termios.B134;
B150 : constant := bits.termios.B150;
B1500000 : constant := bits.termios.B1500000;
B1800 : constant := bits.termios.B1800;
B19200 : constant := bits.termios.B19200;
B200 : constant := bits.termios.B200;
B2000000 : constant := bits.termios.B2000000;
B230400 : constant := bits.termios.B230400;
B2400 : constant := bits.termios.B2400;
B2500000 : constant := bits.termios.B2500000;
B300 : constant := bits.termios.B300;
B3000000 : constant := bits.termios.B3000000;
B3500000 : constant := bits.termios.B3500000;
B38400 : constant := bits.termios.B38400;
B4000000 : constant := bits.termios.B4000000;
B460800 : constant := bits.termios.B460800;
B4800 : constant := bits.termios.B4800;
B50 : constant := bits.termios.B50;
B500000 : constant := bits.termios.B500000;
B57600 : constant := bits.termios.B57600;
B576000 : constant := bits.termios.B576000;
B600 : constant := bits.termios.B600;
B75 : constant := bits.termios.B75;
B921600 : constant := bits.termios.B921600;
B9600 : constant := bits.termios.B9600;
BRKINT : constant := bits.termios.BRKINT;
BS0 : constant := bits.termios.BS0;
BS1 : constant := bits.termios.BS1;
BSDLY : constant := bits.termios.BSDLY;
CBAUD : constant := bits.termios.CBAUD;
CBAUDEX : constant := bits.termios.CBAUDEX;
CIBAUD : constant := bits.termios.CIBAUD;
CLOCAL : constant := bits.termios.CLOCAL;
CMSPAR : constant := bits.termios.CMSPAR;
CR0 : constant := bits.termios.CR0;
CR1 : constant := bits.termios.CR1;
CR2 : constant := bits.termios.CR2;
CR3 : constant := bits.termios.CR3;
CRDLY : constant := bits.termios.CRDLY;
CREAD : constant := bits.termios.CREAD;
CRTSCTS : constant := bits.termios.CRTSCTS;
CS5 : constant := bits.termios.CS5;
CS6 : constant := bits.termios.CS6;
CS7 : constant := bits.termios.CS7;
CS8 : constant := bits.termios.CS8;
CSIZE : constant := bits.termios.CSIZE;
CSTOPB : constant := bits.termios.CSTOPB;
ECHO : constant := bits.termios.ECHO;
ECHOCTL : constant := bits.termios.ECHOCTL;
ECHOE : constant := bits.termios.ECHOE;
ECHOK : constant := bits.termios.ECHOK;
ECHOKE : constant := bits.termios.ECHOKE;
ECHONL : constant := bits.termios.ECHONL;
ECHOPRT : constant := bits.termios.ECHOPRT;
EXTA : constant := bits.termios.EXTA;
EXTB : constant := bits.termios.EXTB;
EXTPROC : constant := bits.termios.EXTPROC;
FF0 : constant := bits.termios.FF0;
FF1 : constant := bits.termios.FF1;
FFDLY : constant := bits.termios.FFDLY;
FLUSHO : constant := bits.termios.FLUSHO;
HUPCL : constant := bits.termios.HUPCL;
ICANON : constant := bits.termios.ICANON;
ICRNL : constant := bits.termios.ICRNL;
IEXTEN : constant := bits.termios.IEXTEN;
IGNBRK : constant := bits.termios.IGNBRK;
IGNCR : constant := bits.termios.IGNCR;
IGNPAR : constant := bits.termios.IGNPAR;
IMAXBEL : constant := bits.termios.IMAXBEL;
INLCR : constant := bits.termios.INLCR;
INPCK : constant := bits.termios.INPCK;
ISIG : constant := bits.termios.ISIG;
ISTRIP : constant := bits.termios.ISTRIP;
IUCLC : constant := bits.termios.IUCLC;
IUTF8 : constant := bits.termios.IUTF8;
IXANY : constant := bits.termios.IXANY;
IXOFF : constant := bits.termios.IXOFF;
IXON : constant := bits.termios.IXON;
NCCS : constant := bits.termios.NCCS;
NL0 : constant := bits.termios.NL0;
NL1 : constant := bits.termios.NL1;
NLDLY : constant := bits.termios.NLDLY;
NOFLSH : constant := bits.termios.NOFLSH;
OCRNL : constant := bits.termios.OCRNL;
OFDEL : constant := bits.termios.OFDEL;
OFILL : constant := bits.termios.OFILL;
OLCUC : constant := bits.termios.OLCUC;
ONLCR : constant := bits.termios.ONLCR;
ONLRET : constant := bits.termios.ONLRET;
ONOCR : constant := bits.termios.ONOCR;
OPOST : constant := bits.termios.OPOST;
PARENB : constant := bits.termios.PARENB;
PARMRK : constant := bits.termios.PARMRK;
PARODD : constant := bits.termios.PARODD;
PENDIN : constant := bits.termios.PENDIN;
TAB0 : constant := bits.termios.TAB0;
TAB1 : constant := bits.termios.TAB1;
TAB2 : constant := bits.termios.TAB2;
TAB3 : constant := bits.termios.TAB3;
TABDLY : constant := bits.termios.TABDLY;
TCIFLUSH : constant := bits.termios.TCIFLUSH;
TCIOFF : constant := bits.termios.TCIOFF;
TCIOFLUSH : constant := bits.termios.TCIOFLUSH;
TCION : constant := bits.termios.TCION;
TCOFLUSH : constant := bits.termios.TCOFLUSH;
TCOOFF : constant := bits.termios.TCOOFF;
TCOON : constant := bits.termios.TCOON;
TCSADRAIN : constant := bits.termios.TCSADRAIN;
TCSAFLUSH : constant := bits.termios.TCSAFLUSH;
TCSANOW : constant := bits.termios.TCSANOW;
TOSTOP : constant := bits.termios.TOSTOP;
VDISCARD : constant := bits.termios.VDISCARD;
VEOF : constant := bits.termios.VEOF;
VEOL : constant := bits.termios.VEOL;
VEOL2 : constant := bits.termios.VEOL2;
VERASE : constant := bits.termios.VERASE;
VINTR : constant := bits.termios.VINTR;
VKILL : constant := bits.termios.VKILL;
VLNEXT : constant := bits.termios.VLNEXT;
VMIN : constant := bits.termios.VMIN;
VQUIT : constant := bits.termios.VQUIT;
VREPRINT : constant := bits.termios.VREPRINT;
VSTART : constant := bits.termios.VSTART;
VSTOP : constant := bits.termios.VSTOP;
VSUSP : constant := bits.termios.VSUSP;
VSWTC : constant := bits.termios.VSWTC;
VT0 : constant := bits.termios.VT0;
VT1 : constant := bits.termios.VT1;
VTDLY : constant := bits.termios.VTDLY;
VTIME : constant := bits.termios.VTIME;
VWERASE : constant := bits.termios.VWERASE;
XCASE : constant := bits.termios.XCASE;
XTABS : constant := bits.termios.XTABS;
HAVE_STRUCT_TERMIOS_C_ISPEED : constant :=
bits.termios.HAVE_STRUCT_TERMIOS_C_ISPEED;
HAVE_STRUCT_TERMIOS_C_OSPEED : constant :=
bits.termios.HAVE_STRUCT_TERMIOS_C_OSPEED;
-- IOT_termios renames bits.termios.IOT_termios (unparsible)
MAX_BAUD : constant := bits.termios.MAX_BAUD;
function cfgetospeed (
termios_p : access constant bits.termios.struct_termios)
return bits.termios.speed_t;
pragma Import (C, cfgetospeed, "cfgetospeed");
function cfgetispeed (
termios_p : access constant bits.termios.struct_termios)
return bits.termios.speed_t;
pragma Import (C, cfgetispeed, "cfgetispeed");
function cfsetospeed (termios_p : access bits.termios.struct_termios;
speed : bits.termios.speed_t) return signed_int;
pragma Import (C, cfsetospeed, "cfsetospeed");
function cfsetispeed (termios_p : access bits.termios.struct_termios;
speed : bits.termios.speed_t) return signed_int;
pragma Import (C, cfsetispeed, "cfsetispeed");
function cfsetspeed (termios_p : access bits.termios.struct_termios;
speed : bits.termios.speed_t) return signed_int;
pragma Import (C, cfsetspeed, "cfsetspeed");
function tcgetattr (fd : signed_int;
termios_p : access bits.termios.struct_termios) return signed_int;
pragma Import (C, tcgetattr, "tcgetattr");
function tcsetattr (fd : signed_int; optional_actions : signed_int;
termios_p : access constant bits.termios.struct_termios)
return signed_int;
pragma Import (C, tcsetattr, "tcsetattr");
procedure cfmakeraw (termios_p : access bits.termios.struct_termios);
pragma Import (C, cfmakeraw, "cfmakeraw");
function tcsendbreak (fd : signed_int; duration : signed_int)
return signed_int;
pragma Import (C, tcsendbreak, "tcsendbreak");
function tcdrain (fd : signed_int) return signed_int;
pragma Import (C, tcdrain, "tcdrain");
function tcflush (fd : signed_int; queue_selector : signed_int)
return signed_int;
pragma Import (C, tcflush, "tcflush");
function tcflow (fd : signed_int; action : signed_int) return signed_int;
pragma Import (C, tcflow, "tcflow");
function tcgetsid (fd : signed_int) return bits.types.pid_t;
pragma Import (C, tcgetsid, "tcgetsid");
-- CCEQ (function macro)
TERMIOS_H : constant := 1;
end C.termios;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.siginfo;
with C.bits.time;
with C.bits.types;
with C.stddef;
with C.sys.types;
with C.xlocale;
package C.time is
pragma Preelaborate;
subtype struct_timeval is bits.time.struct_timeval;
subtype struct_timex is bits.time.struct_timex;
ADJ_ESTERROR : constant := bits.time.ADJ_ESTERROR;
ADJ_FREQUENCY : constant := bits.time.ADJ_FREQUENCY;
ADJ_MAXERROR : constant := bits.time.ADJ_MAXERROR;
ADJ_MICRO : constant := bits.time.ADJ_MICRO;
ADJ_NANO : constant := bits.time.ADJ_NANO;
ADJ_OFFSET : constant := bits.time.ADJ_OFFSET;
ADJ_OFFSET_SINGLESHOT : constant := bits.time.ADJ_OFFSET_SINGLESHOT;
ADJ_OFFSET_SS_READ : constant := bits.time.ADJ_OFFSET_SS_READ;
ADJ_SETOFFSET : constant := bits.time.ADJ_SETOFFSET;
ADJ_STATUS : constant := bits.time.ADJ_STATUS;
ADJ_TAI : constant := bits.time.ADJ_TAI;
ADJ_TICK : constant := bits.time.ADJ_TICK;
ADJ_TIMECONST : constant := bits.time.ADJ_TIMECONST;
MOD_CLKA : constant := bits.time.MOD_CLKA;
MOD_CLKB : constant := bits.time.MOD_CLKB;
MOD_ESTERROR : constant := bits.time.MOD_ESTERROR;
MOD_FREQUENCY : constant := bits.time.MOD_FREQUENCY;
MOD_MAXERROR : constant := bits.time.MOD_MAXERROR;
MOD_MICRO : constant := bits.time.MOD_MICRO;
MOD_NANO : constant := bits.time.MOD_NANO;
MOD_OFFSET : constant := bits.time.MOD_OFFSET;
MOD_STATUS : constant := bits.time.MOD_STATUS;
MOD_TAI : constant := bits.time.MOD_TAI;
MOD_TIMECONST : constant := bits.time.MOD_TIMECONST;
STA_CLK : constant := bits.time.STA_CLK;
STA_CLOCKERR : constant := bits.time.STA_CLOCKERR;
STA_DEL : constant := bits.time.STA_DEL;
STA_FLL : constant := bits.time.STA_FLL;
STA_FREQHOLD : constant := bits.time.STA_FREQHOLD;
STA_INS : constant := bits.time.STA_INS;
STA_MODE : constant := bits.time.STA_MODE;
STA_NANO : constant := bits.time.STA_NANO;
STA_PLL : constant := bits.time.STA_PLL;
STA_PPSERROR : constant := bits.time.STA_PPSERROR;
STA_PPSFREQ : constant := bits.time.STA_PPSFREQ;
STA_PPSJITTER : constant := bits.time.STA_PPSJITTER;
STA_PPSSIGNAL : constant := bits.time.STA_PPSSIGNAL;
STA_PPSTIME : constant := bits.time.STA_PPSTIME;
STA_PPSWANDER : constant := bits.time.STA_PPSWANDER;
STA_RONLY : constant := bits.time.STA_RONLY;
STA_UNSYNC : constant := bits.time.STA_UNSYNC;
BITS_TIMEX_H : constant := bits.time.BITS_TIMEX_H;
function clock_adjtime (clock_id : bits.types.qqclockid_t;
utx : access bits.time.struct_timex) return signed_int
renames bits.time.clock_adjtime;
CLOCKS_PER_SEC : constant := bits.time.CLOCKS_PER_SEC;
CLOCK_BOOTTIME : constant := bits.time.CLOCK_BOOTTIME;
CLOCK_BOOTTIME_ALARM : constant := bits.time.CLOCK_BOOTTIME_ALARM;
CLOCK_MONOTONIC : constant := bits.time.CLOCK_MONOTONIC;
CLOCK_MONOTONIC_COARSE : constant := bits.time.CLOCK_MONOTONIC_COARSE;
CLOCK_MONOTONIC_RAW : constant := bits.time.CLOCK_MONOTONIC_RAW;
CLOCK_PROCESS_CPUTIME_ID : constant := bits.time.CLOCK_PROCESS_CPUTIME_ID;
CLOCK_REALTIME : constant := bits.time.CLOCK_REALTIME;
CLOCK_REALTIME_ALARM : constant := bits.time.CLOCK_REALTIME_ALARM;
CLOCK_REALTIME_COARSE : constant := bits.time.CLOCK_REALTIME_COARSE;
CLOCK_TAI : constant := bits.time.CLOCK_TAI;
CLOCK_THREAD_CPUTIME_ID : constant := bits.time.CLOCK_THREAD_CPUTIME_ID;
TIMER_ABSTIME : constant := bits.time.TIMER_ABSTIME;
BITS_TIME_H : constant := bits.time.BITS_TIME_H;
qSTRUCT_TIMEVAL : constant := bits.time.qSTRUCT_TIMEVAL;
subtype clock_t is bits.types.qqclock_t;
subtype time_t is bits.types.qqtime_t;
subtype time_t_ptr is bits.types.qqtime_t_ptr;
subtype time_t_const_ptr is bits.types.qqtime_t_const_ptr;
subtype clockid_t is bits.types.qqclockid_t;
subtype clockid_t_ptr is bits.types.qqclockid_t_ptr;
subtype timer_t is bits.types.qqtimer_t;
subtype timer_t_ptr is bits.types.qqtimer_t_ptr;
-- #include <bits/byteswap.h>
-- #include <sys/sysmacros.h>
-- #include <sys/types.h>
-- #include <bits/pthreadtypes.h>
-- #include <bits/sigset.h>
-- #include <signal.h>
type struct_timespec;
type struct_timespec is record
tv_sec : aliased bits.types.qqtime_t;
tv_nsec : aliased bits.types.syscall_slong_t;
end record;
pragma Convention (C_Pass_By_Copy, struct_timespec);
type struct_timespec_const_ptr is access constant struct_timespec;
for struct_timespec_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timespec_const_ptr);
pragma Convention (C, struct_timespec_const_ptr);
type struct_timespec_ptr is access all struct_timespec;
for struct_timespec_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_timespec_ptr);
pragma Convention (C, struct_timespec_ptr);
type struct_timespec_array is array (size_t range <>) of
aliased struct_timespec;
pragma Convention (C, struct_timespec_array);
subtype struct_timespec_array2 is struct_timespec_array (0 .. 1);
-- #include <bits/siginfo.h>
-- #include <bits/sigaction.h>
-- #include <bits/sigcontext.h>
-- #include <bits/sigstack.h>
-- #include <bits/sigthread.h>
-- #include <signal.h>
-- #include <sys/ucontext.h>
-- #include <bits/timex.h>
-- #include <bits/time.h>
type struct_tm;
type struct_tm is record
tm_sec : aliased signed_int;
tm_min : aliased signed_int;
tm_hour : aliased signed_int;
tm_mday : aliased signed_int;
tm_mon : aliased signed_int;
tm_year : aliased signed_int;
tm_wday : aliased signed_int;
tm_yday : aliased signed_int;
tm_isdst : aliased signed_int;
tm_gmtoff : aliased signed_long;
tm_zone : aliased char_const_ptr;
end record;
pragma Convention (C_Pass_By_Copy, struct_tm);
type struct_tm_ptr is access all struct_tm;
for struct_tm_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_tm_ptr);
pragma Convention (C, struct_tm_ptr);
type struct_tm_const_ptr is access constant struct_tm;
for struct_tm_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_tm_const_ptr);
pragma Convention (C, struct_tm_const_ptr);
type struct_itimerspec;
type struct_itimerspec is record
it_interval : aliased struct_timespec;
it_value : aliased struct_timespec;
end record;
pragma Convention (C_Pass_By_Copy, struct_itimerspec);
type struct_itimerspec_const_ptr is access constant struct_itimerspec;
for struct_itimerspec_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_itimerspec_const_ptr);
pragma Convention (C, struct_itimerspec_const_ptr);
type struct_itimerspec_ptr is access all struct_itimerspec;
for struct_itimerspec_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_itimerspec_ptr);
pragma Convention (C, struct_itimerspec_ptr);
function clock return clock_t;
pragma Import (C, clock, "clock");
function time (timer : access time_t) return time_t;
pragma Import (C, time, "time");
function difftime (time1 : time_t; time0 : time_t) return double;
pragma Import (C, difftime, "difftime");
function mktime (tp : access struct_tm) return time_t;
pragma Import (C, mktime, "mktime");
function strftime (s : access char; maxsize : stddef.size_t;
format : access constant char; tp : access constant struct_tm)
return stddef.size_t;
pragma Import (C, strftime, "strftime");
function strptime (s : access constant char; fmt : access constant char;
tp : access struct_tm) return char_ptr;
pragma Import (C, strptime, "strptime");
-- #include <xlocale.h>
function strftime_l (s : access char; maxsize : stddef.size_t;
format : access constant char; tp : access constant struct_tm;
loc : access xlocale.struct_locale_struct) return stddef.size_t;
pragma Import (C, strftime_l, "strftime_l");
function strptime_l (s : access constant char; fmt : access constant char;
tp : access struct_tm; loc : access xlocale.struct_locale_struct)
return char_ptr;
pragma Import (C, strptime_l, "strptime_l");
function gmtime (timer : access constant time_t) return struct_tm_ptr;
pragma Import (C, gmtime, "gmtime");
function localtime (timer : access constant time_t) return struct_tm_ptr;
pragma Import (C, localtime, "localtime");
function gmtime_r (timer : access constant time_t; tp : access struct_tm)
return struct_tm_ptr;
pragma Import (C, gmtime_r, "gmtime_r");
function localtime_r (timer : access constant time_t;
tp : access struct_tm) return struct_tm_ptr;
pragma Import (C, localtime_r, "localtime_r");
function asctime (tp : access constant struct_tm) return char_ptr;
pragma Import (C, asctime, "asctime");
function ctime (timer : access constant time_t) return char_ptr;
pragma Import (C, ctime, "ctime");
function asctime_r (tp : access constant struct_tm; buf : access char)
return char_ptr;
pragma Import (C, asctime_r, "asctime_r");
function ctime_r (timer : access constant time_t; buf : access char)
return char_ptr;
pragma Import (C, ctime_r, "ctime_r");
qqtzname : aliased char_ptr_array (0 .. 1);
pragma Import (C, qqtzname, "__tzname");
qqdaylight : aliased signed_int;
pragma Import (C, qqdaylight, "__daylight");
qqtimezone : aliased signed_long;
pragma Import (C, qqtimezone, "__timezone");
tzname : aliased char_ptr_array (0 .. 1);
pragma Import (C, tzname, "tzname");
procedure tzset;
pragma Import (C, tzset, "tzset");
daylight : aliased signed_int;
pragma Import (C, daylight, "daylight");
timezone : aliased signed_long;
pragma Import (C, timezone, "timezone");
function stime (A_when : access constant time_t) return signed_int;
pragma Import (C, stime, "stime");
function timegm (tp : access struct_tm) return time_t;
pragma Import (C, timegm, "timegm");
function timelocal (tp : access struct_tm) return time_t;
pragma Import (C, timelocal, "timelocal");
function dysize (year : signed_int) return signed_int;
pragma Import (C, dysize, "dysize");
function nanosleep (requested_time : access constant struct_timespec;
remaining : access struct_timespec) return signed_int;
pragma Import (C, nanosleep, "nanosleep");
function clock_getres (clock_id : clockid_t; res : access struct_timespec)
return signed_int;
pragma Import (C, clock_getres, "clock_getres");
function clock_gettime (clock_id : clockid_t; tp : access struct_timespec)
return signed_int;
pragma Import (C, clock_gettime, "clock_gettime");
function clock_settime (clock_id : clockid_t;
tp : access constant struct_timespec) return signed_int;
pragma Import (C, clock_settime, "clock_settime");
function clock_nanosleep (clock_id : clockid_t; flags : signed_int;
req : access constant struct_timespec; A_rem : access struct_timespec)
return signed_int;
pragma Import (C, clock_nanosleep, "clock_nanosleep");
function clock_getcpuclockid (pid : sys.types.pid_t;
clock_id : access clockid_t) return signed_int;
pragma Import (C, clock_getcpuclockid, "clock_getcpuclockid");
function timer_create (clock_id : clockid_t;
evp : access bits.siginfo.struct_sigevent; timerid : access timer_t)
return signed_int;
pragma Import (C, timer_create, "timer_create");
function timer_delete (timerid : timer_t) return signed_int;
pragma Import (C, timer_delete, "timer_delete");
function timer_settime (timerid : timer_t; flags : signed_int;
value : access constant struct_itimerspec;
ovalue : access struct_itimerspec) return signed_int;
pragma Import (C, timer_settime, "timer_settime");
function timer_gettime (timerid : timer_t;
value : access struct_itimerspec) return signed_int;
pragma Import (C, timer_gettime, "timer_gettime");
function timer_getoverrun (timerid : timer_t) return signed_int;
pragma Import (C, timer_getoverrun, "timer_getoverrun");
function timespec_get (ts : access struct_timespec; base : signed_int)
return signed_int;
pragma Import (C, timespec_get, "timespec_get");
getdate_err : aliased signed_int;
pragma Import (C, getdate_err, "getdate_err");
function getdate (string : access constant char) return struct_tm_ptr;
pragma Import (C, getdate, "getdate");
function getdate_r (string : access constant char;
resbufp : access struct_tm) return signed_int;
pragma Import (C, getdate_r, "getdate_r");
TIME_UTC : constant := 1;
TIME_H : constant := 1;
clock_t_defined : constant := 1;
clockid_t_defined : constant := 1;
-- __isleap (function macro)
time_t_defined : constant := 1;
timer_t_defined : constant := 1;
timespec_defined : constant := 1;
end C.time;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with C.bits.confname;
with C.bits.types;
with C.stddef;
with C.stdint;
with C.sys.types;
package C.unistd is
pragma Preelaborate;
function qPC_LINK_MAX return bits.confname.enum_d2723f9c
renames bits.confname.qPC_LINK_MAX;
function qPC_MAX_CANON return bits.confname.enum_d2723f9c
renames bits.confname.qPC_MAX_CANON;
function qPC_MAX_INPUT return bits.confname.enum_d2723f9c
renames bits.confname.qPC_MAX_INPUT;
function qPC_NAME_MAX return bits.confname.enum_d2723f9c
renames bits.confname.qPC_NAME_MAX;
function qPC_PATH_MAX return bits.confname.enum_d2723f9c
renames bits.confname.qPC_PATH_MAX;
function qPC_PIPE_BUF return bits.confname.enum_d2723f9c
renames bits.confname.qPC_PIPE_BUF;
function qPC_CHOWN_RESTRICTED return bits.confname.enum_d2723f9c
renames bits.confname.qPC_CHOWN_RESTRICTED;
function qPC_NO_TRUNC return bits.confname.enum_d2723f9c
renames bits.confname.qPC_NO_TRUNC;
function qPC_VDISABLE return bits.confname.enum_d2723f9c
renames bits.confname.qPC_VDISABLE;
function qPC_SYNC_IO return bits.confname.enum_d2723f9c
renames bits.confname.qPC_SYNC_IO;
function qPC_ASYNC_IO return bits.confname.enum_d2723f9c
renames bits.confname.qPC_ASYNC_IO;
function qPC_PRIO_IO return bits.confname.enum_d2723f9c
renames bits.confname.qPC_PRIO_IO;
function qPC_SOCK_MAXBUF return bits.confname.enum_d2723f9c
renames bits.confname.qPC_SOCK_MAXBUF;
function qPC_FILESIZEBITS return bits.confname.enum_d2723f9c
renames bits.confname.qPC_FILESIZEBITS;
function qPC_REC_INCR_XFER_SIZE return bits.confname.enum_d2723f9c
renames bits.confname.qPC_REC_INCR_XFER_SIZE;
function qPC_REC_MAX_XFER_SIZE return bits.confname.enum_d2723f9c
renames bits.confname.qPC_REC_MAX_XFER_SIZE;
function qPC_REC_MIN_XFER_SIZE return bits.confname.enum_d2723f9c
renames bits.confname.qPC_REC_MIN_XFER_SIZE;
function qPC_REC_XFER_ALIGN return bits.confname.enum_d2723f9c
renames bits.confname.qPC_REC_XFER_ALIGN;
function qPC_ALLOC_SIZE_MIN return bits.confname.enum_d2723f9c
renames bits.confname.qPC_ALLOC_SIZE_MIN;
function qPC_SYMLINK_MAX return bits.confname.enum_d2723f9c
renames bits.confname.qPC_SYMLINK_MAX;
function qPC_2_SYMLINKS return bits.confname.enum_d2723f9c
renames bits.confname.qPC_2_SYMLINKS;
function qSC_ARG_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_ARG_MAX;
function qSC_CHILD_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_CHILD_MAX;
function qSC_CLK_TCK return bits.confname.enum_d63868b2
renames bits.confname.qSC_CLK_TCK;
function qSC_NGROUPS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NGROUPS_MAX;
function qSC_OPEN_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_OPEN_MAX;
function qSC_STREAM_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_STREAM_MAX;
function qSC_TZNAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TZNAME_MAX;
function qSC_JOB_CONTROL return bits.confname.enum_d63868b2
renames bits.confname.qSC_JOB_CONTROL;
function qSC_SAVED_IDS return bits.confname.enum_d63868b2
renames bits.confname.qSC_SAVED_IDS;
function qSC_REALTIME_SIGNALS return bits.confname.enum_d63868b2
renames bits.confname.qSC_REALTIME_SIGNALS;
function qSC_PRIORITY_SCHEDULING return bits.confname.enum_d63868b2
renames bits.confname.qSC_PRIORITY_SCHEDULING;
function qSC_TIMERS return bits.confname.enum_d63868b2
renames bits.confname.qSC_TIMERS;
function qSC_ASYNCHRONOUS_IO return bits.confname.enum_d63868b2
renames bits.confname.qSC_ASYNCHRONOUS_IO;
function qSC_PRIORITIZED_IO return bits.confname.enum_d63868b2
renames bits.confname.qSC_PRIORITIZED_IO;
function qSC_SYNCHRONIZED_IO return bits.confname.enum_d63868b2
renames bits.confname.qSC_SYNCHRONIZED_IO;
function qSC_FSYNC return bits.confname.enum_d63868b2
renames bits.confname.qSC_FSYNC;
function qSC_MAPPED_FILES return bits.confname.enum_d63868b2
renames bits.confname.qSC_MAPPED_FILES;
function qSC_MEMLOCK return bits.confname.enum_d63868b2
renames bits.confname.qSC_MEMLOCK;
function qSC_MEMLOCK_RANGE return bits.confname.enum_d63868b2
renames bits.confname.qSC_MEMLOCK_RANGE;
function qSC_MEMORY_PROTECTION return bits.confname.enum_d63868b2
renames bits.confname.qSC_MEMORY_PROTECTION;
function qSC_MESSAGE_PASSING return bits.confname.enum_d63868b2
renames bits.confname.qSC_MESSAGE_PASSING;
function qSC_SEMAPHORES return bits.confname.enum_d63868b2
renames bits.confname.qSC_SEMAPHORES;
function qSC_SHARED_MEMORY_OBJECTS return bits.confname.enum_d63868b2
renames bits.confname.qSC_SHARED_MEMORY_OBJECTS;
function qSC_AIO_LISTIO_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_AIO_LISTIO_MAX;
function qSC_AIO_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_AIO_MAX;
function qSC_AIO_PRIO_DELTA_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_AIO_PRIO_DELTA_MAX;
function qSC_DELAYTIMER_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_DELAYTIMER_MAX;
function qSC_MQ_OPEN_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_MQ_OPEN_MAX;
function qSC_MQ_PRIO_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_MQ_PRIO_MAX;
function qSC_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_VERSION;
function qSC_PAGESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_PAGESIZE;
function qSC_RTSIG_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_RTSIG_MAX;
function qSC_SEM_NSEMS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SEM_NSEMS_MAX;
function qSC_SEM_VALUE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SEM_VALUE_MAX;
function qSC_SIGQUEUE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SIGQUEUE_MAX;
function qSC_TIMER_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TIMER_MAX;
function qSC_BC_BASE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_BC_BASE_MAX;
function qSC_BC_DIM_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_BC_DIM_MAX;
function qSC_BC_SCALE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_BC_SCALE_MAX;
function qSC_BC_STRING_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_BC_STRING_MAX;
function qSC_COLL_WEIGHTS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_COLL_WEIGHTS_MAX;
function qSC_EQUIV_CLASS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_EQUIV_CLASS_MAX;
function qSC_EXPR_NEST_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_EXPR_NEST_MAX;
function qSC_LINE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_LINE_MAX;
function qSC_RE_DUP_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_RE_DUP_MAX;
function qSC_CHARCLASS_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_CHARCLASS_NAME_MAX;
function qSC_2_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_VERSION;
function qSC_2_C_BIND return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_C_BIND;
function qSC_2_C_DEV return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_C_DEV;
function qSC_2_FORT_DEV return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_FORT_DEV;
function qSC_2_FORT_RUN return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_FORT_RUN;
function qSC_2_SW_DEV return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_SW_DEV;
function qSC_2_LOCALEDEF return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_LOCALEDEF;
function qSC_PII return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII;
function qSC_PII_XTI return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_XTI;
function qSC_PII_SOCKET return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_SOCKET;
function qSC_PII_INTERNET return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_INTERNET;
function qSC_PII_OSI return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_OSI;
function qSC_POLL return bits.confname.enum_d63868b2
renames bits.confname.qSC_POLL;
function qSC_SELECT return bits.confname.enum_d63868b2
renames bits.confname.qSC_SELECT;
function qSC_UIO_MAXIOV return bits.confname.enum_d63868b2
renames bits.confname.qSC_UIO_MAXIOV;
function qSC_IOV_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_IOV_MAX;
function qSC_PII_INTERNET_STREAM return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_INTERNET_STREAM;
function qSC_PII_INTERNET_DGRAM return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_INTERNET_DGRAM;
function qSC_PII_OSI_COTS return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_OSI_COTS;
function qSC_PII_OSI_CLTS return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_OSI_CLTS;
function qSC_PII_OSI_M return bits.confname.enum_d63868b2
renames bits.confname.qSC_PII_OSI_M;
function qSC_T_IOV_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_T_IOV_MAX;
function qSC_THREADS return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREADS;
function qSC_THREAD_SAFE_FUNCTIONS return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_SAFE_FUNCTIONS;
function qSC_GETGR_R_SIZE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_GETGR_R_SIZE_MAX;
function qSC_GETPW_R_SIZE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_GETPW_R_SIZE_MAX;
function qSC_LOGIN_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_LOGIN_NAME_MAX;
function qSC_TTY_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TTY_NAME_MAX;
function qSC_THREAD_DESTRUCTOR_ITERATIONS
return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_DESTRUCTOR_ITERATIONS;
function qSC_THREAD_KEYS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_KEYS_MAX;
function qSC_THREAD_STACK_MIN return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_STACK_MIN;
function qSC_THREAD_THREADS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_THREADS_MAX;
function qSC_THREAD_ATTR_STACKADDR return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_ATTR_STACKADDR;
function qSC_THREAD_ATTR_STACKSIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_ATTR_STACKSIZE;
function qSC_THREAD_PRIORITY_SCHEDULING return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_PRIORITY_SCHEDULING;
function qSC_THREAD_PRIO_INHERIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_PRIO_INHERIT;
function qSC_THREAD_PRIO_PROTECT return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_PRIO_PROTECT;
function qSC_THREAD_PROCESS_SHARED return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_PROCESS_SHARED;
function qSC_NPROCESSORS_CONF return bits.confname.enum_d63868b2
renames bits.confname.qSC_NPROCESSORS_CONF;
function SC_NPROCESSORS_ONLN return bits.confname.enum_d63868b2
renames bits.confname.SC_NPROCESSORS_ONLN;
function qSC_PHYS_PAGES return bits.confname.enum_d63868b2
renames bits.confname.qSC_PHYS_PAGES;
function qSC_AVPHYS_PAGES return bits.confname.enum_d63868b2
renames bits.confname.qSC_AVPHYS_PAGES;
function qSC_ATEXIT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_ATEXIT_MAX;
function qSC_PASS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_PASS_MAX;
function qSC_XOPEN_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_VERSION;
function qSC_XOPEN_XCU_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_XCU_VERSION;
function qSC_XOPEN_UNIX return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_UNIX;
function qSC_XOPEN_CRYPT return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_CRYPT;
function qSC_XOPEN_ENH_I18N return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_ENH_I18N;
function qSC_XOPEN_SHM return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_SHM;
function qSC_2_CHAR_TERM return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_CHAR_TERM;
function qSC_2_C_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_C_VERSION;
function qSC_2_UPE return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_UPE;
function qSC_XOPEN_XPG2 return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_XPG2;
function qSC_XOPEN_XPG3 return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_XPG3;
function qSC_XOPEN_XPG4 return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_XPG4;
function qSC_CHAR_BIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_CHAR_BIT;
function qSC_CHAR_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_CHAR_MAX;
function qSC_CHAR_MIN return bits.confname.enum_d63868b2
renames bits.confname.qSC_CHAR_MIN;
function qSC_INT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_INT_MAX;
function qSC_INT_MIN return bits.confname.enum_d63868b2
renames bits.confname.qSC_INT_MIN;
function qSC_LONG_BIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_LONG_BIT;
function qSC_WORD_BIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_WORD_BIT;
function qSC_MB_LEN_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_MB_LEN_MAX;
function qSC_NZERO return bits.confname.enum_d63868b2
renames bits.confname.qSC_NZERO;
function qSC_SSIZE_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SSIZE_MAX;
function qSC_SCHAR_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SCHAR_MAX;
function qSC_SCHAR_MIN return bits.confname.enum_d63868b2
renames bits.confname.qSC_SCHAR_MIN;
function qSC_SHRT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SHRT_MAX;
function qSC_SHRT_MIN return bits.confname.enum_d63868b2
renames bits.confname.qSC_SHRT_MIN;
function qSC_UCHAR_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_UCHAR_MAX;
function qSC_UINT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_UINT_MAX;
function qSC_ULONG_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_ULONG_MAX;
function qSC_USHRT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_USHRT_MAX;
function qSC_NL_ARGMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_ARGMAX;
function qSC_NL_LANGMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_LANGMAX;
function qSC_NL_MSGMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_MSGMAX;
function qSC_NL_NMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_NMAX;
function qSC_NL_SETMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_SETMAX;
function qSC_NL_TEXTMAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_NL_TEXTMAX;
function qSC_XBS5_ILP32_OFF32 return bits.confname.enum_d63868b2
renames bits.confname.qSC_XBS5_ILP32_OFF32;
function qSC_XBS5_ILP32_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_XBS5_ILP32_OFFBIG;
function qSC_XBS5_LP64_OFF64 return bits.confname.enum_d63868b2
renames bits.confname.qSC_XBS5_LP64_OFF64;
function qSC_XBS5_LPBIG_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_XBS5_LPBIG_OFFBIG;
function qSC_XOPEN_LEGACY return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_LEGACY;
function qSC_XOPEN_REALTIME return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_REALTIME;
function qSC_XOPEN_REALTIME_THREADS return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_REALTIME_THREADS;
function qSC_ADVISORY_INFO return bits.confname.enum_d63868b2
renames bits.confname.qSC_ADVISORY_INFO;
function qSC_BARRIERS return bits.confname.enum_d63868b2
renames bits.confname.qSC_BARRIERS;
function qSC_BASE return bits.confname.enum_d63868b2
renames bits.confname.qSC_BASE;
function qSC_C_LANG_SUPPORT return bits.confname.enum_d63868b2
renames bits.confname.qSC_C_LANG_SUPPORT;
function qSC_C_LANG_SUPPORT_R return bits.confname.enum_d63868b2
renames bits.confname.qSC_C_LANG_SUPPORT_R;
function qSC_CLOCK_SELECTION return bits.confname.enum_d63868b2
renames bits.confname.qSC_CLOCK_SELECTION;
function qSC_CPUTIME return bits.confname.enum_d63868b2
renames bits.confname.qSC_CPUTIME;
function qSC_THREAD_CPUTIME return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_CPUTIME;
function qSC_DEVICE_IO return bits.confname.enum_d63868b2
renames bits.confname.qSC_DEVICE_IO;
function qSC_DEVICE_SPECIFIC return bits.confname.enum_d63868b2
renames bits.confname.qSC_DEVICE_SPECIFIC;
function qSC_DEVICE_SPECIFIC_R return bits.confname.enum_d63868b2
renames bits.confname.qSC_DEVICE_SPECIFIC_R;
function qSC_FD_MGMT return bits.confname.enum_d63868b2
renames bits.confname.qSC_FD_MGMT;
function qSC_FIFO return bits.confname.enum_d63868b2
renames bits.confname.qSC_FIFO;
function qSC_PIPE return bits.confname.enum_d63868b2
renames bits.confname.qSC_PIPE;
function qSC_FILE_ATTRIBUTES return bits.confname.enum_d63868b2
renames bits.confname.qSC_FILE_ATTRIBUTES;
function qSC_FILE_LOCKING return bits.confname.enum_d63868b2
renames bits.confname.qSC_FILE_LOCKING;
function qSC_FILE_SYSTEM return bits.confname.enum_d63868b2
renames bits.confname.qSC_FILE_SYSTEM;
function qSC_MONOTONIC_CLOCK return bits.confname.enum_d63868b2
renames bits.confname.qSC_MONOTONIC_CLOCK;
function qSC_MULTI_PROCESS return bits.confname.enum_d63868b2
renames bits.confname.qSC_MULTI_PROCESS;
function qSC_SINGLE_PROCESS return bits.confname.enum_d63868b2
renames bits.confname.qSC_SINGLE_PROCESS;
function qSC_NETWORKING return bits.confname.enum_d63868b2
renames bits.confname.qSC_NETWORKING;
function qSC_READER_WRITER_LOCKS return bits.confname.enum_d63868b2
renames bits.confname.qSC_READER_WRITER_LOCKS;
function qSC_SPIN_LOCKS return bits.confname.enum_d63868b2
renames bits.confname.qSC_SPIN_LOCKS;
function qSC_REGEXP return bits.confname.enum_d63868b2
renames bits.confname.qSC_REGEXP;
function qSC_REGEX_VERSION return bits.confname.enum_d63868b2
renames bits.confname.qSC_REGEX_VERSION;
function qSC_SHELL return bits.confname.enum_d63868b2
renames bits.confname.qSC_SHELL;
function qSC_SIGNALS return bits.confname.enum_d63868b2
renames bits.confname.qSC_SIGNALS;
function qSC_SPAWN return bits.confname.enum_d63868b2
renames bits.confname.qSC_SPAWN;
function qSC_SPORADIC_SERVER return bits.confname.enum_d63868b2
renames bits.confname.qSC_SPORADIC_SERVER;
function qSC_THREAD_SPORADIC_SERVER return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_SPORADIC_SERVER;
function qSC_SYSTEM_DATABASE return bits.confname.enum_d63868b2
renames bits.confname.qSC_SYSTEM_DATABASE;
function qSC_SYSTEM_DATABASE_R return bits.confname.enum_d63868b2
renames bits.confname.qSC_SYSTEM_DATABASE_R;
function qSC_TIMEOUTS return bits.confname.enum_d63868b2
renames bits.confname.qSC_TIMEOUTS;
function qSC_TYPED_MEMORY_OBJECTS return bits.confname.enum_d63868b2
renames bits.confname.qSC_TYPED_MEMORY_OBJECTS;
function qSC_USER_GROUPS return bits.confname.enum_d63868b2
renames bits.confname.qSC_USER_GROUPS;
function qSC_USER_GROUPS_R return bits.confname.enum_d63868b2
renames bits.confname.qSC_USER_GROUPS_R;
function qSC_2_PBS return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS;
function qSC_2_PBS_ACCOUNTING return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS_ACCOUNTING;
function qSC_2_PBS_LOCATE return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS_LOCATE;
function qSC_2_PBS_MESSAGE return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS_MESSAGE;
function qSC_2_PBS_TRACK return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS_TRACK;
function qSC_SYMLOOP_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SYMLOOP_MAX;
function qSC_STREAMS return bits.confname.enum_d63868b2
renames bits.confname.qSC_STREAMS;
function qSC_2_PBS_CHECKPOINT return bits.confname.enum_d63868b2
renames bits.confname.qSC_2_PBS_CHECKPOINT;
function qSC_V6_ILP32_OFF32 return bits.confname.enum_d63868b2
renames bits.confname.qSC_V6_ILP32_OFF32;
function qSC_V6_ILP32_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_V6_ILP32_OFFBIG;
function qSC_V6_LP64_OFF64 return bits.confname.enum_d63868b2
renames bits.confname.qSC_V6_LP64_OFF64;
function qSC_V6_LPBIG_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_V6_LPBIG_OFFBIG;
function qSC_HOST_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_HOST_NAME_MAX;
function qSC_TRACE return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE;
function qSC_TRACE_EVENT_FILTER return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_EVENT_FILTER;
function qSC_TRACE_INHERIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_INHERIT;
function qSC_TRACE_LOG return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_LOG;
function qSC_LEVEL1_ICACHE_SIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_ICACHE_SIZE;
function qSC_LEVEL1_ICACHE_ASSOC return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_ICACHE_ASSOC;
function qSC_LEVEL1_ICACHE_LINESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_ICACHE_LINESIZE;
function qSC_LEVEL1_DCACHE_SIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_DCACHE_SIZE;
function qSC_LEVEL1_DCACHE_ASSOC return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_DCACHE_ASSOC;
function qSC_LEVEL1_DCACHE_LINESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL1_DCACHE_LINESIZE;
function qSC_LEVEL2_CACHE_SIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL2_CACHE_SIZE;
function qSC_LEVEL2_CACHE_ASSOC return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL2_CACHE_ASSOC;
function qSC_LEVEL2_CACHE_LINESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL2_CACHE_LINESIZE;
function qSC_LEVEL3_CACHE_SIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL3_CACHE_SIZE;
function qSC_LEVEL3_CACHE_ASSOC return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL3_CACHE_ASSOC;
function qSC_LEVEL3_CACHE_LINESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL3_CACHE_LINESIZE;
function qSC_LEVEL4_CACHE_SIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL4_CACHE_SIZE;
function qSC_LEVEL4_CACHE_ASSOC return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL4_CACHE_ASSOC;
function qSC_LEVEL4_CACHE_LINESIZE return bits.confname.enum_d63868b2
renames bits.confname.qSC_LEVEL4_CACHE_LINESIZE;
function qSC_IPV6 return bits.confname.enum_d63868b2
renames bits.confname.qSC_IPV6;
function qSC_RAW_SOCKETS return bits.confname.enum_d63868b2
renames bits.confname.qSC_RAW_SOCKETS;
function qSC_V7_ILP32_OFF32 return bits.confname.enum_d63868b2
renames bits.confname.qSC_V7_ILP32_OFF32;
function qSC_V7_ILP32_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_V7_ILP32_OFFBIG;
function qSC_V7_LP64_OFF64 return bits.confname.enum_d63868b2
renames bits.confname.qSC_V7_LP64_OFF64;
function qSC_V7_LPBIG_OFFBIG return bits.confname.enum_d63868b2
renames bits.confname.qSC_V7_LPBIG_OFFBIG;
function qSC_SS_REPL_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_SS_REPL_MAX;
function qSC_TRACE_EVENT_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_EVENT_NAME_MAX;
function qSC_TRACE_NAME_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_NAME_MAX;
function qSC_TRACE_SYS_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_SYS_MAX;
function qSC_TRACE_USER_EVENT_MAX return bits.confname.enum_d63868b2
renames bits.confname.qSC_TRACE_USER_EVENT_MAX;
function qSC_XOPEN_STREAMS return bits.confname.enum_d63868b2
renames bits.confname.qSC_XOPEN_STREAMS;
function qSC_THREAD_ROBUST_PRIO_INHERIT return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_ROBUST_PRIO_INHERIT;
function qSC_THREAD_ROBUST_PRIO_PROTECT return bits.confname.enum_d63868b2
renames bits.confname.qSC_THREAD_ROBUST_PRIO_PROTECT;
function qCS_PATH return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_PATH;
function qCS_V6_WIDTH_RESTRICTED_ENVS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_V6_WIDTH_RESTRICTED_ENVS;
function qCS_GNU_LIBC_VERSION return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_GNU_LIBC_VERSION;
function qCS_GNU_LIBPTHREAD_VERSION return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_GNU_LIBPTHREAD_VERSION;
function qCS_V5_WIDTH_RESTRICTED_ENVS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_V5_WIDTH_RESTRICTED_ENVS;
function qCS_V7_WIDTH_RESTRICTED_ENVS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_V7_WIDTH_RESTRICTED_ENVS;
function qCS_LFS_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS_CFLAGS;
function qCS_LFS_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS_LDFLAGS;
function qCS_LFS_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS_LIBS;
function qCS_LFS_LINTFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS_LINTFLAGS;
function qCS_LFS64_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS64_CFLAGS;
function qCS_LFS64_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS64_LDFLAGS;
function qCS_LFS64_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS64_LIBS;
function qCS_LFS64_LINTFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_LFS64_LINTFLAGS;
function qCS_XBS5_ILP32_OFF32_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFF32_CFLAGS;
function qCS_XBS5_ILP32_OFF32_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFF32_LDFLAGS;
function qCS_XBS5_ILP32_OFF32_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFF32_LIBS;
function qCS_XBS5_ILP32_OFF32_LINTFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFF32_LINTFLAGS;
function qCS_XBS5_ILP32_OFFBIG_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFFBIG_CFLAGS;
function qCS_XBS5_ILP32_OFFBIG_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFFBIG_LDFLAGS;
function qCS_XBS5_ILP32_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFFBIG_LIBS;
function qCS_XBS5_ILP32_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_ILP32_OFFBIG_LINTFLAGS;
function qCS_XBS5_LP64_OFF64_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LP64_OFF64_CFLAGS;
function qCS_XBS5_LP64_OFF64_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LP64_OFF64_LDFLAGS;
function qCS_XBS5_LP64_OFF64_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LP64_OFF64_LIBS;
function qCS_XBS5_LP64_OFF64_LINTFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LP64_OFF64_LINTFLAGS;
function qCS_XBS5_LPBIG_OFFBIG_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LPBIG_OFFBIG_CFLAGS;
function qCS_XBS5_LPBIG_OFFBIG_LDFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LPBIG_OFFBIG_LDFLAGS;
function qCS_XBS5_LPBIG_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LPBIG_OFFBIG_LIBS;
function qCS_XBS5_LPBIG_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_XBS5_LPBIG_OFFBIG_LINTFLAGS;
function qCS_POSIX_V6_ILP32_OFF32_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFF32_CFLAGS;
function qCS_POSIX_V6_ILP32_OFF32_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFF32_LDFLAGS;
function qCS_POSIX_V6_ILP32_OFF32_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFF32_LIBS;
function qCS_POSIX_V6_ILP32_OFF32_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFF32_LINTFLAGS;
function qCS_POSIX_V6_ILP32_OFFBIG_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFFBIG_CFLAGS;
function qCS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFFBIG_LDFLAGS;
function qCS_POSIX_V6_ILP32_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFFBIG_LIBS;
function qCS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS;
function qCS_POSIX_V6_LP64_OFF64_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LP64_OFF64_CFLAGS;
function qCS_POSIX_V6_LP64_OFF64_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LP64_OFF64_LDFLAGS;
function qCS_POSIX_V6_LP64_OFF64_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LP64_OFF64_LIBS;
function qCS_POSIX_V6_LP64_OFF64_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LP64_OFF64_LINTFLAGS;
function qCS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LPBIG_OFFBIG_CFLAGS;
function qCS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS;
function qCS_POSIX_V6_LPBIG_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LPBIG_OFFBIG_LIBS;
function qCS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS;
function qCS_POSIX_V7_ILP32_OFF32_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFF32_CFLAGS;
function qCS_POSIX_V7_ILP32_OFF32_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFF32_LDFLAGS;
function qCS_POSIX_V7_ILP32_OFF32_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFF32_LIBS;
function qCS_POSIX_V7_ILP32_OFF32_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFF32_LINTFLAGS;
function qCS_POSIX_V7_ILP32_OFFBIG_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFFBIG_CFLAGS;
function qCS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFFBIG_LDFLAGS;
function qCS_POSIX_V7_ILP32_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFFBIG_LIBS;
function qCS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS;
function qCS_POSIX_V7_LP64_OFF64_CFLAGS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LP64_OFF64_CFLAGS;
function qCS_POSIX_V7_LP64_OFF64_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LP64_OFF64_LDFLAGS;
function qCS_POSIX_V7_LP64_OFF64_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LP64_OFF64_LIBS;
function qCS_POSIX_V7_LP64_OFF64_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LP64_OFF64_LINTFLAGS;
function qCS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LPBIG_OFFBIG_CFLAGS;
function qCS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS;
function qCS_POSIX_V7_LPBIG_OFFBIG_LIBS return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LPBIG_OFFBIG_LIBS;
function qCS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS
return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS;
function qCS_V6_ENV return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_V6_ENV;
function qCS_V7_ENV return bits.confname.enum_2e5a2b7c
renames bits.confname.qCS_V7_ENV;
-- qCS_GNU_LIBC_VERSION renames bits.confname.qCS_GNU... (repeating itself)
-- qCS_GNU_LIBPTHREAD_VERSION renames bits.confname.q... (repeating itself)
-- qCS_LFS64_CFLAGS renames bits.confname.qCS_LFS64_C... (repeating itself)
-- qCS_LFS64_LDFLAGS renames bits.confname.qCS_LFS64_... (repeating itself)
-- qCS_LFS64_LIBS renames bits.confname.qCS_LFS64_LIBS (repeating itself)
-- qCS_LFS64_LINTFLAGS renames bits.confname.qCS_LFS6... (repeating itself)
-- qCS_LFS_CFLAGS renames bits.confname.qCS_LFS_CFLAGS (repeating itself)
-- qCS_LFS_LDFLAGS renames bits.confname.qCS_LFS_LDFLAGS (repeating itself)
-- qCS_LFS_LIBS renames bits.confname.qCS_LFS_LIBS (repeating itself)
-- qCS_LFS_LINTFLAGS renames bits.confname.qCS_LFS_LI... (repeating itself)
-- qCS_PATH renames bits.confname.qCS_PATH (repeating itself)
-- CS_POSIX_V5_WIDTH_RESTRICTED_ENVS renames bits.con... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFF32_CFLAGS renames bits.confn... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFF32_LDFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFF32_LIBS renames bits.confnam... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFF32_LINTFLAGS renames bits.co... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFFBIG_CFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFFBIG_LDFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFFBIG_LIBS renames bits.confna... (repeating itself)
-- qCS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS renames bits.c... (repeating itself)
-- qCS_POSIX_V6_LP64_OFF64_CFLAGS renames bits.confna... (repeating itself)
-- qCS_POSIX_V6_LP64_OFF64_LDFLAGS renames bits.confn... (repeating itself)
-- qCS_POSIX_V6_LP64_OFF64_LIBS renames bits.confname... (repeating itself)
-- qCS_POSIX_V6_LP64_OFF64_LINTFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V6_LPBIG_OFFBIG_CFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V6_LPBIG_OFFBIG_LIBS renames bits.confna... (repeating itself)
-- qCS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS renames bits.c... (repeating itself)
-- CS_POSIX_V6_WIDTH_RESTRICTED_ENVS renames bits.con... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFF32_CFLAGS renames bits.confn... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFF32_LDFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFF32_LIBS renames bits.confnam... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFF32_LINTFLAGS renames bits.co... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFFBIG_CFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFFBIG_LDFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFFBIG_LIBS renames bits.confna... (repeating itself)
-- qCS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS renames bits.c... (repeating itself)
-- qCS_POSIX_V7_LP64_OFF64_CFLAGS renames bits.confna... (repeating itself)
-- qCS_POSIX_V7_LP64_OFF64_LDFLAGS renames bits.confn... (repeating itself)
-- qCS_POSIX_V7_LP64_OFF64_LIBS renames bits.confname... (repeating itself)
-- qCS_POSIX_V7_LP64_OFF64_LINTFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V7_LPBIG_OFFBIG_CFLAGS renames bits.conf... (repeating itself)
-- qCS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS renames bits.con... (repeating itself)
-- qCS_POSIX_V7_LPBIG_OFFBIG_LIBS renames bits.confna... (repeating itself)
-- qCS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS renames bits.c... (repeating itself)
-- CS_POSIX_V7_WIDTH_RESTRICTED_ENVS renames bits.con... (repeating itself)
-- qCS_V5_WIDTH_RESTRICTED_ENVS renames bits.confname... (repeating itself)
-- qCS_V6_ENV renames bits.confname.qCS_V6_ENV (repeating itself)
-- qCS_V6_WIDTH_RESTRICTED_ENVS renames bits.confname... (repeating itself)
-- qCS_V7_ENV renames bits.confname.qCS_V7_ENV (repeating itself)
-- qCS_V7_WIDTH_RESTRICTED_ENVS renames bits.confname... (repeating itself)
-- qCS_XBS5_ILP32_OFF32_CFLAGS renames bits.confname.... (repeating itself)
-- qCS_XBS5_ILP32_OFF32_LDFLAGS renames bits.confname... (repeating itself)
-- qCS_XBS5_ILP32_OFF32_LIBS renames bits.confname.qC... (repeating itself)
-- qCS_XBS5_ILP32_OFF32_LINTFLAGS renames bits.confna... (repeating itself)
-- qCS_XBS5_ILP32_OFFBIG_CFLAGS renames bits.confname... (repeating itself)
-- qCS_XBS5_ILP32_OFFBIG_LDFLAGS renames bits.confnam... (repeating itself)
-- qCS_XBS5_ILP32_OFFBIG_LIBS renames bits.confname.q... (repeating itself)
-- qCS_XBS5_ILP32_OFFBIG_LINTFLAGS renames bits.confn... (repeating itself)
-- qCS_XBS5_LP64_OFF64_CFLAGS renames bits.confname.q... (repeating itself)
-- qCS_XBS5_LP64_OFF64_LDFLAGS renames bits.confname.... (repeating itself)
-- qCS_XBS5_LP64_OFF64_LIBS renames bits.confname.qCS... (repeating itself)
-- qCS_XBS5_LP64_OFF64_LINTFLAGS renames bits.confnam... (repeating itself)
-- qCS_XBS5_LPBIG_OFFBIG_CFLAGS renames bits.confname... (repeating itself)
-- qCS_XBS5_LPBIG_OFFBIG_LDFLAGS renames bits.confnam... (repeating itself)
-- qCS_XBS5_LPBIG_OFFBIG_LIBS renames bits.confname.q... (repeating itself)
-- qCS_XBS5_LPBIG_OFFBIG_LINTFLAGS renames bits.confn... (repeating itself)
-- qPC_2_SYMLINKS renames bits.confname.qPC_2_SYMLINKS (repeating itself)
-- qPC_ALLOC_SIZE_MIN renames bits.confname.qPC_ALLOC... (repeating itself)
-- qPC_ASYNC_IO renames bits.confname.qPC_ASYNC_IO (repeating itself)
-- qPC_CHOWN_RESTRICTED renames bits.confname.qPC_CHO... (repeating itself)
-- qPC_FILESIZEBITS renames bits.confname.qPC_FILESIZ... (repeating itself)
-- qPC_LINK_MAX renames bits.confname.qPC_LINK_MAX (repeating itself)
-- qPC_MAX_CANON renames bits.confname.qPC_MAX_CANON (repeating itself)
-- qPC_MAX_INPUT renames bits.confname.qPC_MAX_INPUT (repeating itself)
-- qPC_NAME_MAX renames bits.confname.qPC_NAME_MAX (repeating itself)
-- qPC_NO_TRUNC renames bits.confname.qPC_NO_TRUNC (repeating itself)
-- qPC_PATH_MAX renames bits.confname.qPC_PATH_MAX (repeating itself)
-- qPC_PIPE_BUF renames bits.confname.qPC_PIPE_BUF (repeating itself)
-- qPC_PRIO_IO renames bits.confname.qPC_PRIO_IO (repeating itself)
-- qPC_REC_INCR_XFER_SIZE renames bits.confname.qPC_R... (repeating itself)
-- qPC_REC_MAX_XFER_SIZE renames bits.confname.qPC_RE... (repeating itself)
-- qPC_REC_MIN_XFER_SIZE renames bits.confname.qPC_RE... (repeating itself)
-- qPC_REC_XFER_ALIGN renames bits.confname.qPC_REC_X... (repeating itself)
-- qPC_SOCK_MAXBUF renames bits.confname.qPC_SOCK_MAXBUF (repeating itself)
-- qPC_SYMLINK_MAX renames bits.confname.qPC_SYMLINK_MAX (repeating itself)
-- qPC_SYNC_IO renames bits.confname.qPC_SYNC_IO (repeating itself)
-- qPC_VDISABLE renames bits.confname.qPC_VDISABLE (repeating itself)
-- qSC_2_CHAR_TERM renames bits.confname.qSC_2_CHAR_TERM (repeating itself)
-- qSC_2_C_BIND renames bits.confname.qSC_2_C_BIND (repeating itself)
-- qSC_2_C_DEV renames bits.confname.qSC_2_C_DEV (repeating itself)
-- qSC_2_C_VERSION renames bits.confname.qSC_2_C_VERSION (repeating itself)
-- qSC_2_FORT_DEV renames bits.confname.qSC_2_FORT_DEV (repeating itself)
-- qSC_2_FORT_RUN renames bits.confname.qSC_2_FORT_RUN (repeating itself)
-- qSC_2_LOCALEDEF renames bits.confname.qSC_2_LOCALEDEF (repeating itself)
-- qSC_2_PBS renames bits.confname.qSC_2_PBS (repeating itself)
-- qSC_2_PBS_ACCOUNTING renames bits.confname.qSC_2_P... (repeating itself)
-- qSC_2_PBS_CHECKPOINT renames bits.confname.qSC_2_P... (repeating itself)
-- qSC_2_PBS_LOCATE renames bits.confname.qSC_2_PBS_L... (repeating itself)
-- qSC_2_PBS_MESSAGE renames bits.confname.qSC_2_PBS_... (repeating itself)
-- qSC_2_PBS_TRACK renames bits.confname.qSC_2_PBS_TRACK (repeating itself)
-- qSC_2_SW_DEV renames bits.confname.qSC_2_SW_DEV (repeating itself)
-- qSC_2_UPE renames bits.confname.qSC_2_UPE (repeating itself)
-- qSC_2_VERSION renames bits.confname.qSC_2_VERSION (repeating itself)
-- qSC_ADVISORY_INFO renames bits.confname.qSC_ADVISO... (repeating itself)
-- qSC_AIO_LISTIO_MAX renames bits.confname.qSC_AIO_L... (repeating itself)
-- qSC_AIO_MAX renames bits.confname.qSC_AIO_MAX (repeating itself)
-- qSC_AIO_PRIO_DELTA_MAX renames bits.confname.qSC_A... (repeating itself)
-- qSC_ARG_MAX renames bits.confname.qSC_ARG_MAX (repeating itself)
-- qSC_ASYNCHRONOUS_IO renames bits.confname.qSC_ASYN... (repeating itself)
-- qSC_ATEXIT_MAX renames bits.confname.qSC_ATEXIT_MAX (repeating itself)
-- qSC_AVPHYS_PAGES renames bits.confname.qSC_AVPHYS_... (repeating itself)
-- qSC_BARRIERS renames bits.confname.qSC_BARRIERS (repeating itself)
-- qSC_BASE renames bits.confname.qSC_BASE (repeating itself)
-- qSC_BC_BASE_MAX renames bits.confname.qSC_BC_BASE_MAX (repeating itself)
-- qSC_BC_DIM_MAX renames bits.confname.qSC_BC_DIM_MAX (repeating itself)
-- qSC_BC_SCALE_MAX renames bits.confname.qSC_BC_SCAL... (repeating itself)
-- qSC_BC_STRING_MAX renames bits.confname.qSC_BC_STR... (repeating itself)
-- qSC_CHARCLASS_NAME_MAX renames bits.confname.qSC_C... (repeating itself)
-- qSC_CHAR_BIT renames bits.confname.qSC_CHAR_BIT (repeating itself)
-- qSC_CHAR_MAX renames bits.confname.qSC_CHAR_MAX (repeating itself)
-- qSC_CHAR_MIN renames bits.confname.qSC_CHAR_MIN (repeating itself)
-- qSC_CHILD_MAX renames bits.confname.qSC_CHILD_MAX (repeating itself)
-- qSC_CLK_TCK renames bits.confname.qSC_CLK_TCK (repeating itself)
-- qSC_CLOCK_SELECTION renames bits.confname.qSC_CLOC... (repeating itself)
-- qSC_COLL_WEIGHTS_MAX renames bits.confname.qSC_COL... (repeating itself)
-- qSC_CPUTIME renames bits.confname.qSC_CPUTIME (repeating itself)
-- qSC_C_LANG_SUPPORT renames bits.confname.qSC_C_LAN... (repeating itself)
-- qSC_C_LANG_SUPPORT_R renames bits.confname.qSC_C_L... (repeating itself)
-- qSC_DELAYTIMER_MAX renames bits.confname.qSC_DELAY... (repeating itself)
-- qSC_DEVICE_IO renames bits.confname.qSC_DEVICE_IO (repeating itself)
-- qSC_DEVICE_SPECIFIC renames bits.confname.qSC_DEVI... (repeating itself)
-- qSC_DEVICE_SPECIFIC_R renames bits.confname.qSC_DE... (repeating itself)
-- qSC_EQUIV_CLASS_MAX renames bits.confname.qSC_EQUI... (repeating itself)
-- qSC_EXPR_NEST_MAX renames bits.confname.qSC_EXPR_N... (repeating itself)
-- qSC_FD_MGMT renames bits.confname.qSC_FD_MGMT (repeating itself)
-- qSC_FIFO renames bits.confname.qSC_FIFO (repeating itself)
-- qSC_FILE_ATTRIBUTES renames bits.confname.qSC_FILE... (repeating itself)
-- qSC_FILE_LOCKING renames bits.confname.qSC_FILE_LO... (repeating itself)
-- qSC_FILE_SYSTEM renames bits.confname.qSC_FILE_SYSTEM (repeating itself)
-- qSC_FSYNC renames bits.confname.qSC_FSYNC (repeating itself)
-- qSC_GETGR_R_SIZE_MAX renames bits.confname.qSC_GET... (repeating itself)
-- qSC_GETPW_R_SIZE_MAX renames bits.confname.qSC_GET... (repeating itself)
-- qSC_HOST_NAME_MAX renames bits.confname.qSC_HOST_N... (repeating itself)
-- qSC_INT_MAX renames bits.confname.qSC_INT_MAX (repeating itself)
-- qSC_INT_MIN renames bits.confname.qSC_INT_MIN (repeating itself)
-- qSC_IOV_MAX renames bits.confname.qSC_IOV_MAX (repeating itself)
-- qSC_IPV6 renames bits.confname.qSC_IPV6 (repeating itself)
-- qSC_JOB_CONTROL renames bits.confname.qSC_JOB_CONTROL (repeating itself)
-- qSC_LEVEL1_DCACHE_ASSOC renames bits.confname.qSC_... (repeating itself)
-- qSC_LEVEL1_DCACHE_LINESIZE renames bits.confname.q... (repeating itself)
-- qSC_LEVEL1_DCACHE_SIZE renames bits.confname.qSC_L... (repeating itself)
-- qSC_LEVEL1_ICACHE_ASSOC renames bits.confname.qSC_... (repeating itself)
-- qSC_LEVEL1_ICACHE_LINESIZE renames bits.confname.q... (repeating itself)
-- qSC_LEVEL1_ICACHE_SIZE renames bits.confname.qSC_L... (repeating itself)
-- qSC_LEVEL2_CACHE_ASSOC renames bits.confname.qSC_L... (repeating itself)
-- qSC_LEVEL2_CACHE_LINESIZE renames bits.confname.qS... (repeating itself)
-- qSC_LEVEL2_CACHE_SIZE renames bits.confname.qSC_LE... (repeating itself)
-- qSC_LEVEL3_CACHE_ASSOC renames bits.confname.qSC_L... (repeating itself)
-- qSC_LEVEL3_CACHE_LINESIZE renames bits.confname.qS... (repeating itself)
-- qSC_LEVEL3_CACHE_SIZE renames bits.confname.qSC_LE... (repeating itself)
-- qSC_LEVEL4_CACHE_ASSOC renames bits.confname.qSC_L... (repeating itself)
-- qSC_LEVEL4_CACHE_LINESIZE renames bits.confname.qS... (repeating itself)
-- qSC_LEVEL4_CACHE_SIZE renames bits.confname.qSC_LE... (repeating itself)
-- qSC_LINE_MAX renames bits.confname.qSC_LINE_MAX (repeating itself)
-- qSC_LOGIN_NAME_MAX renames bits.confname.qSC_LOGIN... (repeating itself)
-- qSC_LONG_BIT renames bits.confname.qSC_LONG_BIT (repeating itself)
-- qSC_MAPPED_FILES renames bits.confname.qSC_MAPPED_... (repeating itself)
-- qSC_MB_LEN_MAX renames bits.confname.qSC_MB_LEN_MAX (repeating itself)
-- qSC_MEMLOCK renames bits.confname.qSC_MEMLOCK (repeating itself)
-- qSC_MEMLOCK_RANGE renames bits.confname.qSC_MEMLOC... (repeating itself)
-- qSC_MEMORY_PROTECTION renames bits.confname.qSC_ME... (repeating itself)
-- qSC_MESSAGE_PASSING renames bits.confname.qSC_MESS... (repeating itself)
-- qSC_MONOTONIC_CLOCK renames bits.confname.qSC_MONO... (repeating itself)
-- qSC_MQ_OPEN_MAX renames bits.confname.qSC_MQ_OPEN_MAX (repeating itself)
-- qSC_MQ_PRIO_MAX renames bits.confname.qSC_MQ_PRIO_MAX (repeating itself)
-- qSC_MULTI_PROCESS renames bits.confname.qSC_MULTI_... (repeating itself)
-- qSC_NETWORKING renames bits.confname.qSC_NETWORKING (repeating itself)
-- qSC_NGROUPS_MAX renames bits.confname.qSC_NGROUPS_MAX (repeating itself)
-- qSC_NL_ARGMAX renames bits.confname.qSC_NL_ARGMAX (repeating itself)
-- qSC_NL_LANGMAX renames bits.confname.qSC_NL_LANGMAX (repeating itself)
-- qSC_NL_MSGMAX renames bits.confname.qSC_NL_MSGMAX (repeating itself)
-- qSC_NL_NMAX renames bits.confname.qSC_NL_NMAX (repeating itself)
-- qSC_NL_SETMAX renames bits.confname.qSC_NL_SETMAX (repeating itself)
-- qSC_NL_TEXTMAX renames bits.confname.qSC_NL_TEXTMAX (repeating itself)
-- qSC_NPROCESSORS_CONF renames bits.confname.qSC_NPR... (repeating itself)
-- qSC_NZERO renames bits.confname.qSC_NZERO (repeating itself)
-- qSC_OPEN_MAX renames bits.confname.qSC_OPEN_MAX (repeating itself)
-- qSC_PAGESIZE renames bits.confname.qSC_PAGESIZE (repeating itself)
-- SC_PAGE_SIZE renames bits.confname.SC_PAGE_SIZE (repeating itself)
-- qSC_PASS_MAX renames bits.confname.qSC_PASS_MAX (repeating itself)
-- qSC_PHYS_PAGES renames bits.confname.qSC_PHYS_PAGES (repeating itself)
-- qSC_PII renames bits.confname.qSC_PII (repeating itself)
-- qSC_PII_INTERNET renames bits.confname.qSC_PII_INT... (repeating itself)
-- qSC_PII_INTERNET_DGRAM renames bits.confname.qSC_P... (repeating itself)
-- qSC_PII_INTERNET_STREAM renames bits.confname.qSC_... (repeating itself)
-- qSC_PII_OSI renames bits.confname.qSC_PII_OSI (repeating itself)
-- qSC_PII_OSI_CLTS renames bits.confname.qSC_PII_OSI... (repeating itself)
-- qSC_PII_OSI_COTS renames bits.confname.qSC_PII_OSI... (repeating itself)
-- qSC_PII_OSI_M renames bits.confname.qSC_PII_OSI_M (repeating itself)
-- qSC_PII_SOCKET renames bits.confname.qSC_PII_SOCKET (repeating itself)
-- qSC_PII_XTI renames bits.confname.qSC_PII_XTI (repeating itself)
-- qSC_PIPE renames bits.confname.qSC_PIPE (repeating itself)
-- qSC_POLL renames bits.confname.qSC_POLL (repeating itself)
-- qSC_PRIORITIZED_IO renames bits.confname.qSC_PRIOR... (repeating itself)
-- qSC_PRIORITY_SCHEDULING renames bits.confname.qSC_... (repeating itself)
-- qSC_RAW_SOCKETS renames bits.confname.qSC_RAW_SOCKETS (repeating itself)
-- qSC_READER_WRITER_LOCKS renames bits.confname.qSC_... (repeating itself)
-- qSC_REALTIME_SIGNALS renames bits.confname.qSC_REA... (repeating itself)
-- qSC_REGEXP renames bits.confname.qSC_REGEXP (repeating itself)
-- qSC_REGEX_VERSION renames bits.confname.qSC_REGEX_... (repeating itself)
-- qSC_RE_DUP_MAX renames bits.confname.qSC_RE_DUP_MAX (repeating itself)
-- qSC_RTSIG_MAX renames bits.confname.qSC_RTSIG_MAX (repeating itself)
-- qSC_SAVED_IDS renames bits.confname.qSC_SAVED_IDS (repeating itself)
-- qSC_SCHAR_MAX renames bits.confname.qSC_SCHAR_MAX (repeating itself)
-- qSC_SCHAR_MIN renames bits.confname.qSC_SCHAR_MIN (repeating itself)
-- qSC_SELECT renames bits.confname.qSC_SELECT (repeating itself)
-- qSC_SEMAPHORES renames bits.confname.qSC_SEMAPHORES (repeating itself)
-- qSC_SEM_NSEMS_MAX renames bits.confname.qSC_SEM_NS... (repeating itself)
-- qSC_SEM_VALUE_MAX renames bits.confname.qSC_SEM_VA... (repeating itself)
-- qSC_SHARED_MEMORY_OBJECTS renames bits.confname.qS... (repeating itself)
-- qSC_SHELL renames bits.confname.qSC_SHELL (repeating itself)
-- qSC_SHRT_MAX renames bits.confname.qSC_SHRT_MAX (repeating itself)
-- qSC_SHRT_MIN renames bits.confname.qSC_SHRT_MIN (repeating itself)
-- qSC_SIGNALS renames bits.confname.qSC_SIGNALS (repeating itself)
-- qSC_SIGQUEUE_MAX renames bits.confname.qSC_SIGQUEU... (repeating itself)
-- qSC_SINGLE_PROCESS renames bits.confname.qSC_SINGL... (repeating itself)
-- qSC_SPAWN renames bits.confname.qSC_SPAWN (repeating itself)
-- qSC_SPIN_LOCKS renames bits.confname.qSC_SPIN_LOCKS (repeating itself)
-- qSC_SPORADIC_SERVER renames bits.confname.qSC_SPOR... (repeating itself)
-- qSC_SSIZE_MAX renames bits.confname.qSC_SSIZE_MAX (repeating itself)
-- qSC_SS_REPL_MAX renames bits.confname.qSC_SS_REPL_MAX (repeating itself)
-- qSC_STREAMS renames bits.confname.qSC_STREAMS (repeating itself)
-- qSC_STREAM_MAX renames bits.confname.qSC_STREAM_MAX (repeating itself)
-- qSC_SYMLOOP_MAX renames bits.confname.qSC_SYMLOOP_MAX (repeating itself)
-- qSC_SYNCHRONIZED_IO renames bits.confname.qSC_SYNC... (repeating itself)
-- qSC_SYSTEM_DATABASE renames bits.confname.qSC_SYST... (repeating itself)
-- qSC_SYSTEM_DATABASE_R renames bits.confname.qSC_SY... (repeating itself)
-- qSC_THREADS renames bits.confname.qSC_THREADS (repeating itself)
-- qSC_THREAD_ATTR_STACKADDR renames bits.confname.qS... (repeating itself)
-- qSC_THREAD_ATTR_STACKSIZE renames bits.confname.qS... (repeating itself)
-- qSC_THREAD_CPUTIME renames bits.confname.qSC_THREA... (repeating itself)
-- qSC_THREAD_DESTRUCTOR_ITERATIONS renames bits.conf... (repeating itself)
-- qSC_THREAD_KEYS_MAX renames bits.confname.qSC_THRE... (repeating itself)
-- qSC_THREAD_PRIORITY_SCHEDULING renames bits.confna... (repeating itself)
-- qSC_THREAD_PRIO_INHERIT renames bits.confname.qSC_... (repeating itself)
-- qSC_THREAD_PRIO_PROTECT renames bits.confname.qSC_... (repeating itself)
-- qSC_THREAD_PROCESS_SHARED renames bits.confname.qS... (repeating itself)
-- qSC_THREAD_ROBUST_PRIO_INHERIT renames bits.confna... (repeating itself)
-- qSC_THREAD_ROBUST_PRIO_PROTECT renames bits.confna... (repeating itself)
-- qSC_THREAD_SAFE_FUNCTIONS renames bits.confname.qS... (repeating itself)
-- qSC_THREAD_SPORADIC_SERVER renames bits.confname.q... (repeating itself)
-- qSC_THREAD_STACK_MIN renames bits.confname.qSC_THR... (repeating itself)
-- qSC_THREAD_THREADS_MAX renames bits.confname.qSC_T... (repeating itself)
-- qSC_TIMEOUTS renames bits.confname.qSC_TIMEOUTS (repeating itself)
-- qSC_TIMERS renames bits.confname.qSC_TIMERS (repeating itself)
-- qSC_TIMER_MAX renames bits.confname.qSC_TIMER_MAX (repeating itself)
-- qSC_TRACE renames bits.confname.qSC_TRACE (repeating itself)
-- qSC_TRACE_EVENT_FILTER renames bits.confname.qSC_T... (repeating itself)
-- qSC_TRACE_EVENT_NAME_MAX renames bits.confname.qSC... (repeating itself)
-- qSC_TRACE_INHERIT renames bits.confname.qSC_TRACE_... (repeating itself)
-- qSC_TRACE_LOG renames bits.confname.qSC_TRACE_LOG (repeating itself)
-- qSC_TRACE_NAME_MAX renames bits.confname.qSC_TRACE... (repeating itself)
-- qSC_TRACE_SYS_MAX renames bits.confname.qSC_TRACE_... (repeating itself)
-- qSC_TRACE_USER_EVENT_MAX renames bits.confname.qSC... (repeating itself)
-- qSC_TTY_NAME_MAX renames bits.confname.qSC_TTY_NAM... (repeating itself)
-- qSC_TYPED_MEMORY_OBJECTS renames bits.confname.qSC... (repeating itself)
-- qSC_TZNAME_MAX renames bits.confname.qSC_TZNAME_MAX (repeating itself)
-- qSC_T_IOV_MAX renames bits.confname.qSC_T_IOV_MAX (repeating itself)
-- qSC_UCHAR_MAX renames bits.confname.qSC_UCHAR_MAX (repeating itself)
-- qSC_UINT_MAX renames bits.confname.qSC_UINT_MAX (repeating itself)
-- qSC_UIO_MAXIOV renames bits.confname.qSC_UIO_MAXIOV (repeating itself)
-- qSC_ULONG_MAX renames bits.confname.qSC_ULONG_MAX (repeating itself)
-- qSC_USER_GROUPS renames bits.confname.qSC_USER_GROUPS (repeating itself)
-- qSC_USER_GROUPS_R renames bits.confname.qSC_USER_G... (repeating itself)
-- qSC_USHRT_MAX renames bits.confname.qSC_USHRT_MAX (repeating itself)
-- qSC_V6_ILP32_OFF32 renames bits.confname.qSC_V6_IL... (repeating itself)
-- qSC_V6_ILP32_OFFBIG renames bits.confname.qSC_V6_I... (repeating itself)
-- qSC_V6_LP64_OFF64 renames bits.confname.qSC_V6_LP6... (repeating itself)
-- qSC_V6_LPBIG_OFFBIG renames bits.confname.qSC_V6_L... (repeating itself)
-- qSC_V7_ILP32_OFF32 renames bits.confname.qSC_V7_IL... (repeating itself)
-- qSC_V7_ILP32_OFFBIG renames bits.confname.qSC_V7_I... (repeating itself)
-- qSC_V7_LP64_OFF64 renames bits.confname.qSC_V7_LP6... (repeating itself)
-- qSC_V7_LPBIG_OFFBIG renames bits.confname.qSC_V7_L... (repeating itself)
-- qSC_VERSION renames bits.confname.qSC_VERSION (repeating itself)
-- qSC_WORD_BIT renames bits.confname.qSC_WORD_BIT (repeating itself)
-- qSC_XBS5_ILP32_OFF32 renames bits.confname.qSC_XBS... (repeating itself)
-- qSC_XBS5_ILP32_OFFBIG renames bits.confname.qSC_XB... (repeating itself)
-- qSC_XBS5_LP64_OFF64 renames bits.confname.qSC_XBS5... (repeating itself)
-- qSC_XBS5_LPBIG_OFFBIG renames bits.confname.qSC_XB... (repeating itself)
-- qSC_XOPEN_CRYPT renames bits.confname.qSC_XOPEN_CRYPT (repeating itself)
-- qSC_XOPEN_ENH_I18N renames bits.confname.qSC_XOPEN... (repeating itself)
-- qSC_XOPEN_LEGACY renames bits.confname.qSC_XOPEN_L... (repeating itself)
-- qSC_XOPEN_REALTIME renames bits.confname.qSC_XOPEN... (repeating itself)
-- qSC_XOPEN_REALTIME_THREADS renames bits.confname.q... (repeating itself)
-- qSC_XOPEN_SHM renames bits.confname.qSC_XOPEN_SHM (repeating itself)
-- qSC_XOPEN_STREAMS renames bits.confname.qSC_XOPEN_... (repeating itself)
-- qSC_XOPEN_UNIX renames bits.confname.qSC_XOPEN_UNIX (repeating itself)
-- qSC_XOPEN_VERSION renames bits.confname.qSC_XOPEN_... (repeating itself)
-- qSC_XOPEN_XCU_VERSION renames bits.confname.qSC_XO... (repeating itself)
-- qSC_XOPEN_XPG2 renames bits.confname.qSC_XOPEN_XPG2 (repeating itself)
-- qSC_XOPEN_XPG3 renames bits.confname.qSC_XOPEN_XPG3 (repeating itself)
-- qSC_XOPEN_XPG4 renames bits.confname.qSC_XOPEN_XPG4 (repeating itself)
subtype socklen_t is bits.types.socklen_t;
subtype socklen_t_ptr is bits.types.socklen_t_ptr;
function C_access (name : access constant char; A_type : signed_int)
return signed_int;
pragma Import (C, C_access, "access");
function euidaccess (name : access constant char; A_type : signed_int)
return signed_int;
pragma Import (C, euidaccess, "euidaccess");
function eaccess (name : access constant char; A_type : signed_int)
return signed_int;
pragma Import (C, eaccess, "eaccess");
function faccessat (fd : signed_int; file : access constant char;
A_type : signed_int; flag : signed_int) return signed_int;
pragma Import (C, faccessat, "faccessat");
function lseek (fd : signed_int; offset : bits.types.off64_t;
whence : signed_int) return bits.types.off64_t;
pragma Import (C, lseek, "lseek64");
function lseek64 (fd : signed_int; offset : bits.types.off64_t;
whence : signed_int) return bits.types.off64_t;
pragma Import (C, lseek64, "lseek64");
function close (fd : signed_int) return signed_int;
pragma Import (C, close, "close");
function read (fd : signed_int; buf : void_ptr; nbytes : stddef.size_t)
return sys.types.ssize_t;
pragma Import (C, read, "read");
function write (fd : signed_int; buf : void_const_ptr; n : stddef.size_t)
return sys.types.ssize_t;
pragma Import (C, write, "write");
function pread (fd : signed_int; buf : void_ptr; nbytes : stddef.size_t;
offset : bits.types.off64_t) return sys.types.ssize_t;
pragma Import (C, pread, "pread64");
function pwrite (fd : signed_int; buf : void_const_ptr;
nbytes : stddef.size_t; offset : bits.types.off64_t)
return sys.types.ssize_t;
pragma Import (C, pwrite, "pwrite64");
function pread64 (fd : signed_int; buf : void_ptr; nbytes : stddef.size_t;
offset : bits.types.off64_t) return sys.types.ssize_t;
pragma Import (C, pread64, "pread64");
function pwrite64 (fd : signed_int; buf : void_const_ptr;
n : stddef.size_t; offset : bits.types.off64_t)
return sys.types.ssize_t;
pragma Import (C, pwrite64, "pwrite64");
function pipe (pipedes : access signed_int) return signed_int;
pragma Import (C, pipe, "pipe");
function pipe2 (pipedes : access signed_int; flags : signed_int)
return signed_int;
pragma Import (C, pipe2, "pipe2");
function alarm (seconds : unsigned_int) return unsigned_int;
pragma Import (C, alarm, "alarm");
function sleep (seconds : unsigned_int) return unsigned_int;
pragma Import (C, sleep, "sleep");
function ualarm (value : bits.types.useconds_t;
interval : bits.types.useconds_t) return bits.types.useconds_t;
pragma Import (C, ualarm, "ualarm");
function usleep (useconds : bits.types.useconds_t) return signed_int;
pragma Import (C, usleep, "usleep");
function pause return signed_int;
pragma Import (C, pause, "pause");
function chown (file : access constant char; owner : bits.types.uid_t;
group : bits.types.gid_t) return signed_int;
pragma Import (C, chown, "chown");
function fchown (fd : signed_int; owner : bits.types.uid_t;
group : bits.types.gid_t) return signed_int;
pragma Import (C, fchown, "fchown");
function lchown (file : access constant char; owner : bits.types.uid_t;
group : bits.types.gid_t) return signed_int;
pragma Import (C, lchown, "lchown");
function fchownat (fd : signed_int; file : access constant char;
owner : bits.types.uid_t; group : bits.types.gid_t; flag : signed_int)
return signed_int;
pragma Import (C, fchownat, "fchownat");
function chdir (path : access constant char) return signed_int;
pragma Import (C, chdir, "chdir");
function fchdir (fd : signed_int) return signed_int;
pragma Import (C, fchdir, "fchdir");
function getcwd (buf : access char; size : stddef.size_t) return char_ptr;
pragma Import (C, getcwd, "getcwd");
function get_current_dir_name return char_ptr;
pragma Import (C, get_current_dir_name, "get_current_dir_name");
function getwd (buf : access char) return char_ptr;
pragma Import (C, getwd, "getwd");
function dup (fd : signed_int) return signed_int;
pragma Import (C, dup, "dup");
function dup2 (fd : signed_int; fd2 : signed_int) return signed_int;
pragma Import (C, dup2, "dup2");
function dup3 (fd : signed_int; fd2 : signed_int; flags : signed_int)
return signed_int;
pragma Import (C, dup3, "dup3");
qqenviron : aliased char_ptr_ptr;
pragma Import (C, qqenviron, "__environ");
environ : aliased char_ptr_ptr;
pragma Import (C, environ, "environ");
function execve (path : access constant char; argv : access char_ptr;
envp : access char_ptr) return signed_int;
pragma Import (C, execve, "execve");
function fexecve (fd : signed_int; argv : access char_ptr;
envp : access char_ptr) return signed_int;
pragma Import (C, fexecve, "fexecve");
function execv (path : access constant char; argv : access char_ptr)
return signed_int;
pragma Import (C, execv, "execv");
function execle (path : access constant char; arg : access constant char)
return signed_int;
pragma Import (C, execle, "execle");
function execl (path : access constant char; arg : access constant char)
return signed_int;
pragma Import (C, execl, "execl");
function execvp (file : access constant char; argv : access char_ptr)
return signed_int;
pragma Import (C, execvp, "execvp");
function execlp (file : access constant char; arg : access constant char)
return signed_int;
pragma Import (C, execlp, "execlp");
function execvpe (file : access constant char; argv : access char_ptr;
envp : access char_ptr) return signed_int;
pragma Import (C, execvpe, "execvpe");
function nice (inc : signed_int) return signed_int;
pragma Import (C, nice, "nice");
procedure C_qexit (status : signed_int);
pragma No_Return (C_qexit);
pragma Import (C, C_qexit, "_exit");
-- #include <bits/confname.h>
function pathconf (path : access constant char; name : signed_int)
return signed_long;
pragma Import (C, pathconf, "pathconf");
function fpathconf (fd : signed_int; name : signed_int)
return signed_long;
pragma Import (C, fpathconf, "fpathconf");
function sysconf (name : signed_int) return signed_long;
pragma Import (C, sysconf, "sysconf");
function confstr (name : signed_int; buf : access char;
len : stddef.size_t) return stddef.size_t;
pragma Import (C, confstr, "confstr");
function getpid return bits.types.pid_t;
pragma Import (C, getpid, "getpid");
function getppid return bits.types.pid_t;
pragma Import (C, getppid, "getppid");
function getpgrp return bits.types.pid_t;
pragma Import (C, getpgrp, "getpgrp");
function qqgetpgid (pid : bits.types.pid_t) return bits.types.pid_t;
pragma Import (C, qqgetpgid, "__getpgid");
function getpgid (pid : bits.types.pid_t) return bits.types.pid_t;
pragma Import (C, getpgid, "getpgid");
function setpgid (pid : bits.types.pid_t; pgid : bits.types.pid_t)
return signed_int;
pragma Import (C, setpgid, "setpgid");
function setpgrp return signed_int;
pragma Import (C, setpgrp, "setpgrp");
function setsid return bits.types.pid_t;
pragma Import (C, setsid, "setsid");
function getsid (pid : bits.types.pid_t) return bits.types.pid_t;
pragma Import (C, getsid, "getsid");
function getuid return bits.types.uid_t;
pragma Import (C, getuid, "getuid");
function geteuid return bits.types.uid_t;
pragma Import (C, geteuid, "geteuid");
function getgid return bits.types.gid_t;
pragma Import (C, getgid, "getgid");
function getegid return bits.types.gid_t;
pragma Import (C, getegid, "getegid");
function getgroups (size : signed_int; list : access bits.types.gid_t)
return signed_int;
pragma Import (C, getgroups, "getgroups");
function group_member (gid : bits.types.gid_t) return signed_int;
pragma Import (C, group_member, "group_member");
function setuid (uid : bits.types.uid_t) return signed_int;
pragma Import (C, setuid, "setuid");
function setreuid (ruid : bits.types.uid_t; euid : bits.types.uid_t)
return signed_int;
pragma Import (C, setreuid, "setreuid");
function seteuid (uid : bits.types.uid_t) return signed_int;
pragma Import (C, seteuid, "seteuid");
function setgid (gid : bits.types.gid_t) return signed_int;
pragma Import (C, setgid, "setgid");
function setregid (rgid : bits.types.gid_t; egid : bits.types.gid_t)
return signed_int;
pragma Import (C, setregid, "setregid");
function setegid (gid : bits.types.gid_t) return signed_int;
pragma Import (C, setegid, "setegid");
function getresuid (ruid : access bits.types.uid_t;
euid : access bits.types.uid_t; suid : access bits.types.uid_t)
return signed_int;
pragma Import (C, getresuid, "getresuid");
function getresgid (rgid : access bits.types.gid_t;
egid : access bits.types.gid_t; sgid : access bits.types.gid_t)
return signed_int;
pragma Import (C, getresgid, "getresgid");
function setresuid (ruid : bits.types.uid_t; euid : bits.types.uid_t;
suid : bits.types.uid_t) return signed_int;
pragma Import (C, setresuid, "setresuid");
function setresgid (rgid : bits.types.gid_t; egid : bits.types.gid_t;
sgid : bits.types.gid_t) return signed_int;
pragma Import (C, setresgid, "setresgid");
function fork return bits.types.pid_t;
pragma Import (C, fork, "fork");
function vfork return bits.types.pid_t;
pragma Import (C, vfork, "vfork");
function ttyname (fd : signed_int) return char_ptr;
pragma Import (C, ttyname, "ttyname");
function ttyname_r (fd : signed_int; buf : access char;
buflen : stddef.size_t) return signed_int;
pragma Import (C, ttyname_r, "ttyname_r");
function isatty (fd : signed_int) return signed_int;
pragma Import (C, isatty, "isatty");
function ttyslot return signed_int;
pragma Import (C, ttyslot, "ttyslot");
function link (from : access constant char; to : access constant char)
return signed_int;
pragma Import (C, link, "link");
function linkat (fromfd : signed_int; from : access constant char;
tofd : signed_int; to : access constant char; flags : signed_int)
return signed_int;
pragma Import (C, linkat, "linkat");
function symlink (from : access constant char; to : access constant char)
return signed_int;
pragma Import (C, symlink, "symlink");
function readlink (path : access constant char; buf : access char;
len : stddef.size_t) return sys.types.ssize_t;
pragma Import (C, readlink, "readlink");
function symlinkat (from : access constant char; tofd : signed_int;
to : access constant char) return signed_int;
pragma Import (C, symlinkat, "symlinkat");
function readlinkat (fd : signed_int; path : access constant char;
buf : access char; len : stddef.size_t) return sys.types.ssize_t;
pragma Import (C, readlinkat, "readlinkat");
function unlink (name : access constant char) return signed_int;
pragma Import (C, unlink, "unlink");
function unlinkat (fd : signed_int; name : access constant char;
flag : signed_int) return signed_int;
pragma Import (C, unlinkat, "unlinkat");
function rmdir (path : access constant char) return signed_int;
pragma Import (C, rmdir, "rmdir");
function tcgetpgrp (fd : signed_int) return bits.types.pid_t;
pragma Import (C, tcgetpgrp, "tcgetpgrp");
function tcsetpgrp (fd : signed_int; pgrp_id : bits.types.pid_t)
return signed_int;
pragma Import (C, tcsetpgrp, "tcsetpgrp");
function getlogin return char_ptr;
pragma Import (C, getlogin, "getlogin");
function getlogin_r (name : access char; name_len : stddef.size_t)
return signed_int;
pragma Import (C, getlogin_r, "getlogin_r");
function setlogin (name : access constant char) return signed_int;
pragma Import (C, setlogin, "setlogin");
-- #include <getopt.h>
function gethostname (name : access char; len : stddef.size_t)
return signed_int;
pragma Import (C, gethostname, "gethostname");
function sethostname (name : access constant char; len : stddef.size_t)
return signed_int;
pragma Import (C, sethostname, "sethostname");
function sethostid (id : signed_long) return signed_int;
pragma Import (C, sethostid, "sethostid");
function getdomainname (name : access char; len : stddef.size_t)
return signed_int;
pragma Import (C, getdomainname, "getdomainname");
function setdomainname (name : access constant char; len : stddef.size_t)
return signed_int;
pragma Import (C, setdomainname, "setdomainname");
function vhangup return signed_int;
pragma Import (C, vhangup, "vhangup");
function revoke (file : access constant char) return signed_int;
pragma Import (C, revoke, "revoke");
function profil (sample_buffer : access unsigned_short;
size : stddef.size_t; offset : stddef.size_t; scale : unsigned_int)
return signed_int;
pragma Import (C, profil, "profil");
function acct (name : access constant char) return signed_int;
pragma Import (C, acct, "acct");
function getusershell return char_ptr;
pragma Import (C, getusershell, "getusershell");
procedure endusershell;
pragma Import (C, endusershell, "endusershell");
procedure setusershell;
pragma Import (C, setusershell, "setusershell");
function daemon (nochdir : signed_int; noclose : signed_int)
return signed_int;
pragma Import (C, daemon, "daemon");
function chroot (path : access constant char) return signed_int;
pragma Import (C, chroot, "chroot");
function getpass (prompt : access constant char) return char_ptr;
pragma Import (C, getpass, "getpass");
function fsync (fd : signed_int) return signed_int;
pragma Import (C, fsync, "fsync");
function syncfs (fd : signed_int) return signed_int;
pragma Import (C, syncfs, "syncfs");
function gethostid return signed_long;
pragma Import (C, gethostid, "gethostid");
procedure sync;
pragma Import (C, sync, "sync");
function getpagesize return signed_int;
pragma Import (C, getpagesize, "getpagesize");
function getdtablesize return signed_int;
pragma Import (C, getdtablesize, "getdtablesize");
function truncate (file : access constant char;
length : bits.types.off64_t) return signed_int;
pragma Import (C, truncate, "truncate64");
function truncate64 (file : access constant char;
length : bits.types.off64_t) return signed_int;
pragma Import (C, truncate64, "truncate64");
function ftruncate (fd : signed_int; length : bits.types.off64_t)
return signed_int;
pragma Import (C, ftruncate, "ftruncate64");
function ftruncate64 (fd : signed_int; length : bits.types.off64_t)
return signed_int;
pragma Import (C, ftruncate64, "ftruncate64");
function brk (addr : void_ptr) return signed_int;
pragma Import (C, brk, "brk");
function sbrk (A_delta : stdint.intptr_t) return void_ptr;
pragma Import (C, sbrk, "sbrk");
function syscall (sysno : signed_long) return signed_long;
function syscall (a1 : signed_long; a2 : void_ptr; a3 : unsigned_int)
return signed_long;
pragma Import (C, syscall, "syscall");
function lockf (fd : signed_int; cmd : signed_int;
len : bits.types.off64_t) return signed_int;
pragma Import (C, lockf, "lockf64");
function lockf64 (fd : signed_int; cmd : signed_int;
len : bits.types.off64_t) return signed_int;
pragma Import (C, lockf64, "lockf64");
function fdatasync (fildes : signed_int) return signed_int;
pragma Import (C, fdatasync, "fdatasync");
function crypt (key : access constant char; salt : access constant char)
return char_ptr;
pragma Import (C, crypt, "crypt");
procedure encrypt (glibc_block : access char; edflag : signed_int);
pragma Import (C, encrypt, "encrypt");
procedure swab (from : void_const_ptr; to : void_ptr;
n : sys.types.ssize_t);
pragma Import (C, swab, "swab");
F_LOCK : constant := 1;
F_OK : constant := 0;
F_TEST : constant := 3;
F_TLOCK : constant := 2;
F_ULOCK : constant := 0;
L_INCR : constant := 1;
L_SET : constant := 0;
L_XTND : constant := 2;
R_OK : constant := 4;
SEEK_CUR : constant := 1;
SEEK_DATA : constant := 3;
SEEK_END : constant := 2;
SEEK_HOLE : constant := 4;
SEEK_SET : constant := 0;
STDERR_FILENO : constant := 2;
STDIN_FILENO : constant := 0;
STDOUT_FILENO : constant := 1;
-- TEMP_FAILURE_RETRY (function macro)
W_OK : constant := 2;
X_OK : constant := 1;
POSIX2_C_BIND : constant := 200809;
POSIX2_C_DEV : constant := 200809;
POSIX2_C_VERSION : constant := 200809;
POSIX2_LOCALEDEF : constant := 200809;
POSIX2_SW_DEV : constant := 200809;
POSIX2_VERSION : constant := 200809;
POSIX_VERSION : constant := 200809;
UNISTD_H : constant := 1;
XOPEN_CRYPT : constant := 1;
XOPEN_ENH_I18N : constant := 1;
XOPEN_LEGACY : constant := 1;
XOPEN_UNIX : constant := 1;
XOPEN_VERSION : constant := 700;
XOPEN_XCU_VERSION : constant := 4;
XOPEN_XPG2 : constant := 1;
XOPEN_XPG3 : constant := 1;
XOPEN_XPG4 : constant := 1;
POSIX2_THIS_VERSION : constant := 200809;
-- __socklen_t_defined (empty)
end C.unistd;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.unwind is
pragma Preelaborate;
subtype Unwind_Word is unsigned_int;
subtype Unwind_Sword is signed_int;
subtype Unwind_Ptr is unsigned_int;
subtype Unwind_Internal_Ptr is unsigned_int;
subtype Unwind_Exception_Class is unsigned_long_long;
type enum_81b0bd73 is (URC_NO_REASON, URC_FOREIGN_EXCEPTION_CAUGHT,
URC_FATAL_PHASE2_ERROR, URC_FATAL_PHASE1_ERROR, URC_NORMAL_STOP,
URC_END_OF_STACK, URC_HANDLER_FOUND, URC_INSTALL_CONTEXT,
URC_CONTINUE_UNWIND);
for enum_81b0bd73 use (URC_NO_REASON => 0,
URC_FOREIGN_EXCEPTION_CAUGHT => 1, URC_FATAL_PHASE2_ERROR => 2,
URC_FATAL_PHASE1_ERROR => 3, URC_NORMAL_STOP => 4,
URC_END_OF_STACK => 5, URC_HANDLER_FOUND => 6,
URC_INSTALL_CONTEXT => 7, URC_CONTINUE_UNWIND => 8);
pragma Convention (C, enum_81b0bd73);
subtype Unwind_Reason_Code is enum_81b0bd73;
type struct_Unwind_Exception;
type struct_Unwind_Exception_ptr is access all struct_Unwind_Exception;
for struct_Unwind_Exception_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_Unwind_Exception_ptr);
pragma Convention (C, struct_Unwind_Exception_ptr);
type access_fb310e67 is access procedure (a1 : Unwind_Reason_Code;
a2 : access struct_Unwind_Exception);
pragma Convention (C, access_fb310e67);
subtype Unwind_Exception_Cleanup_Fn is access_fb310e67;
type struct_Unwind_Exception is record
exception_class : aliased Unwind_Exception_Class;
exception_cleanup : aliased Unwind_Exception_Cleanup_Fn;
private_1 : aliased Unwind_Word;
private_2 : aliased Unwind_Word;
end record;
for struct_Unwind_Exception'Alignment use Standard'Maximum_Alignment;
pragma Convention (C_Pass_By_Copy, struct_Unwind_Exception);
subtype Unwind_Action is signed_int;
type struct_Unwind_Context (<>) is limited private;
type struct_Unwind_Context_ptr is access all struct_Unwind_Context;
for struct_Unwind_Context_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_Unwind_Context_ptr);
pragma Convention (C, struct_Unwind_Context_ptr);
function Unwind_RaiseException (a1 : access struct_Unwind_Exception)
return Unwind_Reason_Code;
pragma Import (C, Unwind_RaiseException, "_Unwind_RaiseException");
type access_81d5952a is access function (a1 : signed_int;
a2 : Unwind_Action; a3 : Unwind_Exception_Class;
a4 : access struct_Unwind_Exception; a5 : access struct_Unwind_Context;
a6 : void_ptr) return Unwind_Reason_Code;
pragma Convention (C, access_81d5952a);
subtype Unwind_Stop_Fn is access_81d5952a;
function Unwind_ForcedUnwind (a1 : access struct_Unwind_Exception;
a2 : Unwind_Stop_Fn; a3 : void_ptr) return Unwind_Reason_Code;
pragma Import (C, Unwind_ForcedUnwind, "_Unwind_ForcedUnwind");
procedure Unwind_DeleteException (a1 : access struct_Unwind_Exception);
pragma Import (C, Unwind_DeleteException, "_Unwind_DeleteException");
procedure Unwind_Resume (a1 : access struct_Unwind_Exception);
pragma Import (C, Unwind_Resume, "_Unwind_Resume");
function Unwind_Resume_or_Rethrow (a1 : access struct_Unwind_Exception)
return Unwind_Reason_Code;
pragma Import (C, Unwind_Resume_or_Rethrow, "_Unwind_Resume_or_Rethrow");
type access_e199ecc5 is access function (
a1 : access struct_Unwind_Context; a2 : void_ptr)
return Unwind_Reason_Code;
pragma Convention (C, access_e199ecc5);
subtype Unwind_Trace_Fn is access_e199ecc5;
function Unwind_Backtrace (a1 : Unwind_Trace_Fn; a2 : void_ptr)
return Unwind_Reason_Code;
pragma Import (C, Unwind_Backtrace, "_Unwind_Backtrace");
function Unwind_GetGR (a1 : access struct_Unwind_Context; a2 : signed_int)
return Unwind_Word;
pragma Import (C, Unwind_GetGR, "_Unwind_GetGR");
procedure Unwind_SetGR (a1 : access struct_Unwind_Context;
a2 : signed_int; a3 : Unwind_Word);
pragma Import (C, Unwind_SetGR, "_Unwind_SetGR");
function Unwind_GetIP (a1 : access struct_Unwind_Context)
return Unwind_Ptr;
pragma Import (C, Unwind_GetIP, "_Unwind_GetIP");
function Unwind_GetIPInfo (a1 : access struct_Unwind_Context;
a2 : access signed_int) return Unwind_Ptr;
pragma Import (C, Unwind_GetIPInfo, "_Unwind_GetIPInfo");
procedure Unwind_SetIP (a1 : access struct_Unwind_Context;
a2 : Unwind_Ptr);
pragma Import (C, Unwind_SetIP, "_Unwind_SetIP");
function Unwind_GetCFA (a1 : access struct_Unwind_Context)
return Unwind_Word;
pragma Import (C, Unwind_GetCFA, "_Unwind_GetCFA");
function Unwind_GetLanguageSpecificData (
a1 : access struct_Unwind_Context) return void_ptr;
pragma Import (C, Unwind_GetLanguageSpecificData,
"_Unwind_GetLanguageSpecificData");
function Unwind_GetRegionStart (a1 : access struct_Unwind_Context)
return Unwind_Ptr;
pragma Import (C, Unwind_GetRegionStart, "_Unwind_GetRegionStart");
type access_c0f66b33 is access function (a1 : signed_int;
a2 : Unwind_Action; a3 : Unwind_Exception_Class;
a4 : access struct_Unwind_Exception; a5 : access struct_Unwind_Context)
return Unwind_Reason_Code;
pragma Convention (C, access_c0f66b33);
subtype Unwind_Personality_Fn is access_c0f66b33;
type struct_SjLj_Function_Context (<>) is limited private;
type struct_SjLj_Function_Context_ptr is
access all struct_SjLj_Function_Context;
for struct_SjLj_Function_Context_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_SjLj_Function_Context_ptr);
pragma Convention (C, struct_SjLj_Function_Context_ptr);
procedure Unwind_SjLj_Register (a1 : access struct_SjLj_Function_Context);
pragma Import (C, Unwind_SjLj_Register, "_Unwind_SjLj_Register");
procedure Unwind_SjLj_Unregister (
a1 : access struct_SjLj_Function_Context);
pragma Import (C, Unwind_SjLj_Unregister, "_Unwind_SjLj_Unregister");
function Unwind_SjLj_RaiseException (a1 : access struct_Unwind_Exception)
return Unwind_Reason_Code;
pragma Import (C, Unwind_SjLj_RaiseException,
"_Unwind_SjLj_RaiseException");
function Unwind_SjLj_ForcedUnwind (a1 : access struct_Unwind_Exception;
a2 : Unwind_Stop_Fn; a3 : void_ptr) return Unwind_Reason_Code;
pragma Import (C, Unwind_SjLj_ForcedUnwind, "_Unwind_SjLj_ForcedUnwind");
procedure Unwind_SjLj_Resume (a1 : access struct_Unwind_Exception);
pragma Import (C, Unwind_SjLj_Resume, "_Unwind_SjLj_Resume");
function Unwind_SjLj_Resume_or_Rethrow (
a1 : access struct_Unwind_Exception) return Unwind_Reason_Code;
pragma Import (C, Unwind_SjLj_Resume_or_Rethrow,
"_Unwind_SjLj_Resume_or_Rethrow");
function Unwind_GetDataRelBase (a1 : access struct_Unwind_Context)
return Unwind_Ptr;
pragma Import (C, Unwind_GetDataRelBase, "_Unwind_GetDataRelBase");
function Unwind_GetTextRelBase (a1 : access struct_Unwind_Context)
return Unwind_Ptr;
pragma Import (C, Unwind_GetTextRelBase, "_Unwind_GetTextRelBase");
function Unwind_FindEnclosingFunction (pc : void_ptr) return void_ptr;
pragma Import (C, Unwind_FindEnclosingFunction,
"_Unwind_FindEnclosingFunction");
subtype sleb128_t is signed_long;
subtype uleb128_t is unsigned_long;
-- LIBGCC2_UNWIND_ATTRIBUTE (empty)
UA_CLEANUP_PHASE : constant := 2;
UA_END_OF_STACK : constant := 16;
UA_FORCE_UNWIND : constant := 8;
UA_HANDLER_FRAME : constant := 4;
UA_SEARCH_PHASE : constant := 1;
-- _UNWIND_H (empty)
private
type struct_Unwind_Context is null record;
type struct_SjLj_Function_Context is null record;
end C.unwind;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.wchar is
pragma Preelaborate;
type union_47e5c904 (Unchecked_Tag : unsigned_int := 0) is record
case Unchecked_Tag is
when 0 =>
wch : unsigned_int;
when others =>
wchb : char_array (0 .. 3);
end case;
end record;
pragma Unchecked_Union (union_47e5c904);
pragma Convention (C_Pass_By_Copy, union_47e5c904);
type struct_2acbcca7 is record
count : aliased signed_int;
value : aliased union_47e5c904;
end record;
pragma Convention (C_Pass_By_Copy, struct_2acbcca7);
subtype mbstate_t is struct_2acbcca7;
mbstate_t_defined : constant := 1;
REQUIRE_wchar_t_array : constant wchar_t_array (0 .. 0) :=
(0 => wchar_t'Val (0));
end C.wchar;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
package C.xlocale is
pragma Preelaborate;
type struct_locale_struct;
type struct_locale_data (<>) is limited private;
type struct_locale_data_ptr is access all struct_locale_data;
for struct_locale_data_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_locale_data_ptr);
pragma Convention (C, struct_locale_data_ptr);
type struct_locale_data_ptr_array is array (size_t range <>) of
aliased struct_locale_data_ptr;
pragma Convention (C, struct_locale_data_ptr_array);
type struct_locale_struct is record
locales : aliased struct_locale_data_ptr_array (0 .. 12);
ctype_b : aliased unsigned_short_const_ptr;
ctype_tolower : aliased signed_int_const_ptr;
ctype_toupper : aliased signed_int_const_ptr;
names : aliased char_const_ptr_array (0 .. 12);
end record;
pragma Convention (C_Pass_By_Copy, struct_locale_struct);
type struct_locale_struct_ptr is access all struct_locale_struct;
for struct_locale_struct_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (struct_locale_struct_ptr);
pragma Convention (C, struct_locale_struct_ptr);
subtype qqlocale_t is struct_locale_struct_ptr;
subtype locale_t is qqlocale_t;
XLOCALE_H : constant := 1;
private
type struct_locale_data is null record;
end C.xlocale;
-- This file is translated by "headmaster" version 0.30-886eb78 (devel).
-- The original C header's license should be applied to this file.
-- All conditional-directives are expanded for the exclusive use of your
-- environment, it is not recommended to commit this file to any repository.
-------------------------------------------------------------------------------
with System;
package C is
pragma Preelaborate;
-- type void (<>) is limited private;
type bool is new Boolean;
pragma Convention (C, bool);
type signed_char is new Short_Short_Integer;
pragma Convention (C, signed_char);
type unsigned_char is mod 2 ** signed_char'Size;
pragma Convention (C, unsigned_char);
type signed_short is new Short_Integer;
pragma Convention (C, signed_short);
type unsigned_short is mod 2 ** signed_short'Size;
pragma Convention (C, unsigned_short);
type signed_int is new Integer;
pragma Convention (C, signed_int);
type unsigned_int is mod 2 ** signed_int'Size;
pragma Convention (C, unsigned_int);
type signed_long is new Long_Integer;
pragma Convention (C, signed_long);
type unsigned_long is mod 2 ** signed_long'Size;
pragma Convention (C, unsigned_long);
type signed_long_long is new Long_Long_Integer;
pragma Convention (C, signed_long_long);
type unsigned_long_long is mod 2 ** signed_long_long'Size;
pragma Convention (C, unsigned_long_long);
type float is new Standard.Float;
pragma Convention (C, float);
type double is new Long_Float;
pragma Convention (C, double);
type long_double is new Long_Long_Float;
pragma Convention (C, long_double);
-- type Float32 is ...
-- type Float64 is ...
-- type Float128 is ...
-- type Float32x is ...
-- type Float64x is ...
-- type Decimal32 is ...
-- type Decimal64 is ...
-- type Decimal128 is ...
type float_imaginary is new float;
pragma Convention (C, float_imaginary);
type double_imaginary is new double;
pragma Convention (C, double_imaginary);
type long_double_imaginary is new long_double;
pragma Convention (C, long_double_imaginary);
-- type Float32_imaginary is ...
-- type Float32x_imaginary is ...
-- type Float64_imaginary is ...
-- type Float64x_imaginary is ...
-- type Float128_imaginary is ...
type float_complex is record
Re, Im : float'Base;
end record;
pragma Complex_Representation (float_complex);
pragma Convention (C, float_complex);
type double_complex is record
Re, Im : double'Base;
end record;
pragma Complex_Representation (double_complex);
pragma Convention (C, double_complex);
type long_double_complex is record
Re, Im : long_double'Base;
end record;
pragma Complex_Representation (long_double_complex);
pragma Convention (C, long_double_complex);
-- type Float32_complex is ...
-- type Float32x_complex is ...
-- type Float64_complex is ...
-- type Float64x_complex is ...
-- type Float128_complex is ...
type char is new Character;
type int128_t is record
Lo, Hi : unsigned_long_long;
end record;
pragma Convention (C_Pass_By_Copy, int128_t);
type uint128_t is record
Lo, Hi : unsigned_long_long;
end record;
pragma Convention (C_Pass_By_Copy, uint128_t);
subtype builtin_va_list is System.Address;
type ptrdiff_t is new signed_int;
type size_t is new unsigned_int;
type wchar_t is new signed_long;
subtype void_ptr is System.Address;
type void_ptr_ptr is access all void_ptr;
for void_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (void_ptr_ptr);
pragma Convention (C, void_ptr_ptr);
type void_ptr_array is array (size_t range <>) of aliased void_ptr;
pragma Convention (C, void_ptr_array);
subtype void_const_ptr is System.Address;
type unsigned_char_ptr is access all unsigned_char;
for unsigned_char_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_char_ptr);
pragma Convention (C, unsigned_char_ptr);
type unsigned_char_array is array (size_t range <>) of
aliased unsigned_char;
pragma Convention (C, unsigned_char_array);
type unsigned_char_const_ptr is access constant unsigned_char;
for unsigned_char_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_char_const_ptr);
pragma Convention (C, unsigned_char_const_ptr);
type unsigned_char_ptr_ptr is access all unsigned_char_ptr;
for unsigned_char_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_char_ptr_ptr);
pragma Convention (C, unsigned_char_ptr_ptr);
type signed_short_ptr is access all signed_short;
for signed_short_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_short_ptr);
pragma Convention (C, signed_short_ptr);
type unsigned_short_array is array (size_t range <>) of
aliased unsigned_short;
pragma Convention (C, unsigned_short_array);
type unsigned_short_const_ptr is access constant unsigned_short;
for unsigned_short_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_short_const_ptr);
pragma Convention (C, unsigned_short_const_ptr);
type unsigned_short_ptr is access all unsigned_short;
for unsigned_short_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_short_ptr);
pragma Convention (C, unsigned_short_ptr);
type signed_int_ptr is access all signed_int;
for signed_int_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_int_ptr);
pragma Convention (C, signed_int_ptr);
type signed_int_array is array (size_t range <>) of aliased signed_int;
pragma Convention (C, signed_int_array);
type signed_int_volatile is new signed_int;
pragma Volatile (signed_int_volatile);
type signed_int_volatile_ptr is access all signed_int_volatile;
for signed_int_volatile_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_int_volatile_ptr);
pragma Convention (C, signed_int_volatile_ptr);
type signed_int_const_ptr is access constant signed_int;
for signed_int_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_int_const_ptr);
pragma Convention (C, signed_int_const_ptr);
type unsigned_int_array is array (size_t range <>) of
aliased unsigned_int;
pragma Convention (C, unsigned_int_array);
type unsigned_int_ptr is access all unsigned_int;
for unsigned_int_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_int_ptr);
pragma Convention (C, unsigned_int_ptr);
type unsigned_int_const_ptr is access constant unsigned_int;
for unsigned_int_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_int_const_ptr);
pragma Convention (C, unsigned_int_const_ptr);
type signed_long_ptr is access all signed_long;
for signed_long_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_long_ptr);
pragma Convention (C, signed_long_ptr);
type signed_long_const_ptr is access constant signed_long;
for signed_long_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_long_const_ptr);
pragma Convention (C, signed_long_const_ptr);
type signed_long_array is array (size_t range <>) of aliased signed_long;
pragma Convention (C, signed_long_array);
type unsigned_long_array is array (size_t range <>) of
aliased unsigned_long;
pragma Convention (C, unsigned_long_array);
type unsigned_long_ptr is access all unsigned_long;
for unsigned_long_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_long_ptr);
pragma Convention (C, unsigned_long_ptr);
type signed_long_long_ptr is access all signed_long_long;
for signed_long_long_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (signed_long_long_ptr);
pragma Convention (C, signed_long_long_ptr);
type unsigned_long_long_array is array (size_t range <>) of
aliased unsigned_long_long;
pragma Convention (C, unsigned_long_long_array);
type unsigned_long_long_ptr is access all unsigned_long_long;
for unsigned_long_long_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (unsigned_long_long_ptr);
pragma Convention (C, unsigned_long_long_ptr);
type double_ptr is access all double;
for double_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (double_ptr);
pragma Convention (C, double_ptr);
type double_array is array (size_t range <>) of aliased double;
pragma Convention (C, double_array);
type char_ptr is access all char;
for char_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (char_ptr);
pragma Convention (C, char_ptr);
type char_ptr_array is array (size_t range <>) of aliased char_ptr;
pragma Convention (C, char_ptr_array);
type char_ptr_ptr is access all char_ptr;
for char_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (char_ptr_ptr);
pragma Convention (C, char_ptr_ptr);
type char_const_ptr is access constant char;
for char_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (char_const_ptr);
pragma Convention (C, char_const_ptr);
type char_const_ptr_array is array (size_t range <>) of
aliased char_const_ptr;
pragma Convention (C, char_const_ptr_array);
type char_const_ptr_ptr is access all char_const_ptr;
for char_const_ptr_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (char_const_ptr_ptr);
pragma Convention (C, char_const_ptr_ptr);
type char_array is array (size_t range <>) of aliased char;
pragma Convention (C, char_array);
function "=" (Left, Right : System.Address) return Boolean
renames System."=";
type size_t_ptr is access all size_t;
for size_t_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (size_t_ptr);
pragma Convention (C, size_t_ptr);
type wchar_t_ptr is access all wchar_t;
for wchar_t_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (wchar_t_ptr);
pragma Convention (C, wchar_t_ptr);
type wchar_t_const_ptr is access constant wchar_t;
for wchar_t_const_ptr'Storage_Size use 0;
pragma No_Strict_Aliasing (wchar_t_const_ptr);
pragma Convention (C, wchar_t_const_ptr);
type wchar_t_array is array (size_t range <>) of aliased wchar_t;
pragma Convention (C, wchar_t_array);
function Shift_Left (Left : signed_char; Right : Natural)
return signed_char;
function Shift_Right_Arithmetic (Left : signed_char; Right : Natural)
return signed_char;
function Shift_Left (Left : unsigned_char; Right : Natural)
return unsigned_char;
function Shift_Right (Left : unsigned_char; Right : Natural)
return unsigned_char;
function Shift_Left (Left : signed_short; Right : Natural)
return signed_short;
function Shift_Right_Arithmetic (Left : signed_short; Right : Natural)
return signed_short;
function Shift_Left (Left : unsigned_short; Right : Natural)
return unsigned_short;
function Shift_Right (Left : unsigned_short; Right : Natural)
return unsigned_short;
function Shift_Left (Left : signed_int; Right : Natural)
return signed_int;
function Shift_Right_Arithmetic (Left : signed_int; Right : Natural)
return signed_int;
function Shift_Left (Left : unsigned_int; Right : Natural)
return unsigned_int;
function Shift_Right (Left : unsigned_int; Right : Natural)
return unsigned_int;
function Shift_Left (Left : signed_long; Right : Natural)
return signed_long;
function Shift_Right_Arithmetic (Left : signed_long; Right : Natural)
return signed_long;
function Shift_Left (Left : unsigned_long; Right : Natural)
return unsigned_long;
function Shift_Right (Left : unsigned_long; Right : Natural)
return unsigned_long;
function Shift_Left (Left : signed_long_long; Right : Natural)
return signed_long_long;
function Shift_Right_Arithmetic (Left : signed_long_long; Right : Natural)
return signed_long_long;
function Shift_Left (Left : unsigned_long_long; Right : Natural)
return unsigned_long_long;
function Shift_Right (Left : unsigned_long_long; Right : Natural)
return unsigned_long_long;
pragma Import (Intrinsic, Shift_Left);
pragma Import (Intrinsic, Shift_Right);
pragma Import (Intrinsic, Shift_Right_Arithmetic);
STDC_PREDEF_H : constant := 1;
ATOMIC_ACQUIRE : constant := 2;
ATOMIC_ACQ_REL : constant := 4;
ATOMIC_CONSUME : constant := 1;
ATOMIC_HLE_ACQUIRE : constant := 65536;
ATOMIC_HLE_RELEASE : constant := 131072;
ATOMIC_RELAXED : constant := 0;
ATOMIC_RELEASE : constant := 3;
ATOMIC_SEQ_CST : constant := 5;
qqBIGGEST_ALIGNMENTqq : constant := 16;
qqBYTE_ORDERqq : constant := 1234;
subtype qqCHAR16_TYPEqq is unsigned_short;
subtype qqCHAR32_TYPEqq is unsigned_int;
qqCHAR_BITqq : constant := 8;
qqDBL_DECIMAL_DIGqq : constant := 17;
qqDBL_DENORM_MINqq : constant := 16#0.40000000000000000#e-268;
qqDBL_DIGqq : constant := 15;
qqDBL_EPSILONqq : constant := 16#0.10000000000000000#e-12;
qqDBL_HAS_DENORMqq : constant := 1;
qqDBL_HAS_INFINITYqq : constant := 1;
qqDBL_HAS_QUIET_NANqq : constant := 1;
qqDBL_MANT_DIGqq : constant := 53;
qqDBL_MAX_10_EXPqq : constant := 308;
qqDBL_MAX_EXPqq : constant := 1024;
qqDBL_MAXqq : constant := 16#0.fffffffffffff8000#e+256;
qqDBL_MIN_10_EXPqq : constant := -307;
qqDBL_MIN_EXPqq : constant := -1021;
qqDBL_MINqq : constant := 16#0.40000000000000000#e-255;
-- qqDEC128_EPSILONqq (decimal)
qqDEC128_MANT_DIGqq : constant := 34;
qqDEC128_MAX_EXPqq : constant := 6145;
-- qqDEC128_MAXqq (decimal)
qqDEC128_MIN_EXPqq : constant := -6142;
-- qqDEC128_MINqq (decimal)
-- qqDEC128_SUBNORMAL_MINqq (decimal)
-- qqDEC32_EPSILONqq (decimal)
qqDEC32_MANT_DIGqq : constant := 7;
qqDEC32_MAX_EXPqq : constant := 97;
-- qqDEC32_MAXqq (decimal)
qqDEC32_MIN_EXPqq : constant := -94;
-- qqDEC32_MINqq (decimal)
-- qqDEC32_SUBNORMAL_MINqq (decimal)
-- qqDEC64_EPSILONqq (decimal)
qqDEC64_MANT_DIGqq : constant := 16;
qqDEC64_MAX_EXPqq : constant := 385;
-- qqDEC64_MAXqq (decimal)
qqDEC64_MIN_EXPqq : constant := -382;
-- qqDEC64_MINqq (decimal)
-- qqDEC64_SUBNORMAL_MINqq (decimal)
qqDECIMAL_BID_FORMATqq : constant := 1;
qqDECIMAL_DIGqq : constant := 21;
qqDEC_EVAL_METHODqq : constant := 2;
qqELFqq : constant := 1;
qqFINITE_MATH_ONLYqq : constant := 0;
qqFLOAT_WORD_ORDERqq : constant := 1234;
qqFLT128_DECIMAL_DIGqq : constant := 36;
-- qqFLT128_DENORM_MINqq (_Float128)
qqFLT128_DIGqq : constant := 33;
-- qqFLT128_EPSILONqq (_Float128)
qqFLT128_HAS_DENORMqq : constant := 1;
qqFLT128_HAS_INFINITYqq : constant := 1;
qqFLT128_HAS_QUIET_NANqq : constant := 1;
qqFLT128_MANT_DIGqq : constant := 113;
qqFLT128_MAX_10_EXPqq : constant := 4932;
qqFLT128_MAX_EXPqq : constant := 16384;
-- qqFLT128_MAXqq (_Float128)
qqFLT128_MIN_10_EXPqq : constant := -4931;
qqFLT128_MIN_EXPqq : constant := -16381;
-- qqFLT128_MINqq (_Float128)
qqFLT32X_DECIMAL_DIGqq : constant := 17;
qqFLT32X_DENORM_MINqq : constant := 16#0.40000000000000000#e-268;
qqFLT32X_DIGqq : constant := 15;
qqFLT32X_EPSILONqq : constant := 16#0.10000000000000000#e-12;
qqFLT32X_HAS_DENORMqq : constant := 1;
qqFLT32X_HAS_INFINITYqq : constant := 1;
qqFLT32X_HAS_QUIET_NANqq : constant := 1;
qqFLT32X_MANT_DIGqq : constant := 53;
qqFLT32X_MAX_10_EXPqq : constant := 308;
qqFLT32X_MAX_EXPqq : constant := 1024;
qqFLT32X_MAXqq : constant := 16#0.fffffffffffff8000#e+256;
qqFLT32X_MIN_10_EXPqq : constant := -307;
qqFLT32X_MIN_EXPqq : constant := -1021;
qqFLT32X_MINqq : constant := 16#0.40000000000000000#e-255;
qqFLT32_DECIMAL_DIGqq : constant := 9;
qqFLT32_DENORM_MINqq : constant := 16#0.80000000000000000#e-37;
qqFLT32_DIGqq : constant := 6;
qqFLT32_EPSILONqq : constant := 16#0.20000000000000000#e-5;
qqFLT32_HAS_DENORMqq : constant := 1;
qqFLT32_HAS_INFINITYqq : constant := 1;
qqFLT32_HAS_QUIET_NANqq : constant := 1;
qqFLT32_MANT_DIGqq : constant := 24;
qqFLT32_MAX_10_EXPqq : constant := 38;
qqFLT32_MAX_EXPqq : constant := 128;
qqFLT32_MAXqq : constant := 16#0.ffffff00000000000#e+32;
qqFLT32_MIN_10_EXPqq : constant := -37;
qqFLT32_MIN_EXPqq : constant := -125;
qqFLT32_MINqq : constant := 16#0.40000000000000000#e-31;
qqFLT64X_DECIMAL_DIGqq : constant := 21;
qqFLT64X_DENORM_MINqq : constant := 16#0.80000000000000000#e-4111;
qqFLT64X_DIGqq : constant := 18;
qqFLT64X_EPSILONqq : constant := 16#0.20000000000000000#e-15;
qqFLT64X_HAS_DENORMqq : constant := 1;
qqFLT64X_HAS_INFINITYqq : constant := 1;
qqFLT64X_HAS_QUIET_NANqq : constant := 1;
qqFLT64X_MANT_DIGqq : constant := 64;
qqFLT64X_MAX_10_EXPqq : constant := 4932;
qqFLT64X_MAX_EXPqq : constant := 16384;
qqFLT64X_MAXqq : constant := 16#0.ffffffffffffffff0#e+4096;
qqFLT64X_MIN_10_EXPqq : constant := -4931;
qqFLT64X_MIN_EXPqq : constant := -16381;
qqFLT64X_MINqq : constant := 16#0.40000000000000000#e-4095;
qqFLT64_DECIMAL_DIGqq : constant := 17;
qqFLT64_DENORM_MINqq : constant := 16#0.40000000000000000#e-268;
qqFLT64_DIGqq : constant := 15;
qqFLT64_EPSILONqq : constant := 16#0.10000000000000000#e-12;
qqFLT64_HAS_DENORMqq : constant := 1;
qqFLT64_HAS_INFINITYqq : constant := 1;
qqFLT64_HAS_QUIET_NANqq : constant := 1;
qqFLT64_MANT_DIGqq : constant := 53;
qqFLT64_MAX_10_EXPqq : constant := 308;
qqFLT64_MAX_EXPqq : constant := 1024;
qqFLT64_MAXqq : constant := 16#0.fffffffffffff8000#e+256;
qqFLT64_MIN_10_EXPqq : constant := -307;
qqFLT64_MIN_EXPqq : constant := -1021;
qqFLT64_MINqq : constant := 16#0.40000000000000000#e-255;
qqFLT_DECIMAL_DIGqq : constant := 9;
qqFLT_DENORM_MINqq : constant := 16#0.80000000000000000#e-37;
qqFLT_DIGqq : constant := 6;
qqFLT_EPSILONqq : constant := 16#0.20000000000000000#e-5;
qqFLT_EVAL_METHOD_TS_18661_3qq : constant := 2;
qqFLT_EVAL_METHODqq : constant := 2;
qqFLT_HAS_DENORMqq : constant := 1;
qqFLT_HAS_INFINITYqq : constant := 1;
qqFLT_HAS_QUIET_NANqq : constant := 1;
qqFLT_MANT_DIGqq : constant := 24;
qqFLT_MAX_10_EXPqq : constant := 38;
qqFLT_MAX_EXPqq : constant := 128;
qqFLT_MAXqq : constant := 16#0.ffffff00000000000#e+32;
qqFLT_MIN_10_EXPqq : constant := -37;
qqFLT_MIN_EXPqq : constant := -125;
qqFLT_MINqq : constant := 16#0.40000000000000000#e-31;
qqFLT_RADIXqq : constant := 2;
qqGCC_ASM_FLAG_OUTPUTSqq : constant := 1;
GCC_ATOMIC_BOOL_LOCK_FREE : constant := 2;
GCC_ATOMIC_CHAR16_T_LOCK_FREE : constant := 2;
GCC_ATOMIC_CHAR32_T_LOCK_FREE : constant := 2;
GCC_ATOMIC_CHAR_LOCK_FREE : constant := 2;
GCC_ATOMIC_INT_LOCK_FREE : constant := 2;
GCC_ATOMIC_LLONG_LOCK_FREE : constant := 2;
GCC_ATOMIC_LONG_LOCK_FREE : constant := 2;
GCC_ATOMIC_POINTER_LOCK_FREE : constant := 2;
GCC_ATOMIC_SHORT_LOCK_FREE : constant := 2;
GCC_ATOMIC_TEST_AND_SET_TRUEVAL : constant := 1;
GCC_ATOMIC_WCHAR_T_LOCK_FREE : constant := 2;
GCC_HAVE_DWARF2_CFI_ASM : constant := 1;
GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 : constant := 1;
GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 : constant := 1;
GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 : constant := 1;
GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 : constant := 1;
GCC_IEC_559 : constant := 2;
GCC_IEC_559_COMPLEX : constant := 2;
qqGNUC_MINORqq : constant := 5;
qqGNUC_PATCHLEVELqq : constant := 0;
qqGNUC_STDC_INLINEqq : constant := 1;
qqGNUCqq : constant := 7;
GXX_ABI_VERSION : constant := 1011;
-- __INT16_C (function macro)
qqINT16_MAXqq : constant := 32767;
subtype qqINT16_TYPEqq is signed_short;
-- __INT32_C (function macro)
qqINT32_MAXqq : constant := 2147483647;
subtype qqINT32_TYPEqq is signed_int;
-- __INT64_C (has # or ##)
qqINT64_MAXqq : constant := 9223372036854775807;
subtype qqINT64_TYPEqq is signed_long_long;
-- __INT8_C (function macro)
qqINT8_MAXqq : constant := 127;
subtype qqINT8_TYPEqq is signed_char;
-- __INTMAX_C (has # or ##)
qqINTMAX_MAXqq : constant := 9223372036854775807;
subtype qqINTMAX_TYPEqq is signed_long_long;
qqINTMAX_WIDTHqq : constant := 64;
qqINTPTR_MAXqq : constant := 2147483647;
subtype qqINTPTR_TYPEqq is signed_int;
qqINTPTR_WIDTHqq : constant := 32;
qqINT_FAST16_MAXqq : constant := 2147483647;
subtype qqINT_FAST16_TYPEqq is signed_int;
qqINT_FAST16_WIDTHqq : constant := 32;
qqINT_FAST32_MAXqq : constant := 2147483647;
subtype qqINT_FAST32_TYPEqq is signed_int;
qqINT_FAST32_WIDTHqq : constant := 32;
qqINT_FAST64_MAXqq : constant := 9223372036854775807;
subtype qqINT_FAST64_TYPEqq is signed_long_long;
qqINT_FAST64_WIDTHqq : constant := 64;
qqINT_FAST8_MAXqq : constant := 127;
subtype qqINT_FAST8_TYPEqq is signed_char;
qqINT_FAST8_WIDTHqq : constant := 8;
qqINT_LEAST16_MAXqq : constant := 32767;
subtype qqINT_LEAST16_TYPEqq is signed_short;
qqINT_LEAST16_WIDTHqq : constant := 16;
qqINT_LEAST32_MAXqq : constant := 2147483647;
subtype qqINT_LEAST32_TYPEqq is signed_int;
qqINT_LEAST32_WIDTHqq : constant := 32;
qqINT_LEAST64_MAXqq : constant := 9223372036854775807;
subtype qqINT_LEAST64_TYPEqq is signed_long_long;
qqINT_LEAST64_WIDTHqq : constant := 64;
qqINT_LEAST8_MAXqq : constant := 127;
subtype qqINT_LEAST8_TYPEqq is signed_char;
qqINT_LEAST8_WIDTHqq : constant := 8;
qqINT_MAXqq : constant := 2147483647;
qqINT_WIDTHqq : constant := 32;
qqLDBL_DECIMAL_DIGqq : constant := 21;
qqLDBL_DENORM_MINqq : constant := 16#0.80000000000000000#e-4111;
qqLDBL_DIGqq : constant := 18;
qqLDBL_EPSILONqq : constant := 16#0.20000000000000000#e-15;
qqLDBL_HAS_DENORMqq : constant := 1;
qqLDBL_HAS_INFINITYqq : constant := 1;
qqLDBL_HAS_QUIET_NANqq : constant := 1;
qqLDBL_MANT_DIGqq : constant := 64;
qqLDBL_MAX_10_EXPqq : constant := 4932;
qqLDBL_MAX_EXPqq : constant := 16384;
qqLDBL_MAXqq : constant := 16#0.ffffffffffffffff0#e+4096;
qqLDBL_MIN_10_EXPqq : constant := -4931;
qqLDBL_MIN_EXPqq : constant := -16381;
qqLDBL_MINqq : constant := 16#0.40000000000000000#e-4095;
qqLONG_LONG_MAXqq : constant := 9223372036854775807;
qqLONG_LONG_WIDTHqq : constant := 64;
qqLONG_MAXqq : constant := 2147483647;
qqLONG_WIDTHqq : constant := 32;
qqNO_INLINEqq : constant := 1;
qqORDER_BIG_ENDIANqq : constant := 4321;
qqORDER_LITTLE_ENDIANqq : constant := 1234;
qqORDER_PDP_ENDIANqq : constant := 3412;
PRAGMA_REDEFINE_EXTNAME : constant := 1;
qqPTRDIFF_MAXqq : constant := 2147483647;
subtype qqPTRDIFF_TYPEqq is signed_int;
qqPTRDIFF_WIDTHqq : constant := 32;
-- __REGISTER_PREFIX__ (empty)
qqSCHAR_MAXqq : constant := 127;
qqSCHAR_WIDTHqq : constant := 8;
SEG_FS : constant := 1;
SEG_GS : constant := 1;
qqSHRT_MAXqq : constant := 32767;
qqSHRT_WIDTHqq : constant := 16;
qqSIG_ATOMIC_MAXqq : constant := 2147483647;
qqSIG_ATOMIC_MINqq : constant := -2147483648;
subtype qqSIG_ATOMIC_TYPEqq is signed_int;
qqSIG_ATOMIC_WIDTHqq : constant := 32;
qqSIZEOF_DOUBLEqq : constant := 8;
qqSIZEOF_FLOAT128qq : constant := 16;
qqSIZEOF_FLOAT80qq : constant := 12;
qqSIZEOF_FLOATqq : constant := 4;
qqSIZEOF_INTqq : constant := 4;
qqSIZEOF_LONG_DOUBLEqq : constant := 12;
qqSIZEOF_LONG_LONGqq : constant := 8;
qqSIZEOF_LONGqq : constant := 4;
qqSIZEOF_POINTERqq : constant := 4;
qqSIZEOF_PTRDIFF_Tqq : constant := 4;
qqSIZEOF_SHORTqq : constant := 2;
qqSIZEOF_SIZE_Tqq : constant := 4;
qqSIZEOF_WCHAR_Tqq : constant := 4;
qqSIZEOF_WINT_Tqq : constant := 4;
qqSIZE_MAXqq : constant := 4294967295;
subtype qqSIZE_TYPEqq is unsigned_int;
qqSIZE_WIDTHqq : constant := 32;
qqSTDC_HOSTEDqq : constant := 1;
qqSTDC_NO_THREADSqq : constant := 1;
qqSTDC_UTF_16qq : constant := 1;
qqSTDC_UTF_32qq : constant := 1;
-- __UINT16_C (function macro)
qqUINT16_MAXqq : constant := 65535;
subtype qqUINT16_TYPEqq is unsigned_short;
-- __UINT32_C (has # or ##)
qqUINT32_MAXqq : constant := 4294967295;
subtype qqUINT32_TYPEqq is unsigned_int;
-- __UINT64_C (has # or ##)
qqUINT64_MAXqq : constant := 18446744073709551615;
subtype qqUINT64_TYPEqq is unsigned_long_long;
-- __UINT8_C (function macro)
qqUINT8_MAXqq : constant := 255;
subtype qqUINT8_TYPEqq is unsigned_char;
-- __UINTMAX_C (has # or ##)
qqUINTMAX_MAXqq : constant := 18446744073709551615;
subtype qqUINTMAX_TYPEqq is unsigned_long_long;
qqUINTPTR_MAXqq : constant := 4294967295;
subtype qqUINTPTR_TYPEqq is unsigned_int;
qqUINT_FAST16_MAXqq : constant := 4294967295;
subtype qqUINT_FAST16_TYPEqq is unsigned_int;
qqUINT_FAST32_MAXqq : constant := 4294967295;
subtype qqUINT_FAST32_TYPEqq is unsigned_int;
qqUINT_FAST64_MAXqq : constant := 18446744073709551615;
subtype qqUINT_FAST64_TYPEqq is unsigned_long_long;
qqUINT_FAST8_MAXqq : constant := 255;
subtype qqUINT_FAST8_TYPEqq is unsigned_char;
qqUINT_LEAST16_MAXqq : constant := 65535;
subtype qqUINT_LEAST16_TYPEqq is unsigned_short;
qqUINT_LEAST32_MAXqq : constant := 4294967295;
subtype qqUINT_LEAST32_TYPEqq is unsigned_int;
qqUINT_LEAST64_MAXqq : constant := 18446744073709551615;
subtype qqUINT_LEAST64_TYPEqq is unsigned_long_long;
qqUINT_LEAST8_MAXqq : constant := 255;
subtype qqUINT_LEAST8_TYPEqq is unsigned_char;
-- __USER_LABEL_PREFIX__ (empty)
qqVERSIONqq : constant char_array (0 .. 5) := "7.5.0" & char'Val (0);
qqWCHAR_MAXqq : constant := 2147483647;
qqWCHAR_MINqq : constant := -2147483648;
subtype qqWCHAR_TYPEqq is signed_long;
qqWCHAR_WIDTHqq : constant := 32;
qqWINT_MAXqq : constant := 4294967295;
qqWINT_MINqq : constant := 0;
subtype qqWINT_TYPEqq is unsigned_int;
qqWINT_WIDTHqq : constant := 32;
qqcode_model_32qq : constant := 1;
qqgnu_linuxqq : constant := 1;
-- __has_include (has __has_include__ or __has_include_next__)
-- __has_include_next (has __has_include__ or __has_include_next__)
i386 : constant := 1;
qqi386qq : constant := 1;
i686 : constant := 1;
qqi686qq : constant := 1;
defined_qqlinux : constant := 1;
qqlinuxqq : constant := 1;
pentiumpro : constant := 1;
qqpentiumproqq : constant := 1;
qqunix : constant := 1;
qqunixqq : constant := 1;
defined_i386 : constant := 1;
defined_linux : constant := 1;
unix : constant := 1;
function builtin_alloca (a1 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_alloca, "__builtin_alloca");
function builtin_bswap16 (a1 : unsigned_short) return unsigned_short;
pragma Import (Intrinsic, builtin_bswap16, "__builtin_bswap16");
function builtin_bswap32 (a1 : unsigned_int) return unsigned_int;
pragma Import (Intrinsic, builtin_bswap32, "__builtin_bswap32");
function builtin_bswap64 (a1 : unsigned_long_long)
return unsigned_long_long;
pragma Import (Intrinsic, builtin_bswap64, "__builtin_bswap64");
procedure builtin_bzero (a1 : access char; a2 : size_t);
pragma Import (Intrinsic, builtin_bzero, "__builtin_bzero");
function builtin_extract_return_addr (a1 : access char) return char_ptr;
pragma Import (Intrinsic, builtin_extract_return_addr,
"__builtin_extract_return_addr");
function builtin_fabsf (a1 : float) return float;
pragma Import (Intrinsic, builtin_fabsf, "__builtin_fabsf");
function builtin_fabs (a1 : double) return double;
pragma Import (Intrinsic, builtin_fabs, "__builtin_fabs");
function builtin_fabsl (a1 : long_double) return long_double;
pragma Import (Intrinsic, builtin_fabsl, "__builtin_fabsl");
function builtin_flt_rounds return signed_int;
pragma Import (Intrinsic, builtin_flt_rounds, "__builtin_flt_rounds");
function builtin_frame_address (a1 : unsigned_int) return char_ptr;
pragma Import (Intrinsic, builtin_frame_address,
"__builtin_frame_address");
function builtin_huge_valf return float;
pragma Import (Intrinsic, builtin_huge_valf, "__builtin_huge_valf");
function builtin_huge_val return double;
pragma Import (Intrinsic, builtin_huge_val, "__builtin_huge_val");
function builtin_huge_vall return long_double;
pragma Import (Intrinsic, builtin_huge_vall, "__builtin_huge_vall");
function builtin_inff return float;
pragma Import (Intrinsic, builtin_inff, "__builtin_inff");
function builtin_inf return double;
pragma Import (Intrinsic, builtin_inf, "__builtin_inf");
function builtin_infl return long_double;
pragma Import (Intrinsic, builtin_infl, "__builtin_infl");
function builtin_llabs (a1 : signed_long_long) return signed_long_long;
pragma Import (Intrinsic, builtin_llabs, "__builtin_llabs");
function builtin_memcmp (a1 : access char; a2 : access char; a3 : size_t)
return signed_int;
pragma Import (Intrinsic, builtin_memcmp, "__builtin_memcmp");
function builtin_memset (a1 : access char; a2 : signed_int; a3 : size_t)
return char_ptr;
pragma Import (Intrinsic, builtin_memset, "__builtin_memset");
function builtin_memcpy_chk (a1 : access char; a2 : access constant char;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_memcpy_chk, "__builtin___memcpy_chk");
function builtin_memmove_chk (a1 : access char; a2 : access constant char;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_memmove_chk, "__builtin___memmove_chk");
function builtin_memset_chk (a1 : access char; a2 : signed_int;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_memset_chk, "__builtin___memset_chk");
function builtin_nanf (a1 : access constant char) return float;
pragma Import (Intrinsic, builtin_nanf, "__builtin_nanf");
function builtin_nan (a1 : access constant char) return double;
pragma Import (Intrinsic, builtin_nan, "__builtin_nan");
function builtin_nanl (a1 : access constant char) return long_double;
pragma Import (Intrinsic, builtin_nanl, "__builtin_nanl");
function builtin_return_address (a1 : unsigned_int) return char_ptr;
pragma Import (Intrinsic, builtin_return_address,
"__builtin_return_address");
function builtin_stpcpy_chk (a1 : access char; a2 : access constant char;
a3 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_stpcpy_chk, "__builtin___stpcpy_chk");
function builtin_stpncpy_chk (a1 : access char; a2 : access constant char;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_stpncpy_chk, "__builtin___stpncpy_chk");
function builtin_strcat_chk (a1 : access char; a2 : access constant char;
a3 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_strcat_chk, "__builtin___strcat_chk");
function builtin_strcpy_chk (a1 : access char; a2 : access constant char;
a3 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_strcpy_chk, "__builtin___strcpy_chk");
function builtin_strncat_chk (a1 : access char; a2 : access constant char;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_strncat_chk, "__builtin___strncat_chk");
function builtin_strncpy_chk (a1 : access char; a2 : access constant char;
a3 : size_t; a4 : size_t) return char_ptr;
pragma Import (Intrinsic, builtin_strncpy_chk, "__builtin___strncpy_chk");
end C;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment