diff options
Diffstat (limited to 'openbsd-compat/bindresvport.c')
-rw-r--r-- | openbsd-compat/bindresvport.c | 63 |
1 files changed, 37 insertions, 26 deletions
diff --git a/openbsd-compat/bindresvport.c b/openbsd-compat/bindresvport.c index 8a273f9b5..620f980ed 100644 --- a/openbsd-compat/bindresvport.c +++ b/openbsd-compat/bindresvport.c | |||
@@ -1,37 +1,48 @@ | |||
1 | /* This file has be substantially modified from the original OpenBSD source */ | 1 | /* This file has be modified from the original OpenBSD source */ |
2 | |||
3 | /* $OpenBSD: bindresvport.c,v 1.15 2003/05/20 22:42:35 deraadt Exp $ */ | ||
4 | 2 | ||
5 | /* | 3 | /* |
6 | * Copyright 1996, Jason Downs. All rights reserved. | 4 | * Sun RPC is a product of Sun Microsystems, Inc. and is provided for |
7 | * Copyright 1998, Theo de Raadt. All rights reserved. | 5 | * unrestricted use provided that this legend is included on all tape |
8 | * Copyright 2000, Damien Miller. All rights reserved. | 6 | * media and as a part of the software program in whole or part. Users |
9 | * | 7 | * may copy or modify Sun RPC without charge, but are not authorized |
10 | * Redistribution and use in source and binary forms, with or without | 8 | * to license or distribute it to anyone else except as part of a product or |
11 | * modification, are permitted provided that the following conditions | 9 | * program developed by the user. |
12 | * are met: | 10 | * |
13 | * 1. Redistributions of source code must retain the above copyright | 11 | * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE |
14 | * notice, this list of conditions and the following disclaimer. | 12 | * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR |
15 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. |
16 | * notice, this list of conditions and the following disclaimer in the | 14 | * |
17 | * documentation and/or other materials provided with the distribution. | 15 | * Sun RPC is provided with no support and without any obligation on the |
18 | * | 16 | * part of Sun Microsystems, Inc. to assist in its use, correction, |
19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 17 | * modification or enhancement. |
20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 18 | * |
21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 19 | * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE |
22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 20 | * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC |
23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 21 | * OR ANY PART THEREOF. |
24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 | * |
25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 | * In no event will Sun Microsystems, Inc. be liable for any lost revenue |
26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 | * or profits or other special, indirect and consequential damages, even if |
27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | * Sun has been advised of the possibility of such damages. |
28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | * |
27 | * Sun Microsystems, Inc. | ||
28 | * 2550 Garcia Avenue | ||
29 | * Mountain View, California 94043 | ||
29 | */ | 30 | */ |
30 | 31 | ||
31 | #include "includes.h" | 32 | #include "includes.h" |
32 | 33 | ||
33 | #ifndef HAVE_BINDRESVPORT_SA | 34 | #ifndef HAVE_BINDRESVPORT_SA |
34 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | ||
37 | static char *rcsid = "$OpenBSD: bindresvport.c,v 1.13 2000/01/26 03:43:21 deraadt Exp $"; | ||
38 | #endif /* LIBC_SCCS and not lint */ | ||
39 | |||
40 | /* | ||
41 | * Copyright (c) 1987 by Sun Microsystems, Inc. | ||
42 | * | ||
43 | * Portions Copyright(C) 1996, Jason Downs. All rights reserved. | ||
44 | */ | ||
45 | |||
35 | #include "includes.h" | 46 | #include "includes.h" |
36 | 47 | ||
37 | #define STARTPORT 600 | 48 | #define STARTPORT 600 |