diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-26 23:17:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-26 23:17:25 +0000 |
commit | 1d8c47a1e19b1f9a86b3a52b2e510946c4dc8c2a (patch) | |
tree | 0a9a2d412169c6b03657a355e8580e5e664ea78b /usr.bin | |
parent | bac8a5ba0ff709917623c9ff7c1586e9b7c3b620 (diff) |
trash
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/check-fds.c | 43 | ||||
-rw-r--r-- | usr.bin/ssh/rfc-pg.c | 49 |
2 files changed, 0 insertions, 92 deletions
diff --git a/usr.bin/ssh/check-fds.c b/usr.bin/ssh/check-fds.c deleted file mode 100644 index 20e8bf5c1b3..00000000000 --- a/usr.bin/ssh/check-fds.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - -check-fds.c - -Author: Tatu Ylonen <ylo@cs.hut.fi> - -Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland - All rights reserved - -Created: Sat Apr 8 00:25:04 1995 ylo - -*/ - -#include <stdio.h> -RCSID("$Id: check-fds.c,v 1.1 1999/09/26 20:53:34 deraadt Exp $"); - -#include <sys/types.h> -#include <fcntl.h> -#include <sys/stat.h> - -int main(int ac, char **av) -{ - int i, dummy; - struct stat st; - - for (i = 0; i < 1024; i++) - if (fcntl(i, F_GETFL, &dummy) >= 0) - { - printf("Descriptor %d is open.\n", i); - if (fstat(i, &st) < 0) - perror("fstat"); - else - { - printf("st_mode 0x%x, st_dev 0x%x, st_rdev 0x%x, st_ino 0x%x, st_size 0x%lx\n", - st.st_mode, st.st_dev, st.st_rdev, st.st_ino, - (long)st.st_size); - if (ttyname(i)) - printf("ttyname: %.100s\n", ttyname(i)); - } - } - exit(0); -} - diff --git a/usr.bin/ssh/rfc-pg.c b/usr.bin/ssh/rfc-pg.c deleted file mode 100644 index 20d9b483908..00000000000 --- a/usr.bin/ssh/rfc-pg.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - -rfc-pg.c - -Author: Tatu Ylonen <ylo@cs.hut.fi> - -Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland - All rights reserved - -Created: Fri Jul 7 02:14:16 1995 ylo - -*/ - -/* RCSID("$Id: rfc-pg.c,v 1.1 1999/09/26 20:53:37 deraadt Exp $"); */ - -#include <stdio.h> - -int main() -{ - int add_formfeed = 0; - int skipping = 0; - int ch; - - while ((ch = getc(stdin)) != EOF) - { - if (ch == '\n') - { - if (add_formfeed) - { - putc('\n', stdout); - putc('\014', stdout); - putc('\n', stdout); - add_formfeed = 0; - skipping = 1; - continue; - } - if (skipping) - continue; - } - skipping = 0; - if (ch == '\014') - { - add_formfeed = 1; - continue; - } - putc(ch, stdout); - } - exit(0); -} |