strncpy.S (498495dba268b20e8eadd7fe93c140c68b6cc9d2) strncpy.S (f3c78e949d3fb0afcc1bdd8e44b0902897fc2f84)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * arch/alpha/lib/strncpy.S
4 * Contributed by Richard Henderson (rth@tamu.edu)
5 *
6 * Copy no more than COUNT bytes of the null-terminated string from
7 * SRC to DST. If SRC does not cover all of COUNT, the balance is
8 * zeroed.
9 *
10 * Or, rather, if the kernel cared about that weird ANSI quirk. This
11 * version has cropped that bit o' nastiness as well as assuming that
12 * __stxncpy is in range of a branch.
13 */
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * arch/alpha/lib/strncpy.S
4 * Contributed by Richard Henderson (rth@tamu.edu)
5 *
6 * Copy no more than COUNT bytes of the null-terminated string from
7 * SRC to DST. If SRC does not cover all of COUNT, the balance is
8 * zeroed.
9 *
10 * Or, rather, if the kernel cared about that weird ANSI quirk. This
11 * version has cropped that bit o' nastiness as well as assuming that
12 * __stxncpy is in range of a branch.
13 */
14#include <asm/export.h>
14#include <linux/export.h>
15 .set noat
16 .set noreorder
17
18 .text
19
20 .align 4
21 .globl strncpy
22 .ent strncpy

--- 61 unchanged lines hidden ---
15 .set noat
16 .set noreorder
17
18 .text
19
20 .align 4
21 .globl strncpy
22 .ent strncpy

--- 61 unchanged lines hidden ---