]> andersk Git - openssh.git/commitdiff
- (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff to
authormouring <mouring>
Wed, 31 Jan 2001 21:52:01 +0000 (21:52 +0000)
committermouring <mouring>
Wed, 31 Jan 2001 21:52:01 +0000 (21:52 +0000)
   openbsd-compat/.  And resolve all ./configure and Makefile.in issues
   assocated.

Logic:

* All OpenBSD functions should have the same filename as in the OpenBSD
  tree

* All 'home brew' functions have bsd-* infront of them.

* All 'not really implemented' functions have fake-* infront of them.

64 files changed:
ChangeLog
Makefile.in
configure.in
includes.h
openbsd-compat/Makefile.in [new file with mode: 0644]
openbsd-compat/base64.c [moved from bsd-base64.c with 99% similarity]
openbsd-compat/base64.h [moved from bsd-base64.h with 100% similarity]
openbsd-compat/bindresvport.c [moved from bsd-bindresvport.c with 100% similarity]
openbsd-compat/bindresvport.h [moved from bsd-bindresvport.h with 100% similarity]
openbsd-compat/bsd-arc4random.c [moved from bsd-arc4random.c with 100% similarity]
openbsd-compat/bsd-arc4random.h [moved from bsd-arc4random.h with 100% similarity]
openbsd-compat/bsd-cygwin_util.c [moved from cygwin_util.c with 100% similarity]
openbsd-compat/bsd-cygwin_util.h [moved from cygwin_util.h with 100% similarity]
openbsd-compat/bsd-misc.c [moved from bsd-misc.c with 100% similarity]
openbsd-compat/bsd-misc.h [moved from bsd-misc.h with 100% similarity]
openbsd-compat/bsd-nextstep.c [moved from next-posix.c with 100% similarity]
openbsd-compat/bsd-nextstep.h [moved from next-posix.h with 100% similarity]
openbsd-compat/bsd-snprintf.c [moved from bsd-snprintf.c with 100% similarity]
openbsd-compat/bsd-snprintf.h [moved from bsd-snprintf.h with 100% similarity]
openbsd-compat/bsd-waitpid.c [moved from bsd-waitpid.c with 100% similarity]
openbsd-compat/bsd-waitpid.h [moved from bsd-waitpid.h with 100% similarity]
openbsd-compat/daemon.c [moved from bsd-daemon.c with 100% similarity]
openbsd-compat/daemon.h [moved from bsd-daemon.h with 100% similarity]
openbsd-compat/fake-gai-errnos.h [moved from fake-gai-errnos.h with 100% similarity]
openbsd-compat/fake-getaddrinfo.c [moved from fake-getaddrinfo.c with 100% similarity]
openbsd-compat/fake-getaddrinfo.h [moved from fake-getaddrinfo.h with 100% similarity]
openbsd-compat/fake-getnameinfo.c [moved from fake-getnameinfo.c with 100% similarity]
openbsd-compat/fake-getnameinfo.h [moved from fake-getnameinfo.h with 100% similarity]
openbsd-compat/fake-regex.h [moved from fake-regex.h with 100% similarity]
openbsd-compat/fake-socket.h [moved from fake-socket.h with 100% similarity]
openbsd-compat/getcwd.c [moved from bsd-getcwd.c with 100% similarity]
openbsd-compat/getcwd.h [moved from bsd-getcwd.h with 100% similarity]
openbsd-compat/getgrouplist.c [moved from bsd-getgrouplist.c with 100% similarity]
openbsd-compat/getgrouplist.h [moved from bsd-getgrouplist.h with 100% similarity]
openbsd-compat/inet_aton.c [moved from bsd-inet_aton.c with 100% similarity]
openbsd-compat/inet_aton.h [moved from bsd-inet_aton.h with 100% similarity]
openbsd-compat/inet_ntoa.c [moved from bsd-inet_ntoa.c with 100% similarity]
openbsd-compat/inet_ntoa.h [moved from bsd-inet_ntoa.h with 100% similarity]
openbsd-compat/mktemp.c [moved from bsd-mktemp.c with 100% similarity]
openbsd-compat/mktemp.h [moved from bsd-mktemp.h with 100% similarity]
openbsd-compat/openbsd-compat.h [new file with mode: 0644]
openbsd-compat/queue.h [moved from bsd-queue.h with 100% similarity]
openbsd-compat/realpath.c [moved from bsd-realpath.c with 100% similarity]
openbsd-compat/realpath.h [moved from bsd-realpath.h with 100% similarity]
openbsd-compat/rresvport.c [moved from bsd-rresvport.c with 100% similarity]
openbsd-compat/rresvport.h [moved from bsd-rresvport.h with 100% similarity]
openbsd-compat/setenv.c [moved from bsd-setenv.c with 100% similarity]
openbsd-compat/setenv.h [moved from bsd-setenv.h with 100% similarity]
openbsd-compat/setproctitle.c [moved from bsd-setproctitle.c with 100% similarity]
openbsd-compat/setproctitle.h [moved from bsd-setproctitle.h with 100% similarity]
openbsd-compat/sigaction.c [moved from bsd-sigaction.c with 99% similarity]
openbsd-compat/sigaction.h [moved from bsd-sigaction.h with 100% similarity]
openbsd-compat/strlcat.c [moved from bsd-strlcat.c with 100% similarity]
openbsd-compat/strlcat.h [moved from bsd-strlcat.h with 100% similarity]
openbsd-compat/strlcpy.c [moved from bsd-strlcpy.c with 100% similarity]
openbsd-compat/strlcpy.h [moved from bsd-strlcpy.h with 100% similarity]
openbsd-compat/strmode.c [moved from bsd-strmode.c with 100% similarity]
openbsd-compat/strmode.h [moved from bsd-strmode.h with 100% similarity]
openbsd-compat/strsep.c [moved from bsd-strsep.c with 100% similarity]
openbsd-compat/strsep.h [moved from bsd-strsep.h with 100% similarity]
openbsd-compat/strtok.c [moved from bsd-strtok.c with 100% similarity]
openbsd-compat/strtok.h [moved from bsd-strtok.h with 100% similarity]
openbsd-compat/vis.c [moved from bsd-vis.c with 100% similarity]
openbsd-compat/vis.h [moved from bsd-vis.h with 100% similarity]

index 7ac2bf354ff82a6d28ae610660ddc0315c7cc775..d50091bc74918a87ed83221e2c96f46ce3694203 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-20000131
+20010131
  - (djm) OpenBSD CVS Sync:
    - djm@cvs.openbsd.org     2001/01/30 15:48:53
      [sshconnect.c]
@@ -8,8 +8,11 @@
    respectively.
  - (djm) Don't log SSH2 PAM KbdInt responses to debug, they may contain
    passwords.
+ - (bal) Reorder.  Move all bsd-*, fake-*, next-*, and cygwin* stuff to
+   openbsd-compat/.  And resolve all ./configure and Makefile.in issues
+   assocated.
 
-20000130
+20010130
  - (djm) OpenBSD CVS Sync:
    - markus@cvs.openbsd.org  2001/01/29 09:55:37
      [channels.c channels.h clientloop.c serverloop.c]
@@ -26,7 +29,7 @@
      Allow invocation of sybsystem by commandline (-s); ok markus@
  - (stevesk) configure.in: remove duplicate PROG_LS
 
-20000129
+20010129
  - (stevesk) sftp-server.c: use %lld vs. %qd
 
 20010128
index 58d67a5d5296241e9497af6889c62843096a18a2..063fa5c7020e23f5955fce3731b5889e88977336 100644 (file)
@@ -19,7 +19,7 @@ CC=@CC@
 LD=@LD@
 PATHS=-DETCDIR=\"$(sysconfdir)\" -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
 CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir) $(PATHS) @DEFS@
