140266059SGregory Neil Shapiro /* 25dd76dd0SGregory Neil Shapiro * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 340266059SGregory Neil Shapiro * All rights reserved. 440266059SGregory Neil Shapiro * Copyright (c) 1990, 1993 540266059SGregory Neil Shapiro * The Regents of the University of California. All rights reserved. 640266059SGregory Neil Shapiro * 740266059SGregory Neil Shapiro * This code is derived from software contributed to Berkeley by 840266059SGregory Neil Shapiro * Chris Torek. 940266059SGregory Neil Shapiro * 1040266059SGregory Neil Shapiro * By using this file, you agree to the terms and conditions set 1140266059SGregory Neil Shapiro * forth in the LICENSE file which can be found at the top level of 1240266059SGregory Neil Shapiro * the sendmail distribution. 1340266059SGregory Neil Shapiro */ 1440266059SGregory Neil Shapiro 1540266059SGregory Neil Shapiro #include <sm/gen.h> 164313cc83SGregory Neil Shapiro SM_RCSID("@(#)$Id: vprintf.c,v 1.15 2013-11-22 20:51:44 ca Exp $") 1740266059SGregory Neil Shapiro #include <sm/io.h> 1840266059SGregory Neil Shapiro #include "local.h" 1940266059SGregory Neil Shapiro 2040266059SGregory Neil Shapiro /* 2140266059SGregory Neil Shapiro ** SM_VPRINTF -- print to standard out with variable length args 2240266059SGregory Neil Shapiro ** 2340266059SGregory Neil Shapiro ** Parameters: 2440266059SGregory Neil Shapiro ** timeout -- length of time allow to do the print 2540266059SGregory Neil Shapiro ** fmt -- the format of the output 2640266059SGregory Neil Shapiro ** ap -- the variable number of args to be used for output 2740266059SGregory Neil Shapiro ** 2840266059SGregory Neil Shapiro ** Returns: 2940266059SGregory Neil Shapiro ** as sm_io_vfprintf() does. 3040266059SGregory Neil Shapiro */ 3140266059SGregory Neil Shapiro 3240266059SGregory Neil Shapiro int 3340266059SGregory Neil Shapiro sm_vprintf(timeout, fmt, ap) 3440266059SGregory Neil Shapiro int timeout; 3540266059SGregory Neil Shapiro char const *fmt; 36*2fb4f839SGregory Neil Shapiro va_list ap; 3740266059SGregory Neil Shapiro { 3840266059SGregory Neil Shapiro return sm_io_vfprintf(smiostdout, timeout, fmt, ap); 3940266059SGregory Neil Shapiro } 40