From 95841a31d40f62659b12ea068d3fb05a78ec0f2a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 1 Jul 2019 17:46:28 +0200 Subject: [PATCH] Revert "Added permission bits." This reverts commit ae1313a35ccc76d72b87d3e5a4e6d36ae58c3af3. --- vlib/os/const.v | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/vlib/os/const.v b/vlib/os/const.v index fda70ac717..336f661e2d 100644 --- a/vlib/os/const.v +++ b/vlib/os/const.v @@ -73,30 +73,3 @@ const ( O_SYNC = 64 // open for synchronous I/O. O_TRUNC = 128 // truncate regular writable file when opened. ) - -// Permission bits -const ( - S_IREAD = 0400 /* Read by owner. */ - S_IWRITE = 0200 /* Write by owner. */ - S_IEXEC = 0100 /* Execute by owner. */ - - S_IRUSR = S_IREAD /* Alias of S_IREAD */ - S_IWUSR = S_IWRITE /* Alias of S_IWRITE */ - S_IXUSR = S_IEXEC /* Alias of S_IEXEC */ - - S_IRWXU = (S_IREAD|S_IWRITE|S_IEXEC) - - S_IRGRP = (S_IRUSR >> 3) /* Read by group. */ - S_IWGRP = (S_IWUSR >> 3) /* Write by group. */ - S_IXGRP = (S_IXUSR >> 3) /* Execute by group. */ - S_IRWXG = (S_IRWXU >> 3) /* Read, write, and execute by group. */ - - S_IROTH = (S_IRGRP >> 3) /* Read by others. */ - S_IWOTH = (S_IWGRP >> 3) /* Write by others. */ - S_IXOTH = (S_IXGRP >> 3) /* Execute by others. */ - S_IRWXO = (S_IRWXG >> 3) /* Read, write, and execute by others. */ - - ACCESSPERMS = (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ - ALLPERMS = (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */ - DEFFILEMODE = (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /* 0666*/ -)