+CPPFLAGS=@CPPFLAGS@ -I. -Iopenbsd-compat/ -I$(srcdir) $(PATHS) @DEFS@
 LIBS=@LIBS@
 AR=@AR@
 RANLIB=@RANLIB@
@@ -27,7 +27,7 @@ INSTALL=@INSTALL@
 PERL=@PERL@
 ENT=@ENT@
 XAUTH_PATH=@XAUTH_PATH@
-LDFLAGS=-L. @LDFLAGS@
+LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
 EXEEXT=@EXEEXT@
 SSH_MODE= @SSHMODE@
 
@@ -37,9 +37,7 @@ INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@
 
 TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) $(SFTP-SERVER)
 
-LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cli.o compat.o compress.o crc32.o cygwin_util.o deattack.o dispatch.o hmac.o hostfile.o key.o kex.o log.o match.o misc.o mpaux.o nchan.o packet.o radix.o rijndael.o entropy.o readpass.o rsa.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o uuencode.o xmalloc.o 
-
-LIBOPENBSD_COMPAT_OBJS=bsd-arc4random.o bsd-base64.o bsd-bindresvport.o bsd-daemon.o bsd-getcwd.o bsd-getgrouplist.o bsd-inet_aton.o bsd-inet_ntoa.o bsd-misc.o bsd-mktemp.o bsd-realpath.o bsd-rresvport.o bsd-setenv.o bsd-sigaction.o bsd-snprintf.o bsd-strlcat.o bsd-strlcpy.o bsd-strmode.o bsd-strsep.o bsd-strtok.o bsd-vis.o bsd-setproctitle.o bsd-waitpid.o fake-getaddrinfo.o fake-getnameinfo.o next-posix.o
+LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cli.o compat.o compress.o crc32.o deattack.o dispatch.o hmac.o hostfile.o key.o kex.o log.o match.o misc.o mpaux.o nchan.o packet.o radix.o rijndael.o entropy.o readpass.o rsa.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o uuencode.o xmalloc.o 
 
 SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o log-client.o readconf.o clientloop.o
 
