Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 14:51:20 -0700 (PDT)
From:      Garrett Wollman <wollman@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen confstr.c
Message-ID:  <200207152151.g6FLpKaN026464@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wollman     2002/07/15 14:51:20 PDT

  Modified files:
    lib/libc/gen         confstr.c 
  Log:
  All of the things that confstr() returns are compile-time constants.
  It's silly to call sysctl() to get the value of _PATH_STDPATH from
  <paths.h> when we can just use it directly.  This greatly simplifies
  the implementation.  (This is also part of my grand scheme to get
  rid of sysctl's `user' category, which should never have been created.)
  
  Use strlcpy() instead of strncpy() as it has the exact semantics we want.
  
  Revision  Changes    Path
  1.4       +10 -31    src/lib/libc/gen/confstr.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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