From owner-cvs-all@FreeBSD.ORG Thu Aug 25 18:26:59 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03C8B16A41F; Thu, 25 Aug 2005 18:26:59 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B91C743D69; Thu, 25 Aug 2005 18:26:58 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7PIQwcB073754; Thu, 25 Aug 2005 18:26:58 GMT (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7PIQwnF073753; Thu, 25 Aug 2005 18:26:58 GMT (envelope-from andre) Message-Id: <200508251826.j7PIQwnF073753@repoman.freebsd.org> From: Andre Oppermann Date: Thu, 25 Aug 2005 18:26:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/include string.h src/lib/libc/string Makefile.inc memchr.3 memmem.3 memmem.c strchr.3 strstr.3 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 18:26:59 -0000 andre 2005-08-25 18:26:58 UTC FreeBSD src repository Modified files: include string.h lib/libc/string Makefile.inc memchr.3 strchr.3 strstr.3 Added files: lib/libc/string memmem.3 memmem.c Log: Add the function memmem(3) as found in glibc and others. It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor MFC after: 3 days Revision Changes Path 1.22 +1 -0 src/include/string.h 1.36 +5 -5 src/lib/libc/string/Makefile.inc 1.8 +2 -1 src/lib/libc/string/memchr.3 1.1 +84 -0 src/lib/libc/string/memmem.3 (new) 1.1 +67 -0 src/lib/libc/string/memmem.c (new) 1.12 +1 -0 src/lib/libc/string/strchr.3 1.13 +1 -0 src/lib/libc/string/strstr.3