History log of /src/lib/libutil/sockaddr_snprintf.c |
Revision | | Date | Author | Comments |
1.16 |
| 14-Sep-2025 |
christos | do as the man page describes and explain some more.
|
1.15 |
| 14-Sep-2025 |
christos | PR/59643: Taylor Campbell: Add a way to print addresses generically.
|
1.14 |
| 29-Dec-2016 |
christos | Make this portable to other OSs
|
1.13 |
| 01-Jun-2016 |
christos | branches: 1.13.2; Use NULL instead of 0.
|
1.12 |
| 06-Apr-2016 |
christos | pretty-print link addresses.
|
1.11 |
| 31-Dec-2013 |
mlelstv | Use output buffer size to limit copy-out of sun_path. Otherwise you may get a buffer overflow with strlcpy :)
|
1.10 |
| 07-Jun-2013 |
christos | Add a debugging format that prints all the fields with names.
|
1.9 |
| 28-Apr-2008 |
martin | branches: 1.9.4; 1.9.8; 1.9.28; Remove clause 3 and 4 from TNF licenses
|
1.8 |
| 24-Jul-2007 |
dyoung | branches: 1.8.10; 1.8.12; In sockaddr_snprintf(sbuf, len, fmt, sa), do not write the terminating null character outside of the byte region [sbuf, sbuf + len).
1) If the length of the buffer is 0, do not write a null character at all. Previously, sockaddr_snprintf() may have been able to overwrite sbuf[-1] if len was 0.
2) If the length of the buffer, len, is greater than 0, then write the null at sbuf[len - 1]. Previously, sockaddr_snprintf() wrote the null at buf[len - 1], where `buf' was a "cursor" that did not necessarily equal `sbuf', the start of the buffer. Now, sockaddr_snprintf() always writes the null at sbuf[len - 1].
|
1.7 |
| 09-Dec-2006 |
dyoung | Render the format %% as %.
|
1.6 |
| 27-Aug-2005 |
elad | branches: 1.6.4; 1.6.6; Lint warnings.
|
1.5 |
| 09-Apr-2005 |
atatat | Add the 'A' and 'P' format specifiers which use getaddrinfo(3) to turn numbers into names (if possible). Also add the '?' format modifier that elides the "N/A" if that's what you would normally get.
|
1.4 |
| 13-Jan-2005 |
dyoung | For consistency of sockaddr_snprintf(3) with snprintf(3) and snprintb(3), do not count the terminating NUL in the return value. Update the regression tests to match. Approved by christos@.
|
1.3 |
| 11-Dec-2004 |
christos | WARNS=3; fix cast-qual issues.
|
1.2 |
| 19-Nov-2004 |
christos | check for getnameinfo error correctly; thanks to Peter Postma.
|
1.1 |
| 19-Nov-2004 |
christos | Add sockaddr_snprintf; XXX: Needs a man page.
|
1.6.6.1 |
| 03-Sep-2007 |
wrstuden | Sync w/ NetBSD-4-RC_1
|
1.6.4.2 |
| 27-Jul-2007 |
liamjfoy | Pull up following revision(s) (requested by dyoung in ticket #794): lib/libutil/sockaddr_snprintf.c: revision 1.8 In sockaddr_snprintf(sbuf, len, fmt, sa), do not write the terminating null character outside of the byte region [sbuf, sbuf + len). 1) If the length of the buffer is 0, do not write a null character at all. Previously, sockaddr_snprintf() may have been able to overwrite sbuf[-1] if len was 0. 2) If the length of the buffer, len, is greater than 0, then write the null at sbuf[len - 1]. Previously, sockaddr_snprintf() wrote the null at buf[len - 1], where `buf' was a "cursor" that did not necessarily equal `sbuf', the start of the buffer. Now, sockaddr_snprintf() always writes the null at sbuf[len - 1].
|
1.6.4.1 |
| 26-Jul-2007 |
liamjfoy | Pull up following revision(s) (requested by dyoung in ticket #792): lib/libutil/sockaddr_snprintf.c: revision 1.7 Render the format %% as %.
|
1.8.12.2 |
| 24-Jul-2007 |
dyoung | In sockaddr_snprintf(sbuf, len, fmt, sa), do not write the terminating null character outside of the byte region [sbuf, sbuf + len).
1) If the length of the buffer is 0, do not write a null character at all. Previously, sockaddr_snprintf() may have been able to overwrite sbuf[-1] if len was 0.
2) If the length of the buffer, len, is greater than 0, then write the null at sbuf[len - 1]. Previously, sockaddr_snprintf() wrote the null at buf[len - 1], where `buf' was a "cursor" that did not necessarily equal `sbuf', the start of the buffer. Now, sockaddr_snprintf() always writes the null at sbuf[len - 1].
|
1.8.12.1 |
| 24-Jul-2007 |
dyoung | file sockaddr_snprintf.c was added on branch matt-mips64 on 2007-07-24 08:45:46 +0000
|
1.8.10.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.9.28.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.9.28.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.9.8.2 |
| 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.9.8.1 |
| 28-Apr-2008 |
martin | file sockaddr_snprintf.c was added on branch christos-time_t on 2008-04-28 20:23:04 +0000
|
1.9.4.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.13.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|