ifuncs.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1992 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include "wish.h"
#include "but.h"
#include "typetab.h"
#include "ifuncdefs.h"
#include "partabdefs.h"
#include "obj.h"
#include "optabdefs.h"
#include "retcds.h"
#include "windefs.h"
#include "var_arrays.h"
#include "terror.h"
#include "token.h"
#include "moremacros.h"
#include "message.h"
#include "sizes.h"
struct ott_entry *name_to_ott();
char Undel[] = "UNDELDIR";
static char *Arg;
extern char nil[];
int (*Function[MAX_IFUNCS])();
void docv();
char *getepenv();
{
mess_temp("That operation is not available in FACE");
return(FAIL);
}
int
IF_sh()
{ }
int
char *argv[];
{
char *bsd_path_to_title();
return(FAIL);
return(FAIL);
return(FAIL);
sprintf(msg, "%s renamed to %s", bsd_path_to_title(oldname,(MESS_COLS - 12)/2), bsd_path_to_title(argv[1],(MESS_COLS - 12)/2));
return(SUCCESS);
} else {
return(FAIL);
}
}
int
char *argv[];
{
}
int
char *argv[];
{
}
static int
bool mv;
char *argv[];
{
extern char *Wastebasket;
char *filename();
char *bsd_path_to_title();
int plen;
return(FAIL);
return(FAIL);
}
return(FAIL);
}
return(FAIL);
}
return(FAIL);
return(FAIL);
}
return(FAIL);
else
return(FAIL);
} else {
}
return(SUCCESS);
} else {
return(FAIL);
}
}
int
char *argv[];
{
return(FAIL);
return(SUCCESS);
}
int
char *argv[];
{
return(FAIL);
return(SUCCESS);
}
int
char *argv[];
{
struct ott_entry *path_to_ott();
extern char *Filecabinet, *Wastebasket;
return(FAIL);
mess_temp("You are not allowed to delete your Filecabinet");
return(FAIL);
}
return(FAIL);
mess_temp("WARNING: You are about to permanently remove all objects in your WASTEBASKET");
return(SUCCESS);
}
return(FAIL);
}
/*
* The following if statement reads,
* if the object we are deleting is a directory and
* we can get an ott for it and
* the directory is not empty.
*/
mess_temp("WARNING: The folder you are about to delete is not empty");
return(SUCCESS);
}
return(SUCCESS);
}
int
{
struct ott_entry *ott_next_part();
int len;
}
int
char *argv[];
{
char *path, *odi_getkey();
extern char *Wastebasket;
mess_temp("Undelete can only be used on objects in your WASTEBASKET");
return(FAIL);
}
return(FAIL);
mess_temp("Unable to find previous folder, use MOVE");
return(FAIL);
}
}
int
char *argv[];
{
}
#define MAX_DESCRIP 24
int
char *argv[];
{
register int i, len;
struct ott_entry *path_to_ott();
char *filename(), *bsd_path_to_title();
return(FAIL);
mess_temp("The character '|' is not allowed in description, try again");
return(FAIL);
}
mess_temp("Null strings are not allowed in description, try again");
return(FAIL);
}
(void) ott_chg_display(entry);
return(SUCCESS);
}
static char *
{
switch (mode) {
case 01:
return("search");
case 02:
return("modify");
case 04:
return("read");
default:
return("access");
}
}
int
char *path;
{
char *bsd_path_to_title();
NULL));
return(FAIL);
}
return(FAIL);
}
return(SUCCESS);
}
void
fcn_init()
{
int IF_sp();
int IF_omopen();
int IF_helpopen();
int IF_ofopen();
int IF_exec_open();
/* general purpose operations */
/* operations specific to ascii files */
/* operations specific to menu objects */
/* operations specific to help objects */
/* operations specific to form objects */
/* operations specific to file folders */
/* operations specific to executables */
/* illegal function */
return;
}
static token
confirm(s, t)
char *s;
token t;
{
extern char *Wastebasket;
if (t == TOK_CANCEL)
return TOK_NOP;
" permanently removed from WASTEBASKET", NULL));
return TOK_NOP;
}
return TOK_NOP;
else
}
else if (*s != NULL) {
mess_temp("Please re-enter value");
}
return TOK_NOP;
}
static token
confirmW(s, t)
char *s;
token t;
{
extern char *Wastebasket;
if (t == TOK_CANCEL)
return TOK_NOP;
mess_temp("All objects in WASTEBASKET have been permanently removed");
}
else if (*s != NULL) {
mess_temp("Please re-enter value");
}
return TOK_NOP;
}