aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/diff/pr.h
Commit message (Collapse)AuthorAgeFilesLines
* diff: Fix pagination leakDag-Erling Smørgrav2026-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Drop an unnecessary variable and rename pidfd to procd. * Rewinding stdout serves no purpose, so stop doing it. * Don't bother freeing memory or setting the global status right before erroring out. * Error out if dup(2) or dup2(2) fail. * In the unlikely case that our pipe is equal to stdout, we need to record that information so we don't close it when cleaning up. * Don't bother closing a descriptor before dup2(2)ing to it. * Don't forget to close the the process descriptor after reaping the child process. PR: 266592 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans, markj Differential Revision: https://reviews.freebsd.org/D55112
* diff: remove useless include as kevent is not used anymoreBaptiste Daroussin2026-02-021-2/+0
| | | | MFC After: 3 days
* diff: use pdwait(2) instead of homemade oneBaptiste Daroussin2026-02-021-2/+1
| | | | | | MFC After: 3 days Reviewed by: des Differential Revision: https://reviews.freebsd.org/D55053
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Isolate the pr(1) related code in its own source filesBaptiste Daroussin2018-06-091-0/+38
This keeps diffreg.c closer to what it is supposed to do: diffing regular files. It also allows my code to get a proper license Notes: svn path=/head/; revision=334894