/*
* 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 (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* from SVR4 bnu:cpmv.c 2.13 */
#include "uucp.h"
/*
* copy f1 to f2 locally
* f1 -> source file name
* f2 -> destination file name
* return:
* 0 -> ok
* FAIL -> failed
*/
static int
{
return (FAIL);
}
else
temp_p++;
/* open of temp may fail if called from uidxcp() */
/* in this case, try f2 since it is pre-created */
PUB_FILEMODE)) == -1) {
return (FAIL);
}
}
/* copy, looking for read or write failures */
;
return (FAIL);
}
return (FAIL);
}
}
return (0);
}
/*
* move f1 to f2 locally
* returns:
* 0 -> ok
* FAIL -> failed
*/
int
{
else
do_unlink = 1;
if (do_unlink)
/* thing to do */
/* copy file */
}
if (ret == 0)
return (ret);
}
/*
* toCorrupt - move file to CORRUPTDIR
* return - none
*/
void
char *file;
{
}
/*
* append f1 to f2
* f1 -> source FILE pointer
* f2 -> destination FILE pointer
* return:
* SUCCESS -> ok
* FAIL -> failed
*
* to avoid confusing mail, turn lines with just "." into "..".
*/
int
{
}
}
/*
* copy f1 to f2 locally under uid of uid argument
* f1 -> source file name
* f2 -> destination file name
* Uid and Euid are global
* return:
* 0 -> ok
* FAIL -> failed
* NOTES:
* for V7 systems, flip-flop between real and effective uid is
* not allowed, so fork must be done. This code will not
* work correctly when realuid is root on System 5 because of
* a bug in setuid.
*/
int
{
int status;
}
/* create full owned by uucp */
/* do file copy as read uid */
#ifndef V7
return (status);
#else /* V7 */
if (vfork() == 0) {
}
return (status);
#endif
}
/*
* put file in public place
* if successful, filename is modified
* returns:
* 0 -> success
* FAIL -> failure
*/
int
{
int status;
/* cannot make directories */
return (FAIL);
}
if (status == 0) {
}
return (status);
}