Align all filesystem relevant places to use B_UNSUPPORTED for unsupported
instead of a mix of B_NOT_SUPPORTED and B_UNSUPPORTED. This allows checking for a specific error code. Probably one of those should be phased out... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43025 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -985,7 +985,7 @@ _user_rewind_dir(int fd)
|
||||
if (descriptor->ops->fd_rewind_dir)
|
||||
status = descriptor->ops->fd_rewind_dir(descriptor);
|
||||
else
|
||||
status = B_NOT_SUPPORTED;
|
||||
status = B_UNSUPPORTED;
|
||||
|
||||
put_fd(descriptor);
|
||||
return status;
|
||||
@@ -1258,7 +1258,7 @@ _kern_read_dir(int fd, struct dirent* buffer, size_t bufferSize,
|
||||
if (retval >= 0)
|
||||
retval = count;
|
||||
} else
|
||||
retval = B_NOT_SUPPORTED;
|
||||
retval = B_UNSUPPORTED;
|
||||
|
||||
put_fd(descriptor);
|
||||
return retval;
|
||||
@@ -1280,7 +1280,7 @@ _kern_rewind_dir(int fd)
|
||||
if (descriptor->ops->fd_rewind_dir)
|
||||
status = descriptor->ops->fd_rewind_dir(descriptor);
|
||||
else
|
||||
status = B_NOT_SUPPORTED;
|
||||
status = B_UNSUPPORTED;
|
||||
|
||||
put_fd(descriptor);
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user