geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.4 KiB

  1. .TH libssh2_channel_setenv_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_channel_setenv_ex - set an environment variable on the channel
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel, char *varname, unsigned int varname_len, const char *value, unsigned int value_len);
  8. int
  9. libssh2_channel_setenv(LIBSSH2_CHANNEL *channel, char *varname, const char *value);
  10. .SH DESCRIPTION
  11. \fIchannel\fP - Previously opened channel instance such as returned by
  12. .BR libssh2_channel_open_ex(3)
  13. \fIvarname\fP - Name of environment variable to set on the remote
  14. channel instance.
  15. \fIvarname_len\fP - Length of passed varname parameter.
  16. \fIvalue\fP - Value to set varname to.
  17. \fIvalue_len\fP - Length of value parameter.
  18. Set an environment variable in the remote channel's process space. Note that
  19. this does not make sense for all channel types and may be ignored by the
  20. server despite returning success.
  21. .SH RETURN VALUE
  22. Return 0 on success or negative on failure. It returns
  23. LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
  24. LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
  25. .SH ERRORS
  26. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  27. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  28. \fILIBSSH2_ERROR_CHANNEL_REQUEST_DENIED\fP -
  29. .SH SEE ALSO
  30. .BR libssh2_channel_open_ex(3)