SCCS-vsn: sys/kern/vfs_syscalls.c 4.10
SCCS-vsn: sys/ufs/ffs/ffs_vnops.c 4.10
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 4.10
SCCS-vsn: sys/ufs/lfs/lfs_vnops.c 4.10
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 4.10
-/* vfs_syscalls.c 4.9 81/03/09 */
+/* vfs_syscalls.c 4.10 81/04/28 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
fp = getf(uap->fdes);
if(fp == NULL)
return;
fp = getf(uap->fdes);
if(fp == NULL)
return;
- stat1(fp->f_inode, uap->sb, fp->f_flag&FPIPE? fp->f_un.f_offset: 0);
+ if (fp->f_flag&FPORT) {
+ ptstat(fp);
+ return;
+ }
+ stat1(fp->f_inode, uap->sb);
ip = namei(uchar, 0);
if(ip == NULL)
return;
ip = namei(uchar, 0);
if(ip == NULL)
return;
- stat1(ip, uap->sb, (off_t)0);
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
register struct inode *ip;
struct stat *ub;
register struct inode *ip;
struct stat *ub;
{
register struct dinode *dp;
register struct buf *bp;
{
register struct dinode *dp;
register struct buf *bp;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
- ds.st_size = ip->i_size - pipeadj;
+ ds.st_size = ip->i_size;
/*
* next the dates in the disk
*/
/*
* next the dates in the disk
*/
-/* ffs_vnops.c 4.9 81/03/09 */
+/* ffs_vnops.c 4.10 81/04/28 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
fp = getf(uap->fdes);
if(fp == NULL)
return;
fp = getf(uap->fdes);
if(fp == NULL)
return;
- stat1(fp->f_inode, uap->sb, fp->f_flag&FPIPE? fp->f_un.f_offset: 0);
+ if (fp->f_flag&FPORT) {
+ ptstat(fp);
+ return;
+ }
+ stat1(fp->f_inode, uap->sb);
ip = namei(uchar, 0);
if(ip == NULL)
return;
ip = namei(uchar, 0);
if(ip == NULL)
return;
- stat1(ip, uap->sb, (off_t)0);
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
register struct inode *ip;
struct stat *ub;
register struct inode *ip;
struct stat *ub;
{
register struct dinode *dp;
register struct buf *bp;
{
register struct dinode *dp;
register struct buf *bp;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
- ds.st_size = ip->i_size - pipeadj;
+ ds.st_size = ip->i_size;
/*
* next the dates in the disk
*/
/*
* next the dates in the disk
*/
-/* ufs_vnops.c 4.9 81/03/09 */
+/* ufs_vnops.c 4.10 81/04/28 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
fp = getf(uap->fdes);
if(fp == NULL)
return;
fp = getf(uap->fdes);
if(fp == NULL)
return;
- stat1(fp->f_inode, uap->sb, fp->f_flag&FPIPE? fp->f_un.f_offset: 0);
+ if (fp->f_flag&FPORT) {
+ ptstat(fp);
+ return;
+ }
+ stat1(fp->f_inode, uap->sb);
ip = namei(uchar, 0);
if(ip == NULL)
return;
ip = namei(uchar, 0);
if(ip == NULL)
return;
- stat1(ip, uap->sb, (off_t)0);
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
register struct inode *ip;
struct stat *ub;
register struct inode *ip;
struct stat *ub;
{
register struct dinode *dp;
register struct buf *bp;
{
register struct dinode *dp;
register struct buf *bp;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
- ds.st_size = ip->i_size - pipeadj;
+ ds.st_size = ip->i_size;
/*
* next the dates in the disk
*/
/*
* next the dates in the disk
*/
-/* lfs_vnops.c 4.9 81/03/09 */
+/* lfs_vnops.c 4.10 81/04/28 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
fp = getf(uap->fdes);
if(fp == NULL)
return;
fp = getf(uap->fdes);
if(fp == NULL)
return;
- stat1(fp->f_inode, uap->sb, fp->f_flag&FPIPE? fp->f_un.f_offset: 0);
+ if (fp->f_flag&FPORT) {
+ ptstat(fp);
+ return;
+ }
+ stat1(fp->f_inode, uap->sb);
ip = namei(uchar, 0);
if(ip == NULL)
return;
ip = namei(uchar, 0);
if(ip == NULL)
return;
- stat1(ip, uap->sb, (off_t)0);
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
register struct inode *ip;
struct stat *ub;
register struct inode *ip;
struct stat *ub;
{
register struct dinode *dp;
register struct buf *bp;
{
register struct dinode *dp;
register struct buf *bp;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
- ds.st_size = ip->i_size - pipeadj;
+ ds.st_size = ip->i_size;
/*
* next the dates in the disk
*/
/*
* next the dates in the disk
*/
-/* ufs_vnops.c 4.9 81/03/09 */
+/* ufs_vnops.c 4.10 81/04/28 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
fp = getf(uap->fdes);
if(fp == NULL)
return;
fp = getf(uap->fdes);
if(fp == NULL)
return;
- stat1(fp->f_inode, uap->sb, fp->f_flag&FPIPE? fp->f_un.f_offset: 0);
+ if (fp->f_flag&FPORT) {
+ ptstat(fp);
+ return;
+ }
+ stat1(fp->f_inode, uap->sb);
ip = namei(uchar, 0);
if(ip == NULL)
return;
ip = namei(uchar, 0);
if(ip == NULL)
return;
- stat1(ip, uap->sb, (off_t)0);
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
* The basic routine for fstat and stat:
* get the inode and pass appropriate parts back.
*/
register struct inode *ip;
struct stat *ub;
register struct inode *ip;
struct stat *ub;
{
register struct dinode *dp;
register struct buf *bp;
{
register struct dinode *dp;
register struct buf *bp;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
ds.st_uid = ip->i_uid;
ds.st_gid = ip->i_gid;
ds.st_rdev = (dev_t)ip->i_un.i_rdev;
- ds.st_size = ip->i_size - pipeadj;
+ ds.st_size = ip->i_size;
/*
* next the dates in the disk
*/
/*
* next the dates in the disk
*/