summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2006-07-09 15:15:12 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2006-07-09 15:15:12 +0000
commit0810117b8375d88af0d02ded172dacc19d88c6cf (patch)
tree359c3536690cb16962f43ed17fdfc9d8e8c5bba4 /usr.bin/ssh
parent9e854c8465a5d4078ce824c4c519af429c8f71cb (diff)
move #include <fcntl.h> out of includes.h
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/auth2-none.c4
-rw-r--r--usr.bin/ssh/authfd.c4
-rw-r--r--usr.bin/ssh/authfile.c4
-rw-r--r--usr.bin/ssh/includes.h3
-rw-r--r--usr.bin/ssh/misc.c3
-rw-r--r--usr.bin/ssh/monitor.c3
-rw-r--r--usr.bin/ssh/readpass.c3
-rw-r--r--usr.bin/ssh/scp.c3
-rw-r--r--usr.bin/ssh/serverloop.c3
-rw-r--r--usr.bin/ssh/sftp-client.c4
-rw-r--r--usr.bin/ssh/sftp-server.c3
-rw-r--r--usr.bin/ssh/ssh-add.c3
-rw-r--r--usr.bin/ssh/ssh-agent.c3
-rw-r--r--usr.bin/ssh/ssh-keygen.c3
-rw-r--r--usr.bin/ssh/ssh-keysign.c3
-rw-r--r--usr.bin/ssh/ssh.c3
-rw-r--r--usr.bin/ssh/sshd.c3
-rw-r--r--usr.bin/ssh/sshlogin.c4
-rw-r--r--usr.bin/ssh/sshpty.c3
19 files changed, 42 insertions, 20 deletions
diff --git a/usr.bin/ssh/auth2-none.c b/usr.bin/ssh/auth2-none.c
index c6854c8750e..9b3595bc3cd 100644
--- a/usr.bin/ssh/auth2-none.c
+++ b/usr.bin/ssh/auth2-none.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-none.c,v 1.10 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: auth2-none.c,v 1.11 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -28,6 +28,8 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
+
#include "auth.h"
#include "xmalloc.h"
#include "packet.h"
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c
index 0d2b09ecc97..5cec7a97c15 100644
--- a/usr.bin/ssh/authfd.c
+++ b/usr.bin/ssh/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.75 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: authfd.c,v 1.76 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -43,6 +43,8 @@
#include <openssl/evp.h>
+#include <fcntl.h>
+
#include "ssh.h"
#include "rsa.h"
#include "buffer.h"
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c
index 2bbb12934e0..84abca5000f 100644
--- a/usr.bin/ssh/authfile.c
+++ b/usr.bin/ssh/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.67 2006/04/25 08:02:27 dtucker Exp $ */
+/* $OpenBSD: authfile.c,v 1.68 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -45,6 +45,8 @@
#include <openssl/evp.h>
#include <openssl/pem.h>
+#include <fcntl.h>
+
#include "cipher.h"
#include "xmalloc.h"
#include "buffer.h"
diff --git a/usr.bin/ssh/includes.h b/usr.bin/ssh/includes.h
index d454c07d6dd..6f02ed4de3a 100644
--- a/usr.bin/ssh/includes.h
+++ b/usr.bin/ssh/includes.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: includes.h,v 1.46 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: includes.h,v 1.47 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -24,7 +24,6 @@
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index cd9b5904c24..fe23fe672a0 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.54 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: misc.c,v 1.55 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -34,6 +34,7 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
+#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c
index c92441b6047..d2260e330b1 100644
--- a/usr.bin/ssh/monitor.c
+++ b/usr.bin/ssh/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.79 2006/07/08 21:48:53 stevesk Exp $ */
+/* $OpenBSD: monitor.c,v 1.80 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -33,6 +33,7 @@
#include <openssl/dh.h>
+#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h>
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index da020065ad2..7be002ca045 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.39 2006/06/08 14:45:49 markus Exp $ */
+/* $OpenBSD: readpass.c,v 1.40 2006/07/09 15:15:10 stevesk Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <fcntl.h>
#include <paths.h>
#include <readpassphrase.h>
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index e371bf55a05..60cae3f5ab4 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.143 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: scp.c,v 1.144 2006/07/09 15:15:10 stevesk Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -79,6 +79,7 @@
#include <ctype.h>
#include <dirent.h>
+#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c
index 028f8b03745..466b17ccdcf 100644
--- a/usr.bin/ssh/serverloop.c
+++ b/usr.bin/ssh/serverloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: serverloop.c,v 1.137 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: serverloop.c,v 1.138 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -43,6 +43,7 @@
#include <netinet/in.h>
+#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <termios.h>
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c
index c4a9b89a257..a75bcb239f0 100644
--- a/usr.bin/ssh/sftp-client.c
+++ b/usr.bin/ssh/sftp-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.65 2006/04/16 00:54:10 djm Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.66 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -26,6 +26,8 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
+
#include "buffer.h"
#include "bufaux.h"
#include "xmalloc.h"
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index 8100aa3e3ae..f04a2961fb8 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.58 2006/07/06 10:47:57 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.59 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -20,6 +20,7 @@
#include <sys/stat.h>
#include <dirent.h>
+#include <fcntl.h>
#include "buffer.h"
#include "bufaux.h"
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 00d4d8293aa..1a594fab952 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-add.c,v 1.81 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: ssh-add.c,v 1.82 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -42,6 +42,7 @@
#include <openssl/evp.h>
+#include <fcntl.h>
#include <pwd.h>
#include "ssh.h"
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index b16d0ffd279..e0a9c57411f 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.141 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.142 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -42,6 +42,7 @@
#include <sys/socket.h>
#include <sys/un.h>
+#include <fcntl.h>
#include <paths.h>
#include <signal.h>
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index e3bbde00296..85fbe668c23 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.146 2006/07/06 16:22:39 stevesk Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.147 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -20,6 +20,7 @@
#include <openssl/evp.h>
#include <openssl/pem.h>
+#include <fcntl.h>
#include <pwd.h>
#include "xmalloc.h"
diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c
index 29b841a2f96..695799ffdec 100644
--- a/usr.bin/ssh/ssh-keysign.c
+++ b/usr.bin/ssh/ssh-keysign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keysign.c,v 1.24 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: ssh-keysign.c,v 1.25 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -30,6 +30,7 @@
#include <openssl/rand.h>
#include <openssl/rsa.h>
+#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 5b50b2b42a3..08f97a41a79 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.280 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: ssh.c,v 1.281 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -50,6 +50,7 @@
#include <sys/stat.h>
#include <ctype.h>
+#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h>
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index c005eeb2a27..5ef11044b67 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.334 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: sshd.c,v 1.335 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -50,6 +50,7 @@
#include <sys/stat.h>
#include <sys/socket.h>
+#include <fcntl.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h>
diff --git a/usr.bin/ssh/sshlogin.c b/usr.bin/ssh/sshlogin.c
index 2cc160901ae..ac4f8e6b1a4 100644
--- a/usr.bin/ssh/sshlogin.c
+++ b/usr.bin/ssh/sshlogin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshlogin.c,v 1.17 2006/03/25 18:36:15 deraadt Exp $ */
+/* $OpenBSD: sshlogin.c,v 1.18 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -41,8 +41,10 @@
#include "includes.h"
+#include <fcntl.h>
#include <util.h>
#include <utmp.h>
+
#include "sshlogin.h"
#include "log.h"
#include "buffer.h"
diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c
index b01c8ca61b1..90f5da674ae 100644
--- a/usr.bin/ssh/sshpty.c
+++ b/usr.bin/ssh/sshpty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshpty.c,v 1.21 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: sshpty.c,v 1.22 2006/07/09 15:15:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
#include <grp.h>
#include <paths.h>
#include <pwd.h>