Deleted Added
full compact
socket.h (122685) socket.h (123811)
1/*
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)socket.h 8.4 (Berkeley) 2/21/94
1/*
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)socket.h 8.4 (Berkeley) 2/21/94
34 * $FreeBSD: head/sys/sys/socket.h 122685 2003-11-14 18:48:15Z bms $
34 * $FreeBSD: head/sys/sys/socket.h 123811 2003-12-24 18:47:43Z alfred $
35 */
36
37#ifndef _SYS_SOCKET_H_
38#define _SYS_SOCKET_H_
39
40#include <sys/cdefs.h>
41#include <sys/_types.h>
42#include <sys/_iovec.h>

--- 462 unchanged lines hidden (view full) ---

505};
506#endif
507
508#ifndef _KERNEL
509
510#include <sys/cdefs.h>
511
512__BEGIN_DECLS
35 */
36
37#ifndef _SYS_SOCKET_H_
38#define _SYS_SOCKET_H_
39
40#include <sys/cdefs.h>
41#include <sys/_types.h>
42#include <sys/_iovec.h>

--- 462 unchanged lines hidden (view full) ---

505};
506#endif
507
508#ifndef _KERNEL
509
510#include <sys/cdefs.h>
511
512__BEGIN_DECLS
513/*
514 * XXX functions missing restrict type-qualifiers.
515 */
516int accept(int, struct sockaddr *, socklen_t *);
513int accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
517int bind(int, const struct sockaddr *, socklen_t);
518int connect(int, const struct sockaddr *, socklen_t);
514int bind(int, const struct sockaddr *, socklen_t);
515int connect(int, const struct sockaddr *, socklen_t);
519int getpeername(int, struct sockaddr *, socklen_t *);
520int getsockname(int, struct sockaddr *, socklen_t *);
521int getsockopt(int, int, int, void *, socklen_t *);
516int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
517int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict);
518int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
522int listen(int, int);
523ssize_t recv(int, void *, size_t, int);
519int listen(int, int);
520ssize_t recv(int, void *, size_t, int);
524ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, socklen_t *);
521ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
525ssize_t recvmsg(int, struct msghdr *, int);
526ssize_t send(int, const void *, size_t, int);
527ssize_t sendto(int, const void *,
528 size_t, int, const struct sockaddr *, socklen_t);
529ssize_t sendmsg(int, const struct msghdr *, int);
530#if __BSD_VISIBLE
531int sendfile(int, int, off_t, size_t, struct sf_hdtr *, off_t *, int);
532#endif
533int setsockopt(int, int, int, const void *, socklen_t);
534int shutdown(int, int);
535int sockatmark(int);
536int socket(int, int, int);
537int socketpair(int, int, int, int *);
538__END_DECLS
539
540#endif /* !_KERNEL */
541
542#endif /* !_SYS_SOCKET_H_ */
522ssize_t recvmsg(int, struct msghdr *, int);
523ssize_t send(int, const void *, size_t, int);
524ssize_t sendto(int, const void *,
525 size_t, int, const struct sockaddr *, socklen_t);
526ssize_t sendmsg(int, const struct msghdr *, int);
527#if __BSD_VISIBLE
528int sendfile(int, int, off_t, size_t, struct sf_hdtr *, off_t *, int);
529#endif
530int setsockopt(int, int, int, const void *, socklen_t);
531int shutdown(int, int);
532int sockatmark(int);
533int socket(int, int, int);
534int socketpair(int, int, int, int *);
535__END_DECLS
536
537#endif /* !_KERNEL */
538
539#endif /* !_SYS_SOCKET_H_ */