summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-09-02 08:00:09 +0000
committerMartin Baulig <martin@src.gnome.org>1998-09-02 08:00:09 +0000
commit757e56c6ffcf176b9e36864046c4df8ba147b235 (patch)
treec81be769836963cf42791dab3e81f83c75b52e64 /support
parent26d8c8a944442943d217fd4ae597cddd8fded8be (diff)
downloadshared-mime-info-757e56c6ffcf176b9e36864046c4df8ba147b235.tar.gz
Emit declarations if required.
1998-09-02 Martin Baulig <martin@home-of-linux.org> * gnomesupport.awk (canonicalize_file_name, realpath): Emit declarations if required. * canonicalize.c (canonicalize_file_name, realpath): New file. Imported from GLibC 2.0.7. * libc-symbols.h: New file. Imported from GLibC 2.0.7. svn path=/trunk/; revision=373
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog10
-rw-r--r--support/gnomesupport.awk21
2 files changed, 31 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 599ee6ae..dd10ccdf 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,13 @@
+1998-09-02 Martin Baulig <martin@home-of-linux.org>
+
+ * gnomesupport.awk (canonicalize_file_name, realpath): Emit
+ declarations if required.
+
+ * canonicalize.c (canonicalize_file_name, realpath): New file.
+ Imported from GLibC 2.0.7.
+
+ * libc-symbols.h: New file. Imported from GLibC 2.0.7.
+
1998-08-24 Martin Baulig <martin@home-of-linux.org>
* gnomesupport.awk: Emit declarations for `setreuid', `setregid'
diff --git a/support/gnomesupport.awk b/support/gnomesupport.awk
index b6f3162d..cf17b478 100644
--- a/support/gnomesupport.awk
+++ b/support/gnomesupport.awk
@@ -185,6 +185,27 @@ END {
print " char */*fmt*/, ...);";
}
+ if (!def["HAVE_CANONICALIZE_FILE_NAME"] || !def["HAVE_REALPATH"]) {
+ print "";
+ print "/* Return the canonical absolute name of file NAME. A canonical name";
+ print " does not contain any `.', `..' components nor any repeated path";
+ print " separators ('/') or symlinks. All path components must exist. If";
+ print " RESOLVED is null, the result is malloc'd; otherwise, if the";
+ print " canonical name is PATH_MAX chars or more, returns null with `errno'";
+ print " set to ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars,";
+ print " returns the name in RESOLVED. If the name cannot be resolved and";
+ print " RESOLVED is non-NULL, it contains the path of the first component";
+ print " that cannot be resolved. If the path can be resolved, RESOLVED";
+ print " holds the same value as the value returned. */";
+ print "";
+ if (!def["HAVE_CANONICALIZE_FILE_NAME"]) {
+ print "char *canonicalize_file_name (const char */*name*/);";
+ }
+ if (!def["HAVE_REALPATH"]) {
+ print "char *realpath (char */*path*/, char /*resolved_path*/[]);";
+ }
+ }
+
print "";
print "#ifdef __cplusplus";
print "}";