Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 2010 13:57:02 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/gen sysctl.3 sysctl.c sysctlbyname.c sysctlnametomib.c src/sys/sys sysctl.h
Message-ID:  <201002211400.o1LE0oBx092835@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2010-02-21 13:57:02 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         sysctl.3 sysctl.c sysctlbyname.c 
                         sysctlnametomib.c 
    sys/sys              sysctl.h 
  Log:
  SVN rev 204170 on 2010-02-21 13:57:02Z by ed
  
  Add proper const keywords to sysctl(3) parameters.
  
  The `name' and `newp' arguments can be marked const, because the buffers
  they refer to are never changed. While there, perform some other
  cleanups:
  
  - Remove K&R from sysctl.c.
  - Implement sysctlbyname() using sysctlnametomib() to prevent
    duplication of an undocumented kernel interface.
  - Fix some whitespace nits.
  
  It seems the prototypes are now in sync with NetBSD as well.
  
  Revision  Changes    Path
  1.77      +3 -3      src/lib/libc/gen/sysctl.3
  1.7       +4 -7      src/lib/libc/gen/sysctl.c
  1.6       +5 -12     src/lib/libc/gen/sysctlbyname.c
  1.5       +3 -3      src/lib/libc/gen/sysctlnametomib.c
  1.178     +2 -2      src/sys/sys/sysctl.h



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