plan9fox/sys/src/cmd/scat
cinap_lenrek ac88ce4f7f make bind(2) error handling consistent
The mount() and bind() syscalls return -1 on error,
and the mountid sequence number on success.

The manpage states that the mountid sequence number
is a positive integer, but the kernels implementation
currently uses a unsigned 32-bit integer and does not
guarantee that the mountid will not become negative.

Most code just cares about the error, so test for
the -1 error value only.
2020-05-02 17:32:01 +02:00
..
bitinput.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
desc.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
display.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dssread.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
header.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
hinv.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
image.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
patch.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
plate.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
plot.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
posn.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
prose.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
qtree.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
scat.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
sky.h scat: hjdicks for amd64 2016-09-19 19:04:21 +02:00
strings.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
util.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00