Import original 4.4-Lite version.
This commit is contained in:
parent
4922d725cf
commit
8f58e94ed3
|
@ -30,8 +30,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clean.h 8.1 (Berkeley) 6/4/93
|
||||
* $Id: clean.h,v 1.1 1994/06/08 18:42:12 mycroft Exp $
|
||||
* @(#)clean.h 8.1 (Berkeley) 6/4/93
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -107,7 +106,7 @@ typedef struct fs_info {
|
|||
__BEGIN_DECLS
|
||||
int dump_summary __P((struct lfs *, SEGSUM *, u_long, daddr_t **));
|
||||
void err __P((const int, const char *, ...));
|
||||
int fs_getmntinfo __P((struct statfs **, char *, const char *));
|
||||
int fs_getmntinfo __P((struct statfs **, char *, int));
|
||||
int get __P((int, off_t, void *, size_t));
|
||||
FS_INFO *get_fs_info __P((struct statfs *, int));
|
||||
int lfs_segmapv __P((FS_INFO *, int, caddr_t, BLOCK_INFO **, int *));
|
||||
|
|
|
@ -38,8 +38,7 @@ static char copyright[] =
|
|||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)cleanerd.c 8.2 (Berkeley) 1/13/94";*/
|
||||
static char *rcsid = "$Id: cleanerd.c,v 1.1 1994/06/08 18:42:13 mycroft Exp $";
|
||||
static char sccsid[] = "@(#)cleanerd.c 8.2 (Berkeley) 1/13/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)lfs_cleanerd.8 8.2 (Berkeley) 12/11/93
|
||||
.\" $Id: lfs_cleanerd.8,v 1.1 1994/06/08 18:42:14 mycroft Exp $
|
||||
.\" @(#)lfs_cleanerd.8 8.2 (Berkeley) 12/11/93
|
||||
.\"
|
||||
.Dd "December 11, 1993"
|
||||
.Dt LFS_CLEANERD 8
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)library.c 8.1 (Berkeley) 6/4/93";*/
|
||||
static char *rcsid = "$Id: library.c,v 1.1 1994/06/08 18:42:15 mycroft Exp $";
|
||||
static char sccsid[] = "@(#)library.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -74,7 +73,7 @@ int
|
|||
fs_getmntinfo(buf, name, type)
|
||||
struct statfs **buf;
|
||||
char *name;
|
||||
const char *type;
|
||||
int type;
|
||||
{
|
||||
/* allocate space for the filesystem info */
|
||||
*buf = (struct statfs *)malloc(sizeof(struct statfs));
|
||||
|
@ -88,7 +87,7 @@ fs_getmntinfo(buf, name, type)
|
|||
}
|
||||
|
||||
/* check to see if it's the one we want */
|
||||
if (strncmp(type, (*buf)->f_fstypename, MFSNAMELEN) ||
|
||||
if (((*buf)->f_type != type) ||
|
||||
strncmp(name, (*buf)->f_mntonname, MNAMELEN)) {
|
||||
/* "this is not the filesystem you're looking for */
|
||||
free(*buf);
|
||||
|
@ -150,7 +149,6 @@ get_superblock (fsp, sbp)
|
|||
struct lfs *sbp;
|
||||
{
|
||||
char mntfromname[MNAMELEN+1];
|
||||
char buf[LFS_SBPAD];
|
||||
int fid;
|
||||
|
||||
strcpy(mntfromname, "/dev/r");
|
||||
|
@ -161,8 +159,7 @@ get_superblock (fsp, sbp)
|
|||
return (-1);
|
||||
}
|
||||
|
||||
get(fid, LFS_LABELPAD, buf, LFS_SBPAD);
|
||||
bcopy(buf, sbp, sizeof(struct lfs));
|
||||
get(fid, LFS_LABELPAD, sbp, sizeof(struct lfs));
|
||||
close (fid);
|
||||
|
||||
return (0);
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/4/93";*/
|
||||
static char *rcsid = "$Id: misc.c,v 1.1 1994/06/08 18:42:16 mycroft Exp $";
|
||||
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)print.c 8.1 (Berkeley) 6/4/93";*/
|
||||
static char *rcsid = "$Id: print.c,v 1.1 1994/06/08 18:42:18 mycroft Exp $";
|
||||
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
@ -32,11 +32,10 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
/* from: static char sccsid[] = "@(#)authenc.c 8.1 (Berkeley) 6/4/93"; */
|
||||
static char *rcsid = "$Id: authenc.c,v 1.1 1994/02/25 03:20:42 cgd Exp $";
|
||||
static char sccsid[] = "@(#)authenc.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#if defined(AUTHENTICATION)
|
||||
#if defined(AUTHENTICATION) || defined(ENCRYPTION)
|
||||
#include "telnetd.h"
|
||||
#include <libtelnet/misc.h>
|
||||
|
||||
|
@ -56,6 +55,13 @@ net_write(str, len)
|
|||
void
|
||||
net_encrypt()
|
||||
{
|
||||
#ifdef ENCRYPTION
|
||||
char *s = (nclearto > nbackp) ? nclearto : nbackp;
|
||||
if (s < nfrontp && encrypt_output) {
|
||||
(*encrypt_output)((unsigned char *)s, nfrontp - s);
|
||||
}
|
||||
nclearto = nfrontp;
|
||||
#endif /* ENCRYPTION */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -82,4 +88,4 @@ telnet_gets(prompt, result, length, echo)
|
|||
{
|
||||
return((char *)0);
|
||||
}
|
||||
#endif /* defined(AUTHENTICATION) */
|
||||
#endif /* defined(AUTHENTICATION) || defined(ENCRYPTION) */
|
||||
|
|
Loading…
Reference in New Issue