Re: [PATCH 1/1] fallocate.2: add include falloc.h

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

 



Hi Heinrich,

On Fri, Oct 3, 2014 at 2:37 AM, Heinrich Schuchardt <xypron.glpk@xxxxxx> wrote:
> Include linux/falloc.h provides the constants described in the
> manpage.

Yes, but they're also included via fcntl.h (via bits/fcntl.h via
bits/fcntl-linux.h). So this patch seems incorrect to me, so I won;t
apply for now. Let me know if I missed something.

Thanks,

Michael


> Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
> ---
>  man2/fallocate.2 | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/man2/fallocate.2 b/man2/fallocate.2
> index ccd0431..68b33b5 100644
> --- a/man2/fallocate.2
> +++ b/man2/fallocate.2
> @@ -15,6 +15,7 @@ fallocate \- manipulate file space
>  .nf
>  .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
>  .B #include <fcntl.h>
> +.B #include <linux/falloc.h>
>
>  .BI "int fallocate(int " fd ", int " mode ", off_t " offset \
>  ", off_t " len ");
> --
> 2.1.0
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux