locate.code.c (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) locate.code.c (62f882d620bdfa783c01626012d69f468ba34e28)
1/*
2 * Copyright (c) 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
3 * Copyright (c) 1989, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * James A. Woods.
8 *

--- 83 unchanged lines hidden (view full) ---

92 */
93
94#include <sys/param.h>
95#include <err.h>
96#include <errno.h>
97#include <stdlib.h>
98#include <string.h>
99#include <stdio.h>
1/*
2 * Copyright (c) 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
3 * Copyright (c) 1989, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * James A. Woods.
8 *

--- 83 unchanged lines hidden (view full) ---

92 */
93
94#include <sys/param.h>
95#include <err.h>
96#include <errno.h>
97#include <stdlib.h>
98#include <string.h>
99#include <stdio.h>
100#include <unistd.h>
100#include "locate.h"
101
102#define BGBUFSIZE (NBG * 2) /* size of bigram buffer */
103
104u_char buf1[MAXPATHLEN] = " ";
105u_char buf2[MAXPATHLEN];
106u_char bigrams[BGBUFSIZE + 1] = { 0 };
107

--- 6 unchanged lines hidden (view full) ---

114#else
115#define BGINDEX(x) bgindex(x)
116typedef int bg_t;
117int bgindex __P((char *));
118#endif /* LOOKUP */
119
120
121void usage __P((void));
101#include "locate.h"
102
103#define BGBUFSIZE (NBG * 2) /* size of bigram buffer */
104
105u_char buf1[MAXPATHLEN] = " ";
106u_char buf2[MAXPATHLEN];
107u_char bigrams[BGBUFSIZE + 1] = { 0 };
108

--- 6 unchanged lines hidden (view full) ---

115#else
116#define BGINDEX(x) bgindex(x)
117typedef int bg_t;
118int bgindex __P((char *));
119#endif /* LOOKUP */
120
121
122void usage __P((void));
122extern int optind;
123extern int optopt;
124
125int
126main(argc, argv)
127 int argc;
128 char *argv[];
129{
130 register u_char *cp, *oldpath, *path;
131 int ch, code, count, diffcount, oldcount;

--- 149 unchanged lines hidden ---
123
124int
125main(argc, argv)
126 int argc;
127 char *argv[];
128{
129 register u_char *cp, *oldpath, *path;
130 int ch, code, count, diffcount, oldcount;

--- 149 unchanged lines hidden ---