[Midnightbsd-cvs] src [10878] trunk/lib/libcompat/4.1: remove unused files
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jun 13 19:57:46 EDT 2018
Revision: 10878
http://svnweb.midnightbsd.org/src/?rev=10878
Author: laffer1
Date: 2018-06-13 19:57:45 -0400 (Wed, 13 Jun 2018)
Log Message:
-----------
remove unused files
Modified Paths:
--------------
trunk/lib/libcompat/4.1/ftime.3
Removed Paths:
-------------
trunk/lib/libcompat/4.1/ascftime.c
trunk/lib/libcompat/4.1/cftime.3
trunk/lib/libcompat/4.1/cftime.c
trunk/lib/libcompat/4.1/getpw.3
trunk/lib/libcompat/4.1/getpw.c
trunk/lib/libcompat/4.1/gtty.c
trunk/lib/libcompat/4.1/stty.3
trunk/lib/libcompat/4.1/stty.c
Property Changed:
----------------
trunk/lib/libcompat/4.1/ftime.3
Deleted: trunk/lib/libcompat/4.1/ascftime.c
===================================================================
--- trunk/lib/libcompat/4.1/ascftime.c 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/ascftime.c 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 1994 Joerg Wunsch
- *
- * All rights reserved.
- *
- * This program is free software.
- *
- * 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 Joerg Wunsch
- * 4. The name of the developer may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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.
- *
- * $FreeBSD: src/lib/libcompat/4.1/ascftime.c,v 1.5 2002/05/28 17:00:42 alfred Exp $
- */
-
-#include <time.h>
-
-#define MAXLEN 1000 /* just a guess, only the user knows... */
-
-int
-ascftime(char *s, const char *format, const struct tm *tmptr)
-{
- return strftime(s, MAXLEN, format? format: "%C", tmptr);
-}
Deleted: trunk/lib/libcompat/4.1/cftime.3
===================================================================
--- trunk/lib/libcompat/4.1/cftime.3 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/cftime.3 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,105 +0,0 @@
-.\"
-.\" Copyright (c) 1994, 1995 Joerg Wunsch
-.\"
-.\" All rights reserved.
-.\"
-.\" This program is free software.
-.\"
-.\" 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 Joerg Wunsch
-.\" 4. The name of the developer may not be used to endorse or promote
-.\" products derived from this software without specific prior written
-.\" permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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.
-.\"
-.\"
-.\" $FreeBSD: src/lib/libcompat/4.1/cftime.3,v 1.16 2005/02/13 23:45:47 ru Exp $
-.\"
-.Dd June 15, 1993
-.Os
-.Dt CFTIME 3
-.Sh NAME
-.Nm cftime ,
-.Nm ascftime
-.Nd convert date and time to string
-.Sh LIBRARY
-.Lb libcompat
-.Sh SYNOPSIS
-.In time.h
-.Ft int
-.Fn cftime "char *s" "char *format" "const time_t *clock"
-.Ft int
-.Fn ascftime "char *s" "const char *format" "const struct tm *tmptr"
-.Sh DESCRIPTION
-.Bf -symbolic
-The
-.Fn cftime
-and
-.Fn ascftime
-functions are made obsolete by
-.Xr strftime 3 .
-.Ef
-.Pp
-Use of the functions
-.Fn cftime
-and
-.Fn ascftime
-is strongly deprecated, since there is no way to check for a buffer
-overflow condition.
-Use
-.Xr strftime 3
-instead.
-.Pp
-The
-.Fn ascftime
-function is almost identical to
-.Xr strftime 3 ,
-with the only exception that there is no parameter to tell about the
-maximal buffer length, and the
-.Fa format
-parameter defaults to
-.Dq %C
-if a
-.Em NULL
-pointer is given.
-.Pp
-The
-.Fn cftime
-function does the same job, but it first invokes
-.Xr localtime 3
-in order to convert the given
-.Fa clock ,
-then also performs the conversions as requested by the
-.Fa format
-argument.
-.Sh RETURN VALUES
-The
-.Fn cftime
-and
-.Fn ascftime
-functions return the number of characters written to the output
-buffer
-.Fa s ,
-not counting the trailing null character.
-.Sh SEE ALSO
-.Xr localtime 3 ,
-.Xr strftime 3
Deleted: trunk/lib/libcompat/4.1/cftime.c
===================================================================
--- trunk/lib/libcompat/4.1/cftime.c 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/cftime.c 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 1994 Joerg Wunsch
- *
- * All rights reserved.
- *
- * This program is free software.
- *
- * 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 Joerg Wunsch
- * 4. The name of the developer may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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.
- *
- * $FreeBSD: src/lib/libcompat/4.1/cftime.c,v 1.5 2002/05/28 17:00:42 alfred Exp $
- */
-
-#include <time.h>
-
-#define MAXLEN 1000 /* just a guess, only the user knows... */
-
-int
-cftime(char *s, char *format, const time_t *clock)
-{
- return strftime(s, MAXLEN, format? format: "%C", localtime(clock));
-}
-
Modified: trunk/lib/libcompat/4.1/ftime.3
===================================================================
--- trunk/lib/libcompat/4.1/ftime.3 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/ftime.3 2018-06-13 23:57:45 UTC (rev 10878)
@@ -26,6 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)ftime.3 8.1 (Berkeley) 6/4/93
+.\" $FreeBSD: stable/10/lib/libcompat/4.1/ftime.3 165906 2007-01-09 01:02:06Z imp $
.\" $MidnightBSD$
.\"
.Dd June 4, 1993
Property changes on: trunk/lib/libcompat/4.1/ftime.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Deleted: trunk/lib/libcompat/4.1/getpw.3
===================================================================
--- trunk/lib/libcompat/4.1/getpw.3 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/getpw.3 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,88 +0,0 @@
-.\" Copyright (c) 1990, 1993
-.\" The 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.
-.\" 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.
-.\"
-.\" @(#)getpw.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libcompat/4.1/getpw.3,v 1.12 2007/01/09 01:02:02 imp Exp $
-.\"
-.Dd June 4, 1993
-.Dt GETPW 3
-.Os
-.Sh NAME
-.Nm getpw
-.Nd get name from uid
-.Sh LIBRARY
-.Lb libcompat
-.Sh SYNOPSIS
-.In sys/types.h
-.Ft int
-.Fn getpw "uid_t uid" "char *buf"
-.Sh DESCRIPTION
-.Bf -symbolic
-The
-.Fn getpw
-function is made obsolete by
-.Xr getpwuid 3 .
-.Ef
-.Pp
-The
-.Fn getpw
-function reads the file
-.Pa /etc/passwd ,
-and if it finds
-the specified
-.Fa uid ,
-copies the password entry line into the string pointed to by
-.Fa buf .
-the null terminated entry line from the password database,
-and appends the
-.Dv NUL
-character.
-.Sh RETURN VALUES
-The
-.Fn getpw
-function returns the zero if successful, otherwise
-a non-zero if the entry does not exist.
-.Sh FILES
-.Bl -tag -width /etc/passwd -compact
-.It Pa /etc/passwd
-.El
-.Sh SEE ALSO
-.Xr getpwent 3 ,
-.Xr passwd 5
-.Sh HISTORY
-A
-.Fn getpw
-function appeared in
-.At v6 .
-.Sh BUGS
-The area pointed to by
-.Fa buf
-must be large enough to hold the user name.
-.Pp
-All of the bugs from
-.Xr getpwent 3
-hold valid as well.
Deleted: trunk/lib/libcompat/4.1/getpw.c
===================================================================
--- trunk/lib/libcompat/4.1/getpw.c 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/getpw.c 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 1995 Joerg Wunsch
- *
- * 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 Joerg Wunsch
- * 4. The name of the developer may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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.
- *
- * $FreeBSD: src/lib/libcompat/4.1/getpw.c,v 1.6 2002/05/28 17:00:42 alfred Exp $
- */
-
-#include <sys/types.h>
-#include <pwd.h>
-#include <string.h>
-#include <stdio.h>
-
-int
-getpw(uid_t uid, char *buf)
-{
- struct passwd *pw;
-
- pw = getpwuid(uid);
- endpwent();
-
- if(pw == 0) return -1;
-
- strncpy(buf, pw->pw_name, L_cuserid);
- return 0;
-}
Deleted: trunk/lib/libcompat/4.1/gtty.c
===================================================================
--- trunk/lib/libcompat/4.1/gtty.c 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/gtty.c 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 1994 Christopher G. Demetriou
- * 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 Christopher G. Demetriou.
- * 4. 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.
- */
-
-#ifndef lint
-static char rcsid[] = "$FreeBSD: src/lib/libcompat/4.1/gtty.c,v 1.5 1999/08/28 00:04:13 peter Exp $";
-#endif /* not lint */
-
-#include <sgtty.h>
-
-/*
- * Get tty modes.
- * This was defined in ioctl_compat.h as:
- * #define gtty(fd, tty) ioctl(fd, TIOCGETP, tty)
- */
-
-#undef gtty
-
-int
-gtty(fd, tty)
- int fd;
- struct sgttyb *tty;
-{
-
- return (ioctl(fd, TIOCGETP, tty));
-}
Deleted: trunk/lib/libcompat/4.1/stty.3
===================================================================
--- trunk/lib/libcompat/4.1/stty.3 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/stty.3 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,94 +0,0 @@
-.\" Copyright (c) 1983, 1991, 1993
-.\" The 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.
-.\" 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.
-.\"
-.\" @(#)stty.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libcompat/4.1/stty.3,v 1.10 2007/01/09 01:02:02 imp Exp $
-.\"
-.Dd June 4, 1993
-.Dt STTY 3
-.Os
-.Sh NAME
-.Nm stty ,
-.Nm gtty
-.Nd set and get terminal state (defunct)
-.Sh LIBRARY
-.Lb libcompat
-.Sh SYNOPSIS
-.In sgtty.h
-.Ft int
-.Fn stty "int fd" "struct sgttyb *buf"
-.Ft int
-.Fn gtty "int fd" "struct sgttyb *buf"
-.Sh DESCRIPTION
-.Bf -symbolic
-These interfaces are obsoleted by
-.Xr ioctl 2 .
-.Ef
-.Pp
-The
-.Fn stty
-function
-sets the state of the terminal associated with
-.Fa fd .
-The
-.Fn gtty
-function
-retrieves the state of the terminal associated
-with
-.Fa fd .
-To set the state of a terminal the call must have
-write permission.
-.Pp
-The
-.Fn stty
-call is actually
-.Ql ioctl(fd, TIOCSETP, buf) ,
-while
-the
-.Fn gtty
-call is
-.Ql ioctl(fd, TIOCGETP, buf) .
-See
-.Xr ioctl 2
-and
-.Xr tty 4
-for an explanation.
-.Sh DIAGNOSTICS
-If the call is successful 0 is returned, otherwise \-1 is
-returned and the global variable
-.Va errno
-contains the reason for the failure.
-.Sh SEE ALSO
-.Xr ioctl 2 ,
-.Xr tty 4
-.Sh HISTORY
-The
-.Fn stty
-and
-.Fn gtty
-functions appeared in
-.Bx 4.2 .
Deleted: trunk/lib/libcompat/4.1/stty.c
===================================================================
--- trunk/lib/libcompat/4.1/stty.c 2018-06-13 23:53:13 UTC (rev 10877)
+++ trunk/lib/libcompat/4.1/stty.c 2018-06-13 23:57:45 UTC (rev 10878)
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 1994 Christopher G. Demetriou
- * 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 Christopher G. Demetriou.
- * 4. 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.
- */
-
-#ifndef lint
-static char rcsid[] = "$FreeBSD: src/lib/libcompat/4.1/stty.c,v 1.5 1999/08/28 00:04:13 peter Exp $";
-#endif /* not lint */
-
-#include <sgtty.h>
-
-/*
- * Set tty modes.
- * This was defined in ioctl_compat.h as:
- * #define stty(fd, tty) ioctl(fd, TIOCSETP, tty)
- */
-
-#undef stty
-
-int
-stty(fd, tty)
- int fd;
- struct sgttyb *tty;
-{
-
- return (ioctl(fd, TIOCSETP, tty));
-}
More information about the Midnightbsd-cvs
mailing list