_stat.c revision d4188195113bc7f546b026033c66ea3e12de0e02
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "compat.h"
#include "s5sysmacros.h"
struct ts {
long tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
struct n_stat {
unsigned long st_dev;
unsigned long st_ino;
unsigned long st_mode;
unsigned long st_nlink;
long st_uid;
long st_gid;
unsigned long st_rdev;
long st_pad2[2];
long st_size;
long st_pad3; /* future off_t expansion */
long st_blksize;
long st_blocks;
char st_fstype[ST_FSTYPSZ];
};
int
{
}
int
{
int ret;
extern int errno;
if (buf == 0) {
return (-1);
}
return (ret);
sizeof (struct utmpx), sizeof(struct compat_utmp));
}
return (ret);
}
int
{
/*
* stat the real mnttab, or the "parsed" mtab
* created by open?
*
* for now, stat the real mnttab.
*/
/*
* ret = fstat(fd, buf);
* close(fd);
* return(ret);
*/
return(ret);
}
if (fd < 0)
ret = -1;
else {
}
return(ret);
}
sizeof(struct utmpx), sizeof(struct compat_utmp));
}
return(ret);
}
sizeof(struct utmpx), sizeof(struct compat_utmp));
}
return(ret);
}
if (fd < 0)
ret = -1;
else {
}
return(ret);
}
return(ret);
}
/*
* Common code to copy xstat buf to BSD style buf
*/
static void
{
else
else
}