@@ -79,9 +77,8 @@ $(LIBOPENBSD_COMPAT_OBJS): config.h
 .c.o:
        $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
 
-libopenbsd-compat.a: $(LIBOPENBSD_COMPAT_OBJS)
-       $(AR) rv $@ $(LIBOPENBSD_COMPAT_OBJS)
-       $(RANLIB) $@
+libopenbsd-compat.a:
+       (cd openbsd-compat; make)
 
 libssh.a: $(LIBSSH_OBJS)
        $(AR) rv $@ $(LIBSSH_OBJS)
@@ -119,10 +116,12 @@ $(MANPAGES) $(CONFIGFILES)::
        $(FIXPATHSCMD) $(srcdir)/$@
 
 clean:
+       (cd openbsd-compat; make clean)
        rm -f *.o *.a $(TARGETS) logintest config.cache config.log 
        rm -f *.out core
 
 distclean: clean
+       (cd openbsd-compat; make distclean)
        rm -f Makefile config.h config.status ssh_prng_cmds *~
 
 mrproper: distclean
index d9f59a3154f22ef24df1edac7bd9d37f2aec326b..9913442acb3b8bdb9b2aebf4e33ee8ffb54fdc82 100644 (file)
@@ -1641,7 +1641,7 @@ fi
 
 AC_EXEEXT
 
-AC_OUTPUT(Makefile ssh_prng_cmds)
+AC_OUTPUT(Makefile openbsd-compat/Makefile ssh_prng_cmds)
 
 # Print summary of options
 
index 18693c7f0fcc414feac0c0437431340e13f3b528..ac83a12f08f15c354bf348f24bf3dfa1e6e72981 100644 (file)
@@ -21,7 +21,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 
 #include "config.h"
 
-#include "next-posix.h"
+#include "bsd-nextstep.h"
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -95,7 +95,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #endif
 #include "version.h"
 #include "openbsd-compat.h"
-#include "cygwin_util.h"
+#include "bsd-cygwin_util.h"
 #include "entropy.h"
 
 #endif /* INCLUDES_H */
