/* $NetBSD: memccpy.c,v 1.9 1998/02/03 18:49:14 perry Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93"; #else __RCSID("$NetBSD: memccpy.c,v 1.9 1998/02/03 18:49:14 perry Exp $"); #endif #endif /* LIBC_SCCS and not lint */ #include void * memccpy(t, f, c, n) void *t; const void *f; int c; size_t n; { if (n) { unsigned char *tp = t; const unsigned char *fp = f; unsigned char uc = c; do { if ((*tp++ = *fp++) == uc) return (tp); } while (--n != 0); } return (0); } > 2007-11-10Remove the pecoff system table defines, they aren't needed since thedsl 2007-11-09Regendsl 2007-07-14Adapt for sys_mount() becoming compat_40_sys_mount(),dsl 2007-04-23Update using no pecoff specific system call code.dsl 2007-02-09Merge newlock2 to head.ad 2006-09-01Regen.matt 2006-08-31Regen (for PTRACE).oki 2006-07-31Make filehandles opaque to userlandmartin 2006-07-13regenerate again to have correct source RCS Idpavel 2006-07-13Adapt to getfh versioningmartin 2006-06-29Regen after addition of sys___ntp_gettime30 and sys___socket30.pavel 2006-06-26regenerate.mrg 2006-05-29regendrochner 2006-05-04Regenchristos 2006-02-26regenerate for syscalls.master rev.1.16kent 2005-11-17Regenchristos 2005-11-10regen.christos 2005-10-20regen.christos 2005-08-1964 bit inode changes.christos 2005-02-26regenperry 2004-05-08regenerate for fsync_range, uuidgen, getvfsstat, statvfs1, fstatvfs1, and fhs...kent 2004-04-21Replace the statfs() family of system calls with statvfs().christos 2004-03-26regen after __HAVE_SIGINFO removaldrochner 2003-09-23regencl 2003-09-12regenchristos 2003-04-08Regen.oki 2003-01-18Regen for correct RCS ID.thorpej 2003-01-18Regen: Merge the nathanw_sa branch.thorpej 2002-07-07Regen.oki 2002-05-03Regen.eeh 2002-03-29pecoff_misc.c: Remove compat functions.kent 2002-03-18Use /emul/pecoff as prefix to run PE/COFF binaries.oki