History log of /dragonfly/usr.sbin/rwhod/rwhod.c (Results 1 – 25 of 38)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0
# da0d35cf 13-Dec-2020 Matthew Dillon <dillon@apollo.backplane.com>

top, vmstat, who, rwhod - Use CLOCK_UPTIME to calculate uptime

* Use CLOCK_UPTIME to calculate the system uptime instead of
subtracting current real time from boot real time, which could
get muf

top, vmstat, who, rwhod - Use CLOCK_UPTIME to calculate uptime

* Use CLOCK_UPTIME to calculate the system uptime instead of
subtracting current real time from boot real time, which could
get muffed up by setting the time.

show more ...


Revision tags: v5.8.3, v5.8.2
# 406557e5 22-Sep-2020 Sascha Wildner <saw@online.de>

rwhod(8): Fix a for() loop that was incrementing twice.


Revision tags: v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# afb7ce08 29-Nov-2019 Sascha Wildner <saw@online.de>

rwhod(8): Fix -Wundef.


# 64355093 10-Sep-2019 Sascha Wildner <saw@online.de>

rwhod(8): Add utmpx support from FreeBSD. Drop utmp support.


Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc
# e62ef63c 18-Feb-2018 Sascha Wildner <saw@online.de>

Replace local array size calculations with NELEM().


# fe08e20d 13-Jan-2018 Sascha Wildner <saw@online.de>

Add __attribute__((__noreturn__)) to various function prototypes in usr.sbin/.

This general cleanup is useful in various ways. It helps the compiler
optimize better and it also helps later GCCs dete

Add __attribute__((__noreturn__)) to various function prototypes in usr.sbin/.

This general cleanup is useful in various ways. It helps the compiler
optimize better and it also helps later GCCs detect better when to give
-Wimplicit-fallthrough warnings and when not.

Found-with: -Wsuggest-attribute=noreturn

show more ...


# 3961d741 13-Jan-2018 Sascha Wildner <saw@online.de>

rwhod(8): Staticize.


Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4
# 716deec4 11-Feb-2015 Sascha Wildner <saw@online.de>

rwhod(8): Fix the warning and raise WARNS back up to 6.

