diff options
| author | lukem <lukem@NetBSD.org> | 2000-11-15 02:32:30 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2000-11-15 02:32:30 +0000 |
| commit | f62aa6c8acfc1fa527a4e331c2bc885530f006eb (patch) | |
| tree | a402f0301cb254a4157881d80bdd2e8dc8cfd1a0 /libexec/ftpd/version.h | |
| parent | 038ca0a1464a7d5fcf493ac2ba844124839a030d (diff) | |
changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
Diffstat (limited to 'libexec/ftpd/version.h')
| -rw-r--r-- | libexec/ftpd/version.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/version.h b/libexec/ftpd/version.h index cb2ac2eabe6..cea9a15393b 100644 --- a/libexec/ftpd/version.h +++ b/libexec/ftpd/version.h @@ -1,4 +1,4 @@ -/* $NetBSD: version.h,v 1.20 2000/11/13 11:50:46 itojun Exp $ */ +/* $NetBSD: version.h,v 1.21 2000/11/15 02:32:30 lukem Exp $ */ /*- * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. * All rights reserved. @@ -36,5 +36,5 @@ */ #ifndef FTPD_VERSION -#define FTPD_VERSION "NetBSD-ftpd 20001113" +#define FTPD_VERSION "NetBSD-ftpd 20001115" #endif |
