mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Moved vax files to ports repository
2004-10-23 Roland McGrath <roland@frob.com> * sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed. These are now in the ports repository.
This commit is contained in:
@ -1,47 +0,0 @@
|
||||
/* Copyright (C) 1991, 1995, 1997 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
#ifndef SYS_brk
|
||||
#define SYS_brk 17
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GNU_LD
|
||||
#define __end _end
|
||||
#endif
|
||||
|
||||
.data
|
||||
.globl ___curbrk
|
||||
___curbrk:
|
||||
.long __end
|
||||
|
||||
.text
|
||||
ENTRY (__brk)
|
||||
cmpl 4(ap), __end
|
||||
bgeq 0f
|
||||
movl __env, 4(ap)
|
||||
0: chmk $SYS_brk
|
||||
bcs 1f
|
||||
movl 4(ap), ___curbrk
|
||||
clrl r0
|
||||
ret
|
||||
1:
|
||||
jmp syscall_error
|
||||
|
||||
weak_alias (__brk, brk)
|
@ -1 +0,0 @@
|
||||
#include <brk.S>
|
@ -1,29 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997, 2002 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
SYSCALL__ (pipe, 1)
|
||||
movl 4(ap), r2
|
||||
movl r0, (r2)+
|
||||
movl r1, (r2)
|
||||
clrl r0
|
||||
ret
|
||||
|
||||
libc_hidden_def (__pipe)
|
||||
weak_alias (__pipe, pipe)
|
@ -1,35 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1993, 1994, 1997 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#define _ERRNO_H
|
||||
#include <bits/errno.h>
|
||||
|
||||
.globl _errno
|
||||
.globl syscall_error
|
||||
syscall_error:
|
||||
#if defined (EWOULDBLOCK_sys) && EWOULDBLOCK_sys != EAGAIN
|
||||
/* We translate the system's EWOULDBLOCK error into EAGAIN.
|
||||
The GNU C library always defines EWOULDBLOCK==EAGAIN.
|
||||
EWOULDBLOCK_sys is the original number. */
|
||||
cmpl r0, $EWOULDBLOCK_sys
|
||||
bne 0f
|
||||
movl $EAGAIN, r0
|
||||
#endif
|
||||
0: movl r0, _errno
|
||||
mnegl $1, r0
|
||||
ret
|
@ -1,55 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdeps/unix/sysdep.h>
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ENTRY(name) \
|
||||
.globl _##name; \
|
||||
.even; \
|
||||
_##name##:
|
||||
#else
|
||||
#define ENTRY(name) \
|
||||
.globl _/**/name; \
|
||||
.even; \
|
||||
_/**/name/**/:
|
||||
#endif
|
||||
|
||||
#ifdef __STDC__
|
||||
#define PSEUDO(name, syscall_name, args) \
|
||||
.even; \
|
||||
.globl syscall_error \
|
||||
error: jmp syscall_error; \
|
||||
ENTRY (name) \
|
||||
chmk $SYS_##syscall_name \
|
||||
bcs error
|
||||
#else
|
||||
#define PSEUDO(name, syscall_name, args) \
|
||||
.even; \
|
||||
.globl syscall_error \
|
||||
error: jmp syscall_error; \
|
||||
ENTRY (name) \
|
||||
chmk $SYS_/**/syscall_name \
|
||||
bcs error
|
||||
#endif
|
||||
|
||||
#define MOVE(x,y) movl x , y
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
@ -1,57 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997, 2002 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
#ifndef SYS_vfork
|
||||
#define SYS_vfork 66
|
||||
#endif
|
||||
|
||||
/* Clone the calling process, but without copying the whole address space.
|
||||
The calling process is suspended until the new process exits or is
|
||||
replaced by a call to `execve'. Return -1 for errors, 0 to the new process,
|
||||
and the process ID of the new process to the old process. */
|
||||
.globl ___vfork
|
||||
___vfork:
|
||||
.word 0
|
||||
/* Save our return address in R2, and return to code below. */
|
||||
movl 16(fp), r2
|
||||
movab unwind, 16(fp)
|
||||
ret
|
||||
unwind:
|
||||
/* Do the system call. */
|
||||
chmk $SYS_vfork
|
||||
bcs error
|
||||
|
||||
tstl r1
|
||||
beq parent
|
||||
|
||||
/* We are the child. Return zero. */
|
||||
clrl r0
|
||||
|
||||
/* Return to the saved address. */
|
||||
parent: jmp (r2)
|
||||
|
||||
.globl _errno
|
||||
error:
|
||||
movl r0, _errno
|
||||
mnegl $1, r0
|
||||
jmp (r2)
|
||||
libc_hidden_def (__vfork)
|
||||
|
||||
weak_alias (__vfork, vfork)
|
@ -1,27 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
SYSCALL__ (wait, 1)
|
||||
movl 4(ap), r2
|
||||
beq 1f
|
||||
movl r1, (r2)
|
||||
1: ret
|
||||
|
||||
weak_alias (__wait, wait)
|
@ -1,37 +0,0 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997 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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
ENTRY(___wait3)
|
||||
movel 8(ap), r1
|
||||
movel 12(ap), r0
|
||||
/* Set all condition codes to tell the kernel this is wait3. */
|
||||
bispsw $15
|
||||
chmk $SYS_wait
|
||||
bcs error
|
||||
|
||||
movl 4(ap), r2
|
||||
beq 1f
|
||||
movl r1, (r2)
|
||||
1: ret
|
||||
|
||||
.globl syscall_error
|
||||
error: jmp syscall_error
|
||||
|
||||
weak_alias (__wait3, wait3)
|
Reference in New Issue
Block a user