/*static char *SCCSID = "@(#)fs_newsz.c	6.2 91/01/14";*/
#define SCCSID "@(#)fs_newsz.c	6.2 91/01/14"
/*
 *	IBM/Microsoft Confidential
 *
 *	Copyright (c) IBM Corporation 1987, 1989
 *	Copyright (c) Microsoft Corporation 1987, 1989
 *
 *	All Rights Reserved
 *
 */

/***    FS_NEWSIZE - Change file's logical size
 *      
 *      Changes a file's logical (EOD) size.
 *
 *
 *  REVISION HISTORY (in reverse chronological order)
 *  -------------------------------------------------------------------------
 *  2/22/90     Brian Andrew    Return code is CDROM_WRITE_PROTECT.
 *  9/13/89     Paul Bingman    First CDROM version
 *  8/4/89      Brian Andrew    Initial blank template
 *
 *
 * TO DO
 * --------------------------------------------------------------------------
 *
 */


#define INCL_DOSERRORS
#define INCL_NOPMAPI
#include <os2.h>
#include <fsd.h>

#include "cdfs.h"
#include "sem.h"
#include "path.h"
#include "vol.h"
#include "file.h"
#include "buffer.h"
#include "mem.h"
#include "heap.h"
#include "pr_memin.h"

#ifdef DEBUG
#include "pr_DEBUG.h"
#endif


int far pascal
FS_NEWSIZE (psffsi, psffsd, len, IOflag)
PSFFSI              psffsi;
PSFFSD              psffsd;
ULONG               len;
USHORT              IOflag;
{

#ifdef DEBUG
	dprintf ("FS_NEWSIZE(len=%l, IOflag=%d)\n", len, IOflag);
#endif

	/*
	 * Cannot change the size of a file on read-only media.
	 * This function should never be called due to access violations
	 * but for safety we return the following.
	 */

	return (CDROM_WRITE_PROTECT);

	/* defeat compiler warnings */

	psffsi;
	psffsd;
	len;
	IOflag;

}   /* end FS_NEWSIZE */

/* end of fs_newsz.c */
