aio_mlock(2) system call

Jilles Tjoelker jilles at stack.nl
Tue Jun 4 21:29:20 UTC 2013


On Tue, Jun 04, 2013 at 03:30:35PM +0400, Gleb Smirnoff wrote:
>   Updated patch.

> [snip]
> Index: lib/libc/sys/Symbol.map
> ===================================================================
> --- lib/libc/sys/Symbol.map	(revision 251369)
> +++ lib/libc/sys/Symbol.map	(working copy)
> @@ -378,6 +378,7 @@ FBSD_1.2 {
>  };
>  
>  FBSD_1.3 {
> +	aio_mlock;
>  	accept4;
>  	bindat;
>  	cap_fcntls_get;

This should probably be in alphabetical order.

> Index: lib/libc/sys/aio_mlock.2
> ===================================================================
> --- lib/libc/sys/aio_mlock.2	(revision 0)
> +++ lib/libc/sys/aio_mlock.2	(working copy)
> [snip]
> +.Sh PORTABILITY
> +The
> +.Fn aio_mlock
> +system call is a
> +.Fx
> +extension, and shouldn't be used in portable code.

Man pages should not use contractions.

> [snip]
> Index: sys/sys/aio.h
> ===================================================================
> --- sys/sys/aio.h	(revision 251369)
> +++ sys/sys/aio.h	(working copy)
> @@ -38,6 +38,7 @@
>  #ifdef _KERNEL
>  #define	LIO_SYNC		0x3
>  #endif
> +#define	LIO_MLOCK		0x4

Is it intended that the new constant is available to userland, such as
for use in lio_listio(2)?

> [snip]

-- 
Jilles Tjoelker


More information about the freebsd-arch mailing list