Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
/*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
/*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
/*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
/*%% (c) Copyright 1993, 1994 Novell, Inc. */
/*%% $XConsortium: rcopier.h /main/3 1995/10/20 16:36:39 rswiston $ */
/*
* rcopier.h - Interface to rcopier, an LS/TT-aware rcp(1).
*
* Copyright (c) 1990 by Sun Microsystems, Inc.
*
*/
#ifndef _RCOPIER_H
#define _RCOPIER_H
#include <api/c/tt_c.h>
#include <util/tt_string.h>
class rpath : public _Tt_object {
public:
rpath();
rpath( _Tt_string r_path );
virtual ~rpath();
_Tt_string host() { return _host; }
_Tt_string path() { return _path; }
private:
_Tt_string _host;
_Tt_string _path;
};
declare_list_of(rpath)
class rcopier : public _Tt_object {
public:
rcopier( char *arg0 );
virtual ~rcopier();
int do_rcp();
Tt_status do_ttrcp();
Tt_status open_tt();
Tt_status close_tt();
void parse_args( int argc, char **argv );
void usage( FILE *fs = stderr ) const;
bool_t should_rcp() { return _should_rcp; }
bool_t tt_opened() { return _tt_opened; }
private:
void _parse_arg( char *arg );
_Tt_string _process_name;
_Tt_string _prog_name;
_Tt_string _process_id;
_Tt_string_list_ptr _args;
bool_t _should_rcp;
bool_t _tt_opened;
_Tt_string _username;
bool_t _preserve;
bool_t _recurse;
rpath_list_ptr _from_paths;
rpath_ptr _to_path;
bool_t _to_path_is_dir;
};
#endif /* _RCOPIER_H */