/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
/* EMACS_MODES: !fill, lnumb, !overwrite, !nodelete, !picture */
#include "stdio.h"
#include "fcntl.h"
#include "string.h"
#include "errno.h"
#include "pwd.h"
#include "stdlib.h"
#include <stdarg.h>
#include <unistd.h>
#include "pwd.h"
#include "lp.h"
int
{
return (-1);
return (-1); /* a valid path */
return (-1); /* not in uri form */
return (0);
}
/*
* To avoid a race condition, chown() should always be called before
* chmod().
*/
int
{
int rc;
return (rc);
}
int
{
if (fd == 1)
}
char *
{
char tmp;
int count = 0;
if (count != 0)
return (buf);
return (NULL);
}
int
{
}
int
{
if (fd == 1)
}
int
{
struct flock l;
int fd,
truncate = 0;
return (-1);
}
switch (type[0]) {
case 'w':
create = 1;
truncate = 1;
break;
case 'a':
create = 1;
break;
case 'r':
create = 0;
break;
default:
return (-1);
}
int save_errno;
save_errno = errno;
if (old_umask)
errno = save_errno;
}
if (fd == -1)
switch (errno) {
case ENOTDIR:
/* FALLTHROUGH */
default:
return (-1);
}
l.l_whence = 1;
l.l_start = 0;
l.l_len = 0;
/*
* Early UNIX op. sys. have wrong errno.
*/
return (-1);
}
if (truncate) {
return (-1);
}
}
return (fd);
}
FILE *
{
int fd;
errno = 0; /* fdopen() may fail and not set errno */
}
}
return (fp);
}
int
{
}
/*
* chown_lppath()
*/
int
{
static int gotids = 0;
if (!gotids) {
endpwent();
if (!ppw)
return (-1);
gotids = 1;
}
}
/*
* rmfile() - UNLINK FILE BUT NO COMPLAINT IF NOT THERE
*/
int
{
}
/*
* loadline() - LOAD A ONE-LINE CHARACTER STRING FROM FILE
*/
char *
{
int fd;
register char *ret;
register int len;
return (0);
} else {
errno = 0;
ret = 0;
}
return (ret);
}
/*
* loadstring() - LOAD A CHARACTER STRING FROM FILE
*/
char *
{
int fd;
register char *ret;
register int len;
return (0);
} else
errno = 0;
return (ret);
}
/*
* dumpstring() - DUMP CHARACTER STRING TO FILE
*/
int
{
int fd;
if (!str)
return (-1);
return (0);
}