summaryrefslogtreecommitdiff
path: root/uname.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersEugene Syromyatnikov2017-09-051-0/+1
| | | | | | Headers updated automatically with maint/update_copyright_headers.sh -c
* Introduce PRINT_FIELD_CSTRINGDmitry V. Levin2017-07-111-14/+7
| | | | | | | | | | | | | | | | * print_fields.h (PRINT_FIELD_CSTRING): New macro. * block.c (print_blkpg_req, block_ioctl): Use PRINT_FIELD_CSTRING instead of print_quoted_string. * btrfs.c (btrfs_ioctl): Likewise. * dm.c (dm_decode_device, dm_decode_dm_target_spec): Likewise. * loop.c (decode_loop_info, decode_loop_info64): Likewise. * v4l2.c (print_v4l2_capability, print_v4l2_fmtdesc, print_v4l2_standard, print_v4l2_input, print_v4l2_tuner, print_v4l2_queryctrl): Likewise. * netlink_sock_diag.c (decode_smc_diag_lgrinfo): Use PRINT_FIELD_CSTRING instead of PRINT_FIELD_STRING. * uname.c (PRINT_UTS_MEMBER): Remove. (SYS_FUNC(uname)): Use PRINT_FIELD_CSTRING instead of PRINT_UTS_MEMBER.
* Fix macros encosure in a do/while loopDmitry V. Levin2017-06-171-4/+6
| | | | | | | | Enclose macros with multiple statements and macros starting with "if" statement in a do/while loop. Do not enclose single statement macros in a do/while loop. Reported by kernel's checkpatch.pl script.
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+31
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* uname.c: use umove_or_printaddrDmitry V. Levin2015-07-161-5/+1
| | | | * uname.c (sys_uname): Use umove_or_printaddr.
* Declare syscall parsers using SYS_FUNC macroDmitry V. Levin2015-04-071-2/+1
| | | | | | | | | | | | | | Introduce SYS_FUNC macro to declare and define all syscall parsers. * Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h. (sys_func.h): New rule. * defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros. * linux/syscall.h: Include "sys_func.h". [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers. Remove other declarations. * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs and osf_fstatfs syscall parsers. * *.c: Use SYS_FUNC to define syscall parsers.
* sys_uname: quote struct utsname membersDmitry V. Levin2015-01-261-17/+25
| | | | | * uname.c (PRINT_UTS_MEMBER): New macro. (sys_uname): Use them.
* process.c: move uname parser to a separate fileDmitry V. Levin2014-12-111-0/+31
* uname.c: New file. * Makefile.am (strace_SOURCES): Add it. * process.c (sys_uname): Move to uname.c.