+2000-08-29 Alexandra Ellwood <lxs@mit.edu>
+
+ * cmds.c, cmdtab.c, ftp_var.h: renamed getmode() and setmode()
+ to get_mode() and set_mode() to avoid a collision with Mac OS X
+ file permission bits manipulation functions of the same name
+ which get included through unistd.h.
+
Tue Aug 22 17:10:39 2000 Ezra Peisach <epeisach@mit.edu>
* secure.h (myaddr): For secure data stream, pass the port number
}
static char *
-getmode()
+get_mode()
{
return("stream");
}
* Set file transfer mode.
*/
/*ARGSUSED*/
-void setmode(argc, argv)
+void set_mode(argc, argv)
int argc;
char *argv[];
{
- printf("We only support %s mode, sorry.\n", getmode());
+ printf("We only support %s mode, sorry.\n", get_mode());
code = -1;
}
printf("Data Channel Protection Level: %s\n", getdlevel());
printf("Passive mode %s\n", onoff(passivemode));
printf("Mode: %s; Type: %s; Form: %s; Structure: %s\n",
- getmode(), gettype(), getform(), getstruct());
+ get_mode(), gettype(), getform(), getstruct());
printf("Store unique: %s; Receive unique: %s\n", onoff(sunique),
onoff(runique));
printf("Case: %s; CR stripping: %s\n",onoff(mcase),onoff(crflag));
{ "mget", mgethelp, 1, 1, 1, mget },
{ "mkdir", mkdirhelp, 0, 1, 1, makedir },
{ "mls", mlshelp, 1, 1, 1, mls },
- { "mode", modehelp, 0, 1, 1, setmode },
+ { "mode", modehelp, 0, 1, 1, set_mode },
{ "modtime", modtimehelp, 0, 1, 1, modtime },
{ "mput", mputhelp, 1, 1, 1, mput },
{ "newer", newerhelp, 1, 1, 1, newer },
void setbinary PROTOTYPE((void));
void setascii PROTOTYPE((void));
void settenex PROTOTYPE((void));
-void setmode PROTOTYPE((int, char **));
+void set_mode PROTOTYPE((int, char **));
void setform PROTOTYPE((int, char **));
void setstruct PROTOTYPE((int, char **));
void siteidle PROTOTYPE((int, char **));