diff --git a/openbsd-compat/Makefile.in b/openbsd-compat/Makefile.in
new file mode 100644 (file)
index 0000000..1c745fb
--- /dev/null
@@ -0,0 +1,33 @@
+sysconfdir=@sysconfdir@
+piddir=@piddir@
+srcdir=@srcdir@
+top_srcdir=@top_srcdir@
+
+CC=@CC@
+LD=@LD@
+CFLAGS=@CFLAGS@
+CPPFLAGS=@CPPFLAGS@ -I. -I.. -I$(srcdir) @DEFS@
+LIBS=@LIBS@
+AR=@AR@
+RANLIB=@RANLIB@
+INSTALL=@INSTALL@
+LDFLAGS=-L. @LDFLAGS@
+
+OPENBSD=base64.o bindresvport.o daemon.o getcwd.o getgrouplist.o inet_aton.o inet_ntoa.o mktemp.o realpath.o rresvport.o setenv.o setproctitle.o sigaction.o strlcat.o strlcpy.o strmode.o strsep.o strtok.o vis.o
+
+COMPAT=bsd-arc4random.o bsd-cygwin_util.o bsd-misc.o bsd-nextstep.o bsd-snprintf.o bsd-waitpid.o fake-getaddrinfo.o fake-getnameinfo.o
+
+
+all: libopenbsd-compat.a
+
+$(BSDCOMPAT): ../config.h
+
+libopenbsd-compat.a:  $(COMPAT) $(OPENBSD)
+       $(AR) rv $@ $(COMPAT) $(OPENBSD)
+       $(RANLIB) $@
+
+clean:
+       rm -f *.o *.a core 
+
+distclean: clean
+       rm -f Makefile *~
similarity index 99%
rename from bsd-base64.c
rename to openbsd-compat/base64.c
index 8cbf8eeef0f1fe2c0a7740e7abb4c2322f502abb..d12b993b7cab3e188344b1ad31729b3773771432 100644 (file)
@@ -58,7 +58,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "bsd-base64.h"
+#include "base64.h"
 
 #define Assert(Cond) if (!(Cond)) abort()
 
