]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When system calls indicate an error they return -1, not some arbitrary
authorbapt <bapt@FreeBSD.org>
Tue, 14 Jan 2020 08:22:28 +0000 (08:22 +0000)
committerbapt <bapt@FreeBSD.org>
Tue, 14 Jan 2020 08:22:28 +0000 (08:22 +0000)
commit172b3c02409c92a1ac52d1e15f2dd6f5f0b871fd
treef17a465675d46daa2fd3ac2c241e30df79f553e6
parentcf1a5bd52aae12f77cbd7f0673571e8be31bf82c
When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.

Obtained from: OpenBSD
MFC after: 3 days
usr.bin/diff/diff.c
usr.bin/diff/diffreg.c