/* $NetBSD: strcat.c,v 1.4 2020/04/07 08:07:58 skrll Exp $ */ /* * Copyright (c) 1988, 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. 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[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93"; #else __RCSID("$NetBSD: strcat.c,v 1.4 2020/04/07 08:07:58 skrll Exp $"); #endif #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) #include #include #else #include #endif #if defined(_FORTIFY_SOURCE) || defined(KASAN) #undef strcat #endif char * strcat(char *s, const char *append) { char *t = s; _DIAGASSERT(t != NULL); for (; *t; ++t) ; while ((*t++ = *append++) != '\0') ; return (s); } '>AgeCommit message (Expand)Author 2020-09-29Collapse all CPU_CORTEXA<n> options into CPU_CORTEX and do runtimejmcneill 2018-08-10Retire CPU_ARM2, CPU_ARM250 and CPU_ARM3, they are all leftovers ofmaxv 2018-04-01Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)ryo 2015-07-08Remove CPU_CORTEXA8 from a conditional - it doesn't believe there.skrll 2014-04-14Support (untested) SHEEVA_L2_CACHE and SHEEVA_L2_CACHE_WT options.matt 2014-03-30Make the ARM pmap use ASIDs, split TTBRs, and MP safe. This only happens formatt 2014-02-25Default ARM11 to ARM_MMU_V6Nmatt 2013-05-19Make PJ4B support code compilable.rkujawa 2011-03-10Preliminary ARM11 MPCore support.bsh 2010-10-02Add support Marvell Sheeva Core and SoC. (Orion/Kirkwood)kiyohara 2010-06-19Cleanup the armv7 changes. Add ARM_ARCH_7. Use CPU_CORTEX instead ofmatt 2010-06-16PR port-arm/43299: Support added for igepv2/cortexa8/omap3530jmcneill 2009-02-27IXP425 is not ARM_ARCH_4 but ARM_ARCH_5msaitoh 2008-10-14Add FA526 support (compile tested only)matt 2008-04-27Merge kernel changes in matt-armv6 to HEAD.matt 2007-01-06Scott Allan in http://mail-index.netbsd.org/port-arm/2006/07/31/0000.htmlchristos 2005-12-11merge ktrace-lwp.christos 2005-07-04The first step to support Intel PXA270.bsh 2005-06-03Very basic support for the ARM1136.rearnsha 2004-08-21ARM10 is an architecture 5 device (not 4).rearnsha 2003-09-06Add support for ARM10 class devices.rearnsha 2003-05-23support IXP425 Intel Network Processorichiro 2003-04-22Some ARM32_PMAP_NEW-related cleanup:thorpej 2003-04-09Fix a typo.thorpej 2002-08-07Implement pmc(9) -- An interface to hardware performance monitoringbriggs 2002-07-15add support for ixp12x0ichiro 2002-05-03Add support for the Intel PXA210 and PXA250. From Hiroyuki Bessho, PR 16617.thorpej 2002-04-12Centralize ARM CPU configuration information by adding a new headerthorpej