From 8f07bac0434e5bf2f0b56d3c395be3d7474b69fd Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 17 Apr 2022 20:17:49 -0700 Subject: [PATCH] remove no longer used compat_unistd.h Gitlab: closes #2204 --- ci/clang_format.py | 1 - lib/ast/Makefile.am | 2 +- lib/ast/ast.vcxproj | 1 - lib/ast/ast.vcxproj.filters | 3 --- lib/ast/compat_unistd.h | 42 ------------------------------------- 5 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 lib/ast/compat_unistd.h diff --git a/ci/clang_format.py b/ci/clang_format.py index 9bc3a2728..6a80e5d3e 100644 --- a/ci/clang_format.py +++ b/ci/clang_format.py @@ -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", diff --git a/lib/ast/Makefile.am b/lib/ast/Makefile.am index 0fac1f3e7..2502eadb5 100644 --- a/lib/ast/Makefile.am +++ b/lib/ast/Makefile.am @@ -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* diff --git a/lib/ast/ast.vcxproj b/lib/ast/ast.vcxproj index 5162248d9..717262509 100644 --- a/lib/ast/ast.vcxproj +++ b/lib/ast/ast.vcxproj @@ -76,7 +76,6 @@ - diff --git a/lib/ast/ast.vcxproj.filters b/lib/ast/ast.vcxproj.filters index 14ee6c957..34e45e636 100644 --- a/lib/ast/ast.vcxproj.filters +++ b/lib/ast/ast.vcxproj.filters @@ -18,9 +18,6 @@ Header Files - - Header Files - Header Files diff --git a/lib/ast/compat_unistd.h b/lib/ast/compat_unistd.h deleted file mode 100644 index 36eba84a4..000000000 --- a/lib/ast/compat_unistd.h +++ /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 -- 2.40.0