summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-10-25 12:20:45 -0400
committerColin Walters <walters@verbum.org>2016-10-25 12:25:12 -0400
commit7d2f577d76eeb83a6f7a914a7acd3d277d4cbe7c (patch)
tree417d66c3f5956933de00fd4945390206dae57c0b
parent36396b49ad6636c9959f3dfac5e04d41584b1a92 (diff)
downloadlibglnx-7d2f577d76eeb83a6f7a914a7acd3d277d4cbe7c.tar.gz
fdio: Make GLnxFileCopyFlags actually flags
I wanted to add a new one, and realized it was wrong. Luckily, I think we were safe until now, since the set of bits for `(0, 1, 2)` is actually distinct. Although, hm, callers specifying `GLNX_FILE_COPY_OVERWRITE` may have not actually been getting that.
-rw-r--r--glnx-fdio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/glnx-fdio.h b/glnx-fdio.h
index 982545a..111df9d 100644
--- a/glnx-fdio.h
+++ b/glnx-fdio.h
@@ -130,9 +130,9 @@ int
glnx_loop_write (int fd, const void *buf, size_t nbytes);
typedef enum {
- GLNX_FILE_COPY_OVERWRITE,
- GLNX_FILE_COPY_NOXATTRS,
- GLNX_FILE_COPY_DATASYNC
+ GLNX_FILE_COPY_OVERWRITE = (1 << 0),
+ GLNX_FILE_COPY_NOXATTRS = (1 << 1),
+ GLNX_FILE_COPY_DATASYNC = (1 << 2)
} GLnxFileCopyFlags;
gboolean