summaryrefslogtreecommitdiff
path: root/src/KM_fileio.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2006-07-11 17:56:11 +0000
committerjhurst <>2006-07-11 17:56:11 +0000
commit1cd511e77b968ba068c59f4771cb67810e4ba4c4 (patch)
treed376651897aa433b4b5e11fb919e6c71684d82ca /src/KM_fileio.cpp
parent2d2b03275e92e650ee096bd29cd42fee15ba3c4d (diff)
fixed unix group permissions
Diffstat (limited to 'src/KM_fileio.cpp')
-rw-r--r--src/KM_fileio.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp
index 464d47f..a41669f 100644
--- a/src/KM_fileio.cpp
+++ b/src/KM_fileio.cpp
@@ -41,7 +41,9 @@ typedef struct _stati64 fstat_t;
#define S_IFLNK 0
-// AFAIK, there is no iovec equivalent in the win32 API
+// win32 has WriteFileGather() and ReadFileScatter() but they
+// demand page alignment and page sizing, making them unsuitable
+// for use with arbitrary buffer sizes.
struct iovec {
char* iov_base; // stupid iovec uses char*
int iov_len;
@@ -524,7 +526,7 @@ Kumu::FileWriter::OpenWrite(const char* filename)
{
KM_TEST_NULL_STR(filename);
m_Filename = filename;
- m_Handle = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0644);
+ m_Handle = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0664);
if ( m_Handle == -1L )
{
@@ -542,7 +544,7 @@ Kumu::FileWriter::OpenModify(const char* filename)
{
KM_TEST_NULL_STR(filename);
m_Filename = filename;
- m_Handle = open(filename, O_RDWR|O_CREAT, 0644);
+ m_Handle = open(filename, O_RDWR|O_CREAT, 0664);
if ( m_Handle == -1L )
{