summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getpagesize.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the vcs ID strings in libc's gen/ directory.John Baldwin2018-07-031-3/+1
| | | | | | | | | | | | | | | | | | | | - Move CSRG IDs into __SCCSID(). - When a file has been copied, consistently use 'From: <tag>' for strings referencing the version of the source file copied from in the license block comment. - Some of the 'From:' tags were using $FreeBSD$ that was being expanded on each checkout. Fix those to hardcode the FreeBSD tag from the file that was copied at the time of the copy. - When multiple strings are present list them in "chronological" order, so CSRG (__SCCSID) before FreeBSD (__FBSDID). If a file came from OtherBSD and contains a CSRG ID from the OtherBSD file, use the order CSRG -> OtherBSD -> FreeBSD. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D15831 Notes: svn path=/head/; revision=335898
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* getpagesize(3) cannot fail.Konstantin Belousov2017-04-261-1/+1
| | | | | | | | | | | | | The sysctl(HW_PAGESIZE) call cannot fail on FreeBSD kernels at least. And even if it failed for some improbable reason, PAGE_SIZE is a safe value to return. Discussed with: jilles Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=317436
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove trailing whitespace and use `nitems(mib)` instead of `2` whenEnji Cooper2016-04-191-2/+2
| | | | | | | | | | calling sysctl(3) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=298303
* Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.Craig Rodrigues2015-09-201-1/+1
| | | | Notes: svn path=/head/; revision=288029
* Use aux vector to get values for SSP canary, pagesize, pagesizes array,Konstantin Belousov2010-08-171-7/+18
| | | | | | | | | | | | | | number of host CPUs and osreldate. This eliminates the last sysctl(2) calls from the dynamically linked image startup. No objections from: kan Tested by: marius (sparc64) MFC after: 1 month Notes: svn path=/head/; revision=211416
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Include a couple of headers to ensure consistency between the prototype andStefan Farfeleder2005-09-121-0/+2
| | | | | | | the function definition. Notes: svn path=/head/; revision=150065
* Fix SCM ID's.David E. O'Brien2002-02-011-2/+2
| | | | Notes: svn path=/head/; revision=90039
* Add notice about early use from malloc.c forbidding malloc use fromPoul-Henning Kamp2001-11-021-0/+5
| | | | | | | this function. Notes: svn path=/head/; revision=85868
* Cache the result of getpagesize() so we only make one syscall.Poul-Henning Kamp1996-05-021-6/+14
| | | | | | | Use getpagesize instead of CLBYTES. Notes: svn path=/head/; revision=15528
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+53
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573