summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorAtsushi Murai <amurai@FreeBSD.org>1998-06-01 08:47:04 +0000
committerAtsushi Murai <amurai@FreeBSD.org>1998-06-01 08:47:04 +0000
commit908a8140bcf46c17b5136443b301f75adfd1c4b6 (patch)
tree45c6d6bb58dffdf352c6ad4649441056fd9f45e5 /libutil
parent7d4c57970ebf24fd93485cff39e31d2e3b245fd3 (diff)
downloadpw-darwin-908a8140bcf46c17b5136443b301f75adfd1c4b6.tar.gz
pw-darwin-908a8140bcf46c17b5136443b301f75adfd1c4b6.tar.zst
pw-darwin-908a8140bcf46c17b5136443b301f75adfd1c4b6.zip
Trim a domain part for wtmp as same as showed by "netstat -r".
Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
Diffstat (limited to 'libutil')
-rw-r--r--libutil/libutil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index 513acee..4cacbee 100644
--- a/libutil/libutil.h
+++ b/libutil/libutil.h
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file providing the above
* conditions are met.
*
- * $Id: libutil.h,v 1.13 1997/09/04 22:38:58 pst Exp $
+ * $Id: libutil.h,v 1.14 1998/05/28 23:17:07 brian Exp $
*/
#ifndef _LIBUTIL_H_
@@ -37,13 +37,13 @@ void login __P((struct utmp *_ut));
int login_tty __P((int _fd));
int logout __P((char *_line));
void logwtmp __P((const char *_line, const char *_name, const char *_host));
+void trimdomain __P((char *_fullhost, int _hostsize));
int openpty __P((int *_amaster, int *_aslave, char *_name,
struct termios *_termp, struct winsize *_winp));
int forkpty __P((int *_amaster, char *_name,
struct termios *_termp, struct winsize *_winp));
const char *uu_lockerr __P((int _uu_lockresult));
int uu_lock __P((const char *_ttyname));
-int uu_lock_txfr __P((const char *_ttyname, pid_t _pid));
int uu_unlock __P((const char *_ttyname));
int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
__END_DECLS