Funny but maybe useful change
Subsystems (2)
RFC 1/1 Funny but maybe useful change
It speaks about itself
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.404 -> 1.405
# lib/Makefile 1.7 -> 1.8
# include/linux/string.h 1.2 -> 1.3
# (new) -> 1.1 lib/strlcpy.c # (new) -> 1.1 lib/strlcat.c
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/05/18 [email protected] 1.405
# Add strlcpy and strlcat (basic)
# --------------------------------------------
#
include/linux/string.h +7 -0
@@ -60,6 +60,13 @@#ifndef __HAVE_ARCH_STRNLENextern __kernel_size_t strnlen (const char *,__kernel_size_t );#endif +#ifndef __HAVE_ARCH_STRLCPY +extern __kernel_size_t strlcpy (char *,const char *,__kernel_size_t ); +#endif +#ifndef __HAVE_ARCH_STRLCAT +extern __kernel_size_t strlcat (char *,const char *,__kernel_size_t ); +#endif +#ifndef __HAVE_ARCH_MEMSETextern void *memset (void *,int ,__kernel_size_t );
lib/Makefile +1 -0
@@ -11,6 +11,7 @@ export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o rbtree.o obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o bust_spinlocks.o rbtree.o +obj-y += strlcat.o strlcpy.o obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
lib/strlcat.c new file +68 -0
68 lines not on this page · raw message
lib/strlcpy.c new file +64 -0
64 lines not on this page · raw message
Signature · 2 lines
Paul P 'Stingray' Komkoff 'Greatest' Jr // (icq)23200764 // (irc)Spacebar PPKJ1-RIPE // (smtp)[email protected] // (http)stingr.net // (pgp)0xA4B4ECA4
Quoted 1 line
It speaks about itself
You could start by using a GPL compatible license. Even then you have to ask why we need it. The kernel shouldn't be doing lots of string mangling.