PR 51287 Ralf Nolden: posix_fallocate belongs in <fcntl.h>
This commit is contained in:
parent
9d18868a64
commit
ae3b3bcc2b
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: unistd.h,v 1.146 2016/06/18 14:39:15 kamil Exp $ */
|
/* $NetBSD: unistd.h,v 1.147 2016/06/30 15:29:20 dholland Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
|
||||||
@ -173,7 +173,6 @@ ssize_t readlink(const char * __restrict, char * __restrict, size_t);
|
|||||||
*/
|
*/
|
||||||
#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \
|
#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \
|
||||||
defined(_NETBSD_SOURCE)
|
defined(_NETBSD_SOURCE)
|
||||||
int posix_fallocate(int, off_t, off_t);
|
|
||||||
int setegid(gid_t);
|
int setegid(gid_t);
|
||||||
int seteuid(uid_t);
|
int seteuid(uid_t);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: fdiscard.2,v 1.3 2015/02/01 15:24:15 christos Exp $
|
.\" $NetBSD: fdiscard.2,v 1.4 2016/06/30 15:29:20 dholland Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
|
.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
@ -37,9 +37,10 @@
|
|||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In unistd.h
|
.In fcntl.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn posix_fallocate "int fd" "off_t pos" "off_t length"
|
.Fn posix_fallocate "int fd" "off_t pos" "off_t length"
|
||||||
|
.In unistd.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn fdiscard "int fd" "off_t pos" "off_t length"
|
.Fn fdiscard "int fd" "off_t pos" "off_t length"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: posix_fallocate.c,v 1.1 2014/09/25 15:08:29 manu Exp $ */
|
/* $NetBSD: posix_fallocate.c,v 1.2 2016/06/30 15:29:20 dholland Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
||||||
@ -33,12 +33,12 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: posix_fallocate.c,v 1.1 2014/09/25 15:08:29 manu Exp $");
|
__RCSID("$NetBSD: posix_fallocate.c,v 1.2 2016/06/30 15:29:20 dholland Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <unistd.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
int __posix_fallocate(int, int, off_t, off_t);
|
int __posix_fallocate(int, int, off_t, off_t);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: fcntl.h,v 1.46 2013/09/15 10:41:20 njoly Exp $ */
|
/* $NetBSD: fcntl.h,v 1.47 2016/06/30 15:29:20 dholland Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1983, 1990, 1993
|
* Copyright (c) 1983, 1990, 1993
|
||||||
@ -312,6 +312,14 @@ int flock(int, int);
|
|||||||
#endif /* _NETBSD_SOURCE */
|
#endif /* _NETBSD_SOURCE */
|
||||||
int posix_fadvise(int, off_t, off_t, int);
|
int posix_fadvise(int, off_t, off_t, int);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX)
|
||||||
|
*/
|
||||||
|
#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \
|
||||||
|
defined(_NETBSD_SOURCE)
|
||||||
|
int posix_fallocate(int, off_t, off_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* X/Open Extended API set 2 (a.k.a. C063)
|
* X/Open Extended API set 2 (a.k.a. C063)
|
||||||
*/
|
*/
|
||||||
@ -319,6 +327,7 @@ int posix_fadvise(int, off_t, off_t, int);
|
|||||||
defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
|
defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
|
||||||
int openat(int, const char *, int, ...);
|
int openat(int, const char *, int, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
#endif /* !_KERNEL */
|
#endif /* !_KERNEL */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user