Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 21:42:12 +0000 (UTC)
From:      "Wojciech A. Koszek" <wkoszek@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/compat/opensolaris/kern opensolaris_string.c src/sys/compat/opensolaris/sys string.h src/sys/libkern index.c rindex.c src/sys/sys libkern.h
Message-ID:  <200704102142.l3ALgCYt053528@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
wkoszek     2007-04-10 21:42:12 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/opensolaris/kern opensolaris_string.c 
    sys/compat/opensolaris/sys string.h 
    sys/libkern          index.c rindex.c 
    sys/sys              libkern.h 
  Log:
  strchr() and strrchr() are already present in the kernel, but with less
  popular names. Hence:
  
  - comment current index() and rindex() functions, as these serve the same
    functionality as, respectively, strchr() and strrchr() from userland;
  - add inlined version of strchr() and strrchr(), as we tend to use them more
    often;
  - remove str[r]chr() definitions from ZFS code;
  
  Reviewed by:    pjd
  Approved by:    cognet (mentor)
  
  Revision  Changes    Path
  1.2       +0 -31     src/sys/compat/opensolaris/kern/opensolaris_string.c
  1.2       +3 -3      src/sys/compat/opensolaris/sys/string.h
  1.10      +4 -0      src/sys/libkern/index.c
  1.12      +4 -0      src/sys/libkern/rindex.c
  1.56      +12 -0     src/sys/sys/libkern.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704102142.l3ALgCYt053528>