Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [pgoyette-compat] src/sys/compat



__BEGIN_DECLS? was that accessible from userland?

On Sun, Apr 15, 2018 at 06:23:32AM +0000, Paul Goyette wrote:
> Module Name:	src
> Committed By:	pgoyette
> Date:		Sun Apr 15 06:23:31 UTC 2018
> 
> Modified Files:
> 	src/sys/compat/common [pgoyette-compat]: uipc_syscalls_40.c
> 	src/sys/compat/sys [pgoyette-compat]: sockio.h
> 
> Log Message:
> Make compat_ifconf() and compat_ifdatareq() static
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.15.2.6 -r1.15.2.7 src/sys/compat/common/uipc_syscalls_40.c
> cvs rdiff -u -r1.10.58.2 -r1.10.58.3 src/sys/compat/sys/sockio.h
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

> Modified files:
> 
> Index: src/sys/compat/common/uipc_syscalls_40.c
> diff -u src/sys/compat/common/uipc_syscalls_40.c:1.15.2.6 src/sys/compat/common/uipc_syscalls_40.c:1.15.2.7
> --- src/sys/compat/common/uipc_syscalls_40.c:1.15.2.6	Thu Apr 12 22:33:41 2018
> +++ src/sys/compat/common/uipc_syscalls_40.c	Sun Apr 15 06:23:31 2018
> @@ -1,9 +1,9 @@
> -/*	$NetBSD: uipc_syscalls_40.c,v 1.15.2.6 2018/04/12 22:33:41 pgoyette Exp $	*/
> +/*	$NetBSD: uipc_syscalls_40.c,v 1.15.2.7 2018/04/15 06:23:31 pgoyette Exp $	*/
>  
>  /* written by Pavel Cahyna, 2006. Public domain. */
>  
>  #include <sys/cdefs.h>
> -__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_40.c,v 1.15.2.6 2018/04/12 22:33:41 pgoyette Exp $");
> +__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_40.c,v 1.15.2.7 2018/04/15 06:23:31 pgoyette Exp $");
>  
>  /*
>   * System call interface to the socket abstraction.
> @@ -31,7 +31,7 @@ __KERNEL_RCSID(0, "$NetBSD: uipc_syscall
>   * other information.
>   */
>  /*ARGSUSED*/
> -int
> +static int
>  compat_ifconf(u_long cmd, void *data)
>  {
>  	struct oifconf *ifc = data;
> 
> Index: src/sys/compat/sys/sockio.h
> diff -u src/sys/compat/sys/sockio.h:1.10.58.2 src/sys/compat/sys/sockio.h:1.10.58.3
> --- src/sys/compat/sys/sockio.h:1.10.58.2	Thu Apr 12 22:33:41 2018
> +++ src/sys/compat/sys/sockio.h	Sun Apr 15 06:23:31 2018
> @@ -1,4 +1,4 @@
> -/*	$NetBSD: sockio.h,v 1.10.58.2 2018/04/12 22:33:41 pgoyette Exp $	*/
> +/*	$NetBSD: sockio.h,v 1.10.58.3 2018/04/15 06:23:31 pgoyette Exp $	*/
>  
>  /*-
>   * Copyright (c) 1982, 1986, 1990, 1993, 1994
> @@ -186,11 +186,6 @@ struct oifdatareq {
>  void if_50_init(void);
>  void if_50_fini(void);
>  
> -__BEGIN_DECLS
> -int compat_ifconf(u_long, void *);
> -int compat_ifdatareq(struct lwp *, u_long, void *);
> -__END_DECLS
> -
>  #endif
>  
>  #endif /* _COMPAT_SYS_SOCKIO_H_ */
> 



Home | Main Index | Thread Index | Old Index