0 Indicates success. -1 Indicates an error other than a privilege violation; errno is set to indicate the error. -2 Indicates a privilege violation.