libc/winsup/cygwin/include/cygwin/fs.h
Ken Brown f665b1cef3 cygwin: Implement renameat2
Define the RENAME_NOREPLACE flag in <cygwin/fs.h> as defined on Linux
in <linux/fs.h>.  The other RENAME_* flags defined on Linux are not
supported.
2017-08-19 18:06:49 +02:00

29 lines
764 B
C

/* cygwin/fs.h
Written by Chris January <chris@atomice.net>
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#ifndef _CYGWIN_FS_H_
#define _CYGWIN_FS_H_
#define BLKRRPART 0x0000125f
#define BLKGETSIZE 0x00001260
#define BLKSSZGET 0x00001268
#define BLKIOMIN 0x00001278
#define BLKIOOPT 0x00001279
#define BLKALIGNOFF 0x0000127a
#define BLKPBSZGET 0x0000127b
#define BLKGETSIZE64 0x00041268
/* Flags for renameat2, from /usr/include/linux/fs.h. For now we
support only RENAME_NOREPLACE. */
#define RENAME_NOREPLACE (1 << 0)
/* #define RENAME_EXCHANGE (1 << 1) */
/* #define RENAME_WHITEOUT (1 << 2) */
#endif