plan9fox/sys/src/cmd/cfs
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
..
bcache.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
bcache.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
cformat.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
cfs.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
disk.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
disk.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
file.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
file.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
inode.c format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64) 2016-01-07 04:44:13 +01:00
inode.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lru.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lru.h 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
notes Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
stats.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00