diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-30 14:00:14 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-30 14:00:14 +0200 |
commit | 1201426dd43f5b4e12dfe520e2a9c5027d33dc11 (patch) | |
tree | 1d89fc672a53494c99e63f320ffda876c4452160 /time.c | |
parent | 75422766d51cf96ea081977c9d0b26b2ba1a8ade (diff) | |
download | strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.gz strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.bz2 strace-1201426dd43f5b4e12dfe520e2a9c5027d33dc11.tar.xz |
"Modernize" all old-style function parameter declarations
* bjm.c: Convert all remaining old-style C function definitions
to a "modern" form. This does not change any actual code.
* io.c: Likewise
* ioctl.c: Likewise
* net.c: Likewise
* proc.c: Likewise
* process.c: Likewise
* signal.c: Likewise
* sock.c: Likewise
* strace.c: Likewise
* stream.c: Likewise
* syscall.c: Likewise
* system.c: Likewise
* time.c: Likewise
* util.c: Likewise
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 63 |
1 files changed, 20 insertions, 43 deletions
@@ -207,8 +207,7 @@ void sprint_timespec(char *buf, struct tcb *tcp, long addr) } int -sys_time(tcp) -struct tcb *tcp; +sys_time(struct tcb *tcp) { if (exiting(tcp)) { #ifndef SVR4 @@ -219,8 +218,7 @@ struct tcb *tcp; } int -sys_stime(tcp) -struct tcb *tcp; +sys_stime(struct tcb *tcp) { if (exiting(tcp)) { printnum(tcp, tcp->u_arg[0], "%ld"); @@ -229,8 +227,7 @@ struct tcb *tcp; } int -sys_gettimeofday(tcp) -struct tcb *tcp; +sys_gettimeofday(struct tcb *tcp) { if (exiting(tcp)) { if (syserror(tcp)) { @@ -250,8 +247,7 @@ struct tcb *tcp; #ifdef ALPHA int -sys_osf_gettimeofday(tcp) -struct tcb *tcp; +sys_osf_gettimeofday(struct tcb *tcp) { if (exiting(tcp)) { if (syserror(tcp)) { @@ -269,8 +265,7 @@ struct tcb *tcp; #endif int -sys_settimeofday(tcp) -struct tcb *tcp; +sys_settimeofday(struct tcb *tcp) { if (entering(tcp)) { printtv(tcp, tcp->u_arg[0]); @@ -284,8 +279,7 @@ struct tcb *tcp; #ifdef ALPHA int -sys_osf_settimeofday(tcp) -struct tcb *tcp; +sys_osf_settimeofday(struct tcb *tcp) { if (entering(tcp)) { printtv_bitness(tcp, tcp->u_arg[0], BITNESS_32, 0); @@ -299,8 +293,7 @@ struct tcb *tcp; #endif int -sys_adjtime(tcp) -struct tcb *tcp; +sys_adjtime(struct tcb *tcp) { if (entering(tcp)) { printtv(tcp, tcp->u_arg[0]); @@ -383,8 +376,7 @@ printitv_bitness(struct tcb *tcp, long addr, enum bitness_t bitness) printitv_bitness((tcp), (addr), BITNESS_CURRENT) int -sys_getitimer(tcp) -struct tcb *tcp; +sys_getitimer(struct tcb *tcp) { if (entering(tcp)) { printxval(which, tcp->u_arg[0], "ITIMER_???"); @@ -401,8 +393,7 @@ struct tcb *tcp; #ifdef ALPHA int -sys_osf_getitimer(tcp) -struct tcb *tcp; +sys_osf_getitimer(struct tcb *tcp) { if (entering(tcp)) { printxval(which, tcp->u_arg[0], "ITIMER_???"); @@ -418,8 +409,7 @@ struct tcb *tcp; #endif int -sys_setitimer(tcp) -struct tcb *tcp; +sys_setitimer(struct tcb *tcp) { if (entering(tcp)) { printxval(which, tcp->u_arg[0], "ITIMER_???"); @@ -437,8 +427,7 @@ struct tcb *tcp; #ifdef ALPHA int -sys_osf_setitimer(tcp) -struct tcb *tcp; +sys_osf_setitimer(struct tcb *tcp) { if (entering(tcp)) { printxval(which, tcp->u_arg[0], "ITIMER_???"); @@ -694,8 +683,7 @@ static const struct xlat clocknames[] = { }; int -sys_clock_settime(tcp) -struct tcb *tcp; +sys_clock_settime(struct tcb *tcp) { if (entering(tcp)) { printxval(clocknames, tcp->u_arg[0], "CLOCK_???"); @@ -706,8 +694,7 @@ struct tcb *tcp; } int -sys_clock_gettime(tcp) -struct tcb *tcp; +sys_clock_gettime(struct tcb *tcp) { if (entering(tcp)) { printxval(clocknames, tcp->u_arg[0], "CLOCK_???"); @@ -722,8 +709,7 @@ struct tcb *tcp; } int -sys_clock_nanosleep(tcp) -struct tcb *tcp; +sys_clock_nanosleep(struct tcb *tcp) { if (entering(tcp)) { printxval(clocknames, tcp->u_arg[0], "CLOCK_???"); @@ -829,8 +815,7 @@ printsigevent(struct tcb *tcp, long arg) } int -sys_timer_create(tcp) -struct tcb *tcp; +sys_timer_create(struct tcb *tcp) { if (entering(tcp)) { printxval(clocknames, tcp->u_arg[0], "CLOCK_???"); @@ -849,8 +834,7 @@ struct tcb *tcp; } int -sys_timer_settime(tcp) -struct tcb *tcp; +sys_timer_settime(struct tcb *tcp) { if (entering(tcp)) { tprintf("%#lx, ", tcp->u_arg[0]); @@ -868,8 +852,7 @@ struct tcb *tcp; } int -sys_timer_gettime(tcp) -struct tcb *tcp; +sys_timer_gettime(struct tcb *tcp) { if (entering(tcp)) { tprintf("%#lx, ", tcp->u_arg[0]); @@ -883,9 +866,7 @@ struct tcb *tcp; } static void -print_rtc(tcp, rt) -struct tcb *tcp; -const struct rtc_time *rt; +print_rtc(struct tcb *tcp, const struct rtc_time *rt) { tprintf("{tm_sec=%d, tm_min=%d, tm_hour=%d, " "tm_mday=%d, tm_mon=%d, tm_year=%d, ", @@ -899,10 +880,7 @@ const struct rtc_time *rt; } int -rtc_ioctl(tcp, code, arg) -struct tcb *tcp; -long code; -long arg; +rtc_ioctl(struct tcb *tcp, long code, long arg) { switch (code) { case RTC_ALM_SET: @@ -983,8 +961,7 @@ static const struct xlat timerfdflags[] = { }; int -sys_timerfd(tcp) -struct tcb *tcp; +sys_timerfd(struct tcb *tcp) { if (entering(tcp)) { /* It does not matter that the kernel uses itimerspec. */ |