xwrite_str(STDIN_FILENO, p_text);
}
+/* Simple commands */
+
static void
handle_pwd(void)
{
}
}
+static void
+handle_stat(void)
+{
+ cmdio_write_hyphen(FTP_STATOK, "FTP server status:");
+ cmdio_write_raw(" TYPE: BINARY\r\n");
+ cmdio_write_ok(FTP_STATOK);
+}
+
static void
handle_help(void)
{
cmdio_write(FTP_HELP, "Help OK");
}
+/* Download commands */
+
static void
init_data_sock_params(int sock_fd)
{
close(opened_file);
}
+/* List commands */
+
static char *
statbuf_getperms(const struct stat *statbuf)
{
handle_dir_common(1, 1);
}
-static void
-handle_stat(void)
-{
- cmdio_write_hyphen(FTP_STATOK, "FTP server status:");
- cmdio_write_raw(" TYPE: BINARY\r\n");
- cmdio_write_ok(FTP_STATOK);
-}
+/* Upload commands */
#if ENABLE_FEATURE_FTP_WRITE
static void