git: <sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Sep 25 12:11:23 PDT 2019


commit 944cd60c7b4392d637be82be7baafe9ac12a3061
Author: Sascha Wildner <saw at online.de>
Date:   Wed Sep 25 19:40:52 2019 +0200

    <sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.
    
    * Switch to the three argument versions of the timespecadd() and
      timespecsub() macros. These are now the predominant ones. FreeBSD,
      OpenBSD, NetBSD, and Solaris (albeit only for the kernel) have them.
    
    * Make those macros public too. This allows for a number of cleanups
      where they were defined locally.
    
    Pointed-out-by: zrj
    Reviewed-by:    dillon

Summary of changes:
 games/tetris/input.h                               | 12 ---------
 sys/dev/acpica/acpi_cmbat.c                        |  2 +-
 sys/dev/acpica/acpi_smbat.c                        |  2 +-
 sys/dev/acpica/acpi_thermal.c                      |  2 +-
 sys/dev/disk/isp/isp_freebsd.c                     |  5 ++--
 sys/dev/drm/include/linux/time.h                   |  4 +--
 sys/dev/misc/joy/joy.c                             |  6 ++---
 sys/kern/kern_clock.c                              |  2 +-
 sys/kern/kern_event.c                              |  4 +--
 sys/kern/kern_sig.c                                |  6 ++---
 sys/kern/kern_time.c                               |  7 +++---
 sys/kern/sys_mqueue.c                              |  2 +-
 sys/netproto/smb/smb_iod.c                         |  6 ++---
 sys/netproto/smb/smb_trantcp.c                     |  9 +++----
 sys/opencrypto/crypto.c                            |  2 +-
 sys/sys/param.h                                    |  4 ++-
 sys/sys/time.h                                     | 28 +++++++++------------
 test/testcases/posixipc/common/common.c            |  6 ++---
 test/testcases/posixipc/common/common.h            | 29 ----------------------
 .../kq_connect_client/kq_connect_client.c          | 14 +----------
 .../netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c    | 28 +++------------------
 usr.bin/who/utmpentry.c                            | 24 ------------------
 usr.sbin/powerd/powerd.c                           | 22 +++-------------
 23 files changed, 54 insertions(+), 172 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/944cd60c7b4392d637be82be7baafe9ac12a3061


-- 
DragonFly BSD source repository


More information about the Commits mailing list