"lib/ast/pathcanon.c",
"lib/ast/pathcat.c",
"lib/ast/pathfind.c",
- "lib/ast/pathgetlink.c",
"lib/ast/pathpath.c",
"lib/ast/sfstr.h",
"lib/ast/strcopy.c",
pathcanon.c
pathcat.c
pathfind.c
- pathgetlink.c
strcopy.c
stresc.c
strmatch.c
libast_C_la_SOURCES = pathpath.c sfstr.h chresc.c chrtoi.c error.c \
fmtbuf.c fmtesc.c pathaccess.c pathcanon.c pathcat.c \
- pathfind.c pathgetlink.c \
+ pathfind.c \
strcopy.c stresc.c strmatch.c
EXTRA_DIST = compat_unistd.h ast.vcxproj*
const char *, int);
extern const char *pathcat(char *, const char *, int, const char *,
const char *);
- extern size_t pathgetlink(const char *, char *, size_t);
extern int chresc(const char *, char **);
extern int chrtoi(const char *);
<ClCompile Include="pathcanon.c" />
<ClCompile Include="pathcat.c" />
<ClCompile Include="pathfind.c" />
- <ClCompile Include="pathgetlink.c" />
<ClCompile Include="pathpath.c" />
<ClCompile Include="strcopy.c" />
<ClCompile Include="stresc.c" />
<ClCompile Include="pathfind.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="pathgetlink.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="pathpath.c">
<Filter>Source Files</Filter>
</ClCompile>
+++ /dev/null
-/*************************************************************************
- * 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
- *************************************************************************/
-
-/*
-* Glenn Fowler
-* AT&T Bell Laboratories
-*/
-
-#include "config.h"
-#include <errno.h>
-
-#include <ast/ast.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#else
-#include <ast/compat_unistd.h>
-#endif
-#include <stddef.h>
-#include <stdint.h>
-
-/*
- * return external representation for symbolic link text of name in buf
- * the link text string length is returned
- */
-
-size_t pathgetlink(const char *name, char *buf, size_t siz)
-{
-#ifdef _WIN32
- return SIZE_MAX;
-#else
- ssize_t n;
-
- if ((n = readlink(name, buf, siz)) < 0)
- return SIZE_MAX;
- if ((size_t)n >= siz) {
- errno = EINVAL;
- return SIZE_MAX;
- }
- buf[n] = 0;
- return (size_t)n;
-#endif
-}