Browse Source

move proto to unistd.h

OPENBSD_2_3
deraadt 27 years ago
parent
commit
04069432b8
4 changed files with 7 additions and 7 deletions
  1. +1
    -2
      src/include/string.h
  2. +2
    -1
      src/include/unistd.h
  3. +2
    -2
      src/lib/libc/string/swab.3
  4. +2
    -2
      src/lib/libc/string/swab.c

+ 1
- 2
src/include/string.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: string.h,v 1.2 1997/09/21 10:45:54 niklas Exp $ */
/* $OpenBSD: string.h,v 1.3 1998/02/10 02:19:46 deraadt Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@ -90,7 +90,6 @@ void strmode __P((int, char *));
int strncasecmp __P((const char *, const char *, size_t));
char *strsep __P((char **, const char *));
char *strsignal __P((int));
void swab __P((const void *, void *, size_t));
#endif
__END_DECLS


+ 2
- 1
src/include/unistd.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: unistd.h,v 1.16 1997/12/27 12:03:44 tholo Exp $ */
/* $OpenBSD: unistd.h,v 1.17 1998/02/10 02:19:47 deraadt Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@ -169,6 +169,7 @@ int setreuid __P((int, int));
int setrgid __P((gid_t));
int setruid __P((uid_t));
void setusershell __P((void));
void swab __P((const void *, void *, size_t));
int swapon __P((const char *));
int symlink __P((const char *, const char *));
void sync __P((void));


+ 2
- 2
src/lib/libc/string/swab.3 View File

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: swab.3,v 1.2 1996/08/19 08:34:29 tholo Exp $
.\" $OpenBSD: swab.3,v 1.3 1998/02/10 02:19:48 deraadt Exp $
.\"
.Dd May 1, 1991
.Dt SWAB 3
@ -38,7 +38,7 @@
.Nm swab
.Nd swap adjacent bytes
.Sh SYNOPSIS
.Fd #include <string.h>
.Fd #include <unistd.h>
.Ft void
.Fn swab "const void *src" "void *dst" "size_t len"
.Sh DESCRIPTION


+ 2
- 2
src/lib/libc/string/swab.c View File

@ -35,10 +35,10 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$OpenBSD: swab.c,v 1.2 1996/08/19 08:34:30 tholo Exp $";
static char *rcsid = "$OpenBSD: swab.c,v 1.3 1998/02/10 02:19:48 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
#include <unistd.h>
void
swab(from, to, len)


Loading…
Cancel
Save