mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
[Bug 7345] Incomplete description of function return values in libsmbclient.h
- Fixed documentation on smbc_fstat(), smbc_statvfs(), and smbc_fstatvfs(): All were missing return value upon success - Fixed documentation on smbc_read: Documented return value upon EOF Derrell
This commit is contained in:
parent
59d68899c4
commit
0ee1985b05
@ -1267,7 +1267,9 @@ int smbc_creat(const char *furl, mode_t mode);
|
||||
*
|
||||
* @param bufsize Size of buf in bytes
|
||||
*
|
||||
* @return Number of bytes read, < 0 on error with errno set:
|
||||
* @return Number of bytes read;
|
||||
* 0 upon EOF;
|
||||
* < 0 on error, with errno set:
|
||||
* - EISDIR fd refers to a directory
|
||||
* - EBADF fd is not a valid file descriptor or
|
||||
* is not open for reading.
|
||||
@ -1618,7 +1620,8 @@ int smbc_stat(const char *url, struct stat *st);
|
||||
* @param st pointer to a buffer that will be filled with
|
||||
* standard Unix struct stat information.
|
||||
*
|
||||
* @return EBADF filedes is bad.
|
||||
* @return 0 on success, < 0 on error with errno set:
|
||||
* - EBADF filedes is bad.
|
||||
* - EACCES Permission denied.
|
||||
* - EBADF fd is not a valid file descriptor
|
||||
* - EINVAL Problems occurred in the underlying routines
|
||||
@ -1639,7 +1642,8 @@ int smbc_fstat(int fd, struct stat *st);
|
||||
* @param st pointer to a buffer that will be filled with
|
||||
* standard Unix struct statvfs information.
|
||||
*
|
||||
* @return EBADF filedes is bad.
|
||||
* @return 0 on success, < 0 on error with errno set:
|
||||
* - EBADF filedes is bad.
|
||||
* - EACCES Permission denied.
|
||||
* - EBADF fd is not a valid file descriptor
|
||||
* - EINVAL Problems occurred in the underlying routines
|
||||
@ -1662,7 +1666,8 @@ smbc_statvfs(char *url,
|
||||
* @param st pointer to a buffer that will be filled with
|
||||
* standard Unix struct statvfs information.
|
||||
*
|
||||
* @return EBADF filedes is bad.
|
||||
* @return 0 on success, < 0 on error with errno set:
|
||||
* - EBADF filedes is bad.
|
||||
* - EACCES Permission denied.
|
||||
* - EBADF fd is not a valid file descriptor
|
||||
* - EINVAL Problems occurred in the underlying routines
|
||||
@ -1684,7 +1689,8 @@ smbc_fstatvfs(int fd,
|
||||
*
|
||||
* @param size size to truncate the file to
|
||||
*
|
||||
* @return EBADF filedes is bad.
|
||||
* @return 0 on success, < 0 on error with errno set:
|
||||
* - EBADF filedes is bad.
|
||||
* - EACCES Permission denied.
|
||||
* - EBADF fd is not a valid file descriptor
|
||||
* - EINVAL Problems occurred in the underlying routines
|
||||
|
Loading…
Reference in New Issue
Block a user