mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Remove files no longer in vendor distribution from vendor branch
This commit is contained in:
parent
b6bacd3150
commit
b37a166a40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/sendmail/dist/; revision=141865 svn path=/vendor/sendmail/8.13.3/; revision=141860; tag=vendor/sendmail/8.13.3
@ -1,22 +0,0 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# By using this file, you agree to the terms and conditions set
|
||||
# forth in the LICENSE file which can be found at the top level of
|
||||
# the sendmail distribution.
|
||||
#
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`$Id: nodns.m4,v 8.14 1999/07/22 17:55:35 gshapiro Exp $')
|
||||
divert(-1)
|
||||
|
||||
undefine(`confBIND_OPTS')dnl
|
||||
errprint(`FEATURE(nodns) is no-op.
|
||||
Use ServiceSwitchFile ('ifdef(`confSERVICE_SWITCH_FILE',confSERVICE_SWITCH_FILE,MAIL_SETTINGS_DIR`service.switch')`) if your OS does not provide its own instead.
|
||||
')
|
@ -1,79 +0,0 @@
|
||||
/*
|
||||
** OLDBIND.COMPAT.C
|
||||
**
|
||||
** Very old systems do not have res_query(), res_querydomain() or
|
||||
** res_search(), so emulate them here.
|
||||
**
|
||||
** You really ought to be upgrading to a newer version of BIND
|
||||
** (4.8.2 or later) rather than be using this.
|
||||
**
|
||||
** J.R. Oldroyd <jr@inset.com>
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/nameser.h>
|
||||
#include <resolv.h>
|
||||
|
||||
typedef union
|
||||
{
|
||||
HEADER qb1;
|
||||
char qb2[PACKETSZ];
|
||||
} querybuf;
|
||||
|
||||
res_query(dname, class, type, data, datalen)
|
||||
char * dname;
|
||||
int class;
|
||||
int type;
|
||||
char * data;
|
||||
int datalen;
|
||||
{
|
||||
int n;
|
||||
querybuf buf;
|
||||
|
||||
n = res_mkquery(QUERY, dname, class, type, (char *) NULL, 0,
|
||||
NULL, (char *) &buf, sizeof buf);
|
||||
n = res_send((char *)&buf, n, data, datalen);
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
res_querydomain(host, dname, class, type, data, datalen)
|
||||
char * host;
|
||||
char * dname;
|
||||
int class;
|
||||
int type;
|
||||
char * data;
|
||||
int datalen;
|
||||
{
|
||||
int n;
|
||||
querybuf buf;
|
||||
char dbuf[256];
|
||||
|
||||
strcpy(dbuf, host);
|
||||
if (dbuf[strlen(dbuf)-1] != '.')
|
||||
strcat(dbuf, ".");
|
||||
strcat(dbuf, dname);
|
||||
n = res_mkquery(QUERY, dbuf, class, type, (char *) NULL, 0,
|
||||
NULL, (char *)&buf, sizeof buf);
|
||||
n = res_send((char *) &buf, n, data, datalen);
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
res_search(dname, class, type, data, datalen)
|
||||
char * dname;
|
||||
int class;
|
||||
int type;
|
||||
char * data;
|
||||
int datalen;
|
||||
{
|
||||
int n;
|
||||
querybuf buf;
|
||||
|
||||
n = res_mkquery(QUERY, dname, class, type, (char *)NULL, 0,
|
||||
NULL, (char *) &buf, sizeof buf);
|
||||
n = res_send((char *) &buf, n, data, datalen);
|
||||
|
||||
return n;
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* Chris Torek.
|
||||
*
|
||||
* By using this file, you agree to the terms and conditions set
|
||||
* forth in the LICENSE file which can be found at the top level of
|
||||
* the sendmail distribution.
|
||||
*/
|
||||
|
||||
#include <sm/gen.h>
|
||||
SM_RCSID("@(#)$Id: vsprintf.c,v 1.21 2001/09/11 04:04:49 gshapiro Exp $")
|
||||
#include <limits.h>
|
||||
#include <sm/io.h>
|
||||
#include "local.h"
|
||||
|
||||
/*
|
||||
** SM_VSPRINTF -- format data for "output" into a string
|
||||
**
|
||||
** Assigned 'str' to a "fake" file pointer. This allows common
|
||||
** o/p formatting function sm_vprintf() to be used.
|
||||
**
|
||||
** Parameters:
|
||||
** str -- location for output
|
||||
** fmt -- format directives
|
||||
** ap -- data unit vectors for use by 'fmt'
|
||||
**
|
||||
** Results:
|
||||
** result from sm_io_vfprintf()
|
||||
**
|
||||
** Side Effects:
|
||||
** Quietly limits the size to INT_MAX though this may
|
||||
** not prevent SEGV's.
|
||||
*/
|
||||
|
||||
int
|
||||
sm_vsprintf(str, fmt, ap)
|
||||
char *str;
|
||||
const char *fmt;
|
||||
SM_VA_LOCAL_DECL
|
||||
{
|
||||
int ret;
|
||||
SM_FILE_T fake;
|
||||
|
||||
fake.sm_magic = SmFileMagic;
|
||||
fake.f_file = -1;
|
||||
fake.f_flags = SMWR | SMSTR;
|
||||
fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
|
||||
fake.f_bf.smb_size = fake.f_w = INT_MAX;
|
||||
fake.f_timeout = SM_TIME_FOREVER;
|
||||
fake.f_timeoutstate = SM_TIME_BLOCK;
|
||||
fake.f_close = NULL;
|
||||
fake.f_open = NULL;
|
||||
fake.f_read = NULL;
|
||||
fake.f_write = NULL;
|
||||
fake.f_seek = NULL;
|
||||
fake.f_setinfo = fake.f_getinfo = NULL;
|
||||
fake.f_type = "sm_vsprintf:fake";
|
||||
ret = sm_io_vfprintf(&fake, SM_TIME_FOREVER, fmt, ap);
|
||||
*fake.f_p = '\0';
|
||||
return ret;
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* Donn Seeley at UUNET Technologies, Inc.
|
||||
*
|
||||
* By using this file, you agree to the terms and conditions set
|
||||
* forth in the LICENSE file which can be found at the top level of
|
||||
* the sendmail distribution.
|
||||
*/
|
||||
|
||||
#include <sm/gen.h>
|
||||
SM_RCSID("@(#)$Id: vsscanf.c,v 1.23 2002/02/01 02:28:00 ca Exp $")
|
||||
#include <string.h>
|
||||
#include <sm/io.h>
|
||||
|
||||
/*
|
||||
** SM_EOFREAD -- dummy read function for faked file below
|
||||
**
|
||||
** Parameters:
|
||||
** fp -- file pointer
|
||||
** buf -- location to place read data
|
||||
** len -- number of bytes to read
|
||||
**
|
||||
** Returns:
|
||||
** 0 (zero) always
|
||||
*/
|
||||
|
||||
/* type declaration for later use */
|
||||
static ssize_t sm_eofread __P((SM_FILE_T *, char *, size_t));
|
||||
|
||||
/* ARGSUSED0 */
|
||||
static ssize_t
|
||||
sm_eofread(fp, buf, len)
|
||||
SM_FILE_T *fp;
|
||||
char *buf;
|
||||
size_t len;
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
** SM_VSSCANF -- scan a string to find data units
|
||||
**
|
||||
** Parameters:
|
||||
** str -- strings containing data
|
||||
** fmt -- format directive for finding data units
|
||||
** ap -- memory locations to place format found data units
|
||||
**
|
||||
** Returns:
|
||||
** Failure: SM_IO_EOF
|
||||
** Success: number of data units found
|
||||
**
|
||||
** Side Effects:
|
||||
** Attempts to strlen() 'str'; if not a '\0' terminated string
|
||||
** then the call may SEGV/fail.
|
||||
** Faking the string 'str' as a file.
|
||||
*/
|
||||
|
||||
int
|
||||
sm_vsscanf(str, fmt, ap)
|
||||
const char *str;
|
||||
const char *fmt;
|
||||
SM_VA_LOCAL_DECL
|
||||
{
|
||||
SM_FILE_T fake;
|
||||
|
||||
fake.sm_magic = SmFileMagic;
|
||||
fake.f_timeout = SM_TIME_FOREVER;
|
||||
fake.f_timeoutstate = SM_TIME_BLOCK;
|
||||
fake.f_file = -1;
|
||||
fake.f_flags = SMRD;
|
||||
fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
|
||||
fake.f_bf.smb_size = fake.f_r = strlen(str);
|
||||
fake.f_read = sm_eofread;
|
||||
fake.f_ub.smb_base = NULL;
|
||||
fake.f_close = NULL;
|
||||
fake.f_open = NULL;
|
||||
fake.f_write = NULL;
|
||||
fake.f_seek = NULL;
|
||||
fake.f_setinfo = fake.f_getinfo = NULL;
|
||||
fake.f_type = "sm_vsscanf:fake";
|
||||
return sm_vfscanf(&fake, SM_TIME_FOREVER, fmt, ap);
|
||||
}
|
Loading…
Reference in New Issue
Block a user