]> granicus.if.org Git - graphviz/commitdiff
remove no longer used compat_unistd.h
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 18 Apr 2022 03:17:49 +0000 (20:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Apr 2022 15:52:41 +0000 (08:52 -0700)
Gitlab: closes #2204

ci/clang_format.py
lib/ast/Makefile.am
lib/ast/ast.vcxproj
lib/ast/ast.vcxproj.filters
lib/ast/compat_unistd.h [deleted file]

index 9bc3a2728e7370ddecdd7dc99f465dd705a362a8..6a80e5d3e821ace47efbd330918f01403ca3e9ad 100644 (file)
@@ -233,7 +233,6 @@ EXCLUDE = (
   "lib/ast/ast.h",
   "lib/ast/chresc.c",
   "lib/ast/chrtoi.c",
-  "lib/ast/compat_unistd.h",
   "lib/ast/error.c",
   "lib/ast/error.h",
   "lib/ast/fmtbuf.c",
index 0fac1f3e7dee957c129cffe0aa3f33097e0f742e..2502eadb5fadbc9c2f3651af8ceecd2b2de0d1d1 100644 (file)
@@ -10,4 +10,4 @@ libast_C_la_SOURCES = pathpath.c sfstr.h chresc.c chrtoi.c error.c \
        pathfind.c \
        strcopy.c stresc.c strmatch.c
 
-EXTRA_DIST = compat_unistd.h ast.vcxproj*
+EXTRA_DIST = ast.vcxproj*
index 5162248d9de9dc002b9aaefed327061dd329f733..717262509384eea8a4e811c94763ef3fa47ac244 100644 (file)
@@ -76,7 +76,6 @@
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClInclude Include="ast.h" />
-    <ClInclude Include="compat_unistd.h" />
     <ClInclude Include="error.h" />
     <ClInclude Include="hashkey.h" />
     <ClInclude Include="sfstr.h" />
index 14ee6c95773974a3688f751404aa97aebf777ba4..34e45e6368a06167e39bac13143046df5c2930bd 100644 (file)
@@ -18,9 +18,6 @@
     <ClInclude Include="ast.h">
       <Filter>Header Files</Filter>
     </ClInclude>
-    <ClInclude Include="compat_unistd.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
     <ClInclude Include="error.h">
       <Filter>Header Files</Filter>
     </ClInclude>
diff --git a/lib/ast/compat_unistd.h b/lib/ast/compat_unistd.h
deleted file mode 100644 (file)
index 36eba84..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property 
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define        F_OK    0
-#define        R_OK    4
-#define        W_OK    2
-#define        X_OK    1
-
-#define      S_ISDIR(m)      (((m) & 0170000) == 0040000) 
-
-#define        S_IRWXU         (S_IRUSR | S_IWUSR | S_IXUSR)
-#define                S_IRUSR 0000400 /* read permission, owner */
-#define                S_IWUSR 0000200 /* write permission, owner */
-#define                S_IXUSR 0000100/* execute/search permission, owner */
-#define        S_IRWXG         (S_IRGRP | S_IWGRP | S_IXGRP)
-#define                S_IRGRP 0000040 /* read permission, group */
-#define                S_IWGRP 0000020 /* write permission, grougroup */
-#define                S_IXGRP 0000010/* execute/search permission, group */
-#define        S_IRWXO         (S_IROTH | S_IWOTH | S_IXOTH)
-#define                S_IROTH 0000004 /* read permission, other */
-#define                S_IWOTH 0000002 /* write permission, other */
-#define                S_IXOTH 0000001/* execute/search permission, other */
-
-extern int access (const char*, int);
-extern char* getcwd (char*, int);
-
-#ifdef __cplusplus
-}
-#endif