├── AUTHORS ├── COPYING ├── ChangeLog ├── Makefile.am ├── Makefile.h.am ├── Makefile.kh.am ├── NEWS ├── README ├── TODO ├── autogen.sh ├── configure.ac ├── libc ├── CAVEATS ├── MODULE_LICENSE_BSD ├── Makefile.am ├── Makefile.crt.am ├── Makefile.syscalls.am ├── NOTICE ├── README ├── SYSCALLS.TXT ├── arch-arm │ ├── AndroidConfig.h │ ├── bionic │ │ ├── __get_pc.S │ │ ├── __get_sp.S │ │ ├── __syscall.S │ │ ├── _exit_with_stack_teardown.S │ │ ├── _setjmp.S │ │ ├── atexit.S │ │ ├── atomics_arm.c │ │ ├── clone.S │ │ ├── crtbegin_dynamic.S │ │ ├── crtbegin_so.S │ │ ├── crtbegin_static.S │ │ ├── crtend_android.S │ │ ├── crtend_so.S │ │ ├── eabi.c │ │ ├── exidx_dynamic.c │ │ ├── exidx_static.c │ │ ├── ffs.S │ │ ├── futex_arm.S │ │ ├── kill.S │ │ ├── libgcc_compat.c │ │ ├── memcmp.S │ │ ├── memcmp16.S │ │ ├── memcpy.S │ │ ├── memset.S │ │ ├── setjmp.S │ │ ├── sigsetjmp.S │ │ ├── strcmp.S │ │ ├── strcpy.S │ │ ├── strlen.c │ │ ├── syscall.c │ │ ├── tgkill.S │ │ └── tkill.S │ └── include │ │ └── machine │ │ ├── _types.h │ │ ├── asm.h │ │ ├── cdefs.h │ │ ├── cpu-features.h │ │ ├── endian.h │ │ ├── exec.h │ │ ├── ieee.h │ │ ├── internal_types.h │ │ ├── kernel.h │ │ ├── limits.h │ │ ├── setjmp.h │ │ └── ucontext.h ├── arch-sh │ └── syscalls │ │ ├── personality.S │ │ └── tgkill.S ├── arch-x86 │ ├── AndroidConfig.h │ ├── bionic │ │ ├── __divdi3.S │ │ ├── __get_sp.S │ │ ├── __get_tls.c │ │ ├── __moddi3.S │ │ ├── __popcountsi2.c │ │ ├── __set_tls.c │ │ ├── __stack_chk_fail_local.S │ │ ├── __udivdi3.S │ │ ├── __umoddi3.S │ │ ├── _exit_with_stack_teardown.S │ │ ├── _setjmp.S │ │ ├── atexit.S │ │ ├── clone.S │ │ ├── crtbegin_dynamic.S │ │ ├── crtbegin_so.S │ │ ├── crtbegin_static.S │ │ ├── crtend_android.S │ │ ├── crtend_so.S │ │ ├── dl_iterate_phdr_static.c │ │ ├── futex_x86.S │ │ ├── setjmp.S │ │ ├── sigsetjmp.S │ │ ├── syscall.S │ │ └── vfork.S │ ├── include │ │ └── machine │ │ │ ├── _types.h │ │ │ ├── asm.h │ │ │ ├── cdefs.h │ │ │ ├── endian.h │ │ │ ├── exec.h │ │ │ ├── fpu_control.h │ │ │ ├── ieee.h │ │ │ ├── internal_types.h │ │ │ ├── kernel.h │ │ │ ├── limits.h │ │ │ ├── setjmp.h │ │ │ ├── sigcontext.h │ │ │ ├── ucontext.h │ │ │ └── wordsize.h │ └── string │ │ ├── bcmp.S │ │ ├── bcopy.S │ │ ├── bcopy_wrapper.S │ │ ├── bzero.S │ │ ├── bzero_wrapper.S │ │ ├── cache_wrapper.S │ │ ├── fss.S │ │ ├── index.S │ │ ├── memchr.S │ │ ├── memcmp.S │ │ ├── memcmp_wrapper.S │ │ ├── memcpy.S │ │ ├── memcpy_wrapper.S │ │ ├── memmove.S │ │ ├── memmove_wrapper.S │ │ ├── memset.S │ │ ├── memset_wrapper.S │ │ ├── rindex.S │ │ ├── sse2-memset5-atom.S │ │ ├── sse2-strlen-atom.S │ │ ├── ssse3-memcmp3-new.S │ │ ├── ssse3-memcpy5.S │ │ ├── ssse3-strcmp-latest.S │ │ ├── strcat.S │ │ ├── strchr.S │ │ ├── strcmp.S │ │ ├── strcmp_wrapper.S │ │ ├── strcpy.S │ │ ├── strlen.S │ │ ├── strlen_wrapper.S │ │ ├── strncmp.S │ │ ├── strncmp_wrapper.S │ │ ├── strrchr.S │ │ └── swab.S ├── bionic │ ├── __errno.c │ ├── __register_frame_info.c │ ├── __set_errno.c │ ├── arc4random.c │ ├── basename.c │ ├── basename_r.c │ ├── bionic_clone.c │ ├── clearenv.c │ ├── cpuacct.c │ ├── dirname.c │ ├── dirname_r.c │ ├── dlmalloc.c │ ├── dlmalloc.h │ ├── drand48.c │ ├── erand48.c │ ├── err.c │ ├── fdprintf.c │ ├── fork.c │ ├── fts.c │ ├── hash.h │ ├── if_indextoname.c │ ├── if_nametoindex.c │ ├── ioctl.c │ ├── ldexp.c │ ├── libc_init_common.c │ ├── libc_init_common.h │ ├── libc_init_dynamic.c │ ├── libc_init_static.c │ ├── logd_write.c │ ├── malloc_debug_check.c │ ├── malloc_debug_check_mapinfo.c │ ├── malloc_debug_check_mapinfo.h │ ├── malloc_debug_common.c │ ├── malloc_debug_common.h │ ├── malloc_debug_leak.c │ ├── malloc_debug_qemu.c │ ├── malloc_debug_stacktrace.c │ ├── md5.c │ ├── md5.h │ ├── memmove_words.c │ ├── pthread-atfork.c │ ├── pthread-rwlocks.c │ ├── pthread-timers.c │ ├── pthread.c │ ├── pthread_debug.c │ ├── pthread_internal.h │ ├── ptrace.c │ ├── pututline.c │ ├── realpath.c │ ├── sched_cpualloc.c │ ├── sched_cpucount.c │ ├── sched_getaffinity.c │ ├── sched_getcpu.c │ ├── semaphore.c │ ├── sha1.c │ ├── signalfd.c │ ├── ssp.c │ ├── stubs.c │ ├── system_properties.c │ ├── tdelete.c │ ├── tdestroy.c │ ├── tfind.c │ ├── thread_atexit.c │ ├── time64.c │ ├── time64_config.h │ ├── tsearch.c │ ├── utime.c │ └── utmp.c ├── branch_prediction.h ├── docs │ ├── CHANGES.TXT │ ├── ISSUES.TXT │ ├── OVERVIEW.TXT │ └── SYSV-IPC.TXT ├── grp │ ├── getgrent.c │ ├── getgrgid.c │ ├── getgrnam.c │ ├── getgrouplist.c │ └── grp_priv.h ├── include │ ├── alloca.h │ ├── ar.h │ ├── arpa │ │ ├── inet.h │ │ ├── nameser.h │ │ └── telnet.h │ ├── assert.h │ ├── byteswap.h │ ├── ctype.h │ ├── dirent.h │ ├── dlfcn.h │ ├── elf.h │ ├── endian.h │ ├── err.h │ ├── errno.h │ ├── fcntl.h │ ├── features.h │ ├── fnmatch.h │ ├── fts.h │ ├── getopt.h │ ├── glob.h │ ├── grp.h │ ├── inttypes.h │ ├── langinfo.h │ ├── lastlog.h │ ├── libgen.h │ ├── limits.h │ ├── locale.h │ ├── malloc.h │ ├── memory.h │ ├── mntent.h │ ├── net │ │ ├── ethernet.h │ │ ├── ethertypes.h │ │ ├── if.h │ │ ├── if_arp.h │ │ ├── if_dl.h │ │ ├── if_ether.h │ │ ├── if_ieee1394.h │ │ ├── if_packet.h │ │ ├── if_slip.h │ │ ├── if_types.h │ │ └── route.h │ ├── netdb.h │ ├── netinet │ │ ├── ether.h │ │ ├── icmp6.h │ │ ├── if_ether.h │ │ ├── in.h │ │ ├── in6.h │ │ ├── in_systm.h │ │ ├── ip.h │ │ ├── ip6.h │ │ ├── ip_icmp.h │ │ ├── tcp.h │ │ └── udp.h │ ├── netpacket │ │ └── packet.h │ ├── nsswitch.h │ ├── pathconf.h │ ├── paths.h │ ├── poll.h │ ├── pthread.h │ ├── pty.h │ ├── pwd.h │ ├── regex.h │ ├── resolv.h │ ├── sched.h │ ├── search.h │ ├── semaphore.h │ ├── setjmp.h │ ├── sgtty.h │ ├── sha1.h │ ├── shadow.h │ ├── signal.h │ ├── stdint.h │ ├── stdio.h │ ├── stdlib.h │ ├── string.h │ ├── strings.h │ ├── sys │ │ ├── _errdefs.h │ │ ├── _sigdefs.h │ │ ├── _types.h │ │ ├── atomics.h │ │ ├── cdefs.h │ │ ├── cdefs_elf.h │ │ ├── dir.h │ │ ├── dirent.h │ │ ├── endian.h │ │ ├── epoll.h │ │ ├── errno.h │ │ ├── eventfd.h │ │ ├── exec_elf.h │ │ ├── file.h │ │ ├── fsuid.h │ │ ├── inotify.h │ │ ├── ioctl.h │ │ ├── ioctl_compat.h │ │ ├── ipc.h │ │ ├── klog.h │ │ ├── limits.h │ │ ├── mman.h │ │ ├── mount.h │ │ ├── msg.h │ │ ├── mtio.h │ │ ├── param.h │ │ ├── personality.h │ │ ├── poll.h │ │ ├── prctl.h │ │ ├── ptrace.h │ │ ├── queue.h │ │ ├── reboot.h │ │ ├── resource.h │ │ ├── select.h │ │ ├── sem.h │ │ ├── sendfile.h │ │ ├── shm.h │ │ ├── signalfd.h │ │ ├── socket.h │ │ ├── socketcalls.h │ │ ├── stat.h │ │ ├── statfs.h │ │ ├── swap.h │ │ ├── syscall.h │ │ ├── sysconf.h │ │ ├── sysinfo.h │ │ ├── syslimits.h │ │ ├── sysmacros.h │ │ ├── time.h │ │ ├── timeb.h │ │ ├── timerfd.h │ │ ├── times.h │ │ ├── timex.h │ │ ├── ttychars.h │ │ ├── ttydev.h │ │ ├── types.h │ │ ├── ucontext.h │ │ ├── uio.h │ │ ├── un.h │ │ ├── user.h │ │ ├── utime.h │ │ ├── utsname.h │ │ ├── vfs.h │ │ ├── vt.h │ │ ├── wait.h │ │ └── xattr.h │ ├── syslog.h │ ├── termio.h │ ├── termios.h │ ├── time.h │ ├── time64.h │ ├── unistd.h │ ├── util.h │ ├── utime.h │ ├── utmp.h │ ├── wchar.h │ └── wctype.h ├── inet │ ├── bindresvport.c │ ├── ether_aton.c │ ├── ether_ntoa.c │ ├── inet_addr.c │ ├── inet_aton.c │ ├── inet_ntoa.c │ ├── inet_ntop.c │ └── inet_pton.c ├── kernel │ ├── README.TXT │ ├── arch-arm │ │ └── asm │ │ │ ├── a.out.h │ │ │ ├── arch │ │ │ ├── board-perseus2.h │ │ │ ├── board.h │ │ │ ├── cpu.h │ │ │ ├── dma.h │ │ │ ├── fpga.h │ │ │ ├── gpio-switch.h │ │ │ ├── gpio.h │ │ │ ├── hardware.h │ │ │ ├── io.h │ │ │ ├── irqs.h │ │ │ ├── mcbsp.h │ │ │ ├── memory.h │ │ │ ├── mtd-xip.h │ │ │ ├── mux.h │ │ │ ├── omap24xx.h │ │ │ ├── serial.h │ │ │ ├── timex.h │ │ │ └── vmalloc.h │ │ │ ├── atomic.h │ │ │ ├── auxvec.h │ │ │ ├── bitops.h │ │ │ ├── byteorder.h │ │ │ ├── cache.h │ │ │ ├── cacheflush.h │ │ │ ├── cputime.h │ │ │ ├── delay.h │ │ │ ├── div64.h │ │ │ ├── dma-mapping.h │ │ │ ├── dma.h │ │ │ ├── domain.h │ │ │ ├── dyntick.h │ │ │ ├── elf.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ ├── fpstate.h │ │ │ ├── glue.h │ │ │ ├── hardirq.h │ │ │ ├── hardware.h │ │ │ ├── hw_irq.h │ │ │ ├── ide.h │ │ │ ├── io.h │ │ │ ├── ioctl.h │ │ │ ├── ioctls.h │ │ │ ├── ipcbuf.h │ │ │ ├── irq.h │ │ │ ├── linkage.h │ │ │ ├── local.h │ │ │ ├── locks.h │ │ │ ├── mc146818rtc.h │ │ │ ├── memory.h │ │ │ ├── mman.h │ │ │ ├── module.h │ │ │ ├── msgbuf.h │ │ │ ├── mtd-xip.h │ │ │ ├── page.h │ │ │ ├── param.h │ │ │ ├── percpu.h │ │ │ ├── pgalloc.h │ │ │ ├── pgtable-hwdef.h │ │ │ ├── pgtable.h │ │ │ ├── poll.h │ │ │ ├── posix_types.h │ │ │ ├── proc-fns.h │ │ │ ├── processor.h │ │ │ ├── procinfo.h │ │ │ ├── ptrace.h │ │ │ ├── resource.h │ │ │ ├── scatterlist.h │ │ │ ├── semaphore.h │ │ │ ├── sembuf.h │ │ │ ├── shmbuf.h │ │ │ ├── shmparam.h │ │ │ ├── sigcontext.h │ │ │ ├── siginfo.h │ │ │ ├── signal.h │ │ │ ├── sizes.h │ │ │ ├── smp.h │ │ │ ├── socket.h │ │ │ ├── sockios.h │ │ │ ├── spinlock.h │ │ │ ├── spinlock_types.h │ │ │ ├── stat.h │ │ │ ├── statfs.h │ │ │ ├── suspend.h │ │ │ ├── system.h │ │ │ ├── termbits.h │ │ │ ├── termios.h │ │ │ ├── thread_info.h │ │ │ ├── timex.h │ │ │ ├── tlbflush.h │ │ │ ├── topology.h │ │ │ ├── types.h │ │ │ ├── uaccess.h │ │ │ ├── unaligned.h │ │ │ ├── unistd.h │ │ │ ├── user.h │ │ │ └── vga.h │ ├── arch-mips │ │ └── asm │ │ │ ├── a.out.h │ │ │ ├── addrspace.h │ │ │ ├── asm.h │ │ │ ├── asmmacro.h │ │ │ ├── atomic.h │ │ │ ├── auxvec.h │ │ │ ├── barrier.h │ │ │ ├── bitops.h │ │ │ ├── bootinfo.h │ │ │ ├── bug.h │ │ │ ├── byteorder.h │ │ │ ├── cache.h │ │ │ ├── cachectl.h │ │ │ ├── cacheflush.h │ │ │ ├── cacheops.h │ │ │ ├── checksum.h │ │ │ ├── cmpxchg.h │ │ │ ├── compiler.h │ │ │ ├── cpu-features.h │ │ │ ├── cpu-info.h │ │ │ ├── cpu.h │ │ │ ├── cputime.h │ │ │ ├── current.h │ │ │ ├── debug.h │ │ │ ├── dec │ │ │ ├── ecc.h │ │ │ ├── ioasic_addrs.h │ │ │ ├── kn02xa.h │ │ │ └── system.h │ │ │ ├── delay.h │ │ │ ├── device.h │ │ │ ├── div64.h │ │ │ ├── dma-mapping.h │ │ │ ├── dma.h │ │ │ ├── ds1286.h │ │ │ ├── dsp.h │ │ │ ├── elf.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ ├── fixmap.h │ │ │ ├── floppy.h │ │ │ ├── fpregdef.h │ │ │ ├── fw │ │ │ └── arc │ │ │ │ └── types.h │ │ │ ├── gt64120.h │ │ │ ├── hardirq.h │ │ │ ├── hazards.h │ │ │ ├── hw_irq.h │ │ │ ├── i8253.h │ │ │ ├── i8259.h │ │ │ ├── ide.h │ │ │ ├── io.h │ │ │ ├── ioctl.h │ │ │ ├── ioctls.h │ │ │ ├── ip32 │ │ │ ├── crime.h │ │ │ └── mace.h │ │ │ ├── ipcbuf.h │ │ │ ├── irq.h │ │ │ ├── irq_gt641xx.h │ │ │ ├── irq_regs.h │ │ │ ├── jazz.h │ │ │ ├── jazzdma.h │ │ │ ├── kdebug.h │ │ │ ├── kmap_types.h │ │ │ ├── lasat │ │ │ └── lasat.h │ │ │ ├── linkage.h │ │ │ ├── local.h │ │ │ ├── mach-au1x00 │ │ │ ├── au1000.h │ │ │ └── au1xxx_psc.h │ │ │ ├── mach-generic │ │ │ └── spaces.h │ │ │ ├── mach-ip22 │ │ │ └── ds1286.h │ │ │ ├── mc146818rtc.h │ │ │ ├── mips-boards │ │ │ ├── bonito64.h │ │ │ ├── generic.h │ │ │ ├── malta.h │ │ │ └── msc01_pci.h │ │ │ ├── mips_mt.h │ │ │ ├── mipsmtregs.h │ │ │ ├── mipsregs.h │ │ │ ├── mman.h │ │ │ ├── mmu.h │ │ │ ├── mmzone.h │ │ │ ├── module.h │ │ │ ├── msgbuf.h │ │ │ ├── mutex.h │ │ │ ├── page.h │ │ │ ├── param.h │ │ │ ├── pci │ │ │ └── bridge.h │ │ │ ├── percpu.h │ │ │ ├── pgalloc.h │ │ │ ├── pgtable-bits.h │ │ │ ├── pgtable.h │ │ │ ├── poll.h │ │ │ ├── posix_types.h │ │ │ ├── prefetch.h │ │ │ ├── processor.h │ │ │ ├── ptrace.h │ │ │ ├── reg.h │ │ │ ├── regdef.h │ │ │ ├── resource.h │ │ │ ├── scatterlist.h │ │ │ ├── sections.h │ │ │ ├── segment.h │ │ │ ├── sembuf.h │ │ │ ├── setup.h │ │ │ ├── sgi │ │ │ ├── hpc3.h │ │ │ ├── ioc.h │ │ │ └── pi1.h │ │ │ ├── sgiarcs.h │ │ │ ├── sgidefs.h │ │ │ ├── shmbuf.h │ │ │ ├── shmparam.h │ │ │ ├── sibyte │ │ │ ├── bcm1480_int.h │ │ │ ├── bcm1480_scd.h │ │ │ ├── sb1250.h │ │ │ ├── sb1250_int.h │ │ │ └── sb1250_scd.h │ │ │ ├── sigcontext.h │ │ │ ├── siginfo.h │ │ │ ├── signal.h │ │ │ ├── smp-ops.h │ │ │ ├── smp.h │ │ │ ├── sn │ │ │ ├── addrs.h │ │ │ ├── arch.h │ │ │ ├── hub.h │ │ │ ├── io.h │ │ │ ├── ioc3.h │ │ │ ├── kldir.h │ │ │ ├── klkernvars.h │ │ │ ├── sn0 │ │ │ │ ├── addrs.h │ │ │ │ ├── hubio.h │ │ │ │ ├── hubmd.h │ │ │ │ ├── hubni.h │ │ │ │ └── hubpi.h │ │ │ └── types.h │ │ │ ├── socket.h │ │ │ ├── sockios.h │ │ │ ├── stat.h │ │ │ ├── statfs.h │ │ │ ├── string.h │ │ │ ├── sysmips.h │ │ │ ├── system.h │ │ │ ├── termbits.h │ │ │ ├── termios.h │ │ │ ├── thread_info.h │ │ │ ├── timex.h │ │ │ ├── tlb.h │ │ │ ├── tlbflush.h │ │ │ ├── topology.h │ │ │ ├── txx9irq.h │ │ │ ├── types.h │ │ │ ├── uaccess.h │ │ │ ├── unaligned.h │ │ │ ├── unistd.h │ │ │ ├── user.h │ │ │ ├── vga.h │ │ │ ├── vr41xx │ │ │ └── irq.h │ │ │ ├── war.h │ │ │ └── xtalk │ │ │ ├── xtalk.h │ │ │ └── xwidget.h │ ├── arch-x86 │ │ ├── asm │ │ │ ├── a.out.h │ │ │ ├── acpi.h │ │ │ ├── acpi_32.h │ │ │ ├── alternative.h │ │ │ ├── alternative_32.h │ │ │ ├── apic.h │ │ │ ├── apic_32.h │ │ │ ├── apicdef.h │ │ │ ├── apicdef_32.h │ │ │ ├── atomic.h │ │ │ ├── atomic_32.h │ │ │ ├── auxvec.h │ │ │ ├── bitops.h │ │ │ ├── bitops_32.h │ │ │ ├── bug.h │ │ │ ├── byteorder.h │ │ │ ├── cache.h │ │ │ ├── cacheflush.h │ │ │ ├── cmpxchg.h │ │ │ ├── cmpxchg_32.h │ │ │ ├── cpufeature.h │ │ │ ├── cpufeature_32.h │ │ │ ├── cputime.h │ │ │ ├── current.h │ │ │ ├── current_32.h │ │ │ ├── delay.h │ │ │ ├── desc.h │ │ │ ├── desc_32.h │ │ │ ├── desc_defs.h │ │ │ ├── div64.h │ │ │ ├── dma-mapping.h │ │ │ ├── dma-mapping_32.h │ │ │ ├── dma.h │ │ │ ├── dma_32.h │ │ │ ├── dwarf2.h │ │ │ ├── dwarf2_32.h │ │ │ ├── e820.h │ │ │ ├── elf.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ ├── fixmap.h │ │ │ ├── fixmap_32.h │ │ │ ├── genapic.h │ │ │ ├── genapic_32.h │ │ │ ├── hardirq.h │ │ │ ├── hardirq_32.h │ │ │ ├── highmem.h │ │ │ ├── hw_irq.h │ │ │ ├── hw_irq_32.h │ │ │ ├── i387.h │ │ │ ├── i387_32.h │ │ │ ├── i8253.h │ │ │ ├── i8259.h │ │ │ ├── ia32_unistd.h │ │ │ ├── io.h │ │ │ ├── io_32.h │ │ │ ├── io_apic.h │ │ │ ├── io_apic_32.h │ │ │ ├── ioctl.h │ │ │ ├── ioctls.h │ │ │ ├── ipcbuf.h │ │ │ ├── irq.h │ │ │ ├── irq_32.h │ │ │ ├── irqflags.h │ │ │ ├── irqflags_32.h │ │ │ ├── ist.h │ │ │ ├── kmap_types.h │ │ │ ├── ldt.h │ │ │ ├── linkage.h │ │ │ ├── linkage_32.h │ │ │ ├── local.h │ │ │ ├── local_32.h │ │ │ ├── math_emu.h │ │ │ ├── mc146818rtc.h │ │ │ ├── mc146818rtc_32.h │ │ │ ├── mman.h │ │ │ ├── mmsegment.h │ │ │ ├── mmu.h │ │ │ ├── module.h │ │ │ ├── module_32.h │ │ │ ├── mpspec.h │ │ │ ├── mpspec_32.h │ │ │ ├── mpspec_def.h │ │ │ ├── msgbuf.h │ │ │ ├── msr-index.h │ │ │ ├── msr.h │ │ │ ├── page.h │ │ │ ├── page_32.h │ │ │ ├── param.h │ │ │ ├── paravirt.h │ │ │ ├── pda.h │ │ │ ├── percpu.h │ │ │ ├── percpu_32.h │ │ │ ├── pgalloc.h │ │ │ ├── pgalloc_32.h │ │ │ ├── pgtable-2level-defs.h │ │ │ ├── pgtable-2level.h │ │ │ ├── pgtable.h │ │ │ ├── pgtable_32.h │ │ │ ├── poll.h │ │ │ ├── posix_types.h │ │ │ ├── posix_types_32.h │ │ │ ├── prctl.h │ │ │ ├── processor-flags.h │ │ │ ├── processor.h │ │ │ ├── processor_32.h │ │ │ ├── ptrace-abi.h │ │ │ ├── ptrace.h │ │ │ ├── required-features.h │ │ │ ├── resource.h │ │ │ ├── rwlock.h │ │ │ ├── scatterlist.h │ │ │ ├── scatterlist_32.h │ │ │ ├── sections.h │ │ │ ├── segment.h │ │ │ ├── segment_32.h │ │ │ ├── semaphore.h │ │ │ ├── semaphore_32.h │ │ │ ├── sembuf.h │ │ │ ├── setup.h │ │ │ ├── shmbuf.h │ │ │ ├── shmparam.h │ │ │ ├── sigcontext.h │ │ │ ├── siginfo.h │ │ │ ├── signal.h │ │ │ ├── smp.h │ │ │ ├── smp_32.h │ │ │ ├── socket.h │ │ │ ├── sockios.h │ │ │ ├── spinlock.h │ │ │ ├── spinlock_32.h │ │ │ ├── spinlock_types.h │ │ │ ├── stat.h │ │ │ ├── statfs.h │ │ │ ├── string.h │ │ │ ├── string_32.h │ │ │ ├── swiotlb.h │ │ │ ├── system.h │ │ │ ├── system_32.h │ │ │ ├── termbits.h │ │ │ ├── termios.h │ │ │ ├── thread_info.h │ │ │ ├── thread_info_32.h │ │ │ ├── tlbflush.h │ │ │ ├── tlbflush_32.h │ │ │ ├── tsc.h │ │ │ ├── types.h │ │ │ ├── uaccess.h │ │ │ ├── uaccess_32.h │ │ │ ├── unaligned.h │ │ │ ├── unistd.h │ │ │ ├── unistd_32.h │ │ │ ├── user.h │ │ │ ├── user32.h │ │ │ ├── user_32.h │ │ │ ├── vm86.h │ │ │ ├── voyager.h │ │ │ ├── vsyscall.h │ │ │ └── xen │ │ │ │ └── hypercall.h │ │ └── dwarf2.h │ ├── common │ │ ├── asm-generic │ │ │ ├── 4level-fixup.h │ │ │ ├── audit_dir_write.h │ │ │ ├── bitops │ │ │ │ ├── __ffs.h │ │ │ │ ├── atomic.h │ │ │ │ ├── ffz.h │ │ │ │ ├── find.h │ │ │ │ ├── fls.h │ │ │ │ ├── fls64.h │ │ │ │ ├── le.h │ │ │ │ └── non-atomic.h │ │ │ ├── bug.h │ │ │ ├── cputime.h │ │ │ ├── emergency-restart.h │ │ │ ├── errno-base.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ ├── futex.h │ │ │ ├── ioctl.h │ │ │ ├── ipc.h │ │ │ ├── local.h │ │ │ ├── memory_model.h │ │ │ ├── mman-common.h │ │ │ ├── mman.h │ │ │ ├── mutex-xchg.h │ │ │ ├── percpu.h │ │ │ ├── pgtable-nopud.h │ │ │ ├── pgtable.h │ │ │ ├── poll.h │ │ │ ├── resource.h │ │ │ ├── sections.h │ │ │ ├── siginfo.h │ │ │ ├── signal.h │ │ │ ├── swab.h │ │ │ ├── tlb.h │ │ │ ├── topology.h │ │ │ └── xor.h │ │ ├── linux │ │ │ ├── a.out.h │ │ │ ├── a1026.h │ │ │ ├── aio_abi.h │ │ │ ├── akm8973.h │ │ │ ├── akm8975.h │ │ │ ├── akm8976.h │ │ │ ├── android_alarm.h │ │ │ ├── android_pmem.h │ │ │ ├── android_power.h │ │ │ ├── apm_bios.h │ │ │ ├── ashmem.h │ │ │ ├── ata.h │ │ │ ├── atm.h │ │ │ ├── atmapi.h │ │ │ ├── atmdev.h │ │ │ ├── atmioc.h │ │ │ ├── atmppp.h │ │ │ ├── atmsap.h │ │ │ ├── attribute_container.h │ │ │ ├── auto_fs.h │ │ │ ├── autoconf.h │ │ │ ├── auxvec.h │ │ │ ├── backing-dev.h │ │ │ ├── binder.h │ │ │ ├── binfmts.h │ │ │ ├── bio.h │ │ │ ├── bitmap.h │ │ │ ├── bitops.h │ │ │ ├── blkdev.h │ │ │ ├── blkpg.h │ │ │ ├── blockgroup_lock.h │ │ │ ├── bmp085.h │ │ │ ├── byteorder │ │ │ │ ├── big_endian.h │ │ │ │ ├── generic.h │ │ │ │ ├── little_endian.h │ │ │ │ ├── swab.h │ │ │ │ └── swabb.h │ │ │ ├── cache.h │ │ │ ├── calc64.h │ │ │ ├── capability.h │ │ │ ├── capella_cm3602.h │ │ │ ├── capi.h │ │ │ ├── cdev.h │ │ │ ├── cdrom.h │ │ │ ├── circ_buf.h │ │ │ ├── clk.h │ │ │ ├── coda.h │ │ │ ├── coda_fs_i.h │ │ │ ├── compat.h │ │ │ ├── compiler-gcc.h │ │ │ ├── compiler.h │ │ │ ├── completion.h │ │ │ ├── config.h │ │ │ ├── console_struct.h │ │ │ ├── cpcap_audio.h │ │ │ ├── cpu.h │ │ │ ├── cpumask.h │ │ │ ├── ctype.h │ │ │ ├── dccp.h │ │ │ ├── debug_locks.h │ │ │ ├── delay.h │ │ │ ├── device.h │ │ │ ├── dirent.h │ │ │ ├── dm-ioctl.h │ │ │ ├── dma-mapping.h │ │ │ ├── dmaengine.h │ │ │ ├── efs_dir.h │ │ │ ├── efs_fs_i.h │ │ │ ├── efs_fs_sb.h │ │ │ ├── elevator.h │ │ │ ├── elf-em.h │ │ │ ├── elf.h │ │ │ ├── err.h │ │ │ ├── errno.h │ │ │ ├── errqueue.h │ │ │ ├── etherdevice.h │ │ │ ├── ethtool.h │ │ │ ├── ext2_fs.h │ │ │ ├── ext3_fs.h │ │ │ ├── fadvise.h │ │ │ ├── fb.h │ │ │ ├── fcntl.h │ │ │ ├── fd.h │ │ │ ├── file.h │ │ │ ├── filter.h │ │ │ ├── fs.h │ │ │ ├── ftape.h │ │ │ ├── futex.h │ │ │ ├── genetlink.h │ │ │ ├── genhd.h │ │ │ ├── gfp.h │ │ │ ├── hardirq.h │ │ │ ├── hdlc │ │ │ │ └── ioctl.h │ │ │ ├── hdreg.h │ │ │ ├── hdsmart.h │ │ │ ├── hid.h │ │ │ ├── hidraw.h │ │ │ ├── highmem.h │ │ │ ├── hil.h │ │ │ ├── i2c.h │ │ │ ├── icmp.h │ │ │ ├── icmpv6.h │ │ │ ├── if.h │ │ │ ├── if_addr.h │ │ │ ├── if_alg.h │ │ │ ├── if_arcnet.h │ │ │ ├── if_arp.h │ │ │ ├── if_bonding.h │ │ │ ├── if_bridge.h │ │ │ ├── if_ether.h │ │ │ ├── if_fc.h │ │ │ ├── if_fddi.h │ │ │ ├── if_hippi.h │ │ │ ├── if_link.h │ │ │ ├── if_packet.h │ │ │ ├── if_ppp.h │ │ │ ├── if_pppol2tp.h │ │ │ ├── if_pppolac.h │ │ │ ├── if_pppopns.h │ │ │ ├── if_pppox.h │ │ │ ├── if_slip.h │ │ │ ├── if_tr.h │ │ │ ├── if_tun.h │ │ │ ├── if_vlan.h │ │ │ ├── in.h │ │ │ ├── in6.h │ │ │ ├── in_route.h │ │ │ ├── init.h │ │ │ ├── inotify.h │ │ │ ├── input.h │ │ │ ├── interrupt.h │ │ │ ├── ioctl.h │ │ │ ├── ion.h │ │ │ ├── ioport.h │ │ │ ├── ioprio.h │ │ │ ├── ip.h │ │ │ ├── ipc.h │ │ │ ├── ipmi_msgdefs.h │ │ │ ├── ipmi_smi.h │ │ │ ├── ipsec.h │ │ │ ├── ipv6.h │ │ │ ├── ipv6_route.h │ │ │ ├── ipx.h │ │ │ ├── irq.h │ │ │ ├── irq_cpustat.h │ │ │ ├── irqflags.h │ │ │ ├── irqreturn.h │ │ │ ├── jbd.h │ │ │ ├── jffs2.h │ │ │ ├── jiffies.h │ │ │ ├── kd.h │ │ │ ├── kdev_t.h │ │ │ ├── kernel.h │ │ │ ├── kernel_stat.h │ │ │ ├── kernelcapi.h │ │ │ ├── kexec.h │ │ │ ├── key.h │ │ │ ├── keyboard.h │ │ │ ├── keychord.h │ │ │ ├── klist.h │ │ │ ├── kmod.h │ │ │ ├── kobject.h │ │ │ ├── kref.h │ │ │ ├── ktime.h │ │ │ ├── kxtf9.h │ │ │ ├── l3g4200d.h │ │ │ ├── leds-an30259a.h │ │ │ ├── lightsensor.h │ │ │ ├── limits.h │ │ │ ├── linkage.h │ │ │ ├── lis331dlh.h │ │ │ ├── list.h │ │ │ ├── lockd │ │ │ │ ├── nlm.h │ │ │ │ └── xdr.h │ │ │ ├── lockdep.h │ │ │ ├── loop.h │ │ │ ├── magic.h │ │ │ ├── major.h │ │ │ ├── max9635.h │ │ │ ├── mc146818rtc.h │ │ │ ├── mca.h │ │ │ ├── mempolicy.h │ │ │ ├── mempool.h │ │ │ ├── mii.h │ │ │ ├── miscdevice.h │ │ │ ├── mm.h │ │ │ ├── mmc │ │ │ │ ├── card.h │ │ │ │ ├── host.h │ │ │ │ └── mmc.h │ │ │ ├── mmzone.h │ │ │ ├── mod_devicetable.h │ │ │ ├── module.h │ │ │ ├── moduleparam.h │ │ │ ├── mount.h │ │ │ ├── mroute6.h │ │ │ ├── msdos_fs.h │ │ │ ├── msg.h │ │ │ ├── msm_adsp.h │ │ │ ├── msm_audio.h │ │ │ ├── msm_hw3d.h │ │ │ ├── msm_kgsl.h │ │ │ ├── msm_mdp.h │ │ │ ├── msm_q6vdec.h │ │ │ ├── msm_q6venc.h │ │ │ ├── msm_vidc_dec.h │ │ │ ├── msm_vidc_enc.h │ │ │ ├── mt9t013.h │ │ │ ├── mtd │ │ │ │ ├── bbm.h │ │ │ │ ├── blktrans.h │ │ │ │ ├── cfi.h │ │ │ │ ├── cfi_endian.h │ │ │ │ ├── compatmac.h │ │ │ │ ├── flashchip.h │ │ │ │ ├── map.h │ │ │ │ ├── mtd.h │ │ │ │ ├── nand.h │ │ │ │ ├── nand_ecc.h │ │ │ │ ├── nftl.h │ │ │ │ ├── onenand_regs.h │ │ │ │ └── partitions.h │ │ │ ├── mtio.h │ │ │ ├── mutex-debug.h │ │ │ ├── mutex.h │ │ │ ├── ncp.h │ │ │ ├── ncp_mount.h │ │ │ ├── ncp_no.h │ │ │ ├── neighbour.h │ │ │ ├── net.h │ │ │ ├── netdevice.h │ │ │ ├── netfilter.h │ │ │ ├── netfilter │ │ │ │ ├── nf_conntrack_common.h │ │ │ │ ├── nf_conntrack_ftp.h │ │ │ │ ├── nf_conntrack_sctp.h │ │ │ │ ├── nf_conntrack_tcp.h │ │ │ │ ├── nf_conntrack_tuple_common.h │ │ │ │ ├── nfnetlink.h │ │ │ │ ├── nfnetlink_conntrack.h │ │ │ │ ├── x_tables.h │ │ │ │ ├── xt_CLASSIFY.h │ │ │ │ ├── xt_CONNMARK.h │ │ │ │ ├── xt_CONNSECMARK.h │ │ │ │ ├── xt_IDLETIMER.h │ │ │ │ ├── xt_MARK.h │ │ │ │ ├── xt_NFQUEUE.h │ │ │ │ ├── xt_SECMARK.h │ │ │ │ ├── xt_comment.h │ │ │ │ ├── xt_connbytes.h │ │ │ │ ├── xt_connmark.h │ │ │ │ ├── xt_conntrack.h │ │ │ │ ├── xt_dccp.h │ │ │ │ ├── xt_esp.h │ │ │ │ ├── xt_helper.h │ │ │ │ ├── xt_length.h │ │ │ │ ├── xt_limit.h │ │ │ │ ├── xt_mac.h │ │ │ │ ├── xt_mark.h │ │ │ │ ├── xt_multiport.h │ │ │ │ ├── xt_physdev.h │ │ │ │ ├── xt_pkttype.h │ │ │ │ ├── xt_quota.h │ │ │ │ ├── xt_realm.h │ │ │ │ ├── xt_sctp.h │ │ │ │ ├── xt_state.h │ │ │ │ ├── xt_statistic.h │ │ │ │ ├── xt_string.h │ │ │ │ ├── xt_tcpmss.h │ │ │ │ └── xt_tcpudp.h │ │ │ ├── netfilter_arp.h │ │ │ ├── netfilter_arp │ │ │ │ └── arp_tables.h │ │ │ ├── netfilter_bridge.h │ │ │ ├── netfilter_ipv4.h │ │ │ ├── netfilter_ipv4 │ │ │ │ ├── ip_conntrack.h │ │ │ │ ├── ip_conntrack_tuple.h │ │ │ │ ├── ip_nat.h │ │ │ │ ├── ip_nat_rule.h │ │ │ │ ├── ip_queue.h │ │ │ │ ├── ip_tables.h │ │ │ │ ├── ipt_CLASSIFY.h │ │ │ │ ├── ipt_DSCP.h │ │ │ │ ├── ipt_ECN.h │ │ │ │ ├── ipt_LOG.h │ │ │ │ ├── ipt_NFQUEUE.h │ │ │ │ ├── ipt_REJECT.h │ │ │ │ ├── ipt_TCPMSS.h │ │ │ │ ├── ipt_TOS.h │ │ │ │ ├── ipt_TTL.h │ │ │ │ ├── ipt_ULOG.h │ │ │ │ ├── ipt_addrtype.h │ │ │ │ ├── ipt_ah.h │ │ │ │ ├── ipt_comment.h │ │ │ │ ├── ipt_connbytes.h │ │ │ │ ├── ipt_dccp.h │ │ │ │ ├── ipt_dscp_.h │ │ │ │ ├── ipt_esp.h │ │ │ │ ├── ipt_hashlimit.h │ │ │ │ ├── ipt_helper.h │ │ │ │ ├── ipt_iprange.h │ │ │ │ ├── ipt_length.h │ │ │ │ ├── ipt_mac.h │ │ │ │ ├── ipt_owner.h │ │ │ │ ├── ipt_physdev.h │ │ │ │ ├── ipt_pkttype.h │ │ │ │ ├── ipt_realm.h │ │ │ │ ├── ipt_recent.h │ │ │ │ ├── ipt_sctp.h │ │ │ │ ├── ipt_state.h │ │ │ │ ├── ipt_string.h │ │ │ │ └── ipt_tos_.h │ │ │ ├── netfilter_ipv6.h │ │ │ ├── netfilter_ipv6 │ │ │ │ ├── ip6_tables.h │ │ │ │ ├── ip6t_HL.h │ │ │ │ ├── ip6t_LOG.h │ │ │ │ ├── ip6t_REJECT.h │ │ │ │ ├── ip6t_ah.h │ │ │ │ ├── ip6t_esp.h │ │ │ │ ├── ip6t_frag.h │ │ │ │ ├── ip6t_hl.h │ │ │ │ ├── ip6t_ipv6header.h │ │ │ │ ├── ip6t_length.h │ │ │ │ ├── ip6t_mac.h │ │ │ │ ├── ip6t_opts.h │ │ │ │ ├── ip6t_owner.h │ │ │ │ ├── ip6t_physdev.h │ │ │ │ └── ip6t_rt.h │ │ │ ├── netlink.h │ │ │ ├── nfs.h │ │ │ ├── nfs2.h │ │ │ ├── nfs3.h │ │ │ ├── nfs4.h │ │ │ ├── nfs_xdr.h │ │ │ ├── nfsacl.h │ │ │ ├── nfsd │ │ │ │ ├── auth.h │ │ │ │ ├── const.h │ │ │ │ ├── debug.h │ │ │ │ ├── export.h │ │ │ │ ├── interface.h │ │ │ │ ├── nfsfh.h │ │ │ │ ├── stats.h │ │ │ │ └── xdr.h │ │ │ ├── node.h │ │ │ ├── nodemask.h │ │ │ ├── notifier.h │ │ │ ├── numa.h │ │ │ ├── nvhdcp.h │ │ │ ├── nvram.h │ │ │ ├── omap_csmi.h │ │ │ ├── omap_ion.h │ │ │ ├── pagemap.h │ │ │ ├── param.h │ │ │ ├── patchkey.h │ │ │ ├── pci.h │ │ │ ├── pci_ids.h │ │ │ ├── pci_regs.h │ │ │ ├── percpu.h │ │ │ ├── percpu_counter.h │ │ │ ├── perf_event.h │ │ │ ├── personality.h │ │ │ ├── pfkeyv2.h │ │ │ ├── pkt_cls.h │ │ │ ├── pkt_sched.h │ │ │ ├── platform_device.h │ │ │ ├── plist.h │ │ │ ├── pm.h │ │ │ ├── pn544.h │ │ │ ├── pnp.h │ │ │ ├── poll.h │ │ │ ├── posix_acl.h │ │ │ ├── posix_types.h │ │ │ ├── ppdev.h │ │ │ ├── ppp_defs.h │ │ │ ├── prctl.h │ │ │ ├── preempt.h │ │ │ ├── proc_fs.h │ │ │ ├── ptrace.h │ │ │ ├── qic117.h │ │ │ ├── qnxtypes.h │ │ │ ├── quota.h │ │ │ ├── raid │ │ │ │ ├── md.h │ │ │ │ ├── md_k.h │ │ │ │ ├── md_p.h │ │ │ │ ├── md_u.h │ │ │ │ └── xor.h │ │ │ ├── random.h │ │ │ ├── rbtree.h │ │ │ ├── rcupdate.h │ │ │ ├── reboot.h │ │ │ ├── relay.h │ │ │ ├── resource.h │ │ │ ├── route.h │ │ │ ├── rpmsg_omx.h │ │ │ ├── rtc.h │ │ │ ├── rtnetlink.h │ │ │ ├── rwsem.h │ │ │ ├── sched.h │ │ │ ├── sem.h │ │ │ ├── seq_file.h │ │ │ ├── seqlock.h │ │ │ ├── serial_core.h │ │ │ ├── serial_reg.h │ │ │ ├── serio.h │ │ │ ├── sfh7743.h │ │ │ ├── shm.h │ │ │ ├── signal.h │ │ │ ├── signalfd.h │ │ │ ├── skbuff.h │ │ │ ├── slab.h │ │ │ ├── smb.h │ │ │ ├── smp.h │ │ │ ├── smp_lock.h │ │ │ ├── socket.h │ │ │ ├── sockios.h │ │ │ ├── soundcard.h │ │ │ ├── spi │ │ │ │ └── cpcap.h │ │ │ ├── spinlock.h │ │ │ ├── spinlock_api_smp.h │ │ │ ├── spinlock_api_up.h │ │ │ ├── spinlock_types.h │ │ │ ├── spinlock_types_up.h │ │ │ ├── spinlock_up.h │ │ │ ├── stacktrace.h │ │ │ ├── stat.h │ │ │ ├── statfs.h │ │ │ ├── stddef.h │ │ │ ├── string.h │ │ │ ├── stringify.h │ │ │ ├── sunrpc │ │ │ │ ├── auth.h │ │ │ │ ├── auth_gss.h │ │ │ │ ├── clnt.h │ │ │ │ ├── debug.h │ │ │ │ ├── gss_api.h │ │ │ │ ├── gss_asn1.h │ │ │ │ ├── gss_err.h │ │ │ │ ├── msg_prot.h │ │ │ │ ├── sched.h │ │ │ │ ├── stats.h │ │ │ │ ├── svc.h │ │ │ │ ├── svcauth.h │ │ │ │ ├── timer.h │ │ │ │ ├── types.h │ │ │ │ ├── xdr.h │ │ │ │ └── xprt.h │ │ │ ├── sw_sync.h │ │ │ ├── swab.h │ │ │ ├── swap.h │ │ │ ├── sync.h │ │ │ ├── sysctl.h │ │ │ ├── sysdev.h │ │ │ ├── sysfs.h │ │ │ ├── taskstats.h │ │ │ ├── taskstats_kern.h │ │ │ ├── tcp.h │ │ │ ├── tegra_audio.h │ │ │ ├── tegra_avp.h │ │ │ ├── tegra_rpc.h │ │ │ ├── tegra_sema.h │ │ │ ├── tegrafb.h │ │ │ ├── telephony.h │ │ │ ├── termios.h │ │ │ ├── textsearch.h │ │ │ ├── thread_info.h │ │ │ ├── threads.h │ │ │ ├── time.h │ │ │ ├── timer.h │ │ │ ├── times.h │ │ │ ├── timex.h │ │ │ ├── tiocl.h │ │ │ ├── tpa2018d1.h │ │ │ ├── transport_class.h │ │ │ ├── tty.h │ │ │ ├── types.h │ │ │ ├── ublock.h │ │ │ ├── udp.h │ │ │ ├── ufs_fs_i.h │ │ │ ├── ufs_fs_sb.h │ │ │ ├── uinput.h │ │ │ ├── uio.h │ │ │ ├── un.h │ │ │ ├── unistd.h │ │ │ ├── usb.h │ │ │ ├── usb │ │ │ │ ├── ch9.h │ │ │ │ ├── f_accessory.h │ │ │ │ ├── f_mtp.h │ │ │ │ └── functionfs.h │ │ │ ├── usb_ch9.h │ │ │ ├── usbdevice_fs.h │ │ │ ├── user.h │ │ │ ├── utime.h │ │ │ ├── utsname.h │ │ │ ├── version.h │ │ │ ├── vfs.h │ │ │ ├── videodev.h │ │ │ ├── videodev2.h │ │ │ ├── vmalloc.h │ │ │ ├── vt.h │ │ │ ├── vt_buffer.h │ │ │ ├── wait.h │ │ │ ├── wanrouter.h │ │ │ ├── watchdog.h │ │ │ ├── wireless.h │ │ │ ├── workqueue.h │ │ │ ├── xattr.h │ │ │ ├── zconf.h │ │ │ ├── zlib.h │ │ │ └── zorro_ids.h │ │ ├── media │ │ │ ├── msm_camera.h │ │ │ ├── ov5650.h │ │ │ ├── soc2030.h │ │ │ └── tegra_camera.h │ │ ├── mtd │ │ │ ├── mtd-abi.h │ │ │ ├── mtd-user.h │ │ │ └── ubi-user.h │ │ ├── scsi │ │ │ ├── scsi.h │ │ │ └── sg.h │ │ ├── sound │ │ │ └── asound.h │ │ └── video │ │ │ └── dsscomp.h │ └── tools │ │ ├── clean_header.py │ │ ├── cpp.py │ │ ├── defaults.py │ │ ├── find_headers.py │ │ ├── find_users.py │ │ ├── kernel.py │ │ ├── update_all.py │ │ └── utils.py ├── mntent │ ├── addmntent.c │ ├── endmntent.c │ ├── getmntent.c │ ├── hasmntopt.c │ ├── mntent_priv.h │ └── setmntent.c ├── netbsd │ ├── gethnamaddr.c │ ├── inet │ │ └── nsap_addr.c │ ├── isc │ │ ├── ev_streams.c │ │ ├── ev_timers.c │ │ └── eventlib_p.h │ ├── nameser │ │ ├── ns_name.c │ │ ├── ns_netint.c │ │ ├── ns_parse.c │ │ ├── ns_print.c │ │ ├── ns_samedomain.c │ │ └── ns_ttl.c │ ├── net │ │ ├── base64.c │ │ ├── getaddrinfo.c │ │ ├── getnameinfo.c │ │ ├── getservbyname.c │ │ ├── getservbyname_r.c │ │ ├── getservbyport.c │ │ ├── getservbyport_r.c │ │ ├── getservent.c │ │ ├── getservent_r.c │ │ ├── nsdispatch.c │ │ ├── reentrant.h │ │ ├── servent.h │ │ └── services.h │ └── resolv │ │ ├── __dn_comp.c │ │ ├── __res_close.c │ │ ├── __res_send.c │ │ ├── herror.c │ │ ├── res_cache.c │ │ ├── res_comp.c │ │ ├── res_compat.c │ │ ├── res_data.c │ │ ├── res_debug.c │ │ ├── res_debug.h │ │ ├── res_init.c │ │ ├── res_mkquery.c │ │ ├── res_private.h │ │ ├── res_query.c │ │ ├── res_random.c │ │ ├── res_send.c │ │ └── res_state.c ├── netdb │ ├── getnetbyaddr.c │ ├── getnetbyname.c │ ├── getprotobyname.c │ └── getprotobynumber.c ├── netinet │ ├── ether_hostton.c │ ├── ether_line.c │ └── ether_priv.h ├── private │ ├── __dso_handle.S │ ├── __dso_handle_so.S │ ├── arpa_nameser.h │ ├── arpa_nameser_compat.h │ ├── bionic_atomic_arm.h │ ├── bionic_atomic_gcc_builtin.h │ ├── bionic_atomic_inline.h │ ├── bionic_atomic_x86.h │ ├── bionic_futex.h │ ├── bionic_pthread.h │ ├── bionic_time.h │ ├── bionic_tls.h │ ├── cpuacct.h │ ├── ctype_private.h │ ├── isc │ │ ├── assertions.h │ │ ├── dst.h │ │ ├── eventlib.h │ │ ├── heap.h │ │ ├── list.h │ │ └── memcluster.h │ ├── logd.h │ ├── nsswitch.h │ ├── rand48.h │ ├── resolv_cache.h │ ├── resolv_iface.h │ ├── resolv_private.h │ ├── resolv_static.h │ ├── syscommon.h │ └── thread_private.h ├── pwd │ ├── getpwent.c │ ├── getpwnam.c │ ├── getpwuid.c │ └── pwd_priv.h ├── regex │ ├── cclass.h │ ├── cname.h │ ├── engine.c │ ├── regcomp.c │ ├── regerror.c │ ├── regex2.h │ ├── regexec.c │ ├── regfree.c │ └── utils.h ├── set_errno.h ├── shadow │ ├── endspent.c │ ├── fgetspent.c │ ├── getspent.c │ ├── getspnam.c │ ├── lckpwdf.c │ ├── putspent.c │ ├── setspent.c │ ├── sgetspent.c │ └── ulckpwdf.c ├── stdio │ ├── asprintf.c │ ├── clrerr.c │ ├── fclose.c │ ├── fdopen.c │ ├── feof.c │ ├── ferror.c │ ├── fflush.c │ ├── fgetc.c │ ├── fgetln.c │ ├── fgetpos.c │ ├── fgets.c │ ├── fileext.h │ ├── fileno.c │ ├── findfp.c │ ├── flags.c │ ├── floatio.h │ ├── flockfile.c │ ├── fopen.c │ ├── fprintf.c │ ├── fpurge.c │ ├── fputc.c │ ├── fputs.c │ ├── fread.c │ ├── freopen.c │ ├── fscanf.c │ ├── fseek.c │ ├── fsetpos.c │ ├── ftell.c │ ├── funopen.c │ ├── fvwrite.c │ ├── fvwrite.h │ ├── fwalk.c │ ├── fwrite.c │ ├── getc.c │ ├── getchar.c │ ├── getdelim.c │ ├── getline.c │ ├── gets.c │ ├── glob.c │ ├── glue.h │ ├── local.h │ ├── makebuf.c │ ├── mktemp.c │ ├── printf.c │ ├── putc.c │ ├── putchar.c │ ├── puts.c │ ├── putw.c │ ├── refill.c │ ├── remove.c │ ├── rewind.c │ ├── rget.c │ ├── scanf.c │ ├── setbuf.c │ ├── setbuffer.c │ ├── setvbuf.c │ ├── snprintf.c │ ├── sprintf.c │ ├── sscanf.c │ ├── stdio.c │ ├── tempnam.c │ ├── tmpfile.c │ ├── tmpnam.c │ ├── ungetc.c │ ├── vasprintf.c │ ├── vfprintf.c │ ├── vfscanf.c │ ├── vprintf.c │ ├── vscanf.c │ ├── vsnprintf.c │ ├── vsprintf.c │ ├── vsscanf.c │ ├── wbuf.c │ ├── wcio.h │ └── wsetup.c ├── stdlib │ ├── _rand48.c │ ├── assert.c │ ├── atexit.c │ ├── atexit.h │ ├── atoi.c │ ├── atol.c │ ├── atoll.c │ ├── bsearch.c │ ├── ctype_.c │ ├── div.c │ ├── exit.c │ ├── getenv.c │ ├── jrand48.c │ ├── ldiv.c │ ├── lldiv.c │ ├── locale.c │ ├── lrand48.c │ ├── mrand48.c │ ├── nrand48.c │ ├── putenv.c │ ├── qsort.c │ ├── seed48.c │ ├── setenv.c │ ├── setjmperr.c │ ├── srand48.c │ ├── strntoimax.c │ ├── strntoumax.c │ ├── strtod.c │ ├── strtoimax.c │ ├── strtol.c │ ├── strtoll.c │ ├── strtoul.c │ ├── strtoull.c │ ├── strtoumax.c │ ├── tolower_.c │ ├── toupper_.c │ └── wchar.c ├── string │ ├── bcopy.c │ ├── index.c │ ├── memccpy.c │ ├── memchr.c │ ├── memcmp.c │ ├── memcpy.c │ ├── memmem.c │ ├── memmove.c │ ├── mempcpy.c │ ├── memrchr.c │ ├── memset.c │ ├── memswap.c │ ├── strcasecmp.c │ ├── strcasestr.c │ ├── strcat.c │ ├── strchr.c │ ├── strchrnul.c │ ├── strcmp.c │ ├── strcoll.c │ ├── strcpy.c │ ├── strcspn.c │ ├── strdup.c │ ├── strerror.c │ ├── strerror_r.c │ ├── strlcat.c │ ├── strlcpy.c │ ├── strlen.c │ ├── strncat.c │ ├── strncmp.c │ ├── strncpy.c │ ├── strndup.c │ ├── strnlen.c │ ├── strpbrk.c │ ├── strrchr.c │ ├── strsep.c │ ├── strspn.c │ ├── strstr.c │ ├── strtok.c │ ├── strtotimeval.c │ └── strxfrm.c ├── stub.h ├── termios │ └── tcdrain.c ├── tools │ ├── bionic_utils.py │ ├── checksyscalls.py │ ├── genkernelhdrmk.sh │ ├── genserv.py │ ├── gensyscalls.py │ ├── sed.py │ └── zoneinfo │ │ ├── ZoneCompactor.java │ │ ├── ZoneInfo.java │ │ └── generate ├── tzcode │ ├── asctime.c │ ├── difftime.c │ ├── localtime.c │ ├── private.h │ ├── strftime.c │ ├── strptime.c │ └── tzfile.h ├── unistd │ ├── abort.c │ ├── alarm.c │ ├── brk.c │ ├── charclass.h │ ├── creat.c │ ├── crypt.c │ ├── daemon.c │ ├── eventfd.c │ ├── exec.c │ ├── fcntl.c │ ├── fnmatch.c │ ├── fstatfs.c │ ├── ftime.c │ ├── ftok.c │ ├── futimens.c │ ├── getcwd.c │ ├── getdtablesize.c │ ├── gethostname.c │ ├── getlogin.c │ ├── getopt_long.c │ ├── getpagesize.c │ ├── getpgrp.c │ ├── getpriority.c │ ├── getpt.c │ ├── getusershell.c │ ├── initgroups.c │ ├── isatty.c │ ├── issetugid.c │ ├── killpg.c │ ├── lseek64.c │ ├── mmap.c │ ├── nice.c │ ├── open.c │ ├── openat.c │ ├── opendir.c │ ├── openpty.c │ ├── pathconf.c │ ├── perror.c │ ├── popen.c │ ├── posix_openpt.c │ ├── pread.c │ ├── pselect.c │ ├── ptsname.c │ ├── ptsname_r.c │ ├── pwrite.c │ ├── raise.c │ ├── reboot.c │ ├── recv.c │ ├── sbrk.c │ ├── send.c │ ├── setegid.c │ ├── seteuid.c │ ├── setpgrp.c │ ├── setresuid.c │ ├── setreuid.c │ ├── setuid.c │ ├── shell_priv.h │ ├── sigblock.c │ ├── siginterrupt.c │ ├── siglist.c │ ├── signal.c │ ├── signame.c │ ├── sigsetmask.c │ ├── sigsuspend.c │ ├── sigwait.c │ ├── sleep.c │ ├── socketcalls.c │ ├── statfs.c │ ├── strsignal.c │ ├── sysconf.c │ ├── syslog.c │ ├── system.c │ ├── tcgetpgrp.c │ ├── tcsetpgrp.c │ ├── time.c │ ├── ttyname.c │ ├── umount.c │ ├── unlockpt.c │ ├── usleep.c │ └── wait.c ├── utmp │ ├── getutid.c │ └── getutline.c ├── wchar │ ├── wcpcpy.c │ ├── wcpncpy.c │ ├── wcscasecmp.c │ ├── wcscat.c │ ├── wcschr.c │ ├── wcscmp.c │ ├── wcscoll.c │ ├── wcscpy.c │ ├── wcscspn.c │ ├── wcsdup.c │ ├── wcslcat.c │ ├── wcslcpy.c │ ├── wcslen.c │ ├── wcsncasecmp.c │ ├── wcsncat.c │ ├── wcsncmp.c │ ├── wcsncpy.c │ ├── wcsnlen.c │ ├── wcspbrk.c │ ├── wcsrchr.c │ ├── wcsspn.c │ ├── wcsstr.c │ ├── wcstok.c │ ├── wcswidth.c │ ├── wcsxfrm.c │ ├── wmemchr.c │ ├── wmemcmp.c │ ├── wmemcpy.c │ ├── wmemmove.c │ └── wmemset.c └── zoneinfo │ ├── MODULE_LICENSE_PUBLIC_DOMAIN │ ├── Makefile.am │ ├── zoneinfo.dat │ ├── zoneinfo.idx │ └── zoneinfo.version ├── libdl ├── MODULE_LICENSE_BSD ├── Makefile.am ├── NOTICE ├── arch-sh │ ├── sobegin.S │ └── soend.S ├── dltest.c └── libdl.c ├── libm ├── MODULE_LICENSE_BSD_LIKE ├── Makefile.am ├── NOTICE ├── alpha │ ├── _fpmath.h │ ├── fenv.c │ ├── fenv.h │ ├── s_copysign.S │ └── s_copysignf.S ├── amd64 │ ├── _fpmath.h │ ├── e_sqrt.S │ ├── e_sqrtf.S │ ├── fenv.c │ ├── fenv.h │ ├── s_llrint.S │ ├── s_llrintf.S │ ├── s_lrint.S │ ├── s_lrintf.S │ ├── s_remquo.S │ ├── s_remquof.S │ ├── s_scalbn.S │ ├── s_scalbnf.S │ └── s_scalbnl.S ├── arm │ ├── _fpmath.h │ ├── fenv.c │ └── fenv.h ├── bsdsrc │ ├── b_exp.c │ ├── b_log.c │ ├── b_tgamma.c │ └── mathimpl.h ├── fpclassify.c ├── i386 │ └── _fpmath.h ├── i387 │ ├── e_exp.S │ ├── e_fmod.S │ ├── e_log.S │ ├── e_log10.S │ ├── e_log10f.S │ ├── e_logf.S │ ├── e_remainder.S │ ├── e_remainderf.S │ ├── e_scalb.S │ ├── e_scalbf.S │ ├── e_sqrt.S │ ├── e_sqrtf.S │ ├── fenv.c │ ├── npx.h │ ├── s_ceil.S │ ├── s_ceilf.S │ ├── s_ceill.S │ ├── s_copysign.S │ ├── s_copysignf.S │ ├── s_copysignl.S │ ├── s_cos.S │ ├── s_finite.S │ ├── s_floor.S │ ├── s_floorf.S │ ├── s_floorl.S │ ├── s_llrint.S │ ├── s_llrintf.S │ ├── s_logb.S │ ├── s_logbf.S │ ├── s_lrint.S │ ├── s_lrintf.S │ ├── s_remquo.S │ ├── s_remquof.S │ ├── s_rint.S │ ├── s_rintf.S │ ├── s_scalbn.S │ ├── s_scalbnf.S │ ├── s_scalbnl.S │ ├── s_significand.S │ ├── s_significandf.S │ ├── s_sin.S │ ├── s_tan.S │ ├── s_trunc.S │ ├── s_truncf.S │ ├── s_truncl.S │ └── x86-fenv.c ├── ia64 │ ├── _fpmath.h │ ├── fenv.c │ ├── fenv.h │ ├── s_fma.S │ ├── s_fmaf.S │ └── s_fmal.S ├── include │ ├── alpha │ │ └── fenv.h │ ├── amd64 │ │ └── fenv.h │ ├── arm │ │ └── fenv.h │ ├── i387 │ │ └── fenv.h │ ├── ia64 │ │ └── fenv.h │ ├── math.h │ ├── powerpc │ │ └── fenv.h │ └── sparc64 │ │ └── fenv.h ├── isinf.c ├── powerpc │ ├── _fpmath.h │ ├── fenv.c │ └── fenv.h ├── sh │ ├── _fpmath.h │ ├── fenv.c │ └── fenv.h ├── sincos.c ├── sparc64 │ ├── _fpmath.h │ ├── e_sqrt.S │ ├── e_sqrtf.S │ ├── fenv.c │ └── fenv.h └── src │ ├── e_acos.c │ ├── e_acosf.c │ ├── e_acosh.c │ ├── e_acoshf.c │ ├── e_asin.c │ ├── e_asinf.c │ ├── e_atan2.c │ ├── e_atan2f.c │ ├── e_atanh.c │ ├── e_atanhf.c │ ├── e_cosh.c │ ├── e_coshf.c │ ├── e_exp.c │ ├── e_expf.c │ ├── e_fmod.c │ ├── e_fmodf.c │ ├── e_gamma.c │ ├── e_gamma_r.c │ ├── e_gammaf.c │ ├── e_gammaf_r.c │ ├── e_hypot.c │ ├── e_hypotf.c │ ├── e_j0.c │ ├── e_j0f.c │ ├── e_j1.c │ ├── e_j1f.c │ ├── e_jn.c │ ├── e_jnf.c │ ├── e_ldexpf.c │ ├── e_lgamma.c │ ├── e_lgamma_r.c │ ├── e_lgammaf.c │ ├── e_lgammaf_r.c │ ├── e_log.c │ ├── e_log10.c │ ├── e_log10f.c │ ├── e_logf.c │ ├── e_pow.c │ ├── e_powf.c │ ├── e_rem_pio2.c │ ├── e_rem_pio2f.c │ ├── e_remainder.c │ ├── e_remainderf.c │ ├── e_scalb.c │ ├── e_scalbf.c │ ├── e_sinh.c │ ├── e_sinhf.c │ ├── e_sqrt.c │ ├── e_sqrtf.c │ ├── fpmath.h │ ├── k_cos.c │ ├── k_cosf.c │ ├── k_rem_pio2.c │ ├── k_rem_pio2f.c │ ├── k_sin.c │ ├── k_sinf.c │ ├── k_tan.c │ ├── k_tanf.c │ ├── math_private.h │ ├── s_asinh.c │ ├── s_asinhf.c │ ├── s_atan.c │ ├── s_atanf.c │ ├── s_cbrt.c │ ├── s_cbrtf.c │ ├── s_ceil.c │ ├── s_ceilf.c │ ├── s_ceill.c │ ├── s_cimag.c │ ├── s_cimagf.c │ ├── s_cimagl.c │ ├── s_conj.c │ ├── s_conjf.c │ ├── s_conjl.c │ ├── s_copysign.c │ ├── s_copysignf.c │ ├── s_copysignl.c │ ├── s_cos.c │ ├── s_cosf.c │ ├── s_creal.c │ ├── s_crealf.c │ ├── s_creall.c │ ├── s_erf.c │ ├── s_erff.c │ ├── s_exp2.c │ ├── s_exp2f.c │ ├── s_expm1.c │ ├── s_expm1f.c │ ├── s_fabs.c │ ├── s_fabsf.c │ ├── s_fabsl.c │ ├── s_fdim.c │ ├── s_finite.c │ ├── s_finitef.c │ ├── s_floor.c │ ├── s_floorf.c │ ├── s_floorl.c │ ├── s_fma.c │ ├── s_fmaf.c │ ├── s_fmal.c │ ├── s_fmax.c │ ├── s_fmaxf.c │ ├── s_fmaxl.c │ ├── s_fmin.c │ ├── s_fminf.c │ ├── s_fminl.c │ ├── s_frexp.c │ ├── s_frexpf.c │ ├── s_frexpl.c │ ├── s_ilogb.c │ ├── s_ilogbf.c │ ├── s_ilogbl.c │ ├── s_isfinite.c │ ├── s_isnan.c │ ├── s_isnormal.c │ ├── s_llrint.c │ ├── s_llrintf.c │ ├── s_llround.c │ ├── s_llroundf.c │ ├── s_llroundl.c │ ├── s_log1p.c │ ├── s_log1pf.c │ ├── s_logb.c │ ├── s_logbf.c │ ├── s_lrint.c │ ├── s_lrintf.c │ ├── s_lround.c │ ├── s_lroundf.c │ ├── s_lroundl.c │ ├── s_modf.c │ ├── s_modff.c │ ├── s_nan.c │ ├── s_nearbyint.c │ ├── s_nextafter.c │ ├── s_nextafterf.c │ ├── s_nextafterl.c │ ├── s_nexttoward.c │ ├── s_nexttowardf.c │ ├── s_remquo.c │ ├── s_remquof.c │ ├── s_rint.c │ ├── s_rintf.c │ ├── s_round.c │ ├── s_roundf.c │ ├── s_roundl.c │ ├── s_scalbln.c │ ├── s_scalbn.c │ ├── s_scalbnf.c │ ├── s_scalbnl.c │ ├── s_signbit.c │ ├── s_signgam.c │ ├── s_significand.c │ ├── s_significandf.c │ ├── s_sin.c │ ├── s_sinf.c │ ├── s_tan.c │ ├── s_tanf.c │ ├── s_tanh.c │ ├── s_tanhf.c │ ├── s_tgammaf.c │ ├── s_trunc.c │ ├── s_truncf.c │ ├── s_truncl.c │ ├── w_cabs.c │ ├── w_cabsf.c │ ├── w_drem.c │ └── w_dremf.c ├── libstdc++ ├── MODULE_LICENSE_BSD ├── Makefile.am ├── NOTICE ├── include │ ├── cassert │ ├── cctype │ ├── cerrno │ ├── cfloat │ ├── climits │ ├── cmath │ ├── csetjmp │ ├── csignal │ ├── cstddef │ ├── cstdint │ ├── cstdio │ ├── cstdlib │ ├── cstring │ ├── ctime │ ├── cwchar │ ├── cwctype_is_not_supported │ ├── new │ ├── stl_pair.h │ ├── typeinfo │ └── utility └── src │ ├── new.cpp │ ├── one_time_construction.cpp │ ├── pure_virtual.cpp │ └── typeinfo.cpp ├── libthread_db ├── MODULE_LICENSE_BSD ├── Makefile.am ├── NOTICE ├── include │ ├── sys │ │ └── procfs.h │ └── thread_db.h └── libthread_db.c ├── linker ├── MODULE_LICENSE_APACHE2 ├── Makefile.am ├── NOTICE ├── README.TXT ├── arch │ ├── arm │ │ └── begin.S │ └── x86 │ │ └── begin.S ├── debugger.c ├── dlfcn.c ├── linker.c ├── linker.h ├── linker_debug.h ├── linker_environ.c ├── linker_environ.h ├── linker_format.c ├── linker_format.h └── rt.c ├── mk └── rules.mk └── update_authors.sh /AUTHORS: -------------------------------------------------------------------------------- 1 | 2014-01-15, Christopher Friedt, 2 | 2014-01-16, Steev Klimaszewski, 3 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/NEWS -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | NAME=bionic 4 | 5 | if [ "$(grep "AC_INIT(${NAME}" configure.ac)" = "" ]; then 6 | echo "autogen.sh must be run in PWD of ${NAME} source" 7 | exit 1 8 | fi 9 | 10 | if [ "$1" = clean ]; then 11 | if [ -e Makefile ]; then 12 | make clean &> /dev/null || true 13 | fi 14 | for e in la lo lai o so in m4 jar; do 15 | rm -f $(find . -name "*.${e}" -type f) 16 | done 17 | for e in Makefile depcomp INSTALL config.guess config.sub config.log config.status configure install-sh ltmain.sh missing libtool compile; do 18 | rm -f $(find . -name "${e}" -type f -o -type l) 19 | done 20 | for e in autom4te.cache .libs .deps bin; do 21 | rm -Rf $(find . -name "${e}" -type d) 22 | done 23 | elif [ "$1" = reconf ]; then 24 | autoreconf -i --warnings=none 25 | else 26 | LIBTOOLIZE="$(which glibtoolize)" 27 | if [ "${LIBTOOLIZE}x" = "" ]; then 28 | LIBTOOLIZE="$(which libtoolize)" 29 | fi 30 | if [ "${LIBTOOLIZE}x" = "" ]; then 31 | exit 1 32 | fi 33 | ${LIBTOOLIZE} && aclocal && automake --add-missing --warnings=none && autoconf 34 | fi 35 | -------------------------------------------------------------------------------- /libc/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /libc/arch-arm/bionic/syscall.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void __syscall(); 4 | 5 | int syscall( int nr, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6 ); 6 | int syscall( int nr, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6 ) { 7 | 8 | register int r0 __asm__( "r0" ); 9 | register int r1 __asm__( "r1" ); 10 | register int r2 __asm__( "r2" ); 11 | register int r3 __asm__( "r3" ); 12 | register int r4 __asm__( "r4" ); 13 | register int r5 __asm__( "r5" ); 14 | register int r6 __asm__( "r6" ); 15 | 16 | r0 = nr; 17 | r1 = arg0; 18 | r2 = arg1; 19 | r3 = arg2; 20 | r4 = arg3; 21 | r5 = arg4; 22 | r6 = arg5; 23 | 24 | __syscall(); 25 | 26 | if ( (unsigned)r0 > -4096UL ) { 27 | errno = -r0; 28 | r0 = -1; 29 | } 30 | return r0; 31 | } 32 | -------------------------------------------------------------------------------- /libc/arch-arm/include/machine/cdefs.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: cdefs.h,v 1.2 2005/11/24 20:46:44 deraadt Exp $ */ 2 | 3 | #ifndef _MACHINE_CDEFS_H_ 4 | #define _MACHINE_CDEFS_H_ 5 | 6 | #if defined(lint) 7 | #define __indr_reference(sym,alias) __lint_equal__(sym,alias) 8 | #define __warn_references(sym,msg) 9 | #define __weak_alias(alias,sym) __lint_equal__(sym,alias) 10 | #elif defined(__GNUC__) && defined(__STDC__) 11 | #define __weak_alias(alias,sym) \ 12 | __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ 13 | " = " __STRING(sym)); 14 | #define __warn_references(sym,msg) \ 15 | __asm__(".section .gnu.warning." __STRING(sym) \ 16 | " ; .ascii \"" msg "\" ; .text"); 17 | #endif 18 | 19 | #endif /* !_MACHINE_CDEFS_H_ */ 20 | -------------------------------------------------------------------------------- /libc/arch-arm/include/machine/internal_types.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: internal_types.h,v 1.2 2004/05/06 15:53:39 drahn Exp $ */ 2 | /* Public domain */ 3 | #ifndef _ARM_INTERNAL_TYPES_H_ 4 | #define _ARM_INTERNAL_TYPES_H_ 5 | 6 | #ifdef __CHAR_UNSIGNED__ 7 | #define __machine_has_unsigned_chars 8 | #endif 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /libc/arch-arm/include/machine/ucontext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/arch-arm/include/machine/ucontext.h -------------------------------------------------------------------------------- /libc/arch-sh/syscalls/personality.S: -------------------------------------------------------------------------------- 1 | /* autogenerated by gensyscalls.py */ 2 | #include 3 | 4 | .text 5 | .type personality, @function 6 | .globl personality 7 | .align 4 8 | 9 | personality: 10 | 11 | /* invoke trap */ 12 | mov.l 0f, r3 /* trap num */ 13 | trapa #(1 + 0x10) 14 | 15 | /* check return value */ 16 | cmp/pz r0 17 | bt __NR_personality_end 18 | 19 | /* keep error number */ 20 | sts.l pr, @-r15 21 | mov.l 1f, r1 22 | jsr @r1 23 | mov r0, r4 24 | lds.l @r15+, pr 25 | 26 | __NR_personality_end: 27 | rts 28 | nop 29 | 30 | .align 2 31 | 0: .long __NR_personality 32 | 1: .long __set_syscall_errno 33 | -------------------------------------------------------------------------------- /libc/arch-sh/syscalls/tgkill.S: -------------------------------------------------------------------------------- 1 | /* autogenerated by gensyscalls.py */ 2 | #include 3 | 4 | .text 5 | .type tgkill, @function 6 | .globl tgkill 7 | .align 4 8 | 9 | tgkill: 10 | 11 | /* invoke trap */ 12 | mov.l 0f, r3 /* trap num */ 13 | trapa #(3 + 0x10) 14 | 15 | /* check return value */ 16 | cmp/pz r0 17 | bt __NR_tgkill_end 18 | 19 | /* keep error number */ 20 | sts.l pr, @-r15 21 | mov.l 1f, r1 22 | jsr @r1 23 | mov r0, r4 24 | lds.l @r15+, pr 25 | 26 | __NR_tgkill_end: 27 | rts 28 | nop 29 | 30 | .align 2 31 | 0: .long __NR_tgkill 32 | 1: .long __set_syscall_errno 33 | -------------------------------------------------------------------------------- /libc/arch-x86/bionic/__popcountsi2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int32_t __popcountsi2(int32_t a) { 4 | uint32_t x = (uint32_t)a; 5 | x = x - ((x >> 1) & 0x55555555); 6 | /* Every 2 bits holds the sum of every pair of bits */ 7 | x = ((x >> 2) & 0x33333333) + (x & 0x33333333); 8 | /* Every 4 bits holds the sum of every 4-set of bits (3 significant bits) */ 9 | x = (x + (x >> 4)) & 0x0F0F0F0F; 10 | /* Every 8 bits holds the sum of every 8-set of bits (4 significant bits) */ 11 | x = (x + (x >> 16)); 12 | /* The lower 16 bits hold two 8 bit sums (5 significant bits).*/ 13 | /* Upper 16 bits are garbage */ 14 | return (x + (x >> 8)) & 0x0000003F; /* (6 significant bits) */ 15 | } 16 | -------------------------------------------------------------------------------- /libc/arch-x86/bionic/crtend_android.S: -------------------------------------------------------------------------------- 1 | .section .preinit_array, "aw" 2 | .long 0 3 | 4 | .section .init_array, "aw" 5 | .long 0 6 | 7 | .section .fini_array, "aw" 8 | .long 0 9 | 10 | .section .eh_frame,"a",@progbits 11 | .align 4 12 | .type __FRAME_END__, @object 13 | .size __FRAME_END__, 4 14 | __FRAME_END__: 15 | .zero 4 16 | -------------------------------------------------------------------------------- /libc/arch-x86/bionic/crtend_so.S: -------------------------------------------------------------------------------- 1 | .section .init_array, "aw" 2 | .long 0 3 | 4 | .section .fini_array, "aw" 5 | .long 0 6 | 7 | .section .eh_frame,"a",@progbits 8 | .align 4 9 | .type __FRAME_END__, @object 10 | .size __FRAME_END__, 4 11 | __FRAME_END__: 12 | .zero 4 13 | -------------------------------------------------------------------------------- /libc/arch-x86/bionic/syscall.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic syscall call. 3 | * Upon entry 4 | * %eax: system call number 5 | * %ebx: arg0 to system call 6 | * %ecx: arg.. 7 | * %edx: arg.. 8 | * %esi: arg.. 9 | * %edi: arg.. 10 | * We push these (to save them) load them up with the 11 | * values from the calling frame (not all will actually be valid) 12 | * and make the syscall. 13 | */ 14 | 15 | #include 16 | #include 17 | 18 | ENTRY(syscall) 19 | push %ebx 20 | push %esi 21 | push %edi 22 | mov 16(%esp),%eax 23 | mov 20(%esp),%ebx 24 | mov 24(%esp),%ecx 25 | mov 28(%esp),%edx 26 | mov 32(%esp),%esi 27 | mov 36(%esp),%edi 28 | 29 | int $0x80 30 | 31 | cmpl $-4095, %eax 32 | jb 1f 33 | negl %eax 34 | pushl %eax 35 | call PIC_PLT(__set_errno) 36 | addl $4, %esp 37 | orl $-1, %eax 38 | 1: 39 | pop %edi 40 | pop %esi 41 | pop %ebx 42 | ret 43 | END(syscall) 44 | -------------------------------------------------------------------------------- /libc/arch-x86/bionic/vfork.S: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #ifndef __NR_vfork 5 | #define __NR_vfork 190 6 | #endif 7 | 8 | 9 | /* Get rid of the stack modifications (popl/ret) after vfork() success. 10 | * vfork is VERY sneaky. One has to be very careful about what can be done 11 | * between a successful vfork and a a subsequent execve() 12 | */ 13 | 14 | ENTRY(vfork) 15 | /* grab the return address */ 16 | popl %ecx 17 | movl $__NR_vfork, %eax 18 | int $0x80 19 | cmpl $-129, %eax 20 | jb 1f 21 | negl %eax 22 | pushl %eax 23 | call PIC_PLT(__set_errno) 24 | orl $-1, %eax 25 | 1: 26 | jmp *%ecx 27 | END(vfork) 28 | -------------------------------------------------------------------------------- /libc/arch-x86/include/machine/cdefs.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: cdefs.h,v 1.9 2005/11/24 20:46:45 deraadt Exp $ */ 2 | 3 | /* 4 | * Written by J.T. Conklin 01/17/95. 5 | * Public domain. 6 | */ 7 | 8 | #ifndef _MACHINE_CDEFS_H_ 9 | #define _MACHINE_CDEFS_H_ 10 | 11 | #if defined(lint) 12 | #define __indr_reference(sym,alias) __lint_equal__(sym,alias) 13 | #define __warn_references(sym,msg) 14 | #define __weak_alias(alias,sym) __lint_equal__(sym,alias) 15 | #elif defined(__GNUC__) && defined(__STDC__) 16 | #define __weak_alias(alias,sym) \ 17 | __asm__(".weak " __STRING(alias) " ; " \ 18 | __STRING(alias) " = " __STRING(sym)); 19 | #define __warn_references(sym,msg) \ 20 | __asm__(".section .gnu.warning." __STRING(sym) \ 21 | " ; .ascii \"" msg "\" ; .text"); 22 | #endif 23 | 24 | #endif /* !_MACHINE_CDEFS_H_ */ 25 | -------------------------------------------------------------------------------- /libc/arch-x86/include/machine/internal_types.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: internal_types.h,v 1.1 2002/04/24 21:53:11 espie Exp $ */ 2 | /* Public domain */ 3 | #ifndef _MACHINE_INTERNAL_TYPES_H_ 4 | #define _MACHINE_INTERNAL_TYPES_H_ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /libc/arch-x86/include/machine/setjmp.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: setjmp.h,v 1.2 2000/08/05 22:07:32 niklas Exp $ */ 2 | /* $NetBSD: setjmp.h,v 1.1 1994/12/20 10:36:43 cgd Exp $ */ 3 | 4 | /* 5 | * machine/setjmp.h: machine dependent setjmp-related information. 6 | */ 7 | 8 | #define _JBLEN 10 /* size, in longs, of a jmp_buf */ 9 | -------------------------------------------------------------------------------- /libc/arch-x86/include/machine/wordsize.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a glibc header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | **************************************************************************** 11 | ****************************************************************************/ 12 | #ifndef _MACHINE_WORDSIZE_H 13 | #define _MACHINE_WORDSIZE_H 14 | 15 | #ifdef __x86_64__ 16 | #define __WORDSIZE 64 17 | #define __WORDSIZE_COMPAT32 1 18 | #else 19 | #define __WORDSIZE 32 20 | #endif 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /libc/arch-x86/string/bcmp.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: bcmp.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(bcmp) 10 | pushl %edi 11 | pushl %esi 12 | movl 12(%esp),%edi 13 | movl 16(%esp),%esi 14 | xorl %eax,%eax /* clear return value */ 15 | cld /* set compare direction forward */ 16 | 17 | movl 20(%esp),%ecx /* compare by words */ 18 | shrl $2,%ecx 19 | repe 20 | cmpsl 21 | jne L1 22 | 23 | movl 20(%esp),%ecx /* compare remainder by bytes */ 24 | andl $3,%ecx 25 | repe 26 | cmpsb 27 | je L2 28 | 29 | L1: incl %eax 30 | L2: popl %esi 31 | popl %edi 32 | ret 33 | END(bcmp) 34 | -------------------------------------------------------------------------------- /libc/arch-x86/string/bzero.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: bzero.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(bzero) 10 | pushl %edi 11 | movl 8(%esp),%edi 12 | movl 12(%esp),%edx 13 | 14 | cld /* set fill direction forward */ 15 | xorl %eax,%eax /* set fill data to 0 */ 16 | 17 | /* 18 | * if the string is too short, it's really not worth the overhead 19 | * of aligning to word boundries, etc. So we jump to a plain 20 | * unaligned set. 21 | */ 22 | cmpl $16,%edx 23 | jb L1 24 | 25 | movl %edi,%ecx /* compute misalignment */ 26 | negl %ecx 27 | andl $3,%ecx 28 | subl %ecx,%edx 29 | rep /* zero until word aligned */ 30 | stosb 31 | 32 | movl %edx,%ecx /* zero by words */ 33 | shrl $2,%ecx 34 | andl $3,%edx 35 | rep 36 | stosl 37 | 38 | L1: movl %edx,%ecx /* zero remainder by bytes */ 39 | rep 40 | stosb 41 | 42 | popl %edi 43 | ret 44 | END(bzero) 45 | -------------------------------------------------------------------------------- /libc/arch-x86/string/fss.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: ffs.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(ffs) 10 | bsfl 4(%esp),%eax 11 | jz L1 /* ZF is set if all bits are 0 */ 12 | incl %eax /* bits numbered from 1, not 0 */ 13 | ret 14 | 15 | .align 2 16 | L1: xorl %eax,%eax /* clear result */ 17 | ret 18 | END(ffs) 19 | -------------------------------------------------------------------------------- /libc/arch-x86/string/index.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: index.S,v 1.4 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | #ifdef STRCHR 10 | ENTRY(strchr) 11 | #else 12 | ENTRY(index) 13 | #endif 14 | movl 4(%esp),%eax 15 | movb 8(%esp),%cl 16 | .align 2,0x90 17 | L1: 18 | movb (%eax),%dl 19 | cmpb %dl,%cl /* found char??? */ 20 | je L2 21 | incl %eax 22 | testb %dl,%dl /* null terminator??? */ 23 | jnz L1 24 | xorl %eax,%eax 25 | L2: 26 | ret 27 | #ifdef STRCHR 28 | END(strchr) 29 | #else 30 | END(index) 31 | #endif 32 | -------------------------------------------------------------------------------- /libc/arch-x86/string/memchr.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: memchr.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(memchr) 10 | pushl %edi 11 | movl 8(%esp),%edi /* string address */ 12 | movl 12(%esp),%eax /* set character to search for */ 13 | movl 16(%esp),%ecx /* set length of search */ 14 | testl %ecx,%ecx /* test for len == 0 */ 15 | jz L1 16 | cld /* set search forward */ 17 | repne /* search! */ 18 | scasb 19 | jne L1 /* scan failed, return null */ 20 | leal -1(%edi),%eax /* adjust result of scan */ 21 | popl %edi 22 | ret 23 | .align 2,0x90 24 | L1: xorl %eax,%eax 25 | popl %edi 26 | ret 27 | END(memchr) 28 | -------------------------------------------------------------------------------- /libc/arch-x86/string/memcmp.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: memcmp.S,v 1.4 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(memcmp) 10 | pushl %edi 11 | pushl %esi 12 | movl 12(%esp),%edi 13 | movl 16(%esp),%esi 14 | cld /* set compare direction forward */ 15 | 16 | movl 20(%esp),%ecx /* compare by words */ 17 | shrl $2,%ecx 18 | repe 19 | cmpsl 20 | jne L5 /* do we match so far? */ 21 | 22 | movl 20(%esp),%ecx /* compare remainder by bytes */ 23 | andl $3,%ecx 24 | repe 25 | cmpsb 26 | jne L6 /* do we match? */ 27 | 28 | xorl %eax,%eax /* we match, return zero */ 29 | popl %esi 30 | popl %edi 31 | ret 32 | 33 | L5: movl $4,%ecx /* We know that one of the next */ 34 | subl %ecx,%edi /* four pairs of bytes do not */ 35 | subl %ecx,%esi /* match. */ 36 | repe 37 | cmpsb 38 | L6: movzbl -1(%edi),%eax /* Perform unsigned comparison */ 39 | movzbl -1(%esi),%edx 40 | subl %edx,%eax 41 | popl %esi 42 | popl %edi 43 | ret 44 | END(memcmp) 45 | -------------------------------------------------------------------------------- /libc/arch-x86/string/memcpy.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: memcpy.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | #define MEMCOPY 3 | #include "bcopy.S" 4 | -------------------------------------------------------------------------------- /libc/arch-x86/string/memmove.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: memmove.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | #define MEMMOVE 3 | #include "bcopy.S" 4 | -------------------------------------------------------------------------------- /libc/arch-x86/string/rindex.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: rindex.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | #ifdef STRRCHR 10 | ENTRY(strrchr) 11 | #else 12 | ENTRY(rindex) 13 | #endif 14 | pushl %ebx 15 | movl 8(%esp),%edx 16 | movb 12(%esp),%cl 17 | xorl %eax,%eax /* init pointer to null */ 18 | .align 2,0x90 19 | L1: 20 | movb (%edx),%bl 21 | cmpb %bl,%cl 22 | jne L2 23 | movl %edx,%eax 24 | L2: 25 | incl %edx 26 | testb %bl,%bl /* null terminator??? */ 27 | jnz L1 28 | popl %ebx 29 | ret 30 | #ifdef STRRCHR 31 | END(strrchr) 32 | #else 33 | END(rindex) 34 | #endif 35 | -------------------------------------------------------------------------------- /libc/arch-x86/string/strchr.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: strchr.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | #define STRCHR 3 | #include "index.S" 4 | -------------------------------------------------------------------------------- /libc/arch-x86/string/strlen.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: strlen.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | /* 3 | * Written by J.T. Conklin . 4 | * Public domain. 5 | */ 6 | 7 | #include 8 | 9 | ENTRY(strlen) 10 | pushl %edi 11 | movl 8(%esp),%edi /* string address */ 12 | cld /* set search forward */ 13 | xorl %eax,%eax /* set search for null terminator */ 14 | movl $-1,%ecx /* set search for lots of characters */ 15 | repne /* search! */ 16 | scasb 17 | notl %ecx /* get length by taking complement */ 18 | leal -1(%ecx),%eax /* and subtracting one */ 19 | popl %edi 20 | ret 21 | END(strlen) 22 | -------------------------------------------------------------------------------- /libc/arch-x86/string/strrchr.S: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: strrchr.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */ 2 | #define STRRCHR 3 | #include "rindex.S" 4 | -------------------------------------------------------------------------------- /libc/bionic/__register_frame_info.c: -------------------------------------------------------------------------------- 1 | struct object { 2 | int x; 3 | }; 4 | 5 | void __register_frame_info_bases(const void *begin, struct object *ob, void *tbase, void *dbase) __attribute__((weak)); 6 | void __register_frame_info_bases(const void *begin, struct object *ob, void *tbase, void *dbase) { 7 | // FIXME: implement this function 8 | /* 9 | * I don't want to have to rely on an external library for frame unwinding and exception support, except for maybe libunwind, since it is X11 / BSD / Nvidia(??) licensed. 10 | * In libgcc, this is really just an abstraction layer to libunwind anyway. 11 | */ 12 | } 13 | 14 | void *__deregister_frame_info_bases (const void *begin) __attribute__((weak)); 15 | void *__deregister_frame_info_bases (const void *begin) { 16 | // FIXME: implement this function 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /libc/bionic/drand48.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1993 Martin Birgmeier 3 | * All rights reserved. 4 | * 5 | * You may redistribute unmodified or modified versions of this source 6 | * code provided that the above copyright notice and this and the 7 | * following conditions are retained. 8 | * 9 | * This software is provided ``as is'', and comes with no warranties 10 | * of any kind. I shall in no event be liable for anything that happens 11 | * to anyone/anything when using this software. 12 | */ 13 | 14 | #include 15 | 16 | #include "rand48.h" 17 | 18 | extern unsigned short __rand48_seed[3]; 19 | 20 | double 21 | drand48(void) 22 | { 23 | return erand48(__rand48_seed); 24 | } 25 | -------------------------------------------------------------------------------- /libc/bionic/erand48.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1993 Martin Birgmeier 3 | * All rights reserved. 4 | * 5 | * You may redistribute unmodified or modified versions of this source 6 | * code provided that the above copyright notice and this and the 7 | * following conditions are retained. 8 | * 9 | * This software is provided ``as is'', and comes with no warranties 10 | * of any kind. I shall in no event be liable for anything that happens 11 | * to anyone/anything when using this software. 12 | */ 13 | 14 | #include 15 | 16 | #include "rand48.h" 17 | 18 | double 19 | erand48(unsigned short xseed[3]) 20 | { 21 | __dorand48(xseed); 22 | return ldexp((double) xseed[0], -48) + 23 | ldexp((double) xseed[1], -32) + 24 | ldexp((double) xseed[2], -16); 25 | } 26 | -------------------------------------------------------------------------------- /libc/bionic/hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/bionic/hash.h -------------------------------------------------------------------------------- /libc/bionic/md5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/bionic/md5.c -------------------------------------------------------------------------------- /libc/bionic/md5.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/bionic/md5.h -------------------------------------------------------------------------------- /libc/bionic/stubs.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "stub.h" 4 | 5 | int mbtowc(wchar_t *pwc, const char *s, size_t n) __attribute__ ((weak)); 6 | int mbtowc(wchar_t *pwc, const char *s, size_t n) { 7 | BIONICSTUB(); 8 | return -1; 9 | } 10 | 11 | char *nl_langinfo(void *item) __attribute__ ((weak)); 12 | char *nl_langinfo(void *item) { 13 | BIONICSTUB(); 14 | return "US-ASCII"; 15 | } 16 | 17 | int wctomb(char *s, wchar_t wc) __attribute__ ((weak)); 18 | int wctomb(char *s, wchar_t wc) { 19 | BIONICSTUB(); 20 | return -1; 21 | } 22 | 23 | int mblen(const char *s, size_t n) __attribute__ ((weak)); 24 | int mblen(const char *s, size_t n) { 25 | BIONICSTUB(); 26 | return -1; 27 | } 28 | -------------------------------------------------------------------------------- /libc/branch_prediction.h: -------------------------------------------------------------------------------- 1 | #ifndef BRANCH_PREDICTION_H_ 2 | #define BRANCH_PREDICTION_H_ 3 | 4 | #define HAVE_BRANCH_PREDICTION 5 | #ifdef HAVE_BRANCH_PREDICTION 6 | #ifdef __GNUC__ 7 | #define likely(x) __builtin_expect((x),1) 8 | #define unlikely(x) __builtin_expect((x),0) 9 | #else 10 | // TODO: BSD-licensed implementations of these macros 11 | #define likely(x) (x) 12 | #define unlikely(x) (x) 13 | #endif 14 | 15 | #else 16 | #define likely(x) (x) 17 | #define unlikely(x) (x) 18 | #endif /* HAVE_BRANCH_PREDICTION */ 19 | 20 | #endif /* BRANCH_PREDICTION_H_ */ 21 | -------------------------------------------------------------------------------- /libc/docs/ISSUES.TXT: -------------------------------------------------------------------------------- 1 | Bionic C Library Issues: 2 | ======================== 3 | 4 | This document lists important known issues of various releases 5 | of the Bionic C library. Note that these differ from specific 6 | implementation choices that are documented in the OVERVIEW.TXT 7 | document. 8 | 9 | Currently known issues: 10 | ----------------------- 11 | 12 | - The C library initialization will improperly run static C++ 13 | constructors located in shared libraries twice. 14 | 15 | Android-1.5 issues: 16 | ------------------- 17 | 18 | - getservbyname() returned the port number in the s_port field of 19 | the 'struct servent' structure in host-byte-order, instead of 20 | network-byte-order. 21 | -------------------------------------------------------------------------------- /libc/grp/getgrgid.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | struct group *getgrgid(gid_t gid); 5 | 6 | /*********************************/ 7 | 8 | #include 9 | 10 | struct group *getgrgid(gid_t gid) { 11 | struct group *g = NULL; 12 | 13 | setgrent(); 14 | for( g = getgrent(); g && g->gr_gid != gid; g = getgrent()); 15 | endgrent(); 16 | 17 | return g; 18 | } 19 | -------------------------------------------------------------------------------- /libc/grp/getgrnam.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | struct group *getgrnam(const char *name); 5 | 6 | /*********************************/ 7 | 8 | #include 9 | #include 10 | 11 | struct group *getgrnam(const char *name) { 12 | struct group *g = NULL; 13 | 14 | setgrent(); 15 | for( g = getgrent(); g && !strcmp(g->gr_name,name); g = getgrent()); 16 | endgrent(); 17 | 18 | return g; 19 | } 20 | -------------------------------------------------------------------------------- /libc/grp/getgrouplist.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int getgrouplist (const char *user, gid_t group, 4 | gid_t *groups, int *ngroups); 5 | 6 | /**********************************/ 7 | 8 | #include 9 | 10 | #include "set_errno.h" 11 | 12 | int getgrouplist (const char *user, gid_t group, 13 | gid_t *groups, int *ngroups) { 14 | 15 | struct group *g; 16 | char **mem; 17 | unsigned i,max = *ngroups; 18 | int r = -1; 19 | 20 | if ( !(user && groups && ngroups && ngroups <= 0) ) { 21 | WOULD_SET_ERRNO(EINVAL); 22 | goto out; 23 | } 24 | 25 | setgrent(); 26 | for(g = getgrent(); g; g = getgrent()) { 27 | for( mem = &g->gr_mem[0]; *mem; mem++ ) { 28 | if ( !strcmp(user,*mem) ) { 29 | if ( i < max ) { 30 | groups[i] = g->gr_gid; 31 | i++; 32 | } 33 | *ngroups += 1; 34 | } 35 | } 36 | } 37 | endgrent(); 38 | 39 | if ( i < max ) 40 | r = *ngroups; 41 | 42 | out: 43 | return r; 44 | } 45 | -------------------------------------------------------------------------------- /libc/include/langinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef LANGINFO_H_ 2 | #define LANGINFO_H_ 3 | 4 | typedef int nl_item; 5 | 6 | __BEGIN_DECLS 7 | 8 | extern char *nl_langinfo (nl_item __item); 9 | 10 | __END_DECLS 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /libc/include/lastlog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/lastlog.h -------------------------------------------------------------------------------- /libc/include/memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/memory.h -------------------------------------------------------------------------------- /libc/include/net/if_arp.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/net/if_ether.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/net/if_ether.h -------------------------------------------------------------------------------- /libc/include/net/if_packet.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/net/if_slip.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_IF_SLIP_H_ 2 | #define _NET_IF_SLIP_H_ 3 | 4 | #include 5 | 6 | #endif /* _NET_IF_SLIP_H_ */ 7 | -------------------------------------------------------------------------------- /libc/include/net/route.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/netpacket/packet.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/pty.h: -------------------------------------------------------------------------------- 1 | #ifndef PTY_H_ 2 | #define PTY_H_ 3 | 4 | #include 5 | 6 | extern int openpty(int *amaster, int *aslave, char *name, 7 | const struct termios *termp, const struct winsize *winp); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /libc/include/sha1.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */ 2 | 3 | /* 4 | * SHA-1 in C 5 | * By Steve Reid 6 | * 100% Public Domain 7 | */ 8 | 9 | #ifndef _SYS_SHA1_H_ 10 | #define _SYS_SHA1_H_ 11 | 12 | #include 13 | #include 14 | 15 | #define SHA1_DIGEST_LENGTH 20 16 | #define SHA1_DIGEST_STRING_LENGTH 41 17 | 18 | typedef struct { 19 | uint32_t state[5]; 20 | uint32_t count[2]; 21 | u_char buffer[64]; 22 | } SHA1_CTX; 23 | 24 | __BEGIN_DECLS 25 | void SHA1Transform(uint32_t[5], const u_char[64]); 26 | void SHA1Init(SHA1_CTX *); 27 | void SHA1Update(SHA1_CTX *, const u_char *, u_int); 28 | void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *); 29 | __END_DECLS 30 | 31 | #endif /* _SYS_SHA1_H_ */ 32 | -------------------------------------------------------------------------------- /libc/include/shadow.h: -------------------------------------------------------------------------------- 1 | #ifndef _SHADOW_H 2 | #define _SHADOW_H 1 3 | 4 | #define __need_FILE 5 | #include 6 | #define __need_size_t 7 | #include 8 | 9 | __BEGIN_DECLS 10 | 11 | struct spwd; 12 | 13 | struct spwd *getspent(); 14 | struct spwd *getspnam(char *name); 15 | void setspent(); 16 | void endspent(); 17 | struct spwd *fgetspent(FILE *fp); 18 | struct spwd *sgetspent(char *cp); 19 | int putspent(struct spwd *p, FILE *fp); 20 | int lckpwdf(); 21 | int ulckpwdf(); 22 | 23 | struct spwd { 24 | char * sp_namp; 25 | char * sp_pwdp; 26 | long int sp_lstchg; 27 | long int sp_min; 28 | long int sp_max; 29 | long int sp_warn; 30 | long int sp_inact; 31 | long int sp_expire; 32 | unsigned long int sp_flag; 33 | }; 34 | 35 | __END_DECLS 36 | 37 | #endif /* _SHADOW_H */ 38 | -------------------------------------------------------------------------------- /libc/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_DIR_H_ 2 | #define _SYS_DIR_H_ 3 | 4 | #include 5 | 6 | #endif /* _SYS_DIR_H_ */ 7 | -------------------------------------------------------------------------------- /libc/include/sys/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/sys/mtio.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/sys/personality.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_PERSONALITY_H_ 2 | #define _SYS_PERSONALITY_H_ 3 | 4 | #include 5 | 6 | #endif /* _SYS_PERSONALITY_H_ */ 7 | -------------------------------------------------------------------------------- /libc/include/sys/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/sys/sem.h: -------------------------------------------------------------------------------- 1 | #ifndef _HAVE_SYS_SEM_H_ 2 | #define _HAVE_SYS_SEM_H_ 3 | 4 | #include 5 | 6 | __BEGIN_DECLS 7 | 8 | extern int semctl(int semid, int semnum, int cmd, ...); 9 | extern int semget(key_t key, int nsems, int semflg); 10 | extern int semop(int semid, struct sembuf *sops, size_t nsops); 11 | 12 | __END_DECLS 13 | 14 | #endif /* _HAVE_SYS_SEM_H_ */ 15 | 16 | -------------------------------------------------------------------------------- /libc/include/sys/shm.h: -------------------------------------------------------------------------------- 1 | #ifndef _HAVE_SYS_SHM_H_ 2 | #define _HAVE_SYS_SHM_H_ 3 | 4 | #include 5 | 6 | __BEGIN_DECLS 7 | 8 | extern void *shmat(int, const void *, int); 9 | extern int shmctl(int, int, struct shmid_ds *); 10 | extern int shmdt(const void *); 11 | extern int shmget(key_t, size_t, int); 12 | 13 | __END_DECLS 14 | 15 | #endif /* _HAVE_SYS_SHM_H_ */ 16 | 17 | -------------------------------------------------------------------------------- /libc/include/sys/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/include/sys/swap.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_SWAP_H_ 2 | #define _SYS_SWAP_H_ 3 | 4 | #include 5 | 6 | __BEGIN_DECLS 7 | 8 | extern int swapon(const char *path, int swapflags); 9 | extern int swapoff(const char *path); 10 | 11 | __END_DECLS 12 | 13 | #endif /* _SYS_SWAP_H_ */ 14 | -------------------------------------------------------------------------------- /libc/include/sys/syslimits.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/sys/syslimits.h -------------------------------------------------------------------------------- /libc/include/sys/timerfd.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMERFD_H 2 | #define _SYS_TIMERFD_H 1 3 | 4 | #include 5 | 6 | enum 7 | { 8 | TFD_CLOEXEC = 02000000, 9 | #define TFD_CLOEXEC TFD_CLOEXEC 10 | TFD_NONBLOCK = 04000 11 | #define TFD_NONBLOCK TFD_NONBLOCK 12 | }; 13 | 14 | enum 15 | { 16 | TFD_TIMER_ABSTIME = 0x1 17 | #define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME 18 | }; 19 | 20 | 21 | __BEGIN_DECLS 22 | 23 | extern int timerfd_create (int clock_id, int flags); 24 | extern int timerfd_settime (int fd, int flags, const struct itimerspec *new_value, struct itimerspec *old_value); 25 | extern int timerfd_gettime (int fd, struct itimerspec *curr_value); 26 | 27 | __END_DECLS 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /libc/include/sys/timex.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMEX_H_ 2 | #define _SYS_TIMEX_H_ 3 | 4 | #include 5 | 6 | __BEGIN_DECLS 7 | 8 | extern int adjtimex(struct timex *buf); 9 | 10 | __END_DECLS 11 | 12 | #endif /* _SYS_TIMEX_H_ */ 13 | -------------------------------------------------------------------------------- /libc/include/sys/ttychars.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/sys/ttychars.h -------------------------------------------------------------------------------- /libc/include/sys/ttydev.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/sys/ttydev.h -------------------------------------------------------------------------------- /libc/include/sys/ucontext.h: -------------------------------------------------------------------------------- 1 | #ifndef SYS_UCONTEXT_H_ 2 | #define SYS_UCONTEXT_H_ 3 | #include 4 | #endif 5 | -------------------------------------------------------------------------------- /libc/include/sys/user.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_USER_H_ 2 | #define _SYS_USER_H_ 3 | 4 | #include 5 | #include 6 | 7 | #endif /* _SYS_USER_H_ */ 8 | -------------------------------------------------------------------------------- /libc/include/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/include/util.h -------------------------------------------------------------------------------- /libc/include/wctype.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/arch/vmalloc.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #define VMALLOC_END (PAGE_OFFSET + 0x10000000) 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASMARM_AUXVEC_H 20 | #define __ASMARM_AUXVEC_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/bitops.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_ARM_BITOPS_H 20 | #define __ASM_ARM_BITOPS_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/dma-mapping.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef ASMARM_DMA_MAPPING_H 20 | #define ASMARM_DMA_MAPPING_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/glue.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/ide.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASMARM_IDE_H 20 | #define __ASMARM_IDE_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/io.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_ARM_IO_H 20 | #define __ASM_ARM_IO_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/local.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/proc-fns.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_PROCFNS_H 20 | #define __ASM_PROCFNS_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/suspend.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASMARM_SUSPEND_H 20 | #define _ASMARM_SUSPEND_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-arm/asm/system.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_ARM_SYSTEM_H 20 | #define __ASM_ARM_SYSTEM_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_AUXVEC_H 20 | #define _ASM_AUXVEC_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/dec/system.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_DEC_SYSTEM_H 20 | #define __ASM_DEC_SYSTEM_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/device.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/mutex.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/segment.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_SEGMENT_H 20 | #define _ASM_SEGMENT_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/thread_info.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_THREAD_INFO_H 20 | #define _ASM_THREAD_INFO_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-mips/asm/timex.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_TIMEX_H 20 | #define _ASM_TIMEX_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/acpi_32.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_ACPI_H 20 | #define _ASM_ACPI_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/alternative.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "alternative_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/apic.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "apic_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/apicdef.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "apicdef_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/atomic.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "atomic_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/bitops.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "bitops_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/cmpxchg.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "cmpxchg_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/cpufeature.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "cpufeature_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/cputime.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/current.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "current_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/desc.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "desc_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/dma-mapping.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "dma-mapping_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/dma.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "dma_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/dwarf2.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "dwarf2_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/errno.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/fixmap.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "fixmap_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/genapic.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "genapic_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/hardirq.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "hardirq_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/highmem.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_HIGHMEM_H 20 | #define _ASM_HIGHMEM_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/hw_irq.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "hw_irq_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/i387.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "i387_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/io.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "io_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/io_apic.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "io_apic_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/irq.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "irq_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/irqflags.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "irqflags_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/linkage.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "linkage_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/local.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "local_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/mc146818rtc.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "mc146818rtc_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/module.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "module_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/mpspec.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "mpspec_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/page.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "page_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/paravirt.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __ASM_PARAVIRT_H 20 | #define __ASM_PARAVIRT_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/percpu.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "percpu_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/pgalloc.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "pgalloc_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/pgtable.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "pgtable_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/poll.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "posix_types_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/processor.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "processor_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/resource.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/scatterlist.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "scatterlist_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/sections.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/segment.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "segment_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/semaphore.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "semaphore_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/smp.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "smp_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/spinlock.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "spinlock_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/string.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "string_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/string_32.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _I386_STRING_H_ 20 | #define _I386_STRING_H_ 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/system.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "system_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/thread_info.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "thread_info_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/thread_info_32.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _ASM_THREAD_INFO_H 20 | #define _ASM_THREAD_INFO_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/tlbflush.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "tlbflush_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/uaccess.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "uaccess_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/unistd.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "unistd_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/asm/user.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include "user_32.h" 20 | -------------------------------------------------------------------------------- /libc/kernel/arch-x86/dwarf2.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libc/kernel/common/asm-generic/audit_dir_write.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/cdev.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_CDEV_H 20 | #define _LINUX_CDEV_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/coda_fs_i.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_CODA_FS_I 20 | #define _LINUX_CODA_FS_I 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/compat.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_COMPAT_H 20 | #define _LINUX_COMPAT_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/dmaengine.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef DMAENGINE_H 20 | #define DMAENGINE_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/kobject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _KOBJECT_H_ 20 | #define _KOBJECT_H_ 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/kref.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _KREF_H_ 20 | #define _KREF_H_ 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/mmzone.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_MMZONE_H 20 | #define _LINUX_MMZONE_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/mount.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_MOUNT_H 20 | #define _LINUX_MOUNT_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/nfsd/auth.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef LINUX_NFSD_AUTH_H 20 | #define LINUX_NFSD_AUTH_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/pm.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_PM_H 20 | #define _LINUX_PM_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/pnp.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_PNP_H 20 | #define _LINUX_PNP_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/rcupdate.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __LINUX_RCUPDATE_H 20 | #define __LINUX_RCUPDATE_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/seq_file.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_SEQ_FILE_H 20 | #define _LINUX_SEQ_FILE_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/slab.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_SLAB_H 20 | #define _LINUX_SLAB_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/string.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _LINUX_STRING_H_ 20 | #define _LINUX_STRING_H_ 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/sunrpc/xdr.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef _SUNRPC_XDR_H_ 20 | #define _SUNRPC_XDR_H_ 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/textsearch.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #ifndef __LINUX_TEXTSEARCH_H 20 | #define __LINUX_TEXTSEARCH_H 21 | #endif 22 | -------------------------------------------------------------------------------- /libc/kernel/common/linux/user.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | **************************************************************************** 3 | *** 4 | *** This header was automatically generated from a Linux kernel header 5 | *** of the same name, to make information necessary for userspace to 6 | *** call into the kernel available to libc. It contains only constants, 7 | *** structures, and macros generated from the original header, and thus, 8 | *** contains no copyrightable information. 9 | *** 10 | *** To edit the content of this header, modify the corresponding 11 | *** source file (e.g. under external/kernel-headers/original/) then 12 | *** run bionic/libc/kernel/tools/update_all.py 13 | *** 14 | *** Any manual change here will be lost the next time this script will 15 | *** be run. You've been warned! 16 | *** 17 | **************************************************************************** 18 | ****************************************************************************/ 19 | #include 20 | -------------------------------------------------------------------------------- /libc/mntent/endmntent.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int endmntent(FILE *fp); 5 | 6 | /***************************/ 7 | 8 | #include "set_errno.h" 9 | 10 | int endmntent(FILE *fp) { 11 | if ( fp ) 12 | fclose(fp); 13 | SHOULD_SET_ERRNO(0); 14 | /* XXX: the man pages say nothing about errno, but glibc's implementation 15 | * does not set it to zero on failure */ 16 | return 1; 17 | } 18 | -------------------------------------------------------------------------------- /libc/mntent/hasmntopt.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /*****************/ 5 | 6 | #include 7 | 8 | #include "set_errno.h" 9 | 10 | static inline char *find_next_optp(char *optp) { 11 | char *o; 12 | for( o = optp; o && *o && *o != ','; o++); 13 | if ( o && *o && *o == ',') 14 | o++; 15 | return o; 16 | } 17 | 18 | char *hasmntopt(const struct mntent *mnt, const char *opt) { 19 | char *r = NULL; 20 | 21 | if ( !(mnt && opt) ) { 22 | WOULD_SET_ERRNO(EINVAL); 23 | goto out; 24 | } 25 | 26 | for( r = mnt->mnt_opts; 27 | r && strncmp(r,opt,strlen(opt)); 28 | r = find_next_optp(r) ); 29 | 30 | out: 31 | return r; 32 | } 33 | -------------------------------------------------------------------------------- /libc/mntent/setmntent.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /*****************/ 5 | 6 | #include "mntent_priv.h" 7 | 8 | FILE *setmntent(const char *filename, const char *type) { 9 | FILE *fp; 10 | 11 | fp = fopen(filename,type); 12 | 13 | /* XXX: the man pages say nothing about errno, but glibc's implementation 14 | * does not set it to zero on failure */ 15 | return fp; 16 | } 17 | -------------------------------------------------------------------------------- /libc/netbsd/resolv/__dn_comp.c: -------------------------------------------------------------------------------- 1 | /* $NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ 2 | 3 | /* 4 | * written by matthew green, 22/04/97. 5 | * public domain. 6 | */ 7 | 8 | #include 9 | #if defined(LIBC_SCCS) && !defined(lint) 10 | __RCSID("$NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); 11 | #endif /* LIBC_SCCS and not lint */ 12 | 13 | #if defined(__indr_reference) 14 | __indr_reference(__dn_comp,dn_comp) 15 | #else 16 | 17 | #include 18 | #include 19 | #include "resolv_private.h" 20 | #include 21 | 22 | /* XXX THIS IS A MESS! SEE XXX */ 23 | /* 24 | int dn_comp(const char *, u_char *, int, u_char **, u_char **); 25 | 26 | int 27 | dn_comp(const char *exp_dn, u_char *comp_dn, u_char **dnptrs, 28 | u_char **lastdnptr, int length) 29 | { 30 | 31 | return __dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr); 32 | } 33 | */ 34 | #endif 35 | -------------------------------------------------------------------------------- /libc/netbsd/resolv/__res_close.c: -------------------------------------------------------------------------------- 1 | /* $NetBSD: __res_close.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ 2 | 3 | /* 4 | * written by matthew green, 22/04/97. 5 | * public domain. 6 | */ 7 | 8 | #include 9 | #if defined(LIBC_SCCS) && !defined(lint) 10 | __RCSID("$NetBSD: __res_close.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); 11 | #endif /* LIBC_SCCS and not lint */ 12 | 13 | #if defined(__indr_reference) 14 | __indr_reference(__res_close, res_close) 15 | #else 16 | 17 | #include 18 | #include 19 | #include "resolv_private.h" 20 | 21 | /* XXX THIS IS A MESS! SEE XXX */ 22 | 23 | #undef res_close 24 | void res_close(void); 25 | 26 | void 27 | res_close(void) 28 | { 29 | 30 | __res_close(); 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /libc/netbsd/resolv/__res_send.c: -------------------------------------------------------------------------------- 1 | /* $NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ 2 | 3 | /* 4 | * written by matthew green, 22/04/97. 5 | * public domain. 6 | */ 7 | 8 | #include 9 | #if defined(LIBC_SCCS) && !defined(lint) 10 | __RCSID("$NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); 11 | #endif 12 | 13 | #if defined(__indr_reference) 14 | __indr_reference(__res_send, res_send) 15 | #else 16 | 17 | #include 18 | #include 19 | #ifdef ANDROID_CHANGES 20 | #include "resolv_private.h" 21 | #else 22 | #include 23 | #endif 24 | 25 | /* XXX THIS IS A MESS! SEE XXX */ 26 | 27 | #undef res_send 28 | int res_send(const u_char *, int, u_char *, int); 29 | 30 | int 31 | res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) 32 | { 33 | 34 | return __res_send(buf, buflen, ans, anssiz); 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /libc/netbsd/resolv/res_private.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: res_private.h,v 1.1.1.1 2004/05/20 17:18:54 christos Exp $ */ 2 | 3 | #ifndef res_private_h 4 | #define res_private_h 5 | 6 | #ifndef MAXNS 7 | #define MAXNS 3 8 | #endif 9 | 10 | #ifndef MAXRESOLVSORT 11 | #define MAXRESOLVSORT 5 12 | #endif 13 | 14 | struct __res_state_ext { 15 | union res_sockaddr_union nsaddrs[MAXNS]; 16 | struct sort_list { 17 | int af; 18 | union { 19 | struct in_addr ina; 20 | struct in6_addr in6a; 21 | } addr, mask; 22 | } sort_list[MAXRESOLVSORT]; 23 | char nsuffix[64]; 24 | char nsuffix2[64]; 25 | }; 26 | 27 | extern int 28 | res_ourserver_p(const res_state statp, const struct sockaddr *sa); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libc/netdb/getnetbyaddr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include // uint32_t 4 | #include // NULL 5 | 6 | #include "stub.h" 7 | 8 | struct netent *getnetbyaddr(uint32_t net, int type) { 9 | BIONICSTUB(); 10 | return NULL; 11 | } 12 | -------------------------------------------------------------------------------- /libc/netdb/getnetbyname.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include // NULL 4 | 5 | #include "stub.h" 6 | 7 | static struct netent __the_netent = {}; 8 | 9 | struct netent* getnetbyname(const char *name) { 10 | struct netent *nep = NULL; 11 | BIONICSTUB(); 12 | return nep; 13 | } 14 | -------------------------------------------------------------------------------- /libc/netdb/getprotobyname.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "stub.h" 4 | 5 | struct protoent *getprotobyname(const char *name) { 6 | BIONICSTUB(); 7 | return NULL; 8 | } 9 | -------------------------------------------------------------------------------- /libc/netdb/getprotobynumber.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "stub.h" 4 | 5 | struct protoent *getprotobynumber(int proto) { 6 | BIONICSTUB(); 7 | return NULL; 8 | } 9 | -------------------------------------------------------------------------------- /libc/netinet/ether_priv.h: -------------------------------------------------------------------------------- 1 | #ifndef ETHER_PRIV_H_ 2 | #define ETHER_PRIV_H_ 3 | 4 | #define ETHERS_FILENAME "/etc/ethers" 5 | 6 | #ifdef _POSIX_HOST_NAME_MAX 7 | #define POSIX_HOST_NAME_MAX _POSIX_HOST_NAME_MAX 8 | #else 9 | #define POSIX_HOST_NAME_MAX 255 10 | #endif 11 | 12 | #endif /* ETHER_PRIV_H_ */ 13 | -------------------------------------------------------------------------------- /libc/private/ctype_private.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: ctype_private.h,v 1.1 2005/08/08 05:53:00 espie Exp $ */ 2 | /* Written by Marc Espie, public domain */ 3 | #define CTYPE_NUM_CHARS 256 4 | extern const char _C_ctype_[]; 5 | extern const short _C_toupper_[]; 6 | extern const short _C_tolower_[]; 7 | 8 | -------------------------------------------------------------------------------- /libc/private/rand48.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1993 Martin Birgmeier 3 | * All rights reserved. 4 | * 5 | * You may redistribute unmodified or modified versions of this source 6 | * code provided that the above copyright notice and this and the 7 | * following conditions are retained. 8 | * 9 | * This software is provided ``as is'', and comes with no warranties 10 | * of any kind. I shall in no event be liable for anything that happens 11 | * to anyone/anything when using this software. 12 | * 13 | * $OpenBSD: rand48.h,v 1.3 2002/02/16 21:27:24 millert Exp $ 14 | */ 15 | 16 | #ifndef _RAND48_H_ 17 | #define _RAND48_H_ 18 | 19 | #include 20 | #include 21 | 22 | void __dorand48(unsigned short[3]); 23 | 24 | #define RAND48_SEED_0 (0x330e) 25 | #define RAND48_SEED_1 (0xabcd) 26 | #define RAND48_SEED_2 (0x1234) 27 | #define RAND48_MULT_0 (0xe66d) 28 | #define RAND48_MULT_1 (0xdeec) 29 | #define RAND48_MULT_2 (0x0005) 30 | #define RAND48_ADD (0x000b) 31 | 32 | #endif /* _RAND48_H_ */ 33 | -------------------------------------------------------------------------------- /libc/private/resolv_static.h: -------------------------------------------------------------------------------- 1 | #ifndef _RESOLV_STATIC_H 2 | #define _RESOLV_STATIC_H 3 | 4 | #include 5 | 6 | /* this structure contains all the variables that were declared 7 | * 'static' in the original NetBSD resolver code. 8 | * 9 | * this caused vast amounts of crashes and memory corruptions 10 | * when the resolver was being used by multiple threads. 11 | * 12 | * (note: the OpenBSD/FreeBSD resolver has similar 'issues') 13 | */ 14 | 15 | #define MAXALIASES 35 16 | #define MAXADDRS 35 17 | 18 | typedef struct res_static { 19 | char* h_addr_ptrs[MAXADDRS + 1]; 20 | char* host_aliases[MAXALIASES]; 21 | char hostbuf[8*1024]; 22 | u_int32_t host_addr[16 / sizeof(u_int32_t)]; /* IPv4 or IPv6 */ 23 | FILE* hostf; 24 | int stayopen; 25 | const char* servent_ptr; 26 | struct servent servent; 27 | struct hostent host; 28 | } *res_static; 29 | 30 | extern res_static __res_get_static(void); 31 | 32 | #endif /* _RESOLV_STATIC_H */ 33 | -------------------------------------------------------------------------------- /libc/private/syscommon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * syscommon.h 3 | * 4 | * Common header file for system call stubs 5 | */ 6 | 7 | #define __IN_SYS_COMMON 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #ifdef __i386__ 31 | # include 32 | #endif 33 | -------------------------------------------------------------------------------- /libc/pwd/getpwnam.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | struct passwd *getpwnam(const char *name); 5 | 6 | /****************/ 7 | 8 | #include // strcmp 9 | #include // NULL 10 | 11 | struct passwd *getpwnam(const char *name) { 12 | struct passwd *p = NULL; 13 | 14 | setpwent(); 15 | do { 16 | p = getpwent(); 17 | } while(p && strcmp(name,p->pw_name)); 18 | endpwent(); 19 | 20 | return p; 21 | } 22 | -------------------------------------------------------------------------------- /libc/pwd/getpwuid.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | struct passwd *getpwuid(uid_t uid); 5 | 6 | /****************/ 7 | 8 | #include // NULL 9 | 10 | struct passwd *getpwuid(uid_t uid) { 11 | struct passwd *p = NULL; 12 | 13 | setpwent(); 14 | do { 15 | p = getpwent(); 16 | } while(p && p->pw_uid != uid); 17 | endpwent(); 18 | 19 | return p; 20 | } 21 | -------------------------------------------------------------------------------- /libc/set_errno.h: -------------------------------------------------------------------------------- 1 | #ifndef SHOULD_CLEAR_ERRNO_H_ 2 | #define SHOULD_CLEAR_ERRNO_H_ 3 | 4 | #include 5 | 6 | /* Some functions call others that might set errno. 7 | * However, the functions themselves are not specified 8 | * to set errno on failure. Enabling this will make 9 | * those functions clear errno before returning, 10 | * regardless of the previous state of errno or any 11 | * failure on behalf of the function. 12 | */ 13 | #define BE_GOOD 1 14 | #if BE_GOOD 15 | #define SHOULD_SET_ERRNO(x) \ 16 | { errno = x; } 17 | #define WOULD_SET_ERRNO(x) \ 18 | do {} while(0) 19 | #else 20 | #define SHOULD_SET_ERRNO(x) \ 21 | do {} while(0) 22 | #define WOULD_SET_ERRNO(x) \ 23 | { errno = x; } 24 | #endif 25 | #undef BE_GOOD 26 | 27 | #define SET_ERRNO(x) \ 28 | { \ 29 | WOULD_SET_ERRNO(x); \ 30 | SHOULD_SET_ERRNO(x); \ 31 | } 32 | #define SHOULD_CLEAR_ERRNO() SHOULD_SET_ERRNO(0) 33 | 34 | #endif /* SHOULD_CLEAR_ERRNO_H_ */ 35 | -------------------------------------------------------------------------------- /libc/shadow/endspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void endspent(); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | void endspent() { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | } 16 | -------------------------------------------------------------------------------- /libc/shadow/fgetspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct spwd *fgetspent(FILE *fp); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | struct spwd *fgetspent(FILE *fp) { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return NULL; 16 | } 17 | -------------------------------------------------------------------------------- /libc/shadow/getspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct spwd *getspent(); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | struct spwd *getspent() { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return NULL; 16 | } 17 | -------------------------------------------------------------------------------- /libc/shadow/getspnam.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct spwd *getspnam(char *name); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | struct spwd *getspnam(char *name) { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return NULL; 16 | } 17 | -------------------------------------------------------------------------------- /libc/shadow/lckpwdf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int lckpwdf(); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | int lckpwdf() { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /libc/shadow/putspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int putspent (struct spwd *p, FILE *fp); 4 | 5 | /***************************/ 6 | #include 7 | 8 | #include "stub.h" 9 | #include "set_errno.h" 10 | 11 | int putspent (struct spwd *p, FILE *fp) { 12 | BIONICSTUB(); 13 | SET_ERRNO(ENOSYS); 14 | return -1; 15 | } 16 | -------------------------------------------------------------------------------- /libc/shadow/setspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void setspent(); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | void setspent() { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | } 16 | -------------------------------------------------------------------------------- /libc/shadow/sgetspent.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct spwd *sgetspent(char *cp); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | struct spwd *sgetspent(char *cp) { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return NULL; 16 | } 17 | -------------------------------------------------------------------------------- /libc/shadow/ulckpwdf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int ulckpwdf(); 4 | 5 | /***************************/ 6 | 7 | #include 8 | 9 | #include "stub.h" 10 | #include "set_errno.h" 11 | 12 | int ulckpwdf() { 13 | BIONICSTUB(); 14 | SET_ERRNO(ENOSYS); 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /libc/stdio/getline.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | ssize_t getline(char **lineptr, size_t *n, FILE *stream) { 4 | return getdelim(lineptr,n,(int)'\n',stream); 5 | } 6 | -------------------------------------------------------------------------------- /libc/stdlib/jrand48.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: jrand48.c,v 1.3 2005/08/08 08:05:36 espie Exp $ */ 2 | /* 3 | * Copyright (c) 1993 Martin Birgmeier 4 | * All rights reserved. 5 | * 6 | * You may redistribute unmodified or modified versions of this source 7 | * code provided that the above copyright notice and this and the 8 | * following conditions are retained. 9 | * 10 | * This software is provided ``as is'', and comes with no warranties 11 | * of any kind. I shall in no event be liable for anything that happens 12 | * to anyone/anything when using this software. 13 | */ 14 | 15 | #include "rand48.h" 16 | 17 | long 18 | jrand48(unsigned short xseed[3]) 19 | { 20 | __dorand48(xseed); 21 | return ((long) xseed[2] << 16) + (long) xseed[1]; 22 | } 23 | -------------------------------------------------------------------------------- /libc/stdlib/lrand48.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: lrand48.c,v 1.3 2005/08/08 08:05:36 espie Exp $ */ 2 | /* 3 | * Copyright (c) 1993 Martin Birgmeier 4 | * All rights reserved. 5 | * 6 | * You may redistribute unmodified or modified versions of this source 7 | * code provided that the above copyright notice and this and the 8 | * following conditions are retained. 9 | * 10 | * This software is provided ``as is'', and comes with no warranties 11 | * of any kind. I shall in no event be liable for anything that happens 12 | * to anyone/anything when using this software. 13 | */ 14 | 15 | #include "rand48.h" 16 | 17 | extern unsigned short __rand48_seed[3]; 18 | 19 | long 20 | lrand48(void) 21 | { 22 | __dorand48(__rand48_seed); 23 | return ((long) __rand48_seed[2] << 15) + ((long) __rand48_seed[1] >> 1); 24 | } 25 | -------------------------------------------------------------------------------- /libc/stdlib/mrand48.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: mrand48.c,v 1.3 2005/08/08 08:05:37 espie Exp $ */ 2 | /* 3 | * Copyright (c) 1993 Martin Birgmeier 4 | * All rights reserved. 5 | * 6 | * You may redistribute unmodified or modified versions of this source 7 | * code provided that the above copyright notice and this and the 8 | * following conditions are retained. 9 | * 10 | * This software is provided ``as is'', and comes with no warranties 11 | * of any kind. I shall in no event be liable for anything that happens 12 | * to anyone/anything when using this software. 13 | */ 14 | 15 | #include "rand48.h" 16 | 17 | extern unsigned short __rand48_seed[3]; 18 | 19 | long 20 | mrand48(void) 21 | { 22 | __dorand48(__rand48_seed); 23 | return ((long) __rand48_seed[2] << 16) + (long) __rand48_seed[1]; 24 | } 25 | -------------------------------------------------------------------------------- /libc/stdlib/nrand48.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: nrand48.c,v 1.3 2005/08/08 08:05:37 espie Exp $ */ 2 | /* 3 | * Copyright (c) 1993 Martin Birgmeier 4 | * All rights reserved. 5 | * 6 | * You may redistribute unmodified or modified versions of this source 7 | * code provided that the above copyright notice and this and the 8 | * following conditions are retained. 9 | * 10 | * This software is provided ``as is'', and comes with no warranties 11 | * of any kind. I shall in no event be liable for anything that happens 12 | * to anyone/anything when using this software. 13 | */ 14 | 15 | #include "rand48.h" 16 | 17 | long 18 | nrand48(unsigned short xseed[3]) 19 | { 20 | __dorand48(xseed); 21 | return ((long) xseed[2] << 15) + ((long) xseed[1] >> 1); 22 | } 23 | -------------------------------------------------------------------------------- /libc/stdlib/srand48.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: srand48.c,v 1.3 2005/08/08 08:05:37 espie Exp $ */ 2 | /* 3 | * Copyright (c) 1993 Martin Birgmeier 4 | * All rights reserved. 5 | * 6 | * You may redistribute unmodified or modified versions of this source 7 | * code provided that the above copyright notice and this and the 8 | * following conditions are retained. 9 | * 10 | * This software is provided ``as is'', and comes with no warranties 11 | * of any kind. I shall in no event be liable for anything that happens 12 | * to anyone/anything when using this software. 13 | */ 14 | 15 | #include "rand48.h" 16 | 17 | extern unsigned short __rand48_seed[3]; 18 | extern unsigned short __rand48_mult[3]; 19 | extern unsigned short __rand48_add; 20 | 21 | void 22 | srand48(long seed) 23 | { 24 | __rand48_seed[0] = RAND48_SEED_0; 25 | __rand48_seed[1] = (unsigned short) seed; 26 | __rand48_seed[2] = (unsigned short) (seed >> 16); 27 | __rand48_mult[0] = RAND48_MULT_0; 28 | __rand48_mult[1] = RAND48_MULT_1; 29 | __rand48_mult[2] = RAND48_MULT_2; 30 | __rand48_add = RAND48_ADD; 31 | } 32 | -------------------------------------------------------------------------------- /libc/stub.h: -------------------------------------------------------------------------------- 1 | #ifndef BIONIC_STUB_H_ 2 | #define BIONIC_STUB_H_ 3 | 4 | #ifdef BIONIC_STUB_WARNINGS 5 | #include 6 | #include 7 | #define BIONICSTUB() \ 8 | fprintf(stderr,"FIX ME! implement %s()\n", __FUNCTION__) 9 | #else 10 | #define BIONICSTUB() 11 | #endif /* BIONIC_STUB_WARNINGS */ 12 | 13 | #endif /* BIONIC_STUB_H_ */ 14 | -------------------------------------------------------------------------------- /libc/termios/tcdrain.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int tcdrain(int fd); 5 | 6 | /***************************/ 7 | 8 | #include 9 | 10 | int tcdrain(int fd) { 11 | return ioctl(fd,TCSBRK,1); 12 | } 13 | -------------------------------------------------------------------------------- /libc/tools/genkernelhdrmk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | usage() { 4 | echo "usage: $0 [path/to/bionic] [x86|arm|..]]" 5 | } 6 | 7 | if [ $# -ne 2 ]; then 8 | usage 9 | exit 1 10 | fi 11 | 12 | ARCH=${2} 13 | TOP_SRCDIR=${1} 14 | 15 | if [ ! -d ${TOP_SRCDIR}/linker ]; then 16 | echo "could not find 'linker' directory. is '${TOP_SRCDIR}' really bionic?" 17 | usage 18 | exit 1 19 | fi 20 | 21 | KERNEL_INCDIRS="libc/kernel/common libc/kernel/arch-${ARCH}" 22 | 23 | echo "if KERNEL_HEADERS" 24 | 25 | for kinc in $KERNEL_INCDIRS; do 26 | cd ${TOP_SRCDIR} 27 | cd ${kinc} 28 | DIRS="$(for h in $(find * -name '*.h' -type f); do dirname ${h}; done | grep -v "^\." | sort -u)" 29 | for d in $DIRS; do 30 | dirvar="$(echo $d | sed -e 's|[/_-]||g')" 31 | echo -e "include${dirvar}dir = \$(includedir)/${d}" 32 | HDRS="$(find ${d} -name '*.h' -type f)" 33 | echo -e "include${dirvar}_HEADERS = \\" 34 | echo -e "\t\$(addprefix \$(top_srcdir)/${kinc}/, \\" 35 | for h in $HDRS; do 36 | echo -e "\t\t${h} \\" 37 | done 38 | echo -e "\t)" 39 | done 40 | done 41 | 42 | echo "endif" 43 | -------------------------------------------------------------------------------- /libc/tools/sed.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import sys 4 | 5 | inp = sys.argv[1] 6 | outp = sys.argv[2] 7 | match = sys.argv[3] 8 | repl = sys.argv[4] 9 | 10 | with open(outp, "wt") as fout: 11 | with open(inp, "rt") as fin: 12 | for line in fin: 13 | fout.write(line.replace( match, repl )) 14 | -------------------------------------------------------------------------------- /libc/unistd/charclass.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Public domain, 2008, Todd C. Miller 3 | * 4 | * $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $ 5 | */ 6 | 7 | /* 8 | * POSIX character class support for fnmatch() and glob(). 9 | */ 10 | static struct cclass { 11 | const char *name; 12 | int (*isctype)(int); 13 | } cclasses[] = { 14 | { "alnum", isalnum }, 15 | { "alpha", isalpha }, 16 | { "blank", isblank }, 17 | { "cntrl", iscntrl }, 18 | { "digit", isdigit }, 19 | { "graph", isgraph }, 20 | { "lower", islower }, 21 | { "print", isprint }, 22 | { "punct", ispunct }, 23 | { "space", isspace }, 24 | { "upper", isupper }, 25 | { "xdigit", isxdigit }, 26 | { NULL, NULL } 27 | }; 28 | 29 | #define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1) 30 | -------------------------------------------------------------------------------- /libc/unistd/eventfd.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* We duplicate the GLibc error semantics, which are poorly defined 5 | * if the read() or write() does not return the proper number of bytes. 6 | */ 7 | int eventfd_read(int fd, eventfd_t *counter) 8 | { 9 | int ret = read(fd, counter, sizeof(*counter)); 10 | 11 | if (ret == sizeof(*counter)) 12 | return 0; 13 | 14 | return -1; 15 | } 16 | 17 | int eventfd_write(int fd, eventfd_t counter) 18 | { 19 | int ret = write(fd, &counter, sizeof(counter)); 20 | 21 | if (ret == sizeof(counter)) 22 | return 0; 23 | 24 | return -1; 25 | } 26 | -------------------------------------------------------------------------------- /libc/unistd/futimens.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int futimens(int fd, const struct timespec times[2]) { 4 | return utimensat(fd,NULL,times,0); 5 | } 6 | -------------------------------------------------------------------------------- /libc/unistd/getlogin.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | char *getlogin(void); 4 | 5 | /***************/ 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #include 12 | 13 | #include "set_errno.h" 14 | 15 | char* getlogin(void) { 16 | char *n = NULL; 17 | int r, fd; 18 | struct stat stat; 19 | uid_t uid; 20 | struct passwd *p; 21 | 22 | /* XXX: Do not use getuid(), because that uid might be different than 23 | * that of the controlling terminal, which might not even exist. */ 24 | 25 | r = open("/dev/tty",O_RDONLY); 26 | if ( r == -1 ) 27 | goto out; 28 | fd = r; 29 | 30 | r = fstat(fd,&stat); 31 | if ( r == -1 ) 32 | goto closefd; 33 | 34 | uid = stat.st_uid; 35 | 36 | p = getpwuid(uid); 37 | if ( !p ) 38 | goto closefd; 39 | 40 | n = p->pw_name; 41 | SET_ERRNO(0); 42 | 43 | closefd: 44 | close(fd); 45 | 46 | out: 47 | return n; 48 | } 49 | -------------------------------------------------------------------------------- /libc/unistd/getpagesize.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern unsigned int __page_size; 4 | 5 | // FIXME: page size should be dynamically discovered from the kernel 6 | int getpagesize() { 7 | return __page_size; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /libc/unistd/shell_priv.h: -------------------------------------------------------------------------------- 1 | #ifndef SHELL_PRIV_H_ 2 | #define SHELL_PRIV_H_ 3 | 4 | #define MWS "[ \t]*" 5 | 6 | /* FIXME: use NAME_MAX instead of 255, and figure out a way to get a numerical 7 | * define to slide into a string define */ 8 | #define PATHELEM "[^/ \t]{1,255}" 9 | #define ABSPATH "/(" PATHELEM "/)*" PATHELEM 10 | 11 | #define SH_SHELL_PAT ABSPATH 12 | 13 | #define SHELLLINE \ 14 | "^" \ 15 | "(" SH_SHELL_PAT ")" \ 16 | MWS \ 17 | "$" 18 | 19 | #ifndef _PATH_SHELLS 20 | #define _PATH_SHELLS "/etc/shells" 21 | #endif 22 | 23 | #endif /* SHELL_PRIV_H_ */ 24 | -------------------------------------------------------------------------------- /libc/utmp/getutid.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include // NULL 4 | 5 | #include "stub.h" 6 | 7 | struct utmp __the_utmp = {}; 8 | 9 | struct utmp *getutid(struct utmp *ut) { 10 | struct utmp *utmp = NULL; 11 | BIONICSTUB(); 12 | return utmp; 13 | } 14 | -------------------------------------------------------------------------------- /libc/utmp/getutline.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include // NULL 4 | 5 | #include "stub.h" 6 | 7 | struct utmp *getutline(struct utmp *ut) { 8 | BIONICSTUB(); 9 | return NULL; 10 | } 11 | -------------------------------------------------------------------------------- /libc/zoneinfo/MODULE_LICENSE_PUBLIC_DOMAIN: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/zoneinfo/MODULE_LICENSE_PUBLIC_DOMAIN -------------------------------------------------------------------------------- /libc/zoneinfo/Makefile.am: -------------------------------------------------------------------------------- 1 | if ! HEADERS_ONLY 2 | 3 | zoneinfodir = $(datadir)/zoneinfo 4 | zoneinfo_DATA = \ 5 | $(addprefix libc/zoneinfo/, \ 6 | zoneinfo.dat \ 7 | zoneinfo.idx \ 8 | zoneinfo.version \ 9 | ) 10 | 11 | zoneinfotoolsdir = $(BIONIC_DATADIR)/zoneinfo 12 | zoneinfotools_DATA = \ 13 | $(addprefix libc/tools/zoneinfo/, \ 14 | generate \ 15 | ZoneCompactor.java \ 16 | ZoneInfo.java \ 17 | ) \ 18 | $(addprefix libc/zoneinfo/, \ 19 | MODULE_LICENSE_PUBLIC_DOMAIN \ 20 | ) 21 | 22 | endif 23 | 24 | # TODO: make a sysconfdir variable / define, edit libc/tzcode/tzfile.h and so on instead of hard-coding TZDIR="/etc" 25 | # also need to figure out how to make the timezones behave like the glibc variant 26 | # 27 | # e.g. cd /etc; rm -f localtime; ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime 28 | # 29 | # If localtime could acknowledge that /etc/localtime might be a link, and read the value of the link, then 30 | # it would be possible to use the symbolic link data path instead of file content for the timezone. -------------------------------------------------------------------------------- /libc/zoneinfo/zoneinfo.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/zoneinfo/zoneinfo.dat -------------------------------------------------------------------------------- /libc/zoneinfo/zoneinfo.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libc/zoneinfo/zoneinfo.idx -------------------------------------------------------------------------------- /libc/zoneinfo/zoneinfo.version: -------------------------------------------------------------------------------- 1 | 2012c 2 | -------------------------------------------------------------------------------- /libdl/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libdl/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /libm/MODULE_LICENSE_BSD_LIKE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libm/MODULE_LICENSE_BSD_LIKE -------------------------------------------------------------------------------- /libm/NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libm/NOTICE -------------------------------------------------------------------------------- /libm/amd64/s_llrint.S: -------------------------------------------------------------------------------- 1 | #include 2 | __FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") 3 | 4 | /* sizeof(long) == sizeof(long long) */ 5 | #define fn llrint 6 | #include "s_lrint.S" 7 | -------------------------------------------------------------------------------- /libm/amd64/s_llrintf.S: -------------------------------------------------------------------------------- 1 | #include 2 | __FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") 3 | 4 | /* sizeof(long) == sizeof(long long) */ 5 | #define fn llrintf 6 | #include "s_lrintf.S" 7 | -------------------------------------------------------------------------------- /libm/amd64/s_scalbnl.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/amd64/s_scalbnl.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | /* RCSID("$NetBSD: s_scalbnf.S,v 1.4 1999/01/02 05:15:40 kristerw Exp $") */ 9 | 10 | ENTRY(scalbnl) 11 | movl %edi,-4(%rsp) 12 | fildl -4(%rsp) 13 | fldt 8(%rsp) 14 | fscale 15 | fstp %st(1) 16 | ret 17 | 18 | .globl CNAME(ldexpl) 19 | .set CNAME(ldexpl),CNAME(scalbnl) 20 | -------------------------------------------------------------------------------- /libm/i387/e_log10f.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/e_log10f.S,v 1.2 2005/02/04 14:08:32 das Exp $"); 9 | /* RCSID("$NetBSD: e_log10f.S,v 1.1 1996/07/03 16:50:22 jtc Exp $") */ 10 | 11 | ENTRY(log10f) 12 | fldlg2 13 | flds 4(%esp) 14 | fyl2x 15 | ret 16 | -------------------------------------------------------------------------------- /libm/i387/e_logf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/e_logf.S,v 1.2 2005/02/04 14:08:32 das Exp $"); 9 | /* RCSID("$NetBSD: e_logf.S,v 1.2 1996/07/06 00:15:45 jtc Exp $") */ 10 | 11 | ENTRY(logf) 12 | fldln2 13 | flds 4(%esp) 14 | fyl2x 15 | ret 16 | -------------------------------------------------------------------------------- /libm/i387/e_remainderf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/e_remainderf.S,v 1.2 2005/02/04 14:08:32 das Exp $"); 9 | /* RCSID("$NetBSD: e_remainderf.S,v 1.2 1995/05/08 23:49:47 jtc Exp $") */ 10 | 11 | ENTRY(remainderf) 12 | flds 8(%esp) 13 | flds 4(%esp) 14 | 1: fprem1 15 | fstsw %ax 16 | sahf 17 | jp 1b 18 | fstp %st(1) 19 | ret 20 | -------------------------------------------------------------------------------- /libm/i387/e_scalbf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/e_scalbf.S,v 1.2 2005/02/04 14:08:32 das Exp $"); 9 | /* RCSID("$NetBSD: e_scalbf.S,v 1.1 1996/07/03 16:50:24 jtc Exp $") */ 10 | 11 | ENTRY(scalbf) 12 | flds 8(%esp) 13 | flds 4(%esp) 14 | fscale 15 | ret 16 | -------------------------------------------------------------------------------- /libm/i387/e_sqrtf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/e_sqrtf.S,v 1.2 2005/02/04 14:08:32 das Exp $"); 9 | /* RCSID("$NetBSD: e_sqrtf.S,v 1.2 1995/05/08 23:50:14 jtc Exp $") */ 10 | 11 | ENTRY(sqrtf) 12 | flds 4(%esp) 13 | fsqrt 14 | ret 15 | -------------------------------------------------------------------------------- /libm/i387/s_ceilf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_ceilf.S,v 1.2 2005/05/06 15:44:20 deischen Exp $"); 9 | /* RCSID("$NetBSD: s_ceilf.S,v 1.3 1995/05/08 23:52:44 jtc Exp $") */ 10 | 11 | ENTRY(ceilf) 12 | pushl %ebp 13 | movl %esp,%ebp 14 | subl $8,%esp 15 | 16 | fstcw -4(%ebp) /* store fpu control word */ 17 | movw -4(%ebp),%dx 18 | orw $0x0800,%dx /* round towards +oo */ 19 | andw $0xfbff,%dx 20 | movw %dx,-8(%ebp) 21 | fldcw -8(%ebp) /* load modfied control word */ 22 | 23 | flds 8(%ebp); /* round */ 24 | frndint 25 | 26 | fldcw -4(%ebp) /* restore original control word */ 27 | 28 | leave 29 | ret 30 | -------------------------------------------------------------------------------- /libm/i387/s_ceill.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_ceill.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | 9 | ENTRY(ceill) 10 | pushl %ebp 11 | movl %esp,%ebp 12 | subl $8,%esp 13 | 14 | fstcw -4(%ebp) /* store fpu control word */ 15 | movw -4(%ebp),%dx 16 | orw $0x0800,%dx /* round towards +oo */ 17 | andw $0xfbff,%dx 18 | movw %dx,-8(%ebp) 19 | fldcw -8(%ebp) /* load modfied control word */ 20 | 21 | fldt 8(%ebp) /* round */ 22 | frndint 23 | 24 | fldcw -4(%ebp) /* restore original control word */ 25 | 26 | leave 27 | ret 28 | -------------------------------------------------------------------------------- /libm/i387/s_copysignf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignf.S,v 1.1 2005/01/13 18:58:25 das Exp $"); 9 | /* RCSID("$NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $") */ 10 | 11 | ENTRY(copysignf) 12 | movl 8(%esp),%edx 13 | andl $0x80000000,%edx 14 | movl 4(%esp),%eax 15 | andl $0x7fffffff,%eax 16 | orl %edx,%eax 17 | movl %eax,4(%esp) 18 | flds 4(%esp) 19 | ret 20 | -------------------------------------------------------------------------------- /libm/i387/s_copysignl.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignl.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | 9 | ENTRY(copysignl) 10 | movl 24(%esp),%edx 11 | andl $0x8000,%edx 12 | movl 12(%esp),%eax 13 | andl $0x7fff,%eax 14 | orl %edx,%eax 15 | movl %eax,12(%esp) 16 | fldt 4(%esp) 17 | ret 18 | -------------------------------------------------------------------------------- /libm/i387/s_floorf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_floorf.S,v 1.2 2005/05/06 15:44:20 deischen Exp $"); 9 | /* RCSID("$NetBSD: s_floorf.S,v 1.3 1995/05/09 00:04:32 jtc Exp $") */ 10 | 11 | ENTRY(floorf) 12 | pushl %ebp 13 | movl %esp,%ebp 14 | subl $8,%esp 15 | 16 | fstcw -4(%ebp) /* store fpu control word */ 17 | movw -4(%ebp),%dx 18 | orw $0x0400,%dx /* round towards -oo */ 19 | andw $0xf7ff,%dx 20 | movw %dx,-8(%ebp) 21 | fldcw -8(%ebp) /* load modfied control word */ 22 | 23 | flds 8(%ebp); /* round */ 24 | frndint 25 | 26 | fldcw -4(%ebp) /* restore original control word */ 27 | 28 | leave 29 | ret 30 | -------------------------------------------------------------------------------- /libm/i387/s_floorl.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_floorl.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | 9 | ENTRY(floorl) 10 | pushl %ebp 11 | movl %esp,%ebp 12 | subl $8,%esp 13 | 14 | fstcw -4(%ebp) /* store fpu control word */ 15 | movw -4(%ebp),%dx 16 | orw $0x0400,%dx /* round towards -oo */ 17 | andw $0xf7ff,%dx 18 | movw %dx,-8(%ebp) 19 | fldcw -8(%ebp) /* load modfied control word */ 20 | 21 | fldt 8(%ebp) /* round */ 22 | frndint 23 | 24 | fldcw -4(%ebp) /* restore original control word */ 25 | 26 | leave 27 | ret 28 | -------------------------------------------------------------------------------- /libm/i387/s_logbf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_logbf.S,v 1.1 2005/01/13 18:58:25 das Exp $"); 9 | /* RCSID("$NetBSD: s_logbf.S,v 1.3 1995/05/09 00:15:12 jtc Exp $") */ 10 | 11 | ENTRY(logbf) 12 | flds 4(%esp) 13 | fxtract 14 | fstp %st 15 | ret 16 | -------------------------------------------------------------------------------- /libm/i387/s_rintf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_rintf.S,v 1.1 2005/01/13 18:58:25 das Exp $"); 9 | /* RCSID("$NetBSD: s_rintf.S,v 1.3 1995/05/09 00:17:22 jtc Exp $") */ 10 | 11 | ENTRY(rintf) 12 | flds 4(%esp) 13 | frndint 14 | ret 15 | -------------------------------------------------------------------------------- /libm/i387/s_scalbnf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_scalbnf.S,v 1.2 2005/03/07 04:52:43 das Exp $"); 9 | /* RCSID("$NetBSD: s_scalbnf.S,v 1.4 1999/01/02 05:15:40 kristerw Exp $") */ 10 | 11 | ENTRY(scalbnf) 12 | fildl 8(%esp) 13 | flds 4(%esp) 14 | fscale 15 | fstp %st(1) /* bug fix for fp stack overflow */ 16 | ret 17 | 18 | .globl CNAME(ldexpf) 19 | .set CNAME(ldexpf),CNAME(scalbnf) 20 | -------------------------------------------------------------------------------- /libm/i387/s_scalbnl.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_scalbnl.S,v 1.1 2005/03/07 04:52:57 das Exp $"); 9 | /* RCSID("$NetBSD: s_scalbnf.S,v 1.4 1999/01/02 05:15:40 kristerw Exp $") */ 10 | 11 | ENTRY(scalbnl) 12 | fildl 16(%esp) 13 | fldt 4(%esp) 14 | fscale 15 | fstp %st(1) 16 | ret 17 | 18 | .globl CNAME(ldexpl) 19 | .set CNAME(ldexpl),CNAME(scalbnl) 20 | -------------------------------------------------------------------------------- /libm/i387/s_significandf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | 8 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_significandf.S,v 1.1 2005/01/13 18:58:25 das Exp $"); 9 | /* RCSID("$NetBSD: s_significandf.S,v 1.3 1995/05/09 00:24:07 jtc Exp $") */ 10 | 11 | ENTRY(significandf) 12 | flds 4(%esp) 13 | fxtract 14 | fstp %st(1) 15 | ret 16 | -------------------------------------------------------------------------------- /libm/i387/s_trunc.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_trunc.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | 9 | ENTRY(trunc) 10 | pushl %ebp 11 | movl %esp,%ebp 12 | subl $8,%esp 13 | 14 | fstcw -4(%ebp) /* store fpu control word */ 15 | movw -4(%ebp),%dx 16 | orw $0x0c00,%dx /* round towards -oo */ 17 | movw %dx,-8(%ebp) 18 | fldcw -8(%ebp) /* load modfied control word */ 19 | 20 | fldl 8(%ebp) /* round */ 21 | frndint 22 | 23 | fldcw -4(%ebp) /* restore original control word */ 24 | 25 | leave 26 | ret 27 | -------------------------------------------------------------------------------- /libm/i387/s_truncf.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_truncf.S,v 1.2 2005/05/06 15:44:20 deischen Exp $") 8 | 9 | ENTRY(truncf) 10 | pushl %ebp 11 | movl %esp,%ebp 12 | subl $8,%esp 13 | 14 | fstcw -4(%ebp) /* store fpu control word */ 15 | movw -4(%ebp),%dx 16 | orw $0x0c00,%dx /* round towards -oo */ 17 | movw %dx,-8(%ebp) 18 | fldcw -8(%ebp) /* load modfied control word */ 19 | 20 | flds 8(%ebp) /* round */ 21 | frndint 22 | 23 | fldcw -4(%ebp) /* restore original control word */ 24 | 25 | leave 26 | ret 27 | -------------------------------------------------------------------------------- /libm/i387/s_truncl.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on code written by J.T. Conklin . 3 | * Public domain. 4 | */ 5 | 6 | #include 7 | __FBSDID("$FreeBSD: src/lib/msun/i387/s_truncl.S,v 1.1 2005/04/16 21:12:55 das Exp $") 8 | 9 | ENTRY(truncl) 10 | pushl %ebp 11 | movl %esp,%ebp 12 | subl $8,%esp 13 | 14 | fstcw -4(%ebp) /* store fpu control word */ 15 | movw -4(%ebp),%dx 16 | orw $0x0c00,%dx /* round towards -oo */ 17 | movw %dx,-8(%ebp) 18 | fldcw -8(%ebp) /* load modfied control word */ 19 | 20 | fldt 8(%ebp) /* round */ 21 | frndint 22 | 23 | fldcw -4(%ebp) /* restore original control word */ 24 | 25 | leave 26 | ret 27 | -------------------------------------------------------------------------------- /libm/src/e_gamma.c: -------------------------------------------------------------------------------- 1 | 2 | /* @(#)e_gamma.c 1.3 95/01/18 */ 3 | /* 4 | * ==================================================== 5 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6 | * 7 | * Developed at SunSoft, a Sun Microsystems, Inc. business. 8 | * Permission to use, copy, modify, and distribute this 9 | * software is freely granted, provided that this notice 10 | * is preserved. 11 | * ==================================================== 12 | * 13 | */ 14 | 15 | #ifndef lint 16 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_gamma.c,v 1.7 2005/02/04 18:26:05 das Exp $"; 17 | #endif 18 | 19 | /* __ieee754_gamma(x) 20 | * Return the logarithm of the Gamma function of x. 21 | * 22 | * Method: call __ieee754_gamma_r 23 | */ 24 | 25 | #include "math.h" 26 | #include "math_private.h" 27 | 28 | extern int signgam; 29 | 30 | double 31 | __ieee754_gamma(double x) 32 | { 33 | return __ieee754_gamma_r(x,&signgam); 34 | } 35 | -------------------------------------------------------------------------------- /libm/src/e_gamma_r.c: -------------------------------------------------------------------------------- 1 | 2 | /* @(#)e_gamma_r.c 1.3 95/01/18 */ 3 | /* 4 | * ==================================================== 5 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6 | * 7 | * Developed at SunSoft, a Sun Microsystems, Inc. business. 8 | * Permission to use, copy, modify, and distribute this 9 | * software is freely granted, provided that this notice 10 | * is preserved. 11 | * ==================================================== 12 | * 13 | */ 14 | 15 | #ifndef lint 16 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_gamma_r.c,v 1.7 2005/02/04 18:26:05 das Exp $"; 17 | #endif 18 | 19 | /* __ieee754_gamma_r(x, signgamp) 20 | * Reentrant version of the logarithm of the Gamma function 21 | * with user provide pointer for the sign of Gamma(x). 22 | * 23 | * Method: See __ieee754_lgamma_r 24 | */ 25 | 26 | #include "math.h" 27 | #include "math_private.h" 28 | 29 | double 30 | __ieee754_gamma_r(double x, int *signgamp) 31 | { 32 | return __ieee754_lgamma_r(x,signgamp); 33 | } 34 | -------------------------------------------------------------------------------- /libm/src/e_gammaf.c: -------------------------------------------------------------------------------- 1 | /* e_gammaf.c -- float version of e_gamma.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_gammaf.c,v 1.6 2002/05/28 17:03:12 alfred Exp $"; 18 | #endif 19 | 20 | /* __ieee754_gammaf(x) 21 | * Return the logarithm of the Gamma function of x. 22 | * 23 | * Method: call __ieee754_gammaf_r 24 | */ 25 | 26 | #include "math.h" 27 | #include "math_private.h" 28 | 29 | extern int signgam; 30 | 31 | float 32 | __ieee754_gammaf(float x) 33 | { 34 | return __ieee754_gammaf_r(x,&signgam); 35 | } 36 | -------------------------------------------------------------------------------- /libm/src/e_gammaf_r.c: -------------------------------------------------------------------------------- 1 | /* e_gammaf_r.c -- float version of e_gamma_r.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_gammaf_r.c,v 1.7 2002/05/28 18:15:03 alfred Exp $"; 18 | #endif 19 | 20 | /* __ieee754_gammaf_r(x, signgamp) 21 | * Reentrant version of the logarithm of the Gamma function 22 | * with user provide pointer for the sign of Gamma(x). 23 | * 24 | * Method: See __ieee754_lgammaf_r 25 | */ 26 | 27 | #include "math.h" 28 | #include "math_private.h" 29 | 30 | float 31 | __ieee754_gammaf_r(float x, int *signgamp) 32 | { 33 | return __ieee754_lgammaf_r(x,signgamp); 34 | } 35 | -------------------------------------------------------------------------------- /libm/src/e_ldexpf.c: -------------------------------------------------------------------------------- 1 | /* e_scalbf.c -- float version of e_scalb.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | #include "math.h" 16 | #include "math_private.h" 17 | 18 | float 19 | __ieee754_ldexpf(float x, int fn) 20 | { 21 | return __ieee754_scalbf(x,fn); 22 | } 23 | -------------------------------------------------------------------------------- /libm/src/e_lgamma.c: -------------------------------------------------------------------------------- 1 | 2 | /* @(#)e_lgamma.c 1.3 95/01/18 */ 3 | /* 4 | * ==================================================== 5 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6 | * 7 | * Developed at SunSoft, a Sun Microsystems, Inc. business. 8 | * Permission to use, copy, modify, and distribute this 9 | * software is freely granted, provided that this notice 10 | * is preserved. 11 | * ==================================================== 12 | * 13 | */ 14 | 15 | #ifndef lint 16 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_lgamma.c,v 1.8 2005/02/04 18:26:06 das Exp $"; 17 | #endif 18 | 19 | /* __ieee754_lgamma(x) 20 | * Return the logarithm of the Gamma function of x. 21 | * 22 | * Method: call __ieee754_lgamma_r 23 | */ 24 | 25 | #include "math.h" 26 | #include "math_private.h" 27 | 28 | extern int signgam; 29 | 30 | double 31 | __ieee754_lgamma(double x) 32 | { 33 | return __ieee754_lgamma_r(x,&signgam); 34 | } 35 | -------------------------------------------------------------------------------- /libm/src/e_lgammaf.c: -------------------------------------------------------------------------------- 1 | /* e_lgammaf.c -- float version of e_lgamma.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_lgammaf.c,v 1.7 2002/05/28 18:15:04 alfred Exp $"; 18 | #endif 19 | 20 | /* __ieee754_lgammaf(x) 21 | * Return the logarithm of the Gamma function of x. 22 | * 23 | * Method: call __ieee754_lgammaf_r 24 | */ 25 | 26 | #include "math.h" 27 | #include "math_private.h" 28 | 29 | extern int signgam; 30 | 31 | float 32 | __ieee754_lgammaf(float x) 33 | { 34 | return __ieee754_lgammaf_r(x,&signgam); 35 | } 36 | -------------------------------------------------------------------------------- /libm/src/s_copysign.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_copysign.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #ifndef lint 14 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_copysign.c,v 1.9 2003/07/23 04:53:46 peter Exp $"; 15 | #endif 16 | 17 | /* 18 | * copysign(double x, double y) 19 | * copysign(x,y) returns a value with the magnitude of x and 20 | * with the sign bit of y. 21 | */ 22 | 23 | #include "math.h" 24 | #include "math_private.h" 25 | 26 | double 27 | copysign(double x, double y) 28 | { 29 | u_int32_t hx,hy; 30 | GET_HIGH_WORD(hx,x); 31 | GET_HIGH_WORD(hy,y); 32 | SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); 33 | return x; 34 | } 35 | -------------------------------------------------------------------------------- /libm/src/s_fabs.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_fabs.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #ifndef lint 14 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_fabs.c,v 1.7 2002/05/28 18:15:04 alfred Exp $"; 15 | #endif 16 | 17 | /* 18 | * fabs(x) returns the absolute value of x. 19 | */ 20 | 21 | #include "math.h" 22 | #include "math_private.h" 23 | 24 | double 25 | fabs(double x) 26 | { 27 | u_int32_t high; 28 | GET_HIGH_WORD(high,x); 29 | SET_HIGH_WORD(x,high&0x7fffffff); 30 | return x; 31 | } 32 | -------------------------------------------------------------------------------- /libm/src/s_fabsf.c: -------------------------------------------------------------------------------- 1 | /* s_fabsf.c -- float version of s_fabs.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_fabsf.c,v 1.7 2002/05/28 18:15:04 alfred Exp $"; 18 | #endif 19 | 20 | /* 21 | * fabsf(x) returns the absolute value of x. 22 | */ 23 | 24 | #include "math.h" 25 | #include "math_private.h" 26 | 27 | float 28 | fabsf(float x) 29 | { 30 | u_int32_t ix; 31 | GET_FLOAT_WORD(ix,x); 32 | SET_FLOAT_WORD(x,ix&0x7fffffff); 33 | return x; 34 | } 35 | -------------------------------------------------------------------------------- /libm/src/s_fabsl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libm/src/s_fabsl.c -------------------------------------------------------------------------------- /libm/src/s_finite.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_finite.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #ifndef lint 14 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_finite.c,v 1.8 2003/07/23 04:53:46 peter Exp $"; 15 | #endif 16 | 17 | /* 18 | * finite(x) returns 1 is x is finite, else 0; 19 | * no branching! 20 | */ 21 | 22 | #include "math.h" 23 | #include "math_private.h" 24 | 25 | int finite(double x) 26 | { 27 | int32_t hx; 28 | GET_HIGH_WORD(hx,x); 29 | return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31); 30 | } 31 | -------------------------------------------------------------------------------- /libm/src/s_finitef.c: -------------------------------------------------------------------------------- 1 | /* s_finitef.c -- float version of s_finite.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_finitef.c,v 1.6 2002/05/28 17:51:46 alfred Exp $"; 18 | #endif 19 | 20 | /* 21 | * finitef(x) returns 1 is x is finite, else 0; 22 | * no branching! 23 | */ 24 | 25 | #include "math.h" 26 | #include "math_private.h" 27 | 28 | int finitef(float x) 29 | { 30 | int32_t ix; 31 | GET_FLOAT_WORD(ix,x); 32 | return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31); 33 | } 34 | -------------------------------------------------------------------------------- /libm/src/s_llrint.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_llrint.c,v 1.1 2005/01/11 23:12:55 das Exp $"); */ 3 | 4 | #define type double 5 | #define roundit rint 6 | #define dtype long long 7 | #define fn llrint 8 | 9 | #include "s_lrint.c" 10 | -------------------------------------------------------------------------------- /libm/src/s_llrintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_llrintf.c,v 1.1 2005/01/11 23:12:55 das Exp $"); */ 3 | 4 | #define type float 5 | #define roundit rintf 6 | #define dtype long long 7 | #define fn llrintf 8 | 9 | #include "s_lrint.c" 10 | -------------------------------------------------------------------------------- /libm/src/s_llround.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_llround.c,v 1.2 2005/04/08 00:52:27 das Exp $"); */ 3 | 4 | #define type double 5 | #define roundit round 6 | #define dtype long long 7 | #define DTYPE_MIN LONGLONG_MIN 8 | #define DTYPE_MAX LONGLONG_MAX 9 | #define fn llround 10 | 11 | #include "s_lround.c" 12 | -------------------------------------------------------------------------------- /libm/src/s_llroundf.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_llroundf.c,v 1.2 2005/04/08 00:52:27 das Exp $"); */ 3 | 4 | #define type float 5 | #define roundit roundf 6 | #define dtype long long 7 | #define DTYPE_MIN LONGLONG_MIN 8 | #define DTYPE_MAX LONGLONG_MAX 9 | #define fn llroundf 10 | 11 | #include "s_lround.c" 12 | -------------------------------------------------------------------------------- /libm/src/s_llroundl.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_llroundl.c,v 1.1 2005/04/08 01:24:08 das Exp $"); */ 3 | 4 | #define type long double 5 | #define roundit roundl 6 | #define dtype long long 7 | #define DTYPE_MIN LONGLONG_MIN 8 | #define DTYPE_MAX LONGLONG_MAX 9 | #define fn llroundl 10 | 11 | #include "s_lround.c" 12 | -------------------------------------------------------------------------------- /libm/src/s_lrintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_lrintf.c,v 1.1 2005/01/11 23:12:55 das Exp $"); */ 3 | 4 | #define type float 5 | #define roundit rintf 6 | #define dtype long 7 | #define fn lrintf 8 | 9 | #include "s_lrint.c" 10 | -------------------------------------------------------------------------------- /libm/src/s_lroundf.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_lroundf.c,v 1.2 2005/04/08 00:52:27 das Exp $"); */ 3 | 4 | #define type float 5 | #define roundit roundf 6 | #define dtype long 7 | #define DTYPE_MIN LONG_MIN 8 | #define DTYPE_MAX LONG_MAX 9 | #define fn lroundf 10 | 11 | #include "s_lround.c" 12 | -------------------------------------------------------------------------------- /libm/src/s_lroundl.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* __FBSDID("$FreeBSD: src/lib/msun/src/s_lroundl.c,v 1.1 2005/04/08 01:24:08 das Exp $"); */ 3 | 4 | #define type long double 5 | #define roundit roundl 6 | #define dtype long 7 | #define DTYPE_MIN LONG_MIN 8 | #define DTYPE_MAX LONG_MAX 9 | #define fn lroundl 10 | 11 | #include "s_lround.c" 12 | -------------------------------------------------------------------------------- /libm/src/s_signgam.c: -------------------------------------------------------------------------------- 1 | #include "math.h" 2 | #include "math_private.h" 3 | int signgam = 0; 4 | -------------------------------------------------------------------------------- /libm/src/s_significand.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_signif.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #ifndef lint 14 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_significand.c,v 1.9 2003/07/23 04:53:47 peter Exp $"; 15 | #endif 16 | 17 | /* 18 | * significand(x) computes just 19 | * scalb(x, (double) -ilogb(x)), 20 | * for exercising the fraction-part(F) IEEE 754-1985 test vector. 21 | */ 22 | 23 | #include "math.h" 24 | #include "math_private.h" 25 | 26 | double 27 | significand(double x) 28 | { 29 | return __ieee754_scalb(x,(double) -ilogb(x)); 30 | } 31 | -------------------------------------------------------------------------------- /libm/src/s_significandf.c: -------------------------------------------------------------------------------- 1 | /* s_significandf.c -- float version of s_significand.c. 2 | * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 | */ 4 | 5 | /* 6 | * ==================================================== 7 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 | * 9 | * Developed at SunPro, a Sun Microsystems, Inc. business. 10 | * Permission to use, copy, modify, and distribute this 11 | * software is freely granted, provided that this notice 12 | * is preserved. 13 | * ==================================================== 14 | */ 15 | 16 | #ifndef lint 17 | static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_significandf.c,v 1.7 2002/05/28 18:15:04 alfred Exp $"; 18 | #endif 19 | 20 | #include "math.h" 21 | #include "math_private.h" 22 | 23 | float 24 | significandf(float x) 25 | { 26 | return __ieee754_scalbf(x,(float) -ilogbf(x)); 27 | } 28 | -------------------------------------------------------------------------------- /libm/src/w_cabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabs() wrapper for hypot(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #ifndef lint 9 | static const char rcsid[] = 10 | "$FreeBSD: src/lib/msun/src/w_cabs.c,v 1.4 2001/06/13 15:16:30 ru Exp $"; 11 | #endif /* not lint */ 12 | 13 | #include 14 | #include 15 | 16 | double 17 | cabs(z) 18 | double complex z; 19 | { 20 | return hypot(creal(z), cimag(z)); 21 | } 22 | 23 | double 24 | z_abs(z) 25 | double complex *z; 26 | { 27 | return hypot(creal(*z), cimag(*z)); 28 | } 29 | -------------------------------------------------------------------------------- /libm/src/w_cabsf.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabsf() wrapper for hypotf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #ifndef lint 9 | static const char rcsid[] = 10 | "$FreeBSD: src/lib/msun/src/w_cabsf.c,v 1.3 2001/06/13 15:16:30 ru Exp $"; 11 | #endif /* not lint */ 12 | 13 | #include 14 | #include 15 | #include "math_private.h" 16 | 17 | float 18 | cabsf(z) 19 | float complex z; 20 | { 21 | 22 | return hypotf(crealf(z), cimagf(z)); 23 | } 24 | -------------------------------------------------------------------------------- /libm/src/w_drem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * drem() wrapper for remainder(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include 9 | 10 | double 11 | drem(x, y) 12 | double x, y; 13 | { 14 | return remainder(x, y); 15 | } 16 | -------------------------------------------------------------------------------- /libm/src/w_dremf.c: -------------------------------------------------------------------------------- 1 | /* 2 | * dremf() wrapper for remainderf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | /* $FreeBSD: src/lib/msun/src/w_dremf.c,v 1.3 2004/07/28 05:53:18 kan Exp $ */ 8 | 9 | #include "math.h" 10 | #include "math_private.h" 11 | 12 | float 13 | dremf(float x, float y) 14 | { 15 | return remainderf(x, y); 16 | } 17 | -------------------------------------------------------------------------------- /libstdc++/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libstdc++/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /libstdc++/include/new: -------------------------------------------------------------------------------- 1 | /* -*- c++ -*- */ 2 | #ifndef __NEW__ 3 | #define __NEW__ 4 | 5 | #include 6 | 7 | extern "C++" { 8 | 9 | namespace std { 10 | struct nothrow_t {}; 11 | extern const nothrow_t nothrow; 12 | } 13 | 14 | void* operator new(std::size_t); 15 | void* operator new[](std::size_t); 16 | void operator delete(void*); 17 | void operator delete[](void*); 18 | void* operator new(std::size_t, const std::nothrow_t&); 19 | void* operator new[](std::size_t, const std::nothrow_t&); 20 | void operator delete(void*, const std::nothrow_t&); 21 | void operator delete[](void*, const std::nothrow_t&); 22 | 23 | inline void* operator new(std::size_t, void* p) { return p; } 24 | inline void* operator new[](std::size_t, void* p) { return p; } 25 | 26 | // these next two are not really required, since exceptions are off 27 | inline void operator delete(void*, void*) { } 28 | inline void operator delete[](void*, void*) { } 29 | 30 | } // extern C++ 31 | 32 | #endif // __NEW__ 33 | -------------------------------------------------------------------------------- /libstdc++/include/typeinfo: -------------------------------------------------------------------------------- 1 | #ifndef _TYPEINFO_HEADER_GAURD 2 | #define _TYPEINFO_HEADER_GAURD 3 | 4 | extern "C++" { 5 | 6 | namespace std { 7 | class type_info; 8 | class bad_cast; 9 | class bad_typeid; 10 | }; 11 | 12 | 13 | class type_info { 14 | public: 15 | type_info(); 16 | virtual ~type_info(); 17 | 18 | char const * name() const; 19 | 20 | bool operator==(type_info const & right) const; 21 | bool operator!=(type_info const & right) const; 22 | bool before(type_info const & right) const; 23 | 24 | private: 25 | type_info(type_info const & right); 26 | type_info & operator=(type_info const & right); 27 | }; 28 | 29 | } // C++ 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /libstdc++/src/new.cpp: -------------------------------------------------------------------------------- 1 | #include "new" 2 | #include 3 | 4 | const std::nothrow_t std::nothrow = {}; 5 | 6 | void* operator new(std::size_t size) 7 | { 8 | void* p = malloc(size); 9 | if (p == NULL) { 10 | abort(); 11 | } 12 | return p; 13 | } 14 | 15 | void* operator new[](std::size_t size) 16 | { 17 | void* p = malloc(size); 18 | if (p == NULL) { 19 | abort(); 20 | } 21 | return p; 22 | } 23 | 24 | void operator delete(void* ptr) 25 | { 26 | free(ptr); 27 | } 28 | 29 | void operator delete[](void* ptr) 30 | { 31 | free(ptr); 32 | } 33 | 34 | void* operator new(std::size_t size, const std::nothrow_t&) 35 | { 36 | return malloc(size); 37 | } 38 | 39 | void* operator new[](std::size_t size, const std::nothrow_t&) 40 | { 41 | return malloc(size); 42 | } 43 | 44 | void operator delete(void* ptr, const std::nothrow_t&) 45 | { 46 | free(ptr); 47 | } 48 | 49 | void operator delete[](void* ptr, const std::nothrow_t&) 50 | { 51 | free(ptr); 52 | } 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /libstdc++/src/pure_virtual.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | extern "C" void __cxa_pure_virtual() 6 | { 7 | fprintf(stderr, "Pure virtual function called. Are you calling virtual methods from a destructor?\n"); 8 | abort(); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /libstdc++/src/typeinfo.cpp: -------------------------------------------------------------------------------- 1 | #include "typeinfo" 2 | #include 3 | 4 | type_info::type_info() { 5 | } 6 | 7 | type_info::~type_info() { 8 | } 9 | 10 | char const * 11 | type_info::name() const { 12 | return "N/A"; 13 | } 14 | 15 | bool 16 | type_info::operator==(type_info const & right) const { 17 | return false; 18 | } 19 | 20 | bool 21 | type_info::operator!=(type_info const & right) const { 22 | return false; 23 | } 24 | 25 | bool 26 | type_info::before(type_info const & right) const { 27 | return false; 28 | } 29 | 30 | type_info::type_info(type_info const & right) { 31 | } 32 | 33 | -------------------------------------------------------------------------------- /libthread_db/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/libthread_db/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /libthread_db/include/sys/procfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2006 The Android Open Source Project 3 | */ 4 | 5 | #ifndef _SYS_PROCFS_H 6 | #define _SYS_PROCFS_H 7 | 8 | #include 9 | 10 | 11 | #ifdef __cplusplus 12 | extern "C"{ 13 | #endif 14 | 15 | typedef pid_t lwpid_t; 16 | typedef void *psaddr_t; 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /linker/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoobionic/bionic/d65ab1d9017fe191208974be49aa244688177e26/linker/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /update_authors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PROJ=bionic 4 | 5 | if [ "$(grep "AC_INIT(${PROJ}" configure.ac)" = "" ]; then 6 | echo "autogen.sh must be run in PWD of ${PROJ} source" 7 | exit 1 8 | fi 9 | grep "^[0-9]" ChangeLog | awk '{split($0,a,"\t"); printf("%s, %s, %s\n", a[1] ,a[2], a[3]);}' | sort | sort -u -k 3.2 > AUTHORS 10 | --------------------------------------------------------------------------------