complete.c (79971) | complete.c (116424) |
---|---|
1/* $NetBSD: complete.c,v 1.38 2000/05/01 10:35:17 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 1997-2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Luke Mewburn. --- 22 unchanged lines hidden (view full) --- 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 */ 38 | 1/* $NetBSD: complete.c,v 1.38 2000/05/01 10:35:17 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 1997-2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Luke Mewburn. --- 22 unchanged lines hidden (view full) --- 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 */ 38 |
39#include <sys/cdefs.h> 40#ifndef lint 41__RCSID("$NetBSD: complete.c,v 1.38 2000/05/01 10:35:17 lukem Exp $"); 42#endif /* not lint */ 43 |
|
39/* 40 * FTP user program - command and file completion routines 41 */ 42 | 44/* 45 * FTP user program - command and file completion routines 46 */ 47 |
43#include "lukemftp.h" | 48#include <sys/stat.h> |
44 | 49 |
50#include <ctype.h> 51#include <err.h> 52#include <dirent.h> 53#include <stdio.h> 54#include <stdlib.h> 55#include <string.h> 56 |
|
45#include "ftp_var.h" 46 47#ifndef NO_EDITCOMPLETE 48 49static int comparstr (const void *, const void *); 50static unsigned char complete_ambiguous (char *, int, StringList *); 51static unsigned char complete_command (char *, int); 52static unsigned char complete_local (char *, int); --- 371 unchanged lines hidden --- | 57#include "ftp_var.h" 58 59#ifndef NO_EDITCOMPLETE 60 61static int comparstr (const void *, const void *); 62static unsigned char complete_ambiguous (char *, int, StringList *); 63static unsigned char complete_command (char *, int); 64static unsigned char complete_local (char *, int); --- 371 unchanged lines hidden --- |