[PATCH] Provide aliases for backward compatibility



---
 src/files.c    |    2 ++
 src/librep.sym |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/files.c b/src/files.c
index ff95a2b..5a6bc78 100644
--- a/src/files.c
+++ b/src/files.c
@@ -1339,6 +1339,7 @@ Returns the gid of the file called FILE-NAME
 	 return rep_call_file_handler(handler, op_file_gid,
 			              Qfile_gid, 1, file);
 }
+extern __typeof__ (Ffile_gid) Ffile_gid_p __attribute__ ((alias ("Ffile_gid")));
 
 DEFUN("file-uid", Ffile_uid, Sfile_uid,
 	(repv file), rep_Subr1) /*
@@ -1357,6 +1358,7 @@ Returns the uid of the file called FILE-NAME
 	 return rep_call_file_handler(handler, op_file_uid,
 			 		Qfile_uid, 1, file);
 }
+extern __typeof__ (Ffile_uid) Ffile_uid_p __attribute__ ((alias ("Ffile_uid")));
 
 DEFUN("file-nlinks", Ffile_nlinks, Sfile_nlinks,
       (repv file), rep_Subr1) /*
diff --git a/src/librep.sym b/src/librep.sym
index 595fba9..56f9651 100644
--- a/src/librep.sym
+++ b/src/librep.sym
@@ -107,7 +107,9 @@ Ffile_name_nondirectory
 Ffile_nlinks
 Ffile_owner_p
 Ffile_gid
+Ffile_gid_p
 Ffile_uid
+Ffile_uid_p
 Ffile_readable_p
 Ffile_regular_p
 Ffile_size
-- 
1.7.0.6



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]