Alexandre Oliva
fe638fda3c
* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
...
into high and low halves on n64.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2003-03-20 20:58:02 +00:00
Alexandre Oliva
a8a1e840a1
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
...
with a single instruction.
2003-03-20 07:54:56 +00:00
Alexandre Oliva
be1222911f
* sysdeps/mips/mips64/Implies: Move wordsize-64 to...
...
* sysdeps/mips/mips64/n64/Implies: New file.
* sysdeps/mips/mips64/n64/Makefile: New file.
* sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
* sysdeps/mips/mips64/n32/Implies: New file.
* sysdeps/mips/mips64/n32/Makefile: New file.
* sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
* sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
* sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2003-03-17 16:20:44 +00:00
Alexandre Oliva
d5510eee99
* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
...
lib64 for mips64/n64 and lib32 for mips64/n32.
(ldd_rewrite_script): Needed for all mips64 configurations.
* sysdeps/unix/sysv/linux/configure: Rebuilt.
* sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
* sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2003-03-17 15:57:19 +00:00
Alexandre Oliva
bb4002d601
* sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
...
asm/unistd.h into asm-unistd.h.
* sysdeps/unix/sysv/linux/mips/configure: Generated.
* sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
of syscall list.
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
* sysdeps/unix/sysv/linux/mips/clone.S: Don't include
asm/unistd.h.
2003-03-17 15:50:05 +00:00
Alexandre Oliva
77f047e8a4
* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
...
* sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
long type for registers on n32.
2003-03-17 15:48:52 +00:00
Alexandre Oliva
ca2b264c24
* sysdeps/mips/bits/wordsize.h: New file, appropriate for all
...
3 ABIs.
* sysdeps/mips/mips64/gmp-mparam.h: New file. Define
BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
* sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
(__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
* sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
* sysdeps/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
* sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
* sysdeps/mips/mips64/setjmp.S: Likewise.
* sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
* sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
64-bit types.
2003-03-17 15:47:13 +00:00
Alexandre Oliva
d2e29db722
* sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
2003-03-14 07:52:05 +00:00
Alexandre Oliva
ab35974e21
* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
...
(_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
restore_rt functions. Use them.
2003-03-14 07:49:05 +00:00
Alexandre Oliva
1dd24665be
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
...
.set mips2 on new abis.
2003-03-14 07:03:36 +00:00
Roland McGrath
3e9a97580a
2003-03-13 Alexandre Oliva <aoliva@redhat.com>
...
* sysdeps/mips/add_n.S: Use L macro for local labels.
* sysdeps/mips/addmul_1.S: Likewise.
* sysdeps/mips/lshift.S: Likewise.
* sysdeps/mips/memcpy.S: Likewise.
* sysdeps/mips/memset.S: Likewise.
* sysdeps/mips/mul_1.S: Likewise.
* sysdeps/mips/rshift.S: Likewise.
* sysdeps/mips/sub_n.S: Likewise.
* sysdeps/mips/submul_1.S: Likewise.
* sysdeps/mips/mips64/add_n.S: Likewise.
* sysdeps/mips/mips64/addmul_1.S: Likewise.
* sysdeps/mips/mips64/lshift.S: Likewise.
* sysdeps/mips/mips64/mul_1.S: Likewise.
* sysdeps/mips/mips64/rshift.S: Likewise.
* sysdeps/mips/mips64/sub_n.S: Likewise.
* sysdeps/mips/mips64/submul_1.S: Likewise.
* sysdeps/unix/mips/sysdep.h: Define L() according to ABI
conventions. Define END as in sys/asm.h.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/mips/wait.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2003-03-14 03:59:37 +00:00
Andreas Jaeger
28a8f69901
Introduce and use local
...
label .Lthread_start since current binutils don't allow branches
to globally visible symbols.
2003-03-13 15:07:13 +00:00
Ulrich Drepper
ced89ec318
(__thread_start): Use jal instead of jalr to invoke subroutine so
...
restoring the $gp register will work properly.
2003-03-12 01:04:51 +00:00
Andreas Jaeger
3347c3ad39
2003-03-04 Guido Guenther <agx@sigxcpu.org>
...
* sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
stubs, we have INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
MAP_NONBLOCK.
2003-03-07 09:46:33 +00:00
Ulrich Drepper
aca56a7fa5
Define MAP_POPULATE and MAP_NONBLOCK.
2003-03-03 09:58:55 +00:00
Ulrich Drepper
2b6aa9b399
(init_iosys): Yield ENODEV on unknown systems.
2003-02-20 22:22:35 +00:00
Ulrich Drepper
114e7d5005
(INLINE_SYSCALL): Add missing arguments to INTERNAL_SYSCALL_ERROR_P and
...
INTERNAL_SYSCALL_ERRNO.
2003-02-20 20:22:20 +00:00
Andreas Schwab
e96c2b656b
Add MADV_* and POSIX_MADV_* constants.
2003-02-20 13:23:24 +00:00
Ulrich Drepper
28445fd3b2
Add posix_fadvise64 syscall.
2003-02-05 23:29:25 +00:00
Ulrich Drepper
94b1e5e52f
Remove __GI_* aliases, already added by make-syscalls.sh.
2003-01-31 03:40:10 +00:00
Ulrich Drepper
c25d936b99
(SYSCALL_ERROR_LABEL): Define.
2003-01-27 20:15:03 +00:00
Ulrich Drepper
ca0eea4226
Add support for cancellation handling and handle both __NR_pwrite64 and
...
__NR_pwrite.
2003-01-27 19:01:03 +00:00
Ulrich Drepper
8c5a1c7889
Add support for cancellation handling and handle both __NR_pread64 and
...
__NR_pread.
2003-01-27 19:00:40 +00:00
Roland McGrath
3de1f4af04
2003-01-21 Jakub Jelinek <jakub@redhat.com>
...
* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
inline_syscall1, inline_syscall2, inline_syscall3,
inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
__attribute__((unused)) to ChEcK.
2003-01-22 02:07:54 +00:00
Ulrich Drepper
0aced2c569
(__vfork): Conditionally branch to __fork even if __NR_vfork is not defined.
2003-01-15 01:06:06 +00:00
Ulrich Drepper
9da3df1021
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
...
INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2003-01-15 01:02:03 +00:00
Ulrich Drepper
411c121bce
Move inline syscall bits to sysdeps/unix/alpha/sysdep.h.
2003-01-12 19:23:41 +00:00
Ulrich Drepper
f5e2ab0edb
vfork implementation for LinuxThreads/Arm.
2003-01-12 09:16:06 +00:00
Ulrich Drepper
e62ed29b3b
(PSEUDO_RET): Correctly unstack lr.
...
(UNDOARGS_5): Fix ordering of pushes and pops.
(SINGLE_THREAD_P_PIC): New.
(SINGLE_THREAD_P_INT): Likewise.
(SINGLE_THREAD_P): Implement in terms of above. Restore lr if it was stacked.
(PSEUDO): Use SINGLE_THREAD_P_INT.
2003-01-12 09:14:25 +00:00
Ulrich Drepper
191cbebf58
Add cancellation support.
2003-01-12 09:06:28 +00:00
Andreas Schwab
c7aa3cacfc
GET_NPROCS_PARSER for m68k.
2003-01-10 15:36:20 +00:00
Andreas Schwab
2eb7464224
Optimize for kernels which are known to have the vfork syscall.
2003-01-10 14:05:26 +00:00
Ulrich Drepper
aeeec7fb5e
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
...
Add err argument.
(INTERNAL_SYSCALL_DECL): Define.
2003-01-09 04:09:26 +00:00
Ulrich Drepper
51c050b0f7
Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
2003-01-09 04:06:05 +00:00
Ulrich Drepper
c05bc2ca7b
(__socket): Use SYSCALL_ERROR in place of __syscall_error.
2003-01-08 00:15:33 +00:00
Ulrich Drepper
2f0910ca96
(PSEUDO): Remove .type directive.
...
(PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
(SYSCALL_ERROR): New.
(SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
handling code.
(INTERNAL_SYSCALL): Define.
(INLINE_SYSCALL): Use it.
(INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2003-01-08 00:15:07 +00:00
Ulrich Drepper
b8cce412d2
(ntp_adjtime): New weak alias.
2003-01-07 23:51:48 +00:00
Ulrich Drepper
2e2b5f5622
Add cancellation handling.
2003-01-07 00:48:34 +00:00
Ulrich Drepper
ddf42be0e2
Syscall cancellation handling for Arm.
2003-01-07 00:39:17 +00:00
Ulrich Drepper
d45a8f827e
(inline_syscall_r0_constraint): Rename to...
...
(inline_syscall_r0_out_constraint): ... this. Add =.
(inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2003-01-06 23:52:06 +00:00
Andreas Schwab
2bf8a54e87
Add nanosecond fields.
2003-01-04 22:51:16 +00:00
Ulrich Drepper
d0a6689abf
(inline_syscall_r0_asm): New.
...
(inline_syscall_r0_constraint): New.
(inline_syscall[0-6]): Use them.
2003-01-03 21:59:45 +00:00
Ulrich Drepper
eb22472e6f
(__sigaction, sigaction): Protect weak_alias and libc_hidden_weak with
...
#ifndef LIBC_SIGACTION.
2003-01-03 00:42:10 +00:00
Ulrich Drepper
7de021d588
(__GI_accept): New alias to accept.
2002-12-31 20:44:02 +00:00
Ulrich Drepper
40efe6690b
(accept): Add libc_hidden_def.
2002-12-31 20:41:23 +00:00
Ulrich Drepper
ff1d023da3
(__lseek): Add libc_hidden_def.
2002-12-31 20:40:18 +00:00
Ulrich Drepper
db16023193
Use libc_hidden_def(name) instead of strong_alias (name, __GI_name).
2002-12-31 20:37:32 +00:00
Andreas Jaeger
7922283928
* sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
...
with Linux kernel.
* sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
* sysdeps/unix/sysv/linux/kernel_stat.h
(_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Readd
__unused[1-3] since they're needed by some platforms. Handle
_HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
for structs stat and stat64.
* sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2002-12-31 13:24:33 +00:00
Ulrich Drepper
c505de0a40
Add __GI___vfork alias.
2002-12-31 11:10:33 +00:00
Ulrich Drepper
7a077bd196
Add libc_hidden_def for __fork.
2002-12-31 11:05:04 +00:00