Global variables in system programs

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 17 15:31:53 UTC 2013


Hello,

here is an updated patch set that introduces the context structure (struct 
rt_ctx) which contains all global data used by ROUTE(8) directly.  Its just to 
give an idea how this may look like.  The patch set is against the current 
development version of FreeBSD (commit 000c45f54a05a448b302309b63ffb95e1c98856d).

Remaining issues are

o resource leaks,
o usage of exit() (also indirectly via the warn and error functions),
o getopt().

If I use the wrong mailing list, then please let me know.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-route-Change-into-local-variable.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-route-Avoid-static-buffer-in-atalk_ntoa.patch
Type: text/x-patch
Size: 2668 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-route-Add-const-qualifier.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-route-Move-domain-buffer-to-function-scope.patch
Type: text/x-patch
Size: 1173 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-route-Move-route-message-seq-to-function-scope.patch
Type: text/x-patch
Size: 1509 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-route-Move-route-name-line-to-function-scope.patch
Type: text/x-patch
Size: 2957 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-route-Move-net-name-line-to-function-scope.patch
Type: text/x-patch
Size: 3616 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-route-Move-static-data-to-top-of-file.patch
Type: text/x-patch
Size: 1802 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-route-Add-const-qualifier.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-route-Collect-static-data-into-new-struct-rt_ctx.patch
Type: text/x-patch
Size: 41103 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20131017/1cc52e7c/attachment-0009.bin>


More information about the freebsd-hackers mailing list