/*
* 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <errno.h>
#include "local.h"
#include "fvwrite.h"
/*
** SM_IO_WRITE -- write to a file pointer
**
** Parameters:
** fp -- file pointer writing to
** timeout -- time to complete the write
** buf -- location of data to be written
** size -- number of bytes to be written
**
** Result:
** Failure: returns 0 _and_ sets errno
** Success: returns >=0 with errno unchanged, where the
** number returned is the number of bytes written.
*/
int timeout;
const void *buf;
{
{
return 0;
}
/* The usual case is success (sm_fvwrite returns 0) */
return size;
/* else return number of bytes actually written */
}