Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Add sockaddr_snprintf()



details:   https://anonhg.NetBSD.org/src/rev/89e40c46e0e3
branches:  trunk
changeset: 571361:89e40c46e0e3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 19 21:39:03 2004 +0000

description:
Add sockaddr_snprintf()

diffstat:

 include/util.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r bcee6da14039 -r 89e40c46e0e3 include/util.h
--- a/include/util.h    Fri Nov 19 21:38:25 2004 +0000
+++ b/include/util.h    Fri Nov 19 21:39:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.h,v 1.32 2004/08/03 23:29:04 thorpej Exp $        */
+/*     $NetBSD: util.h,v 1.33 2004/11/19 21:39:03 christos Exp $       */
 
 /*-
  * Copyright (c) 1995
@@ -59,6 +59,7 @@
 struct termios;
 struct utmp;
 struct winsize;
+struct sockaddr;
 
 pid_t          forkpty(int *, char *, struct termios *, struct winsize *);
 const char     *getbootfile(void);
@@ -95,6 +96,8 @@
 int            pw_setprefix(const char *);
 int            secure_path(const char *);
 int            snprintb(char *, size_t, const char *, uint64_t);
+int            sockaddr_snprintf(char *, size_t, const char *,
+    const struct sockaddr *);
 int            ttyaction(const char *, const char *, const char *);
 int            ttylock(const char *, int, pid_t *);
 char          *ttymsg(struct iovec *, int, const char *, int);



Home | Main Index | Thread Index | Old Index