146099Sbostic /*- 2*61180Sbostic * Copyright (c) 1990, 1993 3*61180Sbostic * The Regents of the University of California. All rights reserved. 446099Sbostic * 546099Sbostic * This code is derived from software contributed to Berkeley by 646099Sbostic * Chris Torek. 746099Sbostic * 846099Sbostic * %sccs.include.redist.c% 946099Sbostic */ 1046099Sbostic 1126659Sdonn #if defined(LIBC_SCCS) && !defined(lint) 12*61180Sbostic static char sccsid[] = "@(#)putw.c 8.1 (Berkeley) 06/04/93"; 1346099Sbostic #endif /* LIBC_SCCS and not lint */ 1422142Smckusick 152028Swnj #include <stdio.h> 1646099Sbostic #include "fvwrite.h" 172028Swnj putw(w,fp)1846099Sbosticputw(w, fp) 1946099Sbostic int w; 2046099Sbostic FILE *fp; 212028Swnj { 2246099Sbostic struct __suio uio; 2346099Sbostic struct __siov iov; 242028Swnj 2546099Sbostic iov.iov_base = &w; 2646099Sbostic iov.iov_len = uio.uio_resid = sizeof(w); 2746099Sbostic uio.uio_iov = &iov; 2846099Sbostic uio.uio_iovcnt = 1; 2946099Sbostic return (__sfvwrite(fp, &uio)); 302028Swnj } 31