summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorDavid Stainton <dstainton415@gmail.com>2014-08-29 05:58:53 +0000
committermeejah <meejah@meejah.ca>2014-08-30 15:23:05 -0600
commit227b65924b557b30855f659360a8547e352c1ec6 (patch)
tree3ccf6d23be24357d0c23a5014a0cdbfa5f56ba64 /src/common/util.h
parentc13db1f6143cf99830dc73dd527898e711e6b704 (diff)
downloadtor-227b65924b557b30855f659360a8547e352c1ec6.tar.gz
tor-227b65924b557b30855f659360a8547e352c1ec6.zip
Clean up patch
Here I clean up anon's patch with a few of nickm's suggestions from comment 12: https://trac.torproject.org/projects/tor/ticket/11291#comment:12 I did not yet completely implement all his suggestions.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/common/util.h b/src/common/util.h
index c98a32c19c..755ef4b82a 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -349,29 +349,6 @@ typedef unsigned int cpd_check_t;
int check_private_dir(const char *dirname, cpd_check_t check,
const char *effective_user);
-#if !defined(_WIN32) && !defined (WINCE)
-/** Unix like (non win32) group and world permission constants.
- * These constants are directly compatible with *nix ABI, e.g. S_IRWXU,*
- * NOTE: these are distinct from the private directory flags CPD_*
- * which are a portable way for storing private data cross platform.
- */
-#define STAT_RWXU 00700
-#define STAT_RUSR 00400
-#define STAT_WUSR 00200
-#define STAT_XUSR 00100
-
-#define STAT_RWXG 00070
-#define STAT_RGRP 00040
-#define STAT_WGRP 00020
-#define STAT_XGRP 00010
-
-#define STAT_RWXO 00007
-#define STAT_ROTH 00004
-#define STAT_WOTH 00002
-#define STAT_XOTH 00001
-#endif
-
-/** File open and create options */
#define OPEN_FLAGS_REPLACE (O_WRONLY|O_CREAT|O_TRUNC)
#define OPEN_FLAGS_APPEND (O_WRONLY|O_CREAT|O_APPEND)
#define OPEN_FLAGS_DONT_REPLACE (O_CREAT|O_EXCL|O_APPEND|O_WRONLY)