Permalink
Browse files

Legacy system support (O_CLOEXEC)

  • Loading branch information...
vadirn authored and garlick committed Oct 4, 2012
1 parent 66023bd commit c3d8f7ccd5e0ac96fc1322f479796cd4209068a8
Showing with 6 additions and 0 deletions.
  1. +6 −0 diod/ops.c
View
@@ -81,6 +81,11 @@
#include <utime.h>
#include <stdarg.h>
+/* Legacy system support */
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
#include "9p.h"
#include "npfs.h"
#include "xpthread.h"
@@ -592,6 +597,7 @@ _remap_oflags (int flags)
{
int i;
int rflags = 0;
+
struct dotl_openflag_map dotl_oflag_map[] = {
{ O_CREAT, P9_DOTL_CREATE },
{ O_EXCL, P9_DOTL_EXCL },

0 comments on commit c3d8f7c

Please sign in to comment.