]> granicus.if.org Git - strace/commitdiff
Alias sys_*lstat* syscall printing functions
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 1 May 2013 15:56:22 +0000 (15:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 1 May 2013 15:56:22 +0000 (15:56 +0000)
* file.c (sys_lstat, sys_lstat64, sys_oldlstat): Remove.
* linux/dummy.h: Move !HAVE_STRUCT___OLD_KERNEL_STAT aliases forward.
(sys_lstat): Alias to sys_stat.
(sys_lstat64): Alias to sys_stat64.
(sys_oldlstat): Alias to sys_oldstat.
* linux/syscall.h (sys_lstat, sys_lstat64, sys_oldlstat): Remove.
* linux/x32/syscallent1.h (sys_lstat64): Remove.

file.c
linux/dummy.h
linux/syscall.h
linux/x32/syscallent1.h

diff --git a/file.c b/file.c
index 040f469d855d3e8f46ef4b8f9f1406b0b8c4c9a1..837bfed6c2d04d55242f86406817a90b5bf7aef8 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1360,48 +1360,6 @@ sys_oldfstat(struct tcb *tcp)
 }
 #endif
 
-int
-sys_lstat(struct tcb *tcp)
-{
-       if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-               tprints(", ");
-       } else {
-               printstat(tcp, tcp->u_arg[1]);
-       }
-       return 0;
-}
-
-int
-sys_lstat64(struct tcb *tcp)
-{
-#ifdef HAVE_STAT64
-       if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-               tprints(", ");
-       } else {
-               printstat64(tcp, tcp->u_arg[1]);
-       }
-       return 0;
-#else
-       return printargs(tcp);
-#endif
-}
-
-#if defined(HAVE_STRUCT___OLD_KERNEL_STAT)
-int
-sys_oldlstat(struct tcb *tcp)
-{
-       if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-               tprints(", ");
-       } else {
-               printoldstat(tcp, tcp->u_arg[1]);
-       }
-       return 0;
-}
-#endif
-
 #if defined(SPARC) || defined(SPARC64)
 
 int
index fceeb7a4de102e0230bf33a47b5534ee85aab0c5..a54f8a7c604e2375963c91d242431533853dbcc8 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef HAVE_STRUCT___OLD_KERNEL_STAT
+#define        sys_oldfstat            printargs
+#define        sys_oldstat             printargs
+#endif
+
 /* still unfinished */
 #define        sys_add_key             printargs
 #define        sys_fanotify_init       printargs
 #define        sys_geteuid             sys_getuid
 #define        sys_getgid              sys_getuid
 #define        sys_getresgid           sys_getresuid
+#define        sys_lstat               sys_stat
+#define        sys_lstat64             sys_stat64
 #define        sys_mlock               sys_munmap
 #define        sys_mq_unlink           sys_chdir
 #define        sys_munlock             sys_munmap
+#define        sys_oldlstat            sys_oldstat
 #define        sys_pivotroot           sys_link
 #define        sys_rename              sys_link
 #define        sys_rmdir               sys_chdir
 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg)
 #define        sys_putpmsg             printargs
 #endif
-
-#ifndef HAVE_STRUCT___OLD_KERNEL_STAT
-#define        sys_oldfstat            printargs
-#define        sys_oldlstat            printargs
-#define        sys_oldstat             printargs
-#endif
index 090b54c34a9a0666cd50af935b8fa976d9590edc..6368cefe0681c2cafdf5a64833fbe8f10a647d65 100644 (file)
@@ -126,8 +126,6 @@ int sys_listen();
 int sys_listxattr();
 int sys_llseek();
 int sys_lseek();
-int sys_lstat();
-int sys_lstat64();
 int sys_madvise();
 int sys_mbind();
 int sys_migrate_pages();
@@ -161,7 +159,6 @@ int sys_newfstatat();
 int sys_old_mmap();
 int sys_old_mmap_pgoff();
 int sys_oldfstat();
-int sys_oldlstat();
 int sys_oldselect();
 int sys_oldstat();
 int sys_open();
index dc1d32ee6ae3bad60ee18d0581f0106060b32c6a..091d2c2853e598185e4018597ccea0da34f183ba 100644 (file)
@@ -1,6 +1,5 @@
 /* Our second set comes from the i386 files.  */
 
-#define sys_lstat64 sys_stat64
 #define sys_truncate64 sys_truncate
 #define sys_ftruncate64 sys_ftruncate
 #include "../i386/syscallent.h"