File: ssh_cmd.h

package info (click to toggle)
yafc 1.1.1.dfsg.1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,248 kB
  • ctags: 1,679
  • sloc: ansic: 19,338; sh: 10,365; makefile: 155; perl: 38; ruby: 33
file content (42 lines) | stat: -rw-r--r-- 1,472 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* $Id: ssh_cmd.h,v 1.2 2001/05/12 18:44:04 mhe Exp $
 *
 * ssh_cmd.h --
 *
 * Yet Another FTP Client
 * Copyright (C) 1998-2001, Martin Hedenfalk <mhe@stacken.kth.se>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. See COPYING for more details.
 */

#ifndef _ssh_cmd_h_
#define _ssh_cmd_h_

/* ssh_cmd.c */
int ssh_open_url(url_t *urlp);
char *ssh_getcurdir(void);
int ssh_chdir(const char *path);
int ssh_cdup(void);
int ssh_mkdir_verb(const char *path, verbose_t verb);
int ssh_rmdir(const char *path);
int ssh_unlink(const char *path);
int ssh_chmod(const char *path, const char *mode);
int ssh_idle(const char *idletime);
int ssh_noop(void);
int ssh_help(const char *arg);
unsigned long ssh_filesize(const char *path);
rdirectory *ssh_read_directory(const char *path);
int ssh_rename(const char *oldname, const char *newname);
time_t ssh_filetime(const char *filename);
int ssh_list(const char *cmd, const char *param, FILE *fp);
int ssh_receive(const char *path, FILE *fp,
				transfer_mode_t mode, ftp_transfer_func hookf);
void ssh_pwd(void);
int ssh_do_receive(const char *infile, FILE *fp, getmode_t mode,
				   ftp_transfer_func hookf);
int ssh_send(const char *path, FILE *fp, putmode_t how,
			 transfer_mode_t mode, ftp_transfer_func hookf);

#endif