summaryrefslogtreecommitdiff
path: root/lib/libc/i386/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/i386/sys')
-rw-r--r--lib/libc/i386/sys/Makefile.inc10
-rw-r--r--lib/libc/i386/sys/Ovfork.S (renamed from lib/libc/i386/sys/Ovfork.s)10
-rw-r--r--lib/libc/i386/sys/brk.S (renamed from lib/libc/i386/sys/brk.s)26
-rw-r--r--lib/libc/i386/sys/cerror.S (renamed from lib/libc/i386/sys/cerror.s)9
-rw-r--r--lib/libc/i386/sys/exect.S (renamed from lib/libc/i386/sys/exect.s)2
-rw-r--r--lib/libc/i386/sys/fork.S (renamed from lib/libc/i386/sys/fork.s)2
-rw-r--r--lib/libc/i386/sys/i386_get_ldt.298
-rw-r--r--lib/libc/i386/sys/i386_get_ldt.c50
-rw-r--r--lib/libc/i386/sys/i386_set_ldt.c50
-rw-r--r--lib/libc/i386/sys/mount.S (renamed from lib/libc/i386/sys/mount.s)2
-rw-r--r--lib/libc/i386/sys/pipe.S (renamed from lib/libc/i386/sys/pipe.s)2
-rw-r--r--lib/libc/i386/sys/ptrace.S (renamed from lib/libc/i386/sys/ptrace.s)11
-rw-r--r--lib/libc/i386/sys/reboot.S (renamed from lib/libc/i386/sys/reboot.s)2
-rw-r--r--lib/libc/i386/sys/sbrk.S (renamed from lib/libc/i386/sys/sbrk.s)24
-rw-r--r--lib/libc/i386/sys/setlogin.S (renamed from lib/libc/i386/sys/setlogin.s)11
-rw-r--r--lib/libc/i386/sys/sigpending.S (renamed from lib/libc/i386/sys/sigpending.s)2
-rw-r--r--lib/libc/i386/sys/sigprocmask.S (renamed from lib/libc/i386/sys/sigprocmask.s)2
-rw-r--r--lib/libc/i386/sys/sigreturn.S (renamed from lib/libc/i386/sys/sigreturn.s)2
-rw-r--r--lib/libc/i386/sys/sigsuspend.S (renamed from lib/libc/i386/sys/sigsuspend.s)0
-rw-r--r--lib/libc/i386/sys/syscall.S (renamed from lib/libc/i386/sys/syscall.s)2
20 files changed, 316 insertions, 1 deletions
diff --git a/lib/libc/i386/sys/Makefile.inc b/lib/libc/i386/sys/Makefile.inc
new file mode 100644
index 0000000000000..4bbec8b7a7b67
--- /dev/null
+++ b/lib/libc/i386/sys/Makefile.inc
@@ -0,0 +1,10 @@
+# from: Makefile.inc,v 1.1 1993/09/03 19:04:23 jtc Exp
+# $Id: Makefile.inc,v 1.2 1994/02/21 05:19:06 rgrimes Exp $
+
+.PATH: ${.CURDIR}/${MACHINE}/sys
+
+SRCS+= i386_get_ldt.c i386_set_ldt.c
+
+MAN2+= i386/sys/i386_get_ldt.2
+
+MLINKS+=i386_get_ldt.2 i386_set_ldt.2
diff --git a/lib/libc/i386/sys/Ovfork.s b/lib/libc/i386/sys/Ovfork.S
index bb44ee899eb36..181dae5642860 100644
--- a/lib/libc/i386/sys/Ovfork.s
+++ b/lib/libc/i386/sys/Ovfork.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: Ovfork.S,v 1.3 1994/02/21 05:19:08 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
@@ -49,6 +51,7 @@
*/
.set vfork,66
.globl _vfork
+.type _vfork,@function
_vfork:
popl %ecx /* my rta into ecx */
@@ -61,7 +64,14 @@ vforkok:
jmp parent
.globl _errno
verror:
+#ifdef PIC
+ PIC_PROLOGUE
+ movl PIC_GOT(_errno), %edx
+ movl %eax,(%edx)
+ PIC_EPILOGUE
+#else
movl %eax,_errno
+#endif
movl $-1,%eax
jmp %ecx
child:
diff --git a/lib/libc/i386/sys/brk.s b/lib/libc/i386/sys/brk.S
index ce4717409f842..e884ac267514d 100644
--- a/lib/libc/i386/sys/brk.s
+++ b/lib/libc/i386/sys/brk.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: brk.S,v 1.3 1994/02/21 05:13:26 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
@@ -48,6 +50,29 @@ ENTRY(_brk)
jmp ok
ENTRY(brk)
+#ifdef PIC
+ movl 4(%esp),%eax
+ PIC_PROLOGUE
+ movl PIC_GOT(curbrk),%edx # set up GOT addressing
+ movl PIC_GOT(minbrk),%ecx #
+ cmpl %eax,(%ecx)
+ PIC_EPILOGUE
+ jl ok
+ movl (%ecx),%eax
+ movl %eax,4(%esp)
+ok:
+ lea SYS_brk,%eax
+ LCALL(7,0)
+ jb err
+ movl 4(%esp),%eax
+ movl %eax,(%edx)
+ movl $0,%eax
+ ret
+err:
+ jmp PIC_PLT(cerror)
+
+#else
+
movl 4(%esp),%eax
cmpl %eax,minbrk
jl ok
@@ -63,3 +88,4 @@ ok:
ret
err:
jmp cerror
+#endif
diff --git a/lib/libc/i386/sys/cerror.s b/lib/libc/i386/sys/cerror.S
index 6021fe2dd0f27..27fec0aecbb90 100644
--- a/lib/libc/i386/sys/cerror.s
+++ b/lib/libc/i386/sys/cerror.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: cerror.S,v 1.2 1994/02/21 05:19:09 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
@@ -42,6 +44,13 @@
.globl _errno
cerror:
+#ifdef PIC
+ PIC_PROLOGUE
+ movl PIC_GOT(_errno),%ecx
+ movl %eax,(%ecx)
+ PIC_EPILOGUE
+#else
movl %eax,_errno
+#endif
movl $-1,%eax
ret
diff --git a/lib/libc/i386/sys/exect.s b/lib/libc/i386/sys/exect.S
index 3a17aacbbe2d1..1739760f887a9 100644
--- a/lib/libc/i386/sys/exect.s
+++ b/lib/libc/i386/sys/exect.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: exect.S,v 1.2 1994/02/21 05:19:10 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/fork.s b/lib/libc/i386/sys/fork.S
index 0bfa6627edfeb..15b7c46dfe962 100644
--- a/lib/libc/i386/sys/fork.s
+++ b/lib/libc/i386/sys/fork.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: fork.S,v 1.2 1994/02/21 05:19:11 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/i386_get_ldt.2 b/lib/libc/i386/sys/i386_get_ldt.2
new file mode 100644
index 0000000000000..8d131c9628a3f
--- /dev/null
+++ b/lib/libc/i386/sys/i386_get_ldt.2
@@ -0,0 +1,98 @@
+.\" Copyright (c) 1980, 1991 Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by the University of
+.\" California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\" may be used to endorse or promote products derived from this software
+.\" without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" from: @(#)fork.2 6.5 (Berkeley) 3/10/91
+.\" $Id: i386_get_ldt.2,v 1.1 1994/01/31 12:05:30 davidg Exp $
+.\"
+.Dd September 20, 1993
+.Dt I386_GET_LDT 2
+.Os FreeBSD
+.Sh NAME
+.Nm i386_get_ldt ,
+.Nm i386_set_ldt
+.Nd manage i386 per-process Local Descriptor Table entries
+.Sh SYNOPSIS
+.Fd #include <machine/segments.h>
+.Fd #include <machine/sysarch.h>
+.Ft int
+.Fn i386_get_ldt "int start_sel" "union descriptor *descs" "int num_sels"
+.Ft int
+.Fn i386_set_ldt "int start_sel" "union descriptor *descs" "int num_sels"
+.Sh DESCRIPTION
+.Fn i386_get_ldt
+will return the list of i386 descriptors that the process has in its
+LDT.
+.Fn i386_set_ldt
+will set a list of i386 descriptors for the current process in its
+LDT.
+Both routines accept a starting selector number
+.Fa start_sel
+, an array of memory that
+will contain the descriptors to be set or returned
+.Fa descs
+, and the number of entries to set or return
+.Fa num_sels .
+.Pp
+The argument
+.Fa descs
+can be either segment_descriptor or gate_descriptor and are defined in
+.Fd <i386/segments.h> .
+These structures are defined by the architecure
+as disjoint bit-fields, so care must be taken in constructing them.
+.Sh RETURN VALUES
+Upon successful completion,
+.Fn i386_get_ldt
+returns the number of descriptors currently in the LDT.
+.Fn i386_set_ldt
+returns the first selector set.
+Otherwise, a value of -1 is returned and the global
+variable
+.Va errno
+is set to indicate the error.
+.Sh ERRORS
+.Fn i386_get_ldt
+and
+.Fn i386_set_ldt
+will fail if:
+.Bl -tag -width [EINVAL]
+.It Bq Er EINVAL
+An inappropriate parameter was used for
+.Fa start_sel
+or
+.Fa num_sels .
+.It Bq Er EACESS
+The caller attempted to use a descriptor that would
+circumvent protection or cause a failure.
+.El
+.Sh REFERENCES
+i386 Microprocessor Programmer's Reference Manual, Intel
+.Sh WARNING
+You can really hose your process using this.
diff --git a/lib/libc/i386/sys/i386_get_ldt.c b/lib/libc/i386/sys/i386_get_ldt.c
new file mode 100644
index 0000000000000..989c6b6bb4f42
--- /dev/null
+++ b/lib/libc/i386/sys/i386_get_ldt.c
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 1993 John Brezak
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <sys/cdefs.h>
+#include <machine/segments.h>
+#include <machine/sysarch.h>
+
+struct parms {
+ int start;
+ union descriptor *descs;
+ int num;
+};
+
+int
+i386_get_ldt(int start, union descriptor *descs, int num)
+{
+ struct parms p;
+
+ p.start = start;
+ p.descs = descs;
+ p.num = num;
+
+ return sysarch(I386_GET_LDT, (char *)&p);
+}
diff --git a/lib/libc/i386/sys/i386_set_ldt.c b/lib/libc/i386/sys/i386_set_ldt.c
new file mode 100644
index 0000000000000..377437eaf9cee
--- /dev/null
+++ b/lib/libc/i386/sys/i386_set_ldt.c
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 1993 John Brezak
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <sys/cdefs.h>
+#include <machine/segments.h>
+#include <machine/sysarch.h>
+
+struct parms {
+ int start;
+ union descriptor *descs;
+ int num;
+};
+
+int
+i386_set_ldt(int start, union descriptor *descs, int num)
+{
+ struct parms p;
+
+ p.start = start;
+ p.descs = descs;
+ p.num = num;
+
+ return sysarch(I386_SET_LDT, (char *)&p);
+}
diff --git a/lib/libc/i386/sys/mount.s b/lib/libc/i386/sys/mount.S
index 2a719f9a9fbb1..e0366db6b7508 100644
--- a/lib/libc/i386/sys/mount.s
+++ b/lib/libc/i386/sys/mount.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: mount.S,v 1.2 1994/02/21 05:19:12 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/pipe.s b/lib/libc/i386/sys/pipe.S
index 60d6cd402cad0..2aeae5813958e 100644
--- a/lib/libc/i386/sys/pipe.s
+++ b/lib/libc/i386/sys/pipe.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: pipe.S,v 1.2 1994/02/21 05:19:13 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/ptrace.s b/lib/libc/i386/sys/ptrace.S
index 703c4249f7c89..6137098fcdf55 100644
--- a/lib/libc/i386/sys/ptrace.s
+++ b/lib/libc/i386/sys/ptrace.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: ptrace.S,v 1.2 1994/02/21 05:19:14 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
@@ -42,7 +44,14 @@
ENTRY(ptrace)
xorl %eax,%eax
- movl %eax,_errno
+#ifdef PIC
+ PIC_PROLOGUE
+ movl PIC_GOT(_errno),%edx
+ movl %eax,(%edx)
+ PIC_EPILOGUE
+#else
+ movl %eax,_errno
+#endif
lea SYS_ptrace,%eax
LCALL(7,0)
jb err
diff --git a/lib/libc/i386/sys/reboot.s b/lib/libc/i386/sys/reboot.S
index 74c3633d2e1a9..47e2f0a4b15af 100644
--- a/lib/libc/i386/sys/reboot.s
+++ b/lib/libc/i386/sys/reboot.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: reboot.S,v 1.2 1994/02/21 05:19:15 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/sbrk.s b/lib/libc/i386/sys/sbrk.S
index ccafa2936acc0..fef35cb529c87 100644
--- a/lib/libc/i386/sys/sbrk.s
+++ b/lib/libc/i386/sys/sbrk.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: sbrk.S,v 1.2 1994/02/21 05:19:16 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
@@ -52,6 +54,27 @@ curbrk: .long _end
.text
ENTRY(sbrk)
+#ifdef PIC
+ movl 4(%esp),%ecx
+ PIC_PROLOGUE
+ movl PIC_GOT(curbrk),%edx
+ movl (%edx),%eax
+ PIC_EPILOGUE
+ addl %eax,4(%esp)
+ lea SYS_brk,%eax
+ LCALL(7,0)
+ jb err
+ PIC_PROLOGUE
+ movl PIC_GOT(curbrk),%edx
+ movl (%edx),%eax
+ addl %ecx,(%edx)
+ PIC_EPILOGUE
+ ret
+err:
+ jmp PIC_PLT(cerror)
+
+#else
+
movl 4(%esp),%ecx
movl curbrk,%eax
addl %eax,4(%esp)
@@ -63,3 +86,4 @@ ENTRY(sbrk)
ret
err:
jmp cerror
+#endif
diff --git a/lib/libc/i386/sys/setlogin.s b/lib/libc/i386/sys/setlogin.S
index 227e403828890..92d761a535779 100644
--- a/lib/libc/i386/sys/setlogin.s
+++ b/lib/libc/i386/sys/setlogin.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: setlogin.S,v 1.2 1994/02/21 05:19:17 rgrimes Exp $
*/
#if defined(LIBC_SCCS) && !defined(lint)
@@ -43,5 +45,14 @@
.globl __logname_valid /* in getlogin() */
SYSCALL(setlogin)
+#ifdef PIC
+ PIC_PROLOGUE
+ pushl %eax
+ movl PIC_GOT(__logname_valid),%eax
+ movl $0,(%eax)
+ popl %eax
+ PIC_EPILOGUE
+#else
movl $0,__logname_valid
+#endif
ret /* setlogin(name) */
diff --git a/lib/libc/i386/sys/sigpending.s b/lib/libc/i386/sys/sigpending.S
index a0b643536f86e..4318b6d9aabda 100644
--- a/lib/libc/i386/sys/sigpending.s
+++ b/lib/libc/i386/sys/sigpending.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: sigpending.S,v 1.2 1994/02/21 05:19:19 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/sigprocmask.s b/lib/libc/i386/sys/sigprocmask.S
index 2872c1faef11b..ce929a03b081d 100644
--- a/lib/libc/i386/sys/sigprocmask.s
+++ b/lib/libc/i386/sys/sigprocmask.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: sigprocmask.S,v 1.2 1994/02/21 05:19:20 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/sigreturn.s b/lib/libc/i386/sys/sigreturn.S
index f64d5e6e6da9d..b98c9508e8d8b 100644
--- a/lib/libc/i386/sys/sigreturn.s
+++ b/lib/libc/i386/sys/sigreturn.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: sigreturn.S,v 1.2 1994/02/21 05:19:21 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
diff --git a/lib/libc/i386/sys/sigsuspend.s b/lib/libc/i386/sys/sigsuspend.S
index 1db4c1a3543c6..1db4c1a3543c6 100644
--- a/lib/libc/i386/sys/sigsuspend.s
+++ b/lib/libc/i386/sys/sigsuspend.S
diff --git a/lib/libc/i386/sys/syscall.s b/lib/libc/i386/sys/syscall.S
index 32274930a0226..37d180410e0c2 100644
--- a/lib/libc/i386/sys/syscall.s
+++ b/lib/libc/i386/sys/syscall.S
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id: syscall.S,v 1.2 1994/02/21 05:19:22 rgrimes Exp $
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)