aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/c99/c99.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.bin: 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/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* 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
* Make c99(1) invoke /usr/bin/cc with argv[0] set to "/usr/bin/cc" insteadDimitry Andric2013-03-071-1/+1
| | | | | | | | | | of just "cc", since there is no reason to cause additional path searches in this case. MFC after: 3 days Notes: svn path=/head/; revision=247953
* Add missing static keywords to c99(1)Ed Schouten2011-11-061-8/+8
| | | | Notes: svn path=/head/; revision=227153
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-4/+3
| | | | Notes: svn path=/head/; revision=146466
* Fix off-by-one error.Stefan Farfeleder2005-01-141-1/+1
| | | | Notes: svn path=/head/; revision=140226
* Re-add the code which maps POSIX standard library names into the onesTim J. Robbins2002-10-081-4/+49
| | | | | | | FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing. Notes: svn path=/head/; revision=104647
* Add the c99(1) utility, which is nothing more than a synonym forTim J. Robbins2002-10-071-0/+89
cc -std=iso9899:1999 -pedantic, and is required by SUSv3. PR; 36087 Notes: svn path=/head/; revision=104615