From 28f540f45bbacd939bfd07f213bcad2bf730b1bf Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 18 Feb 1995 01:27:10 +0000 Subject: initial import --- sysdeps/stub/__longjmp.c | 44 ++++++++++++++++++ sysdeps/stub/__math.h | 6 +++ sysdeps/stub/_exit.c | 40 ++++++++++++++++ sysdeps/stub/accept.c | 43 +++++++++++++++++ sysdeps/stub/access.c | 39 ++++++++++++++++ sysdeps/stub/acct.c | 33 +++++++++++++ sysdeps/stub/acos.c | 38 +++++++++++++++ sysdeps/stub/adjtime.c | 37 +++++++++++++++ sysdeps/stub/alarm.c | 44 ++++++++++++++++++ sysdeps/stub/asin.c | 38 +++++++++++++++ sysdeps/stub/asm-syntax.h | 3 ++ sysdeps/stub/atan2.c | 37 +++++++++++++++ sysdeps/stub/bind.c | 39 ++++++++++++++++ sysdeps/stub/brdinit.c | 34 ++++++++++++++ sysdeps/stub/brk.c | 32 +++++++++++++ sysdeps/stub/bsd-_setjmp.c | 33 +++++++++++++ sysdeps/stub/bsd-setjmp.c | 33 +++++++++++++ sysdeps/stub/bytesex.h | 9 ++++ sysdeps/stub/cbrt.c | 38 +++++++++++++++ sysdeps/stub/chdir.c | 39 ++++++++++++++++ sysdeps/stub/chflags.c | 38 +++++++++++++++ sysdeps/stub/chmod.c | 40 ++++++++++++++++ sysdeps/stub/chown.c | 41 ++++++++++++++++ sysdeps/stub/chroot.c | 39 ++++++++++++++++ sysdeps/stub/clock.c | 30 ++++++++++++ sysdeps/stub/close.c | 38 +++++++++++++++ sysdeps/stub/closedir.c | 41 ++++++++++++++++ sysdeps/stub/confstr.h | 4 ++ sysdeps/stub/connect.c | 42 +++++++++++++++++ sysdeps/stub/console.c | 42 +++++++++++++++++ sysdeps/stub/cos.c | 38 +++++++++++++++ sysdeps/stub/cosh.c | 38 +++++++++++++++ sysdeps/stub/ctermid.c | 41 ++++++++++++++++ sysdeps/stub/cuserid.c | 40 ++++++++++++++++ sysdeps/stub/dbl2mpn.c | 32 +++++++++++++ sysdeps/stub/defs.c | 51 ++++++++++++++++++++ sysdeps/stub/direct.h | 5 ++ sysdeps/stub/dirstream.h | 30 ++++++++++++ sysdeps/stub/drem.c | 33 +++++++++++++ sysdeps/stub/dup.c | 33 +++++++++++++ sysdeps/stub/dup2.c | 45 ++++++++++++++++++ sysdeps/stub/errlist.c | 42 +++++++++++++++++ sysdeps/stub/errnos.h | 38 +++++++++++++++ sysdeps/stub/exc2signal.c | 68 +++++++++++++++++++++++++++ sysdeps/stub/execve.c | 43 +++++++++++++++++ sysdeps/stub/exp.c | 38 +++++++++++++++ sysdeps/stub/fchdir.c | 32 +++++++++++++ sysdeps/stub/fchflags.c | 38 +++++++++++++++ sysdeps/stub/fchmod.c | 40 ++++++++++++++++ sysdeps/stub/fchown.c | 41 ++++++++++++++++ sysdeps/stub/fcntl.c | 38 +++++++++++++++ sysdeps/stub/fcntlbits.h | 88 +++++++++++++++++++++++++++++++++++ sysdeps/stub/fdopen.c | 29 ++++++++++++ sysdeps/stub/fexecve.c | 42 +++++++++++++++++ sysdeps/stub/flock.c | 33 +++++++++++++ sysdeps/stub/fmod.c | 38 +++++++++++++++ sysdeps/stub/fork.c | 35 ++++++++++++++ sysdeps/stub/fpathconf.c | 57 +++++++++++++++++++++++ sysdeps/stub/frexp.c | 39 ++++++++++++++++ sysdeps/stub/fstat.c | 44 ++++++++++++++++++ sysdeps/stub/fsync.c | 38 +++++++++++++++ sysdeps/stub/ftruncate.c | 30 ++++++++++++ sysdeps/stub/getcwd.c | 45 ++++++++++++++++++ sysdeps/stub/getdents.c | 33 +++++++++++++ sysdeps/stub/getdomain.c | 34 ++++++++++++++ sysdeps/stub/getdtsz.c | 33 +++++++++++++ sysdeps/stub/getegid.c | 32 +++++++++++++ sysdeps/stub/getenv.c | 38 +++++++++++++++ sysdeps/stub/geteuid.c | 33 +++++++++++++ sysdeps/stub/getgid.c | 33 +++++++++++++ sysdeps/stub/getgroups.c | 46 ++++++++++++++++++ sysdeps/stub/gethostid.c | 38 +++++++++++++++ sysdeps/stub/gethostname.c | 35 ++++++++++++++ sysdeps/stub/getitimer.c | 41 ++++++++++++++++ sysdeps/stub/getlogin.c | 40 ++++++++++++++++ sysdeps/stub/getpagesize.c | 32 +++++++++++++ sysdeps/stub/getpeername.c | 40 ++++++++++++++++ sysdeps/stub/getpgid.c | 32 +++++++++++++ sysdeps/stub/getpid.c | 33 +++++++++++++ sysdeps/stub/getppid.c | 33 +++++++++++++ sysdeps/stub/getpriority.c | 42 +++++++++++++++++ sysdeps/stub/getrlimit.c | 40 ++++++++++++++++ sysdeps/stub/getrusage.c | 34 ++++++++++++++ sysdeps/stub/getsockname.c | 39 ++++++++++++++++ sysdeps/stub/getsockopt.c | 42 +++++++++++++++++ sysdeps/stub/gettimeofday.c | 35 ++++++++++++++ sysdeps/stub/getuid.c | 33 +++++++++++++ sysdeps/stub/gtty.c | 37 +++++++++++++++ sysdeps/stub/huge_val.h | 27 +++++++++++ sysdeps/stub/init-fault.c | 38 +++++++++++++++ sysdeps/stub/init-posix.c | 38 +++++++++++++++ sysdeps/stub/ioctl.c | 34 ++++++++++++++ sysdeps/stub/ioctls.h | 1 + sysdeps/stub/isatty.c | 31 +++++++++++++ sysdeps/stub/isinf.c | 31 +++++++++++++ sysdeps/stub/isinfl.c | 33 +++++++++++++ sysdeps/stub/isnanl.c | 33 +++++++++++++ sysdeps/stub/jmp_buf.h | 3 ++ sysdeps/stub/kill.c | 35 ++++++++++++++ sysdeps/stub/killpg.c | 32 +++++++++++++ sysdeps/stub/ldbl2mpn.c | 32 +++++++++++++ sysdeps/stub/libc_fatal.c | 31 +++++++++++++ sysdeps/stub/link.c | 40 ++++++++++++++++ sysdeps/stub/listen.c | 41 ++++++++++++++++ sysdeps/stub/local_lim.h | 3 ++ sysdeps/stub/log.c | 38 +++++++++++++++ sysdeps/stub/log10.c | 38 +++++++++++++++ sysdeps/stub/logb.c | 31 +++++++++++++ sysdeps/stub/longjmp-ctx.c | 32 +++++++++++++ sysdeps/stub/longjmp-ts.c | 32 +++++++++++++ sysdeps/stub/lseek.c | 49 +++++++++++++++++++ sysdeps/stub/lstat.c | 40 ++++++++++++++++ sysdeps/stub/machine-lock.h | 64 +++++++++++++++++++++++++ sysdeps/stub/machine-sp.h | 37 +++++++++++++++ sysdeps/stub/madvise.c | 31 +++++++++++++ sysdeps/stub/mkdir.c | 41 ++++++++++++++++ sysdeps/stub/mkfifo.c | 47 +++++++++++++++++++ sysdeps/stub/mknod.c | 36 ++++++++++++++ sysdeps/stub/mkstemp.c | 38 +++++++++++++++ sysdeps/stub/mktemp.c | 37 +++++++++++++++ sysdeps/stub/mmap.c | 38 +++++++++++++++ sysdeps/stub/morecore.c | 43 +++++++++++++++++ sysdeps/stub/mpn2dbl.c | 31 +++++++++++++ sysdeps/stub/mpn2flt.c | 31 +++++++++++++ sysdeps/stub/mpn2ldbl.c | 31 +++++++++++++ sysdeps/stub/mprotect.c | 33 +++++++++++++ sysdeps/stub/msync.c | 32 +++++++++++++ sysdeps/stub/munmap.c | 32 +++++++++++++ sysdeps/stub/nan.h | 6 +++ sysdeps/stub/nice.c | 39 ++++++++++++++++ sysdeps/stub/nlist.c | 48 +++++++++++++++++++ sysdeps/stub/open.c | 51 ++++++++++++++++++++ sysdeps/stub/opendir.c | 40 ++++++++++++++++ sysdeps/stub/pathconf.c | 37 +++++++++++++++ sysdeps/stub/pause.c | 42 +++++++++++++++++ sysdeps/stub/pipe.c | 42 +++++++++++++++++ sysdeps/stub/pipestream.c | 64 +++++++++++++++++++++++++ sysdeps/stub/poll.c | 36 ++++++++++++++ sysdeps/stub/posix_opt.h | 2 + sysdeps/stub/ptrace.c | 108 ++++++++++++++++++++++++++++++++++++++++++ sysdeps/stub/putenv.c | 39 ++++++++++++++++ sysdeps/stub/raise.c | 29 ++++++++++++ sysdeps/stub/read.c | 47 +++++++++++++++++++ sysdeps/stub/readdir.c | 39 ++++++++++++++++ sysdeps/stub/readlink.c | 35 ++++++++++++++ sysdeps/stub/readv.c | 35 ++++++++++++++ sysdeps/stub/reboot.c | 38 +++++++++++++++ sysdeps/stub/recv.c | 40 ++++++++++++++++ sysdeps/stub/recvfrom.c | 42 +++++++++++++++++ sysdeps/stub/recvmsg.c | 33 +++++++++++++ sysdeps/stub/remove.c | 31 +++++++++++++ sysdeps/stub/rename.c | 45 ++++++++++++++++++ sysdeps/stub/rewinddir.c | 40 ++++++++++++++++ sysdeps/stub/rmdir.c | 40 ++++++++++++++++ sysdeps/stub/sbrk.c | 33 +++++++++++++ sysdeps/stub/seekdir.c | 45 ++++++++++++++++++ sysdeps/stub/select.c | 39 ++++++++++++++++ sysdeps/stub/send.c | 39 ++++++++++++++++ sysdeps/stub/sendmsg.c | 33 +++++++++++++ sysdeps/stub/sendto.c | 41 ++++++++++++++++ sysdeps/stub/setdomain.c | 33 +++++++++++++ sysdeps/stub/setegid.c | 38 +++++++++++++++ sysdeps/stub/setenv.c | 29 ++++++++++++ sysdeps/stub/seteuid.c | 38 +++++++++++++++ sysdeps/stub/setgid.c | 36 ++++++++++++++ sysdeps/stub/setgroups.c | 39 ++++++++++++++++ sysdeps/stub/sethostid.c | 39 ++++++++++++++++ sysdeps/stub/sethostname.c | 40 ++++++++++++++++ sysdeps/stub/setitimer.c | 43 +++++++++++++++++ sysdeps/stub/setjmp.c | 42 +++++++++++++++++ sysdeps/stub/setlogin.c | 29 ++++++++++++ sysdeps/stub/setpgid.c | 35 ++++++++++++++ sysdeps/stub/setpriority.c | 40 ++++++++++++++++ sysdeps/stub/setregid.c | 35 ++++++++++++++ sysdeps/stub/setreuid.c | 35 ++++++++++++++ sysdeps/stub/setrlimit.c | 41 ++++++++++++++++ sysdeps/stub/setsid.c | 35 ++++++++++++++ sysdeps/stub/setsockopt.c | 42 +++++++++++++++++ sysdeps/stub/settimeofday.c | 34 ++++++++++++++ sysdeps/stub/setuid.c | 36 ++++++++++++++ sysdeps/stub/shutdown.c | 44 ++++++++++++++++++ sysdeps/stub/sigaction.c | 41 ++++++++++++++++ sysdeps/stub/sigaltstack.c | 31 +++++++++++++ sysdeps/stub/sigblock.c | 32 +++++++++++++ sysdeps/stub/sigcontext.h | 29 ++++++++++++ sysdeps/stub/sigintr.c | 32 +++++++++++++ sysdeps/stub/siglist.c | 43 +++++++++++++++++ sysdeps/stub/signal.c | 40 ++++++++++++++++ sysdeps/stub/signum.h | 53 +++++++++++++++++++++ sysdeps/stub/sigpause.c | 31 +++++++++++++ sysdeps/stub/sigpending.c | 39 ++++++++++++++++ sysdeps/stub/sigprocmask.c | 50 ++++++++++++++++++++ sysdeps/stub/sigreturn.c | 31 +++++++++++++ sysdeps/stub/sigsetmask.c | 31 +++++++++++++ sysdeps/stub/sigstack.c | 31 +++++++++++++ sysdeps/stub/sigsuspend.c | 40 ++++++++++++++++ sysdeps/stub/sigvec.c | 37 +++++++++++++++ sysdeps/stub/sin.c | 38 +++++++++++++++ sysdeps/stub/sinh.c | 38 +++++++++++++++ sysdeps/stub/sleep.c | 37 +++++++++++++++ sysdeps/stub/socket.c | 41 ++++++++++++++++ sysdeps/stub/socketpair.c | 42 +++++++++++++++++ sysdeps/stub/sqrt.c | 38 +++++++++++++++ sysdeps/stub/sstk.c | 29 ++++++++++++ sysdeps/stub/start.c | 16 +++++++ sysdeps/stub/stat.c | 39 ++++++++++++++++ sysdeps/stub/statbuf.h | 71 ++++++++++++++++++++++++++++ sysdeps/stub/stdio_init.c | 30 ++++++++++++ sysdeps/stub/stdio_lim.h | 6 +++ sysdeps/stub/stime.c | 37 +++++++++++++++ sysdeps/stub/strtsupp.c | 31 +++++++++++++ sysdeps/stub/stty.c | 37 +++++++++++++++ sysdeps/stub/swapon.c | 32 +++++++++++++ sysdeps/stub/symlink.c | 40 ++++++++++++++++ sysdeps/stub/sync.c | 38 +++++++++++++++ sysdeps/stub/sys/param.h | 8 ++++ sysdeps/stub/sys/reboot.h | 9 ++++ sysdeps/stub/syscall.c | 31 +++++++++++++ sysdeps/stub/syscall.h | 2 + sysdeps/stub/sysconf.c | 69 +++++++++++++++++++++++++++ sysdeps/stub/sysd-stdio.c | 111 ++++++++++++++++++++++++++++++++++++++++++++ sysdeps/stub/sysdep.c | 2 + sysdeps/stub/sysdep.h | 3 ++ sysdeps/stub/system.c | 42 +++++++++++++++++ sysdeps/stub/tan.c | 38 +++++++++++++++ sysdeps/stub/tanh.c | 38 +++++++++++++++ sysdeps/stub/tcdrain.c | 44 ++++++++++++++++++ sysdeps/stub/tcflow.c | 57 +++++++++++++++++++++++ sysdeps/stub/tcflush.c | 50 ++++++++++++++++++++ sysdeps/stub/tcgetattr.c | 45 ++++++++++++++++++ sysdeps/stub/tcgetpgrp.c | 45 ++++++++++++++++++ sysdeps/stub/tcsendbrk.c | 44 ++++++++++++++++++ sysdeps/stub/tcsetattr.c | 100 +++++++++++++++++++++++++++++++++++++++ sysdeps/stub/tcsetpgrp.c | 46 ++++++++++++++++++ sysdeps/stub/telldir.c | 46 ++++++++++++++++++ sysdeps/stub/tempname.c | 47 +++++++++++++++++++ sysdeps/stub/thread_state.h | 47 +++++++++++++++++++ sysdeps/stub/time.c | 43 +++++++++++++++++ sysdeps/stub/times.c | 42 +++++++++++++++++ sysdeps/stub/trampoline.c | 37 +++++++++++++++ sysdeps/stub/truncate.c | 30 ++++++++++++ sysdeps/stub/ttyname.c | 43 +++++++++++++++++ sysdeps/stub/ualarm.c | 33 +++++++++++++ sysdeps/stub/udiv_qrnnd.c | 10 ++++ sysdeps/stub/ulimit.c | 45 ++++++++++++++++++ sysdeps/stub/umask.c | 33 +++++++++++++ sysdeps/stub/unlink.c | 40 ++++++++++++++++ sysdeps/stub/usleep.c | 28 +++++++++++ sysdeps/stub/utime.c | 47 +++++++++++++++++++ sysdeps/stub/utimes.c | 40 ++++++++++++++++ sysdeps/stub/vhangup.c | 33 +++++++++++++ sysdeps/stub/wait.c | 33 +++++++++++++ sysdeps/stub/wait3.c | 44 ++++++++++++++++++ sysdeps/stub/wait4.c | 34 ++++++++++++++ sysdeps/stub/waitflags.h | 28 +++++++++++ sysdeps/stub/waitpid.c | 52 +++++++++++++++++++++ sysdeps/stub/write.c | 48 +++++++++++++++++++ sysdeps/stub/writev.c | 35 ++++++++++++++ 258 files changed, 9583 insertions(+) create mode 100644 sysdeps/stub/__longjmp.c create mode 100644 sysdeps/stub/__math.h create mode 100644 sysdeps/stub/_exit.c create mode 100644 sysdeps/stub/accept.c create mode 100644 sysdeps/stub/access.c create mode 100644 sysdeps/stub/acct.c create mode 100644 sysdeps/stub/acos.c create mode 100644 sysdeps/stub/adjtime.c create mode 100644 sysdeps/stub/alarm.c create mode 100644 sysdeps/stub/asin.c create mode 100644 sysdeps/stub/asm-syntax.h create mode 100644 sysdeps/stub/atan2.c create mode 100644 sysdeps/stub/bind.c create mode 100644 sysdeps/stub/brdinit.c create mode 100644 sysdeps/stub/brk.c create mode 100644 sysdeps/stub/bsd-_setjmp.c create mode 100644 sysdeps/stub/bsd-setjmp.c create mode 100644 sysdeps/stub/bytesex.h create mode 100644 sysdeps/stub/cbrt.c create mode 100644 sysdeps/stub/chdir.c create mode 100644 sysdeps/stub/chflags.c create mode 100644 sysdeps/stub/chmod.c create mode 100644 sysdeps/stub/chown.c create mode 100644 sysdeps/stub/chroot.c create mode 100644 sysdeps/stub/clock.c create mode 100644 sysdeps/stub/close.c create mode 100644 sysdeps/stub/closedir.c create mode 100644 sysdeps/stub/confstr.h create mode 100644 sysdeps/stub/connect.c create mode 100644 sysdeps/stub/console.c create mode 100644 sysdeps/stub/cos.c create mode 100644 sysdeps/stub/cosh.c create mode 100644 sysdeps/stub/ctermid.c create mode 100644 sysdeps/stub/cuserid.c create mode 100644 sysdeps/stub/dbl2mpn.c create mode 100644 sysdeps/stub/defs.c create mode 100644 sysdeps/stub/direct.h create mode 100644 sysdeps/stub/dirstream.h create mode 100644 sysdeps/stub/drem.c create mode 100644 sysdeps/stub/dup.c create mode 100644 sysdeps/stub/dup2.c create mode 100644 sysdeps/stub/errlist.c create mode 100644 sysdeps/stub/errnos.h create mode 100644 sysdeps/stub/exc2signal.c create mode 100644 sysdeps/stub/execve.c create mode 100644 sysdeps/stub/exp.c create mode 100644 sysdeps/stub/fchdir.c create mode 100644 sysdeps/stub/fchflags.c create mode 100644 sysdeps/stub/fchmod.c create mode 100644 sysdeps/stub/fchown.c create mode 100644 sysdeps/stub/fcntl.c create mode 100644 sysdeps/stub/fcntlbits.h create mode 100644 sysdeps/stub/fdopen.c create mode 100644 sysdeps/stub/fexecve.c create mode 100644 sysdeps/stub/flock.c create mode 100644 sysdeps/stub/fmod.c create mode 100644 sysdeps/stub/fork.c create mode 100644 sysdeps/stub/fpathconf.c create mode 100644 sysdeps/stub/frexp.c create mode 100644 sysdeps/stub/fstat.c create mode 100644 sysdeps/stub/fsync.c create mode 100644 sysdeps/stub/ftruncate.c create mode 100644 sysdeps/stub/getcwd.c create mode 100644 sysdeps/stub/getdents.c create mode 100644 sysdeps/stub/getdomain.c create mode 100644 sysdeps/stub/getdtsz.c create mode 100644 sysdeps/stub/getegid.c create mode 100644 sysdeps/stub/getenv.c create mode 100644 sysdeps/stub/geteuid.c create mode 100644 sysdeps/stub/getgid.c create mode 100644 sysdeps/stub/getgroups.c create mode 100644 sysdeps/stub/gethostid.c create mode 100644 sysdeps/stub/gethostname.c create mode 100644 sysdeps/stub/getitimer.c create mode 100644 sysdeps/stub/getlogin.c create mode 100644 sysdeps/stub/getpagesize.c create mode 100644 sysdeps/stub/getpeername.c create mode 100644 sysdeps/stub/getpgid.c create mode 100644 sysdeps/stub/getpid.c create mode 100644 sysdeps/stub/getppid.c create mode 100644 sysdeps/stub/getpriority.c create mode 100644 sysdeps/stub/getrlimit.c create mode 100644 sysdeps/stub/getrusage.c create mode 100644 sysdeps/stub/getsockname.c create mode 100644 sysdeps/stub/getsockopt.c create mode 100644 sysdeps/stub/gettimeofday.c create mode 100644 sysdeps/stub/getuid.c create mode 100644 sysdeps/stub/gtty.c create mode 100644 sysdeps/stub/huge_val.h create mode 100644 sysdeps/stub/init-fault.c create mode 100644 sysdeps/stub/init-posix.c create mode 100644 sysdeps/stub/ioctl.c create mode 100644 sysdeps/stub/ioctls.h create mode 100644 sysdeps/stub/isatty.c create mode 100644 sysdeps/stub/isinf.c create mode 100644 sysdeps/stub/isinfl.c create mode 100644 sysdeps/stub/isnanl.c create mode 100644 sysdeps/stub/jmp_buf.h create mode 100644 sysdeps/stub/kill.c create mode 100644 sysdeps/stub/killpg.c create mode 100644 sysdeps/stub/ldbl2mpn.c create mode 100644 sysdeps/stub/libc_fatal.c create mode 100644 sysdeps/stub/link.c create mode 100644 sysdeps/stub/listen.c create mode 100644 sysdeps/stub/local_lim.h create mode 100644 sysdeps/stub/log.c create mode 100644 sysdeps/stub/log10.c create mode 100644 sysdeps/stub/logb.c create mode 100644 sysdeps/stub/longjmp-ctx.c create mode 100644 sysdeps/stub/longjmp-ts.c create mode 100644 sysdeps/stub/lseek.c create mode 100644 sysdeps/stub/lstat.c create mode 100644 sysdeps/stub/machine-lock.h create mode 100644 sysdeps/stub/machine-sp.h create mode 100644 sysdeps/stub/madvise.c create mode 100644 sysdeps/stub/mkdir.c create mode 100644 sysdeps/stub/mkfifo.c create mode 100644 sysdeps/stub/mknod.c create mode 100644 sysdeps/stub/mkstemp.c create mode 100644 sysdeps/stub/mktemp.c create mode 100644 sysdeps/stub/mmap.c create mode 100644 sysdeps/stub/morecore.c create mode 100644 sysdeps/stub/mpn2dbl.c create mode 100644 sysdeps/stub/mpn2flt.c create mode 100644 sysdeps/stub/mpn2ldbl.c create mode 100644 sysdeps/stub/mprotect.c create mode 100644 sysdeps/stub/msync.c create mode 100644 sysdeps/stub/munmap.c create mode 100644 sysdeps/stub/nan.h create mode 100644 sysdeps/stub/nice.c create mode 100644 sysdeps/stub/nlist.c create mode 100644 sysdeps/stub/open.c create mode 100644 sysdeps/stub/opendir.c create mode 100644 sysdeps/stub/pathconf.c create mode 100644 sysdeps/stub/pause.c create mode 100644 sysdeps/stub/pipe.c create mode 100644 sysdeps/stub/pipestream.c create mode 100644 sysdeps/stub/poll.c create mode 100644 sysdeps/stub/posix_opt.h create mode 100644 sysdeps/stub/ptrace.c create mode 100644 sysdeps/stub/putenv.c create mode 100644 sysdeps/stub/raise.c create mode 100644 sysdeps/stub/read.c create mode 100644 sysdeps/stub/readdir.c create mode 100644 sysdeps/stub/readlink.c create mode 100644 sysdeps/stub/readv.c create mode 100644 sysdeps/stub/reboot.c create mode 100644 sysdeps/stub/recv.c create mode 100644 sysdeps/stub/recvfrom.c create mode 100644 sysdeps/stub/recvmsg.c create mode 100644 sysdeps/stub/remove.c create mode 100644 sysdeps/stub/rename.c create mode 100644 sysdeps/stub/rewinddir.c create mode 100644 sysdeps/stub/rmdir.c create mode 100644 sysdeps/stub/sbrk.c create mode 100644 sysdeps/stub/seekdir.c create mode 100644 sysdeps/stub/select.c create mode 100644 sysdeps/stub/send.c create mode 100644 sysdeps/stub/sendmsg.c create mode 100644 sysdeps/stub/sendto.c create mode 100644 sysdeps/stub/setdomain.c create mode 100644 sysdeps/stub/setegid.c create mode 100644 sysdeps/stub/setenv.c create mode 100644 sysdeps/stub/seteuid.c create mode 100644 sysdeps/stub/setgid.c create mode 100644 sysdeps/stub/setgroups.c create mode 100644 sysdeps/stub/sethostid.c create mode 100644 sysdeps/stub/sethostname.c create mode 100644 sysdeps/stub/setitimer.c create mode 100644 sysdeps/stub/setjmp.c create mode 100644 sysdeps/stub/setlogin.c create mode 100644 sysdeps/stub/setpgid.c create mode 100644 sysdeps/stub/setpriority.c create mode 100644 sysdeps/stub/setregid.c create mode 100644 sysdeps/stub/setreuid.c create mode 100644 sysdeps/stub/setrlimit.c create mode 100644 sysdeps/stub/setsid.c create mode 100644 sysdeps/stub/setsockopt.c create mode 100644 sysdeps/stub/settimeofday.c create mode 100644 sysdeps/stub/setuid.c create mode 100644 sysdeps/stub/shutdown.c create mode 100644 sysdeps/stub/sigaction.c create mode 100644 sysdeps/stub/sigaltstack.c create mode 100644 sysdeps/stub/sigblock.c create mode 100644 sysdeps/stub/sigcontext.h create mode 100644 sysdeps/stub/sigintr.c create mode 100644 sysdeps/stub/siglist.c create mode 100644 sysdeps/stub/signal.c create mode 100644 sysdeps/stub/signum.h create mode 100644 sysdeps/stub/sigpause.c create mode 100644 sysdeps/stub/sigpending.c create mode 100644 sysdeps/stub/sigprocmask.c create mode 100644 sysdeps/stub/sigreturn.c create mode 100644 sysdeps/stub/sigsetmask.c create mode 100644 sysdeps/stub/sigstack.c create mode 100644 sysdeps/stub/sigsuspend.c create mode 100644 sysdeps/stub/sigvec.c create mode 100644 sysdeps/stub/sin.c create mode 100644 sysdeps/stub/sinh.c create mode 100644 sysdeps/stub/sleep.c create mode 100644 sysdeps/stub/socket.c create mode 100644 sysdeps/stub/socketpair.c create mode 100644 sysdeps/stub/sqrt.c create mode 100644 sysdeps/stub/sstk.c create mode 100644 sysdeps/stub/start.c create mode 100644 sysdeps/stub/stat.c create mode 100644 sysdeps/stub/statbuf.h create mode 100644 sysdeps/stub/stdio_init.c create mode 100644 sysdeps/stub/stdio_lim.h create mode 100644 sysdeps/stub/stime.c create mode 100644 sysdeps/stub/strtsupp.c create mode 100644 sysdeps/stub/stty.c create mode 100644 sysdeps/stub/swapon.c create mode 100644 sysdeps/stub/symlink.c create mode 100644 sysdeps/stub/sync.c create mode 100644 sysdeps/stub/sys/param.h create mode 100644 sysdeps/stub/sys/reboot.h create mode 100644 sysdeps/stub/syscall.c create mode 100644 sysdeps/stub/syscall.h create mode 100644 sysdeps/stub/sysconf.c create mode 100644 sysdeps/stub/sysd-stdio.c create mode 100644 sysdeps/stub/sysdep.c create mode 100644 sysdeps/stub/sysdep.h create mode 100644 sysdeps/stub/system.c create mode 100644 sysdeps/stub/tan.c create mode 100644 sysdeps/stub/tanh.c create mode 100644 sysdeps/stub/tcdrain.c create mode 100644 sysdeps/stub/tcflow.c create mode 100644 sysdeps/stub/tcflush.c create mode 100644 sysdeps/stub/tcgetattr.c create mode 100644 sysdeps/stub/tcgetpgrp.c create mode 100644 sysdeps/stub/tcsendbrk.c create mode 100644 sysdeps/stub/tcsetattr.c create mode 100644 sysdeps/stub/tcsetpgrp.c create mode 100644 sysdeps/stub/telldir.c create mode 100644 sysdeps/stub/tempname.c create mode 100644 sysdeps/stub/thread_state.h create mode 100644 sysdeps/stub/time.c create mode 100644 sysdeps/stub/times.c create mode 100644 sysdeps/stub/trampoline.c create mode 100644 sysdeps/stub/truncate.c create mode 100644 sysdeps/stub/ttyname.c create mode 100644 sysdeps/stub/ualarm.c create mode 100644 sysdeps/stub/udiv_qrnnd.c create mode 100644 sysdeps/stub/ulimit.c create mode 100644 sysdeps/stub/umask.c create mode 100644 sysdeps/stub/unlink.c create mode 100644 sysdeps/stub/usleep.c create mode 100644 sysdeps/stub/utime.c create mode 100644 sysdeps/stub/utimes.c create mode 100644 sysdeps/stub/vhangup.c create mode 100644 sysdeps/stub/wait.c create mode 100644 sysdeps/stub/wait3.c create mode 100644 sysdeps/stub/wait4.c create mode 100644 sysdeps/stub/waitflags.h create mode 100644 sysdeps/stub/waitpid.c create mode 100644 sysdeps/stub/write.c create mode 100644 sysdeps/stub/writev.c (limited to 'sysdeps/stub') diff --git a/sysdeps/stub/__longjmp.c b/sysdeps/stub/__longjmp.c new file mode 100644 index 0000000000..3cc4c4b5a0 --- /dev/null +++ b/sysdeps/stub/__longjmp.c @@ -0,0 +1,44 @@ +/* Copyright (C) 1991, 1994 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + + +/* Jump to the position specified by ENV, causing the + setjmp call there to return VAL, or 1 if VAL is 0. */ +__NORETURN +void +DEFUN(__longjmp, (env, val), CONST __jmp_buf env AND int val) +{ + if (val == 0) + val = 1; + + errno = ENOSYS; + /* No way to signal failure. */ +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(longjmp); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/__math.h b/sysdeps/stub/__math.h new file mode 100644 index 0000000000..8159c89b94 --- /dev/null +++ b/sysdeps/stub/__math.h @@ -0,0 +1,6 @@ +/* This file should provide inline versions of math functions. + + Surround GCC-specific parts with #ifdef __GNUC__, and use `extern __inline'. + + This file should define __MATH_INLINES if functions are actually defined as + inlines. */ diff --git a/sysdeps/stub/_exit.c b/sysdeps/stub/_exit.c new file mode 100644 index 0000000000..d72a430150 --- /dev/null +++ b/sysdeps/stub/_exit.c @@ -0,0 +1,40 @@ +/* Copyright (C) 1991, 1994 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* The function `_exit' should take a status argument and simply + terminate program execution, using the low-order 8 bits of the + given integer as status. */ +__NORETURN void +DEFUN(_exit, (status), int status) +{ + status &= 0xff; + abort (); +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(_exit); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/accept.c b/sysdeps/stub/accept.c new file mode 100644 index 0000000000..d3a30c2844 --- /dev/null +++ b/sysdeps/stub/accept.c @@ -0,0 +1,43 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Await a connection on socket FD. + When a connection arrives, open a new socket to communicate with it, + set *ADDR (which is *ADDR_LEN bytes long) to the address of the connecting + peer and *ADDR_LEN to the address's actual length, and return the + new socket's descriptor, or -1 for errors. */ +int +DEFUN(accept, (fd, addr, addr_len), + int fd AND struct sockaddr *addr AND size_t *addr_len) +{ + errno = ENOSYS; + return -1; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(accept); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/access.c b/sysdeps/stub/access.c new file mode 100644 index 0000000000..06ddbb5c12 --- /dev/null +++ b/sysdeps/stub/access.c @@ -0,0 +1,39 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include + +/* Test for access to FILE. */ +int +DEFUN(__access, (file, type), CONST char *file AND int type) +{ + if (file == NULL || (type & ~(R_OK|W_OK|X_OK|F_OK)) != 0) + { + errno = EINVAL; + return(-1); + } + + errno = ENOSYS; + return(-1); +} +stub_warning (access) + +weak_alias (__access, access) diff --git a/sysdeps/stub/acct.c b/sysdeps/stub/acct.c new file mode 100644 index 0000000000..1b547f3ec4 --- /dev/null +++ b/sysdeps/stub/acct.c @@ -0,0 +1,33 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Turn accounting on if NAME is an existing file. The system will then write + a record for each process as it terminates, to this file. If NAME is NULL, + turn accounting off. This call is restricted to the super-user. */ +int +DEFUN(acct, (name), CONST char *name) +{ + errno = ENOSYS; + return -1; +} + +stub_warning (acct) diff --git a/sysdeps/stub/acos.c b/sysdeps/stub/acos.c new file mode 100644 index 0000000000..2ba05b5573 --- /dev/null +++ b/sysdeps/stub/acos.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Return the inverse cosine of X. */ +double +DEFUN(acos, (x), double x) +{ + errno = ENOSYS; + return 0.0; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(acos); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/adjtime.c b/sysdeps/stub/adjtime.c new file mode 100644 index 0000000000..933e2ef7a3 --- /dev/null +++ b/sysdeps/stub/adjtime.c @@ -0,0 +1,37 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Adjust the current time of day by the amount in DELTA. + If OLDDELTA is not NULL, it is filled in with the amount + of time adjustment remaining to be done from the last `__adjtime' call. + This call is restricted to the super-user. */ +int +DEFUN(__adjtime, (delta, olddelta), + CONST struct timeval *delta AND + struct timeval *olddelta) +{ + errno = ENOSYS; + return -1; +} +stub_warning (adjtime) + +weak_alias (__adjtime, adjtime) diff --git a/sysdeps/stub/alarm.c b/sysdeps/stub/alarm.c new file mode 100644 index 0000000000..861d624a03 --- /dev/null +++ b/sysdeps/stub/alarm.c @@ -0,0 +1,44 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Schedule an alarm. In SECONDS seconds, the process will get a SIGALRM. + If SECONDS is zero, any currently scheduled alarm will be cancelled. + The function returns the number of seconds remaining until the last + alarm scheduled would have signaled, or zero if there wasn't one. + There is no return value to indicate an error, but you can set `errno' + to 0 and check its value after calling `alarm', and this might tell you. + The signal may come late due to processor scheduling. */ +unsigned int +DEFUN(alarm, (seconds), unsigned int seconds) +{ + errno = ENOSYS; + return 0; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(alarm); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/asin.c b/sysdeps/stub/asin.c new file mode 100644 index 0000000000..e645d48640 --- /dev/null +++ b/sysdeps/stub/asin.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Return the inverse sine of X. */ +double +DEFUN(asin, (x), double x) +{ + errno = ENOSYS; + return 0.0; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(asin); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/asm-syntax.h b/sysdeps/stub/asm-syntax.h new file mode 100644 index 0000000000..a36150984f --- /dev/null +++ b/sysdeps/stub/asm-syntax.h @@ -0,0 +1,3 @@ +/* On some machines the mpn function from GNU MP use a file called + "asm-syntax.h" to define macros for assembly source code to use. */ + diff --git a/sysdeps/stub/atan2.c b/sysdeps/stub/atan2.c new file mode 100644 index 0000000000..c6ed43f625 --- /dev/null +++ b/sysdeps/stub/atan2.c @@ -0,0 +1,37 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include + +/* Return the inverse tangent of Y/X. */ +double +DEFUN(atan2, (y, x), double y AND double x) +{ + errno = ENOSYS; + return 0.0; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(atan2); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/bind.c b/sysdeps/stub/bind.c new file mode 100644 index 0000000000..8ee50234a4 --- /dev/null +++ b/sysdeps/stub/bind.c @@ -0,0 +1,39 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Give the socket FD the local address ADDR (which is LEN bytes long). */ +int +DEFUN(bind, (fd, addr, len), + int fd AND struct sockaddr *addr AND size_t len) +{ + errno = ENOSYS; + return -1; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(bind); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/brdinit.c b/sysdeps/stub/brdinit.c new file mode 100644 index 0000000000..50c92877f9 --- /dev/null +++ b/sysdeps/stub/brdinit.c @@ -0,0 +1,34 @@ +/* Copyright (C) 1994 Free Software Foundation, Inc. + Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil), + On-Line Applications Research Corporation. + +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include + +/* This file is only required when a "bare" board is configured. */ + +/* _Board_Initialize + +This routine normally performs board specific initialization. */ + +void +DEFUN_VOID(_Board_Initialize) +{ +} diff --git a/sysdeps/stub/brk.c b/sysdeps/stub/brk.c new file mode 100644 index 0000000000..3a48ea2e17 --- /dev/null +++ b/sysdeps/stub/brk.c @@ -0,0 +1,32 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include + +/* Set the end of the process's data space to ADDR. + Return 0 if successful, -1 if not. */ +int +DEFUN(__brk, (addr), PTR addr) +{ + errno = ENOSYS; + return -1; +} +stub_warning (brk) + +weak_alias (__brk, brk) diff --git a/sysdeps/stub/bsd-_setjmp.c b/sysdeps/stub/bsd-_setjmp.c new file mode 100644 index 0000000000..afb4908dd6 --- /dev/null +++ b/sysdeps/stub/bsd-_setjmp.c @@ -0,0 +1,33 @@ +/* BSD `setjmp' entry point to `sigsetjmp (..., 0)'. Stub version. +Copyright (C) 1994 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include + +#undef setjmp + +/* This implementation in C will not usually work, because the call + really needs to be a tail-call so __sigsetjmp saves the state of + the caller, not the state of this `setjmp' frame which then + immediate unwinds. */ + +int +setjmp (jmp_buf env) +{ + return __sigsetjmp (env, 0); +} diff --git a/sysdeps/stub/bsd-setjmp.c b/sysdeps/stub/bsd-setjmp.c new file mode 100644 index 0000000000..80ff8b163f --- /dev/null +++ b/sysdeps/stub/bsd-setjmp.c @@ -0,0 +1,33 @@ +/* BSD `setjmp' entry point to `sigsetjmp (..., 1)'. Stub version. +Copyright (C) 1994 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include + +#undef setjmp + +/* This implementation in C will not usually work, because the call + really needs to be a tail-call so __sigsetjmp saves the state of + the caller, not the state of this `setjmp' frame which then + immediate unwinds. */ + +int +setjmp (jmp_buf env) +{ + return __sigsetjmp (env, 1); +} diff --git a/sysdeps/stub/bytesex.h b/sysdeps/stub/bytesex.h new file mode 100644 index 0000000000..238a082bad --- /dev/null +++ b/sysdeps/stub/bytesex.h @@ -0,0 +1,9 @@ +/* This file should define __BYTE_ORDER as appropriate for the machine + in question. See string/endian.h for how to define it. + + If only the stub bytesex.h applies to a particular configuration, + bytesex.h is generated by running a program on the host machine. + So if cross-compiling to a machine with a different byte order, + the bytesex.h file for that machine must exist. */ + +#error Machine byte order unknown. diff --git a/sysdeps/stub/cbrt.c b/sysdeps/stub/cbrt.c new file mode 100644 index 0000000000..8835bead9b --- /dev/null +++ b/sysdeps/stub/cbrt.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1992 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Return the cube root of X. */ +double +DEFUN(cbrt, (x), double x) +{ + errno = ENOSYS; + return 0.0; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(cbrt); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/chdir.c b/sysdeps/stub/chdir.c new file mode 100644 index 0000000000..f73c98142a --- /dev/null +++ b/sysdeps/stub/chdir.c @@ -0,0 +1,39 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include + +/* Change the current directory to PATH. */ +int +DEFUN(__chdir, (path), CONST char *path) +{ + if (path == NULL) + { + errno = EINVAL; + return(-1); + } + + errno = ENOSYS; + return(-1); +} +stub_warning (chdir) + +weak_alias (__chdir, chdir) diff --git a/sysdeps/stub/chflags.c b/sysdeps/stub/chflags.c new file mode 100644 index 0000000000..a906e1b323 --- /dev/null +++ b/sysdeps/stub/chflags.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include + +/* Change the flags of FILE to FLAGS. */ +int +DEFUN(chflags, (file, flags), CONST char *file AND int flags) +{ + if (file == NULL) + { + errno = EINVAL; + return -1; + } + + errno = ENOSYS; + return -1; +} + +stub_warning (chflags) diff --git a/sysdeps/stub/chmod.c b/sysdeps/stub/chmod.c new file mode 100644 index 0000000000..3259d3e121 --- /dev/null +++ b/sysdeps/stub/chmod.c @@ -0,0 +1,40 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include +#include + +/* Change the protections of FILE to MODE. */ +int +DEFUN(__chmod, (file, mode), CONST char *file AND mode_t mode) +{ + if (file == NULL) + { + errno = EINVAL; + return -1; + } + + errno = ENOSYS; + return -1; +} +stub_warning (chmod) + +weak_alias (__chmod, chmod) diff --git a/sysdeps/stub/chown.c b/sysdeps/stub/chown.c new file mode 100644 index 0000000000..e9db1ed86f --- /dev/null +++ b/sysdeps/stub/chown.c @@ -0,0 +1,41 @@ +/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include +#include + +/* Change the owner and group of FILE. */ +int +DEFUN(__chown, (file, owner, group), + CONST char *file AND uid_t owner AND gid_t group) +{ + if (file == NULL) + { + errno = EINVAL; + return -1; + } + + errno = ENOSYS; + return -1; +} +stub_warning (chown) + +weak_alias (__chown, chown) diff --git a/sysdeps/stub/chroot.c b/sysdeps/stub/chroot.c new file mode 100644 index 0000000000..637784accd --- /dev/null +++ b/sysdeps/stub/chroot.c @@ -0,0 +1,39 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Make PATH be the root directory (the starting point for absolute paths). + This call is restricted to the super-user. */ +int +DEFUN(chroot, (path), CONST char *path) +{ + errno = ENOSYS; + return -1; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(chroot); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/clock.c b/sysdeps/stub/clock.c new file mode 100644 index 0000000000..151022db4e --- /dev/null +++ b/sysdeps/stub/clock.c @@ -0,0 +1,30 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include + +/* Return the time used by the program so far (user time + system time). */ +clock_t +DEFUN_VOID(clock) +{ + errno = ENOSYS; + return (clock_t) -1; +} diff --git a/sysdeps/stub/close.c b/sysdeps/stub/close.c new file mode 100644 index 0000000000..efa80a708d --- /dev/null +++ b/sysdeps/stub/close.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Close the file descriptor FD. */ +int +DEFUN(__close, (fd), int fd) +{ + if (fd < 0) + { + errno = EBADF; + return -1; + } + + errno = ENOSYS; + return -1; +} +stub_warning (close) + +weak_alias (__close, close) diff --git a/sysdeps/stub/closedir.c b/sysdeps/stub/closedir.c new file mode 100644 index 0000000000..4595d47ecb --- /dev/null +++ b/sysdeps/stub/closedir.c @@ -0,0 +1,41 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include +#include + + +/* Close the directory stream DIRP. + Return 0 if successful, -1 if not. */ +int +DEFUN(closedir, (dirp), DIR *dirp) +{ + errno = ENOSYS; + return(-1); +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(closedir); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/confstr.h b/sysdeps/stub/confstr.h new file mode 100644 index 0000000000..988ec88c0c --- /dev/null +++ b/sysdeps/stub/confstr.h @@ -0,0 +1,4 @@ +/* This file should define values for the strings returned by `confstr'. + If _NAME is passed to `confstr', define NAME. */ + +#define CS_PATH "" diff --git a/sysdeps/stub/connect.c b/sysdeps/stub/connect.c new file mode 100644 index 0000000000..5fae8dd23a --- /dev/null +++ b/sysdeps/stub/connect.c @@ -0,0 +1,42 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Open a connection on socket FD to peer at ADDR (which LEN bytes long). + For connectionless socket types, just set the default address to send to + and the only address from which to accept transmissions. + Return 0 on success, -1 for errors. */ +int +DEFUN(connect, (fd, addr, len), + int fd AND struct sockaddr *addr AND size_t len) +{ + errno = ENOSYS; + return -1; +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(connect); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/console.c b/sysdeps/stub/console.c new file mode 100644 index 0000000000..ca556110b5 --- /dev/null +++ b/sysdeps/stub/console.c @@ -0,0 +1,42 @@ +/* Copyright (C) 1994 Free Software Foundation, Inc. + Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil), + On-Line Applications Research Corporation. + +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include + +/* This file is only required when a "bare" board is configured. */ + +/* These routines provide console IO routines for your embedded target. */ + +int +DEFUN( _Console_Putc, (ch), char ch ) +{ + /* eat the character */ + + return( 0 ); +} + +int +DEFUN( _Console_Getc, (poll), int poll ) +{ + /* boring user, never types anything */ + return -1; +} diff --git a/sysdeps/stub/cos.c b/sysdeps/stub/cos.c new file mode 100644 index 0000000000..675855ce56 --- /dev/null +++ b/sysdeps/stub/cos.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +/* Return the cosine of X. */ +double +DEFUN(cos, (x), double x) +{ + errno = ENOSYS; + return(0.0); +} + + +#ifdef HAVE_GNU_LD + +#include + +stub_warning(cos); + +#endif /* GNU stabs. */ diff --git a/sysdeps/stub/cosh.c b/sysdeps/stub/cosh.c new file mode 100644 index 0000000000..ce1a0e241d --- /dev/null +++ b/sysdeps/stub/cosh.c @@ -0,0 +1,38 @@ +/* Copyright (C) 1991 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include