summaryrefslogtreecommitdiff
path: root/time.c
Commit message (Collapse)AuthorAge
* Use XLAT_END macroDmitry V. Levin2014-02-05
| | | | | Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
* Convert sigev_value to XLAT formDmitry V. Levin2014-02-05
| | | | | * time.c (sigev_value): Convert to XLAT form. (printsigevent32, printsigevent): Update use of sigev_value.
* Use XLAT macroDmitry V. Levin2014-02-05
| | | | | | Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
* Decode dynamic posix clocksStefan Sørensen2014-02-03
| | | | | | | | | | | * time.c (cpuclocknames): New xlat structure. (printclockname): New function that decodes posix clock names, including dynamic fd encoded clocks. (sys_clock_settime, sys_clock_gettime, sys_clock_nanosleep, sys_clock_adjtime, sys_timer_create, sys_timerfd, sys_timerfd_create): Use it. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
* Update ADJ_* constantsStefan Sørensen2014-02-03
| | | | | | | * time.c (adjtimex_modes): Add ADJ_TAI, ADJ_SETOFFSET, ADJ_MICRO, ADJ_NANO, ADJ_OFFSET_SS_READ. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
* Make SIGEV_THREAD_ID decoding less glibc specificDmitry V. Levin2013-11-12
| | | | | | | | | | | | | SIGEV_THREAD_ID decoding requires access to an internal member of struct sigevent. There seems to be no portable way to do it besides adding a configure check. * configure.ac (AC_CHECK_MEMBERS): Check for struct sigevent._sigev_un._pad and struct sigevent.__pad. * time.c (printsigevent): Use an appropriate struct sigevent member to print thread id. Reported by John Spencer.
* Fold is_restart_error() into its sole userDenys Vlasenko2013-06-30
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Update STA_* constantsDmitry V. Levin2012-05-01
| | | | | * time.c (adjtimex_status): Add STA_NANO, STA_MODE, and STA_CLK. * NEWS (Improvements): Mention it.
* Optimize code if we have only one personalityDenys Vlasenko2012-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On i386: text data bss dec hex filename 238025 672 18980 257677 3ee8d strace.before 237389 704 18944 257037 3ec0d strace * defs.h: Define PERSONALITY0_WORDSIZE as sizeof(long) if not defined. Introduce new define, current_wordsize as (personality_wordsize[current_personality]). Make set_personality() no-op, current_personality constant zero, current_wordsize as PERSONALITY0_WORDSIZE if we have only one personality. * count.c (call_summary): Use current_wordsize instead of personality_wordsize[current_personality]. * desc.c (printflock): Likewise. * file.c (sys_utime): Likewise. * io.c (tprint_iov): Likewise. * process.c (printargv): Likewise. * resource.c (decode_rlimit): Likewise. * signal.c (sys_kill): Likewise. (sys_rt_sigaction): Likewise. * time.c (sprinttv): Likewise. (sprint_timespec): Likewise. (printitv_bitness): Likewise. (tprint_timex): Likewise. (printsigevent): Likewise. * util.c (dumpiov): Likewise. (umoven): Likewise. (umovestr): Likewise. * syscall.c: Initialize sysent to sysent0 etc. Make current_personality, personality_wordsize[], set_personality() conditional on SUPPORTED_PERSONALITIES > 1. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Indentation and whitespace fixes. No code changes.Denys Vlasenko2012-03-17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Tidy up includes and copyright notices, fix indentationDenys Vlasenko2012-03-16
| | | | | | | | | | | | | | | The files not mentioned in changelog below had only copyright notices fixes and indentation fixes. * defs.h: Include <stdint.h> and <inttypes.h>. * file.c: Do not include <inttypes.h>. Move struct kernel_dirent declaration below top include block. * block.c: Do not include <stdint.h> and <inttypes.h>. * quota.c: Likewise. * desc.c: Likewise. * signal.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Implement clock_adjtime syscall decoderDmitry V. Levin2012-03-11
| | | | | | | | * linux/dummy.h (sys_clock_adjtime): Remove. * linux/syscall.h (sys_clock_adjtime): New prototype. * time.c (do_adjtimex): New function, based on sys_adjtimex. (sys_adjtimex): Use it. (sys_clock_adjtime): New function.
* Compress blank linesDmitry V. Levin2012-02-25
| | | | | | Suppress repeated empty lines left after automated code removal. This change was made by filtering every source code file through "cat -s".
* Build fixes after non-Linux code removalDenys Vlasenko2012-02-25
| | | | | | | | | | | | | | * configure.ac: Remove calls to proc-based ptrace checks. * proc.c: Remove, it's empty now. * Makefile.am: Remove reference to proc.c. * net.c: Remove trailing newlines. * quota.c: Likewise * resource.c: Likewise * strace.c: Likewise * stream.c: Likewise * time.c: Likewise Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Cleanup after non-Linux code removal.Denys Vlasenko2012-02-25
| | | | | | | | | Conditions such as defined(LINUX) are always true now, defined(FREEBSD) etc are always false. When if directive has them as subexpressions, it can be simplified. Another trivial changes here are fixes for directive indentation. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Automated removal of non-Linux codeDenys Vlasenko2012-02-25
| | | | | | | | | | This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Cast to long for %l in printfH.J. Lu2012-02-06
| | | | | | | | | | | Cast a value to long for %l in printf to avoid compiler warning on systems where it may be long long. * count.c (call_summary_pers): Cast to long. * ipc.c (sys_mq_open, printmqattr): Likewise. * quota.c (decode_cmd_data): Likewise. * resource.c (sys_sysinfo): Likewise. * time.c (tprint_timex): Likewise.
* Revert last change. Add a comment to prevent further misunderstandingDenys Vlasenko2012-01-28
| | | | | | * time.c (sys_nanosleep): Display remaining time only on interrupt. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix nanosleep decoding: second argument was not shown after successDenys Vlasenko2012-01-28
| | | | | | | * time.c (sys_nanosleep): Fix bug - inverted is_restart_error() check. * syscall.c (is_restart_error): Remove redundant check. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Eliminate code duplication in time printing, reduce a few static buffersDenys Vlasenko2012-01-20
| | | | | | | | | | | | | | | | | | | | | | text data bss dec hex filename 238454 664 28772 267890 41672 strace.before 238106 664 28676 267446 414b6 strace * defs.h: Add TIMESPEC_TEXT_BUFSIZE and TIMEVAL_TEXT_BUFSIZE defines. Add 'int special' parameter to sprinttv(). * time.c (sprinttv): Add 'int special' parameter, and use it similarly to 'int special' parameter of printtv_bitness(). (printtv_bitness): Use sprinttv() instead of duplicating its code. (print_timespec): Use sprint_timespec() instead of duplicating its code. * desc.c (decode_select): Use TIMEVAL_TEXT_BUFSIZE instead of 128 when checking remaining buffer size. * net.c (sys_recvmsg): Use TIMESPEC_TEXT_BUFSIZE instead of 128 for static buffer size. * stream.c (decode_poll): Use TIMESPEC_TEXT_BUFSIZE instead of 128 when checking remaining buffer size. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Simplify sprinttv()Denys Vlasenko2011-09-01
| | | | | | * time.c (sprinttv): Trivial simplifications. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Use tprints with literal strings, it may be faster than tprintfDenys Vlasenko2011-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | * bjm.c: Replace tprintf("str") with tprints("str"). * block.c: Likewise. * desc.c: Likewise. * file.c: Likewise. * io.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * resource.c: Likewise. * scsi.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Optimization: eliminate all remaining usages of strcat()Denys Vlasenko2011-08-31
| | | | | | | | | | | | | After this change, we don't use strcat() anywhere. * defs.h: Change sprinttv() return type to char *. * time.c (sprinttv): Return pointer past last stored char. * desc.c (decode_select): Change printing logic in order to eliminate usage of strcat() - use stpcpy(), *outptr++ = ch, sprintf() instead. Also reduce usage of strlen(). * stream.c (decode_poll): Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Improve code readability by avoiding assignments inside if()Denys Vlasenko2011-08-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | * desc.c (decode_select): Move assignment out of if() condition. * file.c (sprinttime): Likewise. (sys_getdirentries): Likewise. * io.c (sys_ioctl): Likewise. * strace.c (test_ptrace_setoptions_followfork): Likewise. (main): Likewise. (proc_open): Likewise. (detach): Likewise. (proc_poll): Likewise. (trace): Likewise. * syscall.c (qualify): Likewise. (sys_indir): Likewise. * test/procpollable.c (main): Likewise. * test/sfd.c (main): Likewise. * time.c (printtv_bitness): Likewise. (sprinttv): Likewise. (print_timespec): Likewise. (void sprint_timespec): Likewise. (printitv_bitness): Likewise. * util.c (dumpstr): Likewise. (umovestr): Likewise. (fixvfork): Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Whitespace cleanups. No code changes.Denys Vlasenko2011-06-22
| | | | | | | | | | | | | | | | | | * count.c: Place opening curly brace after if (), not on the next line. Almost all strace code alredy uses this style. * desc.c: Likewise. * file.c: Likewise. * net.c: Likewise. * pathtrace.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * signal.c: Likewise. * strace.c: Likewise. * syscall.c: Likewise. * time.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Fix decoding of timer id returned by timer_createAndi Kleen2011-06-13
| | | | | * time.c (sys_timer_create): The kernel returns a integer, not a pointer for the timer id in the memory pointed to by timer_id.
* Whitespace cleanups. no code changes.Denys Vlasenko2011-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjm.c: Fix tabulation (such as extra spaces before tabs), convert punctuation where it deviates from prevalent form elsewhere in strace code, convert sizeof and offsetof where it deviates from from prevalent form, remove space between function/macro/array names and (parameters) or [index], add space between "if" and (condition), correct non-standard or wrong indentaion. * defs.h: Likewise * desc.c: Likewise * file.c: Likewise * ipc.c: Likewise * linux/arm/syscallent.h: Likewise * linux/avr32/syscallent.h: Likewise * linux/hppa/syscallent.h: Likewise * linux/i386/syscallent.h: Likewise * linux/ioctlsort.c: Likewise * linux/m68k/syscallent.h: Likewise * linux/microblaze/syscallent.h: Likewise * linux/powerpc/syscallent.h: Likewise * linux/s390/syscallent.h: Likewise * linux/s390x/syscallent.h: Likewise * linux/sh/syscallent.h: Likewise * linux/sh64/syscallent.h: Likewise * linux/tile/syscallent.h: Likewise * linux/x86_64/syscallent.h: Likewise * mem.c: Likewise * net.c: Likewise * pathtrace.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * sunos4/syscall.h: Likewise * sunos4/syscallent.h: Likewise * svr4/syscall.h: Likewise * svr4/syscallent.h: Likewise * syscall.c: Likewise * system.c: Likewise * test/childthread.c: Likewise * test/leaderkill.c: Likewise * test/skodic.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* "Modernize" all old-style function parameter declarationsDenys Vlasenko2011-05-30
| | | | | | | | | | | | | | | | | | | | * 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>
* Fix decoding of file descriptorsDmitry V. Levin2011-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | * defs.h (printfd): New function prototype. * util.c (printfd): New function. * file.c (print_dirfd): Update prototype to use printfd(). (sys_openat, sys_faccessat, sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat, sys_readlinkat, sys_renameat, sys_fchownat, sys_fchmodat, sys_futimesat, sys_utimensat, sys_mknodat): Update use of print_dirfd(). (sys_lseek, sys_llseek, sys_readahead, sys_ftruncate, sys_ftruncate64, sys_fstat, sys_fstat64, sys_oldfstat, sys_fstatfs, sys_fstatfs64, sys_fchdir, sys_fchroot, sys_linkat, sys_fchown, sys_fchmod, sys_fsync, sys_readdir, sys_getdents, sys_getdirentries, sys_fsetxattr, sys_fgetxattr, sys_flistxattr, sys_fremovexattr, sys_fadvise64, sys_fadvise64_64, sys_inotify_add_watch, sys_inotify_rm_watch, sys_fallocate): Use printfd() for decoding of file descriptors. * desc.c (sys_fcntl, sys_flock, sys_close, sys_dup, do_dup2, decode_select, sys_epoll_ctl, epoll_wait_common): Use printfd() for decoding of file descriptors. * io.c (sys_read, sys_write, sys_readv, sys_writev, sys_pread, sys_pwrite, sys_sendfile, sys_sendfile64, sys_pread64, sys_pwrite64, sys_ioctl): Likewise. * mem.c (print_mmap, sys_mmap64): Likewise. * signal.c (do_signalfd): Likewise. * stream.c (decode_poll): Likewise. * time.c (sys_timerfd_settime, sys_timerfd_gettime): Likewise. Based on patch from Grant Edwards <grant.b.edwards@gmail.com>.
* Update the list of CLOCK_* constants to match Linux kernel v2.6.32+Dmitry V. Levin2010-09-17
| | | | | * time.c (struct xlat clocknames[]): Add more RT clock IDs. Reported by Tommi Rantala.
* * signal.c: Whitespace, comment, and style fixes, no code changes.Denys Vlasenko2009-04-14
| | | | | | | * file.c: Ditto. * time.c: Ditto. * process.c: Ditto. * resource.c: Ditto.
* 2008-04-19 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2008-09-03
| | | | | | | | | | * desc.c (sys_fcntl): Do not initialize auxstr for failed syscall. * process.c (sys_fork, sys_rfork) [USE_PROCFS]: Likewise. * signal.c (sys_signal): Likewise. * stream.c (internal_stream_ioctl): Likewise. * time.c (sys_adjtimex): Likewise. * syscall.c (trace_syscall): If RVAL_STR is set, then print auxstr for failed syscall as well.
* 2008-04-19 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2008-09-03
| | | | | | | | * syscall.c (is_restart_error): New function. * defs.h (is_restart_error): Declare it. * linux/dummy.h (sys_nanosleep): Uncouple from sys_adjtime(). * time.c (sys_nanosleep): New function, based on is_restart_error().
* 2008-05-19 Roland McGrath <roland@redhat.com>Roland McGrath2008-05-20
| | | | | | | | * time.c (sys_timerfd_create): New function. (sys_timerfd_settime, sys_timerfd_gettime): New functions. * linux/syscall.h: Declare them. * linux/syscallent.h: Update entries for those syscalls. From Kyle McMartin <kyle@mcmartin.ca>.
* 2007-09-22 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2007-11-01
| | | | | | | | * time.c (print_timespec, sprint_timespec): New functions. * defs.h (print_timespec, sprint_timespec): Declare them. * desc.c (sys_io_getevents): Use print_timespec. * stream.c (sys_ppoll): Likewise. (decode_poll): Use sprint_timespec.
* 2007-02-23 Ulrich Drepper <drepper@redhat.com>Roland McGrath2007-08-02
| | | | | | | | | | | * time.c (printitv_bitness): Add missing braces to enclose conditional code. (TDF_TIMER_ABSTIME): Define if not already. (timerfdflags): New variable. (sys_timerfd): New function. * linux/syscall.h: Declare sys_timerfd. * linux/syscallent.h: Add timerfd entry. * linux/x86_64/syscallent.h: Likewise.
* 2007-07-23 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-24
| | | | * time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0.
* 2007-07-23 Ulrich Drepper <drepper@redhat.com>Roland McGrath2007-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | * defs.h: Add new parameter to printtv_bitness prototype. (printttv): Pass zero for the new parameter. (printtv_special): New macro. * desc.c (decode_select): Pass zero for the new parameter of printtv_bitness. * file.c (utimensatflags): New macro. (sys_osf_utimes): Pass zero for the new parameter of printtv_bitness. (sys_utimes): Likewise. (sys_futimesat): Likewise. (decode_utimes): Add new parameter. Pass it to the printtv_bitness calls. Fix printing of time values. (sys_utimensat): New function. * time.c (UTIME_NOW, UTIME_OMIT): Define if not already happened. (printtv_bitness): Add new parameter. Print special UTIME_* values as strings if set. (sys_osf_gettimeofday): Pass zero for the new parameter of printtv_bitness. (sys_osf_settimeofday): Likewise. * linux/syscall.h: Declare sys_utimensat. * linux/syscallent.h: Add utimensat entry. * linux/x86_64/syscallent.h: Likewise.
* 2007-01-12 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2007-01-13
| | | | | * time.c [LINUX] (tprint_timex32, tprint_timex): Decode adjtimex modes as flags.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | | | | | Add biarch support for "struct sigevent". * time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (printsigevent32): New function. [LINUX] (printsigevent): [SUPPORTED_PERSONALITIES > 1] Handle 32-bit personality.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | | | | | Add biarch support for "struct timex". * time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (tprint_timex32): New function. [LINUX] (tprint_timex): New function. [LINUX] (sys_adjtimex): Use it.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | | | | | Enhance adjtimex parser. * time.c [LINUX] (adjtimex_modes, adjtimex_status, adjtimex_state): New xlat structures. [LINUX] (sys_adjtimex): Print the whole struct timex. Decode modes, status and return code.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | | | | | | | | | Add biarch support for "struct itimerval". * time.c (printitv): Rename to printitv_bitness(). Add printitv() macro wrapper around printitv_bitness(). (printitv_bitness): Handle 32-bit personality. [ALPHA] (sys_osf_getitimer, sys_osf_setitimer): Use printitv_bitness(). (tprint_timeval, tprint_timeval32): New functions. (printtv_bitness, printitv_bitness, sys_adjtimex): Use them. (printitv32): Remove.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | | | | | | | | | | | | | | Add biarch support for "struct timeval". * defs.h (bitness_t): New enum type. (printtv_bitness, sprinttv): New function prototypes. (printtv): Convert to macro wrapper around printtv_bitness(). (printtv32): Remove. * desc.c (decode_select): Use printtv_bitness() and sprinttv(). (sys_oldselect, sys_osf_select, sys_select, sys_pselect6): Update decode_select() use. * file.c [ALPHA] (sys_osf_utimes): Use printtv_bitness(). * time.c (printtv_bitness, sprinttv): New functions. (printtv, printtv32): Remove. [ALPHA] (sys_osf_settimeofday, sys_osf_settimeofday): Use printtv_bitness(). Fixes RH#171626, RH#173050.
* 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-13
| | | | * time.c (sys_timer_create): Check umove() return code.
* 2005-05-31 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2005-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * util.c (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument, "const char *", with similar meaning to the third argument of printxval(). * defs.h (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument. * bjm.c (sys_query_module) [LINUX]: Pass third argument to printflags(). * desc.c (sys_fcntl): Likewise. (sys_flock) [LOCK_SH]: Likewise. (print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise. * file.c (sys_open): Likewise. (solaris_open) [LINUXSPARC]: Likewise. (sys_access): Likewise. (sys_chflags, sys_fchflags) [FREEBSD]: Likewise. (realprintstat) [HAVE_LONG_LONG_OFF_T && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (printstat64) [HAVE_STAT64 && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (sys_setxattr, sys_fsetxattr): Likewise. * ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget, sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise. (sys_mq_open) [LINUX]: Likewise. (printmqattr) [HAVE_MQUEUE_H]: Likewise. * mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mprotect): Likewise. (sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise. (sys_msync) [MS_ASYNC]: Likewise. (sys_mctl) [MC_SYNC]: Likewise. (sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]: Likewise. * net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise. (sys_send, sys_sendto): Likewise. (sys_sendmsg) [HAVE_SENDMSG]: Likewise. (sys_recv, sys_recvfrom): Likewise. (sys_recvmsg) [HAVE_SENDMSG]: Likewise. (printicmpfilter) [ICMP_FILTER]: Likewise. * proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise. * process.c (sys_clone) [LINUX]: Likewise. (printwaitn): Likewise. (sys_waitid) [SVR4 || LINUX]: Likewise. * signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise. (sys_sigaction): Likewise. (printcontext) [SVR4]: Likewise. (print_stack_t) [LINUX) || FREEBSD]: Likewise. (sys_rt_sigaction) [LINUX]: Likewise. * sock.c (sock_ioctl) [LINUX]: Likewise. * stream.c (sys_putmsg, sys_getmsg): Likewise. (sys_putpmsg) [SYS_putpmsg]: Likewise. (sys_getpmsg) [SYS_getpmsg]: Likewise. (sys_poll): Likewise. (print_transport_message) [TI_BIND]: Likewise. (stream_ioctl): Likewise. * system.c (sys_mount, sys_reboot): Likewise. (sys_cacheflush) [LINUX && M68K]: Likewise. (sys_capget, sys_capset) [SYS_capget]: Likewise. * term.c (term_ioctl) [TIOCMGET]: Likewise. * time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]: Likewise. Fixes RH#159310.
* 2004-09-13 Ulrich Drepper <drepper@redhat.com>, Dmitry V. Levin ↵Roland McGrath2004-10-06
| | | | | | | | | | | <ldv@altlinux.org> * time.c [LINUX] (print_rtc): New function, for printing rtc_time structure. [LINUX] (rtc_ioctl): New function, for parsing RTC_* ioctls. * ioctl.c [LINUX] (ioctl_decode): Call rtc_ioctl. * defs.h [LINUX]: Declare rtc_ioctl. Fixes RH#58606.
* 2004-09-11 Roland McGrath <roland@redhat.com>Roland McGrath2004-09-11
| | | | | | | | | * time.c (sys_clock_nanosleep): Print zero flags arg correctly. (sys_timer_settime): Likewise. (printsigevent): Print signals by name for SIGEV_SIGNAL. (sys_timer_create): Print clock ID symbolically. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#131420.
* 2004-09-03 Roland McGrath <roland@redhat.com>Roland McGrath2004-09-04
| | | | | | | | | | | | | | | | | | | | | | * util.c (xlookup, printxval, addflags, printflags): Use const for struct xlat * argument. * defs.h (xlookup, printxval, addflags, printflags): Update decls. * bjm.c: Add const to all struct xlat defns. * desc.c: Likewise. * file.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * resource.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * stream.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise.
* 2004-08-31 Roland McGrath <roland@redhat.com>Roland McGrath2004-08-31
| | | | * time.c (clocknames): Use #ifdef around CLOCK_* uses.