Blame misc/sys/file.h

Packit 6c4009
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef	_SYS_FILE_H
Packit 6c4009
#define	_SYS_FILE_H	1
Packit 6c4009
Packit 6c4009
#include <features.h>
Packit 6c4009
Packit 6c4009
#ifndef	_FCNTL_H
Packit 6c4009
# include <fcntl.h>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Alternate names for values for the WHENCE argument to `lseek'.
Packit 6c4009
   These are the same as SEEK_SET, SEEK_CUR, and SEEK_END, respectively.  */
Packit 6c4009
#ifndef L_SET
Packit 6c4009
# define L_SET	0	/* Seek from beginning of file.  */
Packit 6c4009
# define L_INCR	1	/* Seek from current position.  */
Packit 6c4009
# define L_XTND	2	/* Seek from end of file.  */
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Operations for the `flock' call.  */
Packit 6c4009
#define	LOCK_SH	1	/* Shared lock.  */
Packit 6c4009
#define	LOCK_EX	2 	/* Exclusive lock.  */
Packit 6c4009
#define	LOCK_UN	8	/* Unlock.  */
Packit 6c4009
Packit 6c4009
/* Can be OR'd in to one of the above.  */
Packit 6c4009
#define	LOCK_NB	4	/* Don't block when locking.  */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Apply or remove an advisory lock, according to OPERATION,
Packit 6c4009
   on the file FD refers to.  */
Packit 6c4009
extern int flock (int __fd, int __operation) __THROW;
Packit 6c4009
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif /* sys/file.h  */