similarity index 100%
rename from bsd-base64.h
rename to openbsd-compat/base64.h
similarity index 100%
rename from bsd-misc.c
rename to openbsd-compat/bsd-misc.c
similarity index 100%
rename from bsd-misc.h
rename to openbsd-compat/bsd-misc.h
similarity index 100%
rename from next-posix.c
rename to openbsd-compat/bsd-nextstep.c
similarity index 100%
rename from next-posix.h
rename to openbsd-compat/bsd-nextstep.h
similarity index 100%
rename from bsd-snprintf.c
rename to openbsd-compat/bsd-snprintf.c
similarity index 100%
rename from bsd-snprintf.h
rename to openbsd-compat/bsd-snprintf.h
similarity index 100%
rename from bsd-waitpid.c
rename to openbsd-compat/bsd-waitpid.c
similarity index 100%
rename from bsd-waitpid.h
rename to openbsd-compat/bsd-waitpid.h
similarity index 100%
rename from bsd-daemon.c
rename to openbsd-compat/daemon.c
similarity index 100%
rename from bsd-daemon.h
rename to openbsd-compat/daemon.h
similarity index 100%
rename from fake-regex.h
rename to openbsd-compat/fake-regex.h
similarity index 100%
rename from fake-socket.h
rename to openbsd-compat/fake-socket.h
similarity index 100%
rename from bsd-getcwd.c
rename to openbsd-compat/getcwd.c
similarity index 100%
rename from bsd-getcwd.h
rename to openbsd-compat/getcwd.h
similarity index 100%
rename from bsd-inet_aton.c
rename to openbsd-compat/inet_aton.c
similarity index 100%
rename from bsd-inet_aton.h
rename to openbsd-compat/inet_aton.h
similarity index 100%
rename from bsd-inet_ntoa.c
rename to openbsd-compat/inet_ntoa.c
similarity index 100%
rename from bsd-inet_ntoa.h
rename to openbsd-compat/inet_ntoa.h
similarity index 100%
rename from bsd-mktemp.c
rename to openbsd-compat/mktemp.c
similarity index 100%
rename from bsd-mktemp.h
rename to openbsd-compat/mktemp.h
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
new file mode 100644 (file)
index 0000000..4758a9c
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef _OPENBSD_H
+#define _OPENBSD_H
+
+#include "config.h"
+
+/* OpenBSD function replacements */
+#include "bindresvport.h"
+#include "getcwd.h"
+#include "realpath.h"
+#include "rresvport.h"
+#include "strlcpy.h"
+#include "strlcat.h"
+#include "strmode.h"
+#include "mktemp.h"
+#include "daemon.h"
+#include "base64.h"
+#include "sigaction.h"
+#include "inet_aton.h"
+#include "inet_ntoa.h"
+#include "strsep.h"
+#include "strtok.h"
+#include "vis.h"
+#include "setproctitle.h"
+#include "getgrouplist.h"
+
+/* Home grown routines */
+#include "bsd-arc4random.h"
+#include "bsd-misc.h"
+#include "bsd-snprintf.h"
+#include "bsd-waitpid.h"
+
+/* rfc2553 socket API replacements */
+#include "fake-getaddrinfo.h"
+#include "fake-getnameinfo.h"
+#include "fake-socket.h"
+
+#endif /* _OPENBSD_H */
similarity index 100%
rename from bsd-queue.h
rename to openbsd-compat/queue.h
similarity index 100%
rename from bsd-realpath.c
rename to openbsd-compat/realpath.c
similarity index 100%
rename from bsd-realpath.h
rename to openbsd-compat/realpath.h
similarity index 100%
rename from bsd-rresvport.c
rename to openbsd-compat/rresvport.c
similarity index 100%
rename from bsd-rresvport.h
rename to openbsd-compat/rresvport.h
similarity index 100%
rename from bsd-setenv.c
rename to openbsd-compat/setenv.c
similarity index 100%
rename from bsd-setenv.h
rename to openbsd-compat/setenv.h
similarity index 99%
rename from bsd-sigaction.c
rename to openbsd-compat/sigaction.c
index d6966d4fd974020584c57aa004bf56556a7cfa3f..47d853fe48f4742c271b13ec2c7f1626d590682f 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <signal.h>
 #include "config.h"
-#include "bsd-sigaction.h"
+#include "sigaction.h"
 
 /* This file provides sigaction() emulation using sigvec() */
 /* Use only if this is non POSIX system */
similarity index 100%
rename from bsd-sigaction.h
rename to openbsd-compat/sigaction.h
similarity index 100%
rename from bsd-strlcat.c
rename to openbsd-compat/strlcat.c
similarity index 100%
rename from bsd-strlcat.h
rename to openbsd-compat/strlcat.h
similarity index 100%
rename from bsd-strlcpy.c
rename to openbsd-compat/strlcpy.c
similarity index 100%
rename from bsd-strlcpy.h
rename to openbsd-compat/strlcpy.h
similarity index 100%
rename from bsd-strmode.c
rename to openbsd-compat/strmode.c
similarity index 100%
rename from bsd-strmode.h
rename to openbsd-compat/strmode.h
similarity index 100%
rename from bsd-strsep.c
rename to openbsd-compat/strsep.c
similarity index 100%
rename from bsd-strsep.h
rename to openbsd-compat/strsep.h
similarity index 100%
rename from bsd-strtok.c
rename to openbsd-compat/strtok.c
similarity index 100%
rename from bsd-strtok.h
rename to openbsd-compat/strtok.h
similarity index 100%
rename from bsd-vis.c
rename to openbsd-compat/vis.c
similarity index 100%
rename from bsd-vis.h
rename to openbsd-compat/vis.h
This page took 0.116095 seconds and 5 git commands to generate.