'next' is only initialized and referenced (in separate if()'s) when
'quiet_mode' is not set. Unfortunately gcc does not realize this and
warns

rwhod(8): Fix the warning and raise WARNS back up to 6.

'next' is only initialized and referenced (in separate if()'s) when
'quiet_mode' is not set. Unfortunately gcc does not realize this and
warns about 'next' being maybe uninitialized.

Fix this by initializing 'next', with no functional change.

show more ...


Revision tags: v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2
# 4ff4d99f 18-Jul-2014 Nuno Antunes <nuno.antunes@gmail.com>

Use system's RT_ROUNDUP and RT_ADVANCE macros instead of local copies.

Reviewed-by: dillon


Revision tags: v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1
# d316f7c9 09-Feb-2014 John Marino <draco@marino.st>

libutil: Various updates from FreeBSD, esp. pid_* functions

It appears that libutil.so is another Frankenstein monster where half
of it came from FreeBSD and later it was updated with NetBSD functio

libutil: Various updates from FreeBSD, esp. pid_* functions

It appears that libutil.so is another Frankenstein monster where half
of it came from FreeBSD and later it was updated with NetBSD functions.
Like libm, this causes problems with syncing later.

In order to update the daemon program, the set of pidfile_* functions
had to be brought in from FreeBSD. While doing that, I synced with
FreeBSD as much as possible. The expand number function was added
as well as a dedicated pw_util man page.

Specifically ignored were FreeBSD functionality involving kinfo and kld.
The login functions are essentially incompatible as the FreeBSD ones
require syscntls, so I left the NetBSD versions alone. The various
humanize functions that only exist on DragonFly were also left untouched.

Collateral damage included:
sbin/devd/devd.[ch][ch] (partial sync)
usr.sbin/authpf/authpf.c (partial sync)
usr.sbin/apmd/apmd.c
usr.sbin/battd/battd.c
usr.sbin/bthcid/bthcid.c
usr.sbin/pflogd/pflogd.c
usr.sbin/rwhod/rwhod.c
usr.sbin/syslogd/ (full sync)
usr.sbin/sysvipcd/sysvipcd.c

show more ...


Revision tags: v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3
# dc71b7ab 31-May-2013 Justin C. Sherrill <justin@shiningsilence.com>

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

Apparently everyone's doing it:
http://svnweb.freebsd.org/base?view=revision&revision=251069

Submitted-by: "Eitan Adler" <lists at eitanadl

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

Apparently everyone's doing it:
http://svnweb.freebsd.org/base?view=revision&revision=251069

Submitted-by: "Eitan Adler" <lists at eitanadler.com>

show more ...


Revision tags: v3.4.2
# 25a2db75 06-May-2013 Justin C. Sherrill <justin@shiningsilence.com>

Remove advertising header from all userland binaries.

From: Eitan Adler <lists@eitanadler.com>


Revision tags: v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3
# 3bafb5c1 30-Mar-2012 Sascha Wildner <saw@online.de>

rwhod(8): Prevent clobbering the neighboring field by a wrong cast.

The time stamps in the rwhod(8) network datagram and, based on that,
/var/rwho/whod.* spool files are typed as 32bit int and canno

rwhod(8): Prevent clobbering the neighboring field by a wrong cast.

The time stamps in the rwhod(8) network datagram and, based on that,
/var/rwho/whod.* spool files are typed as 32bit int and cannot accept
a 64bit time_t.

The old code clobbered the first bytes of the adjacent "hostname"
field, yielding empty hostnames in local rwho(1) and ruptime(1) output.
(Outgoing datagrams to other hosts were not affected.)

Re-code to let the compiler do the proper coercion (well, until 2038).

Submitted-by: Martin Neitzel
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2339>

show more ...


Revision tags: v3.0.2, v3.0.1, v3.1.0, v3.0.0
# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2, v2.3.1, v2.2.1, v2.2.0, v2.3.0, v2.1.1, v2.0.1
# 9b5ae8ee 27-Dec-2007 Matthias Schmidt <matthias@dragonflybsd.org>

Pass NULL instead of getprogname() to pidfile(). pidfile() will automatically
detect if the option is NULL and insert the appropriate basename.


# 851524ec 01-Jul-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Whoops, some test code slipped in. Remove it


# 7eea36fc 27-Jun-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Introduce new -g option. This allows for the broadcast time to be reduced
below 3 minutes, but no higher due to a three minute downtime assumption.

- When polling, use .events (noted by Peter @ Ne

- Introduce new -g option. This allows for the broadcast time to be reduced
below 3 minutes, but no higher due to a three minute downtime assumption.

- When polling, use .events (noted by Peter @ NetBSD)

Ok: Joerg
Discussed with: sjg

show more ...


# 82ece171 16-Jun-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Make rwhod now use poll(2) instead of signals

If anyone can test this further than me, please do!

Taken from: OpenBSD with my timing modifications
Reviewed by: Joerg@


# dd612bae 06-Jun-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- We should use inet_ntoa which returns an ASCII string of representing the
address in '.' notation.


# b2d33a7d 31-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Fix memory leak if realloc(3) failed. Use reallocf(3).

Ok: joerg


# 9259569f 27-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Use pidfile(3). The pid file can be used as a quick reference if the process
needs to be sent a signal.

Obtained from: NetBSD


# 6c8d1328 22-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- More fixes for the debug code


# d80a19a0 22-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- WITHOUT_ERRNO should be 0, silly mistake.

Noticed by: swildner@


# 62eb0ed9 17-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Actually make the debug code work
- WARNS 6 -DEBUG

Ok boy: Joerg@


# 35853d73 06-May-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Produce more informative output to syslog. Generally improve/clean error handling

Ok: dillon


12