mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Changed SSH_SUCCESS to SSH_OK
This commit is contained in:
@@ -796,7 +796,7 @@ void channel_free(ssh_channel channel) {
|
|||||||
*
|
*
|
||||||
* @param channel The channel to send the eof to.
|
* @param channel The channel to send the eof to.
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success\n
|
* @return SSH_OK on success\n
|
||||||
* SSH_ERROR on error\n
|
* SSH_ERROR on error\n
|
||||||
*
|
*
|
||||||
* @see channel_close()
|
* @see channel_close()
|
||||||
@@ -839,7 +839,7 @@ error:
|
|||||||
*
|
*
|
||||||
* @param channel The channel to close.
|
* @param channel The channel to close.
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success\n
|
* @return SSH_OK on success\n
|
||||||
* SSH_ERROR on error
|
* SSH_ERROR on error
|
||||||
*
|
*
|
||||||
* @see channel_free()
|
* @see channel_free()
|
||||||
@@ -1118,7 +1118,7 @@ error:
|
|||||||
*
|
*
|
||||||
* @param row The number of rows.
|
* @param row The number of rows.
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error.
|
* @return SSH_OK on success, SSH_ERROR on error.
|
||||||
*/
|
*/
|
||||||
int channel_request_pty_size(ssh_channel channel, const char *terminal,
|
int channel_request_pty_size(ssh_channel channel, const char *terminal,
|
||||||
int col, int row) {
|
int col, int row) {
|
||||||
@@ -1169,7 +1169,7 @@ error:
|
|||||||
*
|
*
|
||||||
* @param channel The channel to send the request.
|
* @param channel The channel to send the request.
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error.
|
* @return SSH_OK on success, SSH_ERROR on error.
|
||||||
*
|
*
|
||||||
* @see channel_request_pty_size()
|
* @see channel_request_pty_size()
|
||||||
*/
|
*/
|
||||||
@@ -1230,7 +1230,7 @@ error:
|
|||||||
*
|
*
|
||||||
* @param channel The channel to send the request.
|
* @param channel The channel to send the request.
|
||||||
*
|
*
|
||||||
* @returns SSH_SUCCESS on success, SSH_ERROR on error.
|
* @returns SSH_OK on success, SSH_ERROR on error.
|
||||||
*/
|
*/
|
||||||
int channel_request_shell(ssh_channel channel) {
|
int channel_request_shell(ssh_channel channel) {
|
||||||
#ifdef WITH_SSH1
|
#ifdef WITH_SSH1
|
||||||
@@ -1248,7 +1248,7 @@ int channel_request_shell(ssh_channel channel) {
|
|||||||
*
|
*
|
||||||
* @param subsys The subsystem to request (for example "sftp").
|
* @param subsys The subsystem to request (for example "sftp").
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error.
|
* @return SSH_OK on success, SSH_ERROR on error.
|
||||||
*
|
*
|
||||||
* @warning You normally don't have to call it for sftp, see sftp_new().
|
* @warning You normally don't have to call it for sftp, see sftp_new().
|
||||||
*/
|
*/
|
||||||
@@ -1596,7 +1596,7 @@ error:
|
|||||||
*
|
*
|
||||||
* @param value The value to set.
|
* @param value The value to set.
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error.
|
* @return SSH_OK on success, SSH_ERROR on error.
|
||||||
*
|
*
|
||||||
* @warning Some environement variables may be refused by security reasons.
|
* @warning Some environement variables may be refused by security reasons.
|
||||||
* */
|
* */
|
||||||
@@ -1647,7 +1647,7 @@ error:
|
|||||||
* @param cmd The command to execute
|
* @param cmd The command to execute
|
||||||
* (e.g. "ls ~/ -al | grep -i reports").
|
* (e.g. "ls ~/ -al | grep -i reports").
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error.
|
* @return SSH_OK on success, SSH_ERROR on error.
|
||||||
*
|
*
|
||||||
* @see channel_request_shell()
|
* @see channel_request_shell()
|
||||||
*/
|
*/
|
||||||
@@ -1697,7 +1697,7 @@ error:
|
|||||||
* @param signal The signal to send (without SIG prefix)
|
* @param signal The signal to send (without SIG prefix)
|
||||||
* (e.g. "TERM" or "KILL").
|
* (e.g. "TERM" or "KILL").
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS on success, SSH_ERROR on error (including attempt to send signal via SSH-v1 session).
|
* @return SSH_OK on success, SSH_ERROR on error (including attempt to send signal via SSH-v1 session).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int channel_request_send_signal(ssh_channel channel, const char *signal) {
|
int channel_request_send_signal(ssh_channel channel, const char *signal) {
|
||||||
@@ -2152,7 +2152,7 @@ static int count_ptrs(ssh_channel *ptrs) {
|
|||||||
*
|
*
|
||||||
* @param timeout Timeout as defined by select(2).
|
* @param timeout Timeout as defined by select(2).
|
||||||
*
|
*
|
||||||
* @return SSH_SUCCESS operation successful\n
|
* @return SSH_OK operation successful\n
|
||||||
* SSH_EINTR select(2) syscall was interrupted, relaunch the function
|
* SSH_EINTR select(2) syscall was interrupted, relaunch the function
|
||||||
*/
|
*/
|
||||||
int channel_select(ssh_channel *readchans, ssh_channel *writechans,
|
int channel_select(ssh_channel *readchans, ssh_channel *writechans,
|
||||||
|
|||||||
Reference in New Issue
Block a user