aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sa/db.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* Fix the following -Wcast-qual warnings in usr.sbin/sa/db.c:Dimitry Andric2015-01-281-1/+1
| | | | | | | | | | | | | | | | | usr.sbin/sa/db.c:82:20: error: cast from 'char const (*)[9]' to 'void *' drops const qualifier [-Werror,-Wcast-qual] key.data = (void*)&VERSION_KEY; ^ usr.sbin/sa/db.c:178:20: error: cast from 'char const (*)[9]' to 'void *' drops const qualifier [-Werror,-Wcast-qual] key.data = (void*)&VERSION_KEY; ^ Replace the VERSION_KEY define with a writable char array, so no const qualifier needs to be dropped anymore. Submitted by: rdivacky Notes: svn path=/head/; revision=277860
* In usr.sbin/sa/db.c, avoid warnings about assigning two const charDimitry Andric2011-12-181-2/+2
| | | | | | | | | arrays to non-const void pointers, by casting away const explicitly. MFC after: 1 week Notes: svn path=/head/; revision=228681
* Ensure that the -s flag truncates the accounting data.Greg Lehey2008-02-211-1/+1
| | | | | | | | | | | This problem has only been reported on the amd64 platform. PR: bin/120293 Tested by: Callum Gibson MFC after: 2 weeks Notes: svn path=/head/; revision=176433
* Fix a compiler warning by using a printf format matching the variableJohn Birrell2007-11-171-1/+1
| | | | | | | type. Notes: svn path=/head/; revision=173711
* Increase precision of time values in the process accountingDiomidis Spinellis2007-05-221-0/+207
structure, while maintaining backward compatibility with legacy file and record formats. Notes: svn path=/head/; revision=169857