/* $NetBSD: put.c,v 1.1.1.2 2003/06/01 14:01:37 atatat Exp $ */ #include #ifndef lint __RCSID("$NetBSD: put.c,v 1.1.1.2 2003/06/01 14:01:37 atatat Exp $"); #endif /* * 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_RCSID("@(#)Id: put.c,v 1.27 2001/12/19 05:19:35 ca Exp") #include #include #include #include #include #include #include "local.h" #include "fvwrite.h" /* ** SM_IO_PUTC -- output a character to the file ** ** Function version of the macro sm_io_putc (in ). ** ** Parameters: ** fp -- file to output to ** timeout -- time to complete putc ** c -- int value of character to output ** ** Returns: ** Failure: returns SM_IO_EOF _and_ sets errno ** Success: returns sm_putc() value. ** */ #undef sm_io_putc int sm_io_putc(fp, timeout, c) SM_FILE_T *fp; int timeout; int c; { SM_REQUIRE_ISA(fp, SmFileMagic); if (cantwrite(fp)) { errno = EBADF; return SM_IO_EOF; } return sm_putc(fp, timeout, c); } /* ** SM_PERROR -- print system error messages to smioerr ** ** Parameters: ** s -- message to print ** ** Returns: ** none */ void sm_perror(s) const char *s; { int save_errno = errno; if (s != NULL && *s != '\0') (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s: ", s); (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s\n", sm_errstring(save_errno)); } g msg
path: root/sys/dev/std
AgeCommit message (Expand)Author
2021-10-13fix typos and wrong ISO/IEC standard number in reference description.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
2014-10-18src is too big these days to tolerate superfluous apostrophes. It'ssnj
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2005-12-11merge ktrace-lwp.christos
2005-02-27nuke trailing whitespaceperry
2004-09-13a round of autoconf cleanup:drochner
2003-10-26Fix unitialized variable use.fvdl
2003-07-14add missing __KERNEL_RCSID()lukem
2003-02-02guarantee, not guarentee. Idea from miod@openbsd.wiz
2003-02-01make compileichiro
2002-06-25tabifyitojun
2002-05-23Fix bug in the way the config_found loop runs. Passing NULL doesn't work well.jmc
2002-04-02Add another exception condition (XXX...I'm gonna have to give in and justjmc
2002-02-27SBP is a firewire/ieee1394 specific protocol, not a generic standard. Move thisjmc
2002-02-27Initial checkin.jmc
2002-02-27Add a few more extraction macros and begin the ALLOW list of flags forjmc
2001-06-29Add some additional values to the keyvalue list from draft specs as some roms...jmc
2001-04-23Add comment set spec id to macro typesjmc
2001-04-23Add Model id as a valid generic typejmc
2001-04-16Add macro for extracting the whole key as one byte value.jmc
2001-04-15Correct some typos. Add 2 more macro's to extract data from directory entries...jmc
2001-04-11Only install headers which are actually used by our userland. Thisjdolecek
2001-01-18No-op commit to force update to a non-"-kk" revision.tv
2000-11-08Initial import of some of the definitions for the Serial Bus Protocol V2.matt
2000-06-15Add preliminary ieee1212reg.h (csr architecture which is the base spec formatt