SHMOP (SYSV) returns -1 on error

Niket K. Patwardhan bilbo.niket at LOCUS.UCLA.EDU
Fri Oct 25 04:10:21 AEST 1985


I thought that every SYSTEM CALL returned -1 on error. For example, read
returns -1 if you give it a fid that hasn't been opened, is not readable etc.
EOF is NOT considered an error, and is signalled by a 0 return. Thus SHMOP
returning -1 on an error would be consistent with all other system calls.



More information about the Comp.unix.wizards mailing list