2000-05-06 21:34:20 +02:00
|
|
|
/***************************************************************
|
|
|
|
|
|
|
|
sys.c
|
|
|
|
DOS-C
|
|
|
|
|
|
|
|
sys utility for DOS-C
|
|
|
|
|
|
|
|
Copyright (c) 1991
|
|
|
|
Pasquale J. Villani
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
This file is part of DOS-C.
|
|
|
|
|
|
|
|
DOS-C is free software; you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 2, or (at your option) any later version.
|
|
|
|
|
|
|
|
DOS-C is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
|
|
DOS-C; see the file COPYING. If not, write to the Free Software Foundation,
|
|
|
|
675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
***************************************************************/
|
2001-04-29 19:34:41 +02:00
|
|
|
/* Revision 2.0 tomehlert 2001/4/26
|
|
|
|
|
|
|
|
no direct access to the disk any more, this is FORMAT's job
|
|
|
|
no floppy.asm anymore, no segmentation problems.
|
|
|
|
no access to partition tables
|
|
|
|
|
|
|
|
instead copy boot sector using int25/int26 = absdiskread()/write
|
|
|
|
|
|
|
|
if xxDOS is able to handle the disk, SYS should work
|
|
|
|
|
|
|
|
additionally some space savers:
|
|
|
|
|
|
|
|
replaced fopen() by open()
|
|
|
|
|
|
|
|
included (slighly modified) PRF.c from kernel
|
|
|
|
|
|
|
|
size is no ~7500 byte vs. ~13690 before
|
|
|
|
|
|
|
|
*/
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* $Log$
|
2001-04-29 19:34:41 +02:00
|
|
|
* Revision 1.6 2001/04/29 17:34:41 bartoldeman
|
|
|
|
* /* Revision 2.1 tomehlert 2001/4/26
|
2000-08-06 07:50:17 +02:00
|
|
|
*
|
2001-04-29 19:34:41 +02:00
|
|
|
* changed the file system detection code.
|
|
|
|
* */
|
|
|
|
*
|
|
|
|
* /* Revision 2.0 tomehlert 2001/4/26
|
|
|
|
*
|
|
|
|
* no direct access to the disk any more, this is FORMAT's job
|
|
|
|
* no floppy.asm anymore, no segmentation problems.
|
|
|
|
* no access to partition tables
|
|
|
|
*
|
|
|
|
* instead copy boot sector using int25/int26 = absdiskread()/write
|
|
|
|
*
|
|
|
|
* if xxDOS is able to handle the disk, SYS should work
|
|
|
|
*
|
|
|
|
* additionally some space savers:
|
|
|
|
*
|
|
|
|
* replaced fopen() by open()
|
|
|
|
*
|
|
|
|
* included (slighly modified) PRF.c from kernel
|
|
|
|
*
|
|
|
|
* size is no ~7500 byte vs. ~13690 before
|
|
|
|
* */
|
|
|
|
*
|
|
|
|
/* Revision 1.5 2001/03/25 17:11:54 bartoldeman
|
|
|
|
/* Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
|
|
|
/*
|
2001-03-25 19:11:54 +02:00
|
|
|
/* Revision 1.4 2000/08/06 05:50:17 jimtabor
|
|
|
|
/* Add new files and update cvs with patches and changes
|
|
|
|
/*
|
2000-05-25 22:56:23 +02:00
|
|
|
* Revision 1.3 2000/05/25 20:56:23 jimtabor
|
|
|
|
* Fixed project history
|
|
|
|
*
|
2000-05-15 07:28:09 +02:00
|
|
|
* Revision 1.2 2000/05/15 05:28:09 jimtabor
|
|
|
|
* Cleanup CRs
|
2000-05-06 21:34:20 +02:00
|
|
|
*
|
2000-05-25 22:56:23 +02:00
|
|
|
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
|
|
|
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
|
|
|
* MS-DOS. Distributed under the GNU GPL.
|
|
|
|
*
|
|
|
|
* Revision 1.10 2000/03/31 06:59:10 jprice
|
|
|
|
* Added discription of program.
|
|
|
|
*
|
|
|
|
* Revision 1.9 1999/09/20 18:34:40 jprice
|
|
|
|
* *** empty log message ***
|
|
|
|
*
|
|
|
|
* Revision 1.8 1999/09/20 18:27:19 jprice
|
|
|
|
* Changed open/creat to fopen to make TC2 happy.
|
|
|
|
*
|
|
|
|
* Revision 1.7 1999/09/15 05:39:02 jprice
|
|
|
|
* Changed boot sector writing code so easier to read.
|
|
|
|
*
|
|
|
|
* Revision 1.6 1999/09/14 17:30:44 jprice
|
|
|
|
* Added debug log creation to sys.com.
|
|
|
|
*
|
|
|
|
* Revision 1.5 1999/08/25 03:19:51 jprice
|
|
|
|
* ror4 patches to allow TC 2.01 compile.
|
|
|
|
*
|
|
|
|
* Revision 1.4 1999/04/17 19:14:44 jprice
|
|
|
|
* Fixed multi-sector code
|
|
|
|
*
|
|
|
|
* Revision 1.3 1999/04/01 07:24:05 jprice
|
|
|
|
* SYS modified for new boot loader
|
|
|
|
*
|
|
|
|
* Revision 1.2 1999/03/29 16:24:48 jprice
|
|
|
|
* Fixed error message
|
|
|
|
*
|
|
|
|
* Revision 1.1.1.1 1999/03/29 15:43:15 jprice
|
|
|
|
* New version without IPL.SYS
|
|
|
|
* Revision 1.3 1999/01/21 04:35:21 jprice Fixed comments.
|
|
|
|
* Added indent program
|
|
|
|
*
|
|
|
|
* Revision 1.2 1999/01/21 04:13:52 jprice Added messages to sys. Also made
|
|
|
|
* it create a .COM file.
|
|
|
|
*
|
|
|
|
*/
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
/*
|
|
|
|
TE thinks, that the boot info storage should be done by FORMAT, noone else
|
|
|
|
|
|
|
|
unfortunately, that doesn't work ???
|
|
|
|
*/
|
2000-05-06 21:34:20 +02:00
|
|
|
#define STORE_BOOT_INFO
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
#define DEBUG
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <fcntl.h>
|
2001-04-29 19:34:41 +02:00
|
|
|
#include <sys/stat.h>
|
2000-05-06 21:34:20 +02:00
|
|
|
#include <io.h>
|
|
|
|
#include <dos.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <mem.h>
|
|
|
|
#include "portab.h"
|
|
|
|
|
|
|
|
#include "b_fat12.h"
|
|
|
|
#include "b_fat16.h"
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
BYTE pgm[] = "sys";
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
void put_boot(COUNT);
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL check_space(COUNT, BYTE *);
|
|
|
|
BOOL copy(COUNT, BYTE *);
|
|
|
|
COUNT DiskRead(WORD, WORD, WORD, WORD, WORD, BYTE FAR *);
|
|
|
|
COUNT DiskWrite(WORD, WORD, WORD, WORD, WORD, BYTE FAR *);
|
|
|
|
|
|
|
|
|
|
|
|
#define SEC_SIZE 512
|
|
|
|
#define COPY_SIZE 32768
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct bootsectortype
|
|
|
|
{
|
|
|
|
UBYTE bsJump[3];
|
|
|
|
char OemName[8];
|
|
|
|
UWORD bsBytesPerSec;
|
|
|
|
UBYTE bsSecPerClust;
|
|
|
|
UWORD bsResSectors;
|
|
|
|
UBYTE bsFATs;
|
|
|
|
UWORD bsRootDirEnts;
|
|
|
|
UWORD bsSectors;
|
|
|
|
UBYTE bsMedia;
|
|
|
|
UWORD bsFATsecs;
|
|
|
|
UWORD bsSecPerTrack;
|
|
|
|
UWORD bsHeads;
|
|
|
|
ULONG bsHiddenSecs;
|
|
|
|
ULONG bsHugeSectors;
|
|
|
|
UBYTE bsDriveNumber;
|
|
|
|
UBYTE bsReserved1;
|
|
|
|
UBYTE bsBootSignature;
|
|
|
|
ULONG bsVolumeID;
|
|
|
|
char bsVolumeLabel[11];
|
|
|
|
char bsFileSysType[8];
|
|
|
|
char unused[2];
|
|
|
|
UWORD sysRootDirSecs; /* of sectors root dir uses */
|
|
|
|
ULONG sysFatStart; /* first FAT sector */
|
|
|
|
ULONG sysRootDirStart; /* first root directory sector */
|
|
|
|
ULONG sysDataStart; /* first data sector */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
COUNT drive;
|
2000-05-06 21:34:20 +02:00
|
|
|
UBYTE newboot[SEC_SIZE], oldboot[SEC_SIZE];
|
|
|
|
|
|
|
|
|
|
|
|
#define SBOFFSET 11
|
2001-04-29 19:34:41 +02:00
|
|
|
#define SBSIZE (sizeof(struct bootsectortype) - SBOFFSET)
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOID main(COUNT argc, char **argv)
|
|
|
|
{
|
2000-05-15 07:28:09 +02:00
|
|
|
printf("FreeDOS System Installer v1.0\n\n");
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
if (argc != 2)
|
2000-05-06 21:34:20 +02:00
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("Usage: %s drive\n drive = A,B,etc.\n", pgm);
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
drive = toupper(*argv[1]) - 'A';
|
|
|
|
if (drive < 0 || drive >= 26)
|
2000-05-06 21:34:20 +02:00
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( "%s: drive %c must be A:..Z:\n", pgm,*argv[1]);
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!check_space(drive, oldboot))
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("%s: Not enough space to transfer system files\n", pgm);
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
printf("\nCopying KERNEL.SYS...");
|
|
|
|
if (!copy(drive, "kernel.sys"))
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("\n%s: cannot copy \"KERNEL.SYS\"\n", pgm);
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("\nCopying COMMAND.COM...");
|
|
|
|
if (!copy(drive, "command.com"))
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("\n%s: cannot copy \"COMMAND.COM\"\n", pgm);
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
2001-04-29 19:34:41 +02:00
|
|
|
|
|
|
|
printf("\nWriting boot sector...\n");
|
|
|
|
put_boot(drive);
|
|
|
|
|
|
|
|
printf("\nSystem transferred.\n");
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
VOID dump_sector(unsigned char far * sec)
|
|
|
|
{
|
|
|
|
COUNT x, y;
|
|
|
|
char c;
|
|
|
|
|
|
|
|
for (x = 0; x < 32; x++)
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("%03X ", x * 16);
|
2000-05-06 21:34:20 +02:00
|
|
|
for (y = 0; y < 16; y++)
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("%02X ", sec[x * 16 + y]);
|
2000-05-06 21:34:20 +02:00
|
|
|
}
|
|
|
|
for (y = 0; y < 16; y++)
|
|
|
|
{
|
|
|
|
c = oldboot[x * 16 + y];
|
|
|
|
if (isprint(c))
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( "%c", c);
|
2000-05-06 21:34:20 +02:00
|
|
|
else
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( ".");
|
2000-05-06 21:34:20 +02:00
|
|
|
}
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( "\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
printf( "\n");
|
2000-05-06 21:34:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
VOID put_boot(COUNT drive)
|
|
|
|
{
|
|
|
|
COUNT i, z;
|
|
|
|
WORD head, track, sector, ret;
|
|
|
|
WORD count;
|
|
|
|
ULONG temp;
|
|
|
|
struct bootsectortype *bs;
|
2001-04-29 19:34:41 +02:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("Reading old bootsector from drive %c:\n",drive+'A');
|
|
|
|
#endif
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
if (absread(drive, 1, 0, oldboot) != 0)
|
|
|
|
{
|
|
|
|
printf("can't read old boot sector for drive %c:\n", drive +'A');
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
2001-04-29 19:34:41 +02:00
|
|
|
}
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
#ifdef DDEBUG
|
|
|
|
printf("Old Boot Sector:\n");
|
2000-05-06 21:34:20 +02:00
|
|
|
dump_sector(oldboot);
|
|
|
|
#endif
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
bs = (struct bootsectortype *) & oldboot;
|
|
|
|
if ((bs->bsFileSysType[4] == '6') && (bs->bsBootSignature == 0x29))
|
|
|
|
{
|
|
|
|
memcpy(newboot, b_fat16, SEC_SIZE); /* copy FAT16 boot sector */
|
|
|
|
printf("FAT type: FAT16\n");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
memcpy(newboot, b_fat12, SEC_SIZE); /* copy FAT12 boot sector */
|
|
|
|
printf("FAT type: FAT12\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Copy disk parameter from old sector to new sector */
|
|
|
|
memcpy(&newboot[SBOFFSET], &oldboot[SBOFFSET], SBSIZE);
|
|
|
|
|
|
|
|
bs = (struct bootsectortype *) & newboot;
|
2001-04-29 19:34:41 +02:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
#ifdef STORE_BOOT_INFO
|
2001-04-29 19:34:41 +02:00
|
|
|
/* TE thinks : never, see above */
|
|
|
|
/* temporary HACK for the load segment (0x0060): it is in unused */
|
|
|
|
/* only needed for older kernels */
|
|
|
|
*((UWORD *)(bs->unused)) = *((UWORD *)(((struct bootsectortype *)&b_fat16)->unused));
|
|
|
|
/* end of HACK */
|
|
|
|
/* root directory sectors */
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
bs->sysRootDirSecs = bs->bsRootDirEnts / 16;
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
/* sector FAT starts on */
|
2000-05-06 21:34:20 +02:00
|
|
|
temp = bs->bsHiddenSecs + bs->bsResSectors;
|
|
|
|
bs->sysFatStart = temp;
|
2001-04-29 19:34:41 +02:00
|
|
|
|
|
|
|
/* sector root directory starts on */
|
2000-05-06 21:34:20 +02:00
|
|
|
temp = temp + bs->bsFATsecs * bs->bsFATs;
|
|
|
|
bs->sysRootDirStart = temp;
|
2001-04-29 19:34:41 +02:00
|
|
|
|
|
|
|
/* sector data starts on */
|
2000-05-06 21:34:20 +02:00
|
|
|
temp = temp + bs->sysRootDirSecs;
|
|
|
|
bs->sysDataStart = temp;
|
2001-04-29 19:34:41 +02:00
|
|
|
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
#ifdef DEBUG
|
2001-04-29 19:34:41 +02:00
|
|
|
printf("Root dir entries = %u\n", bs->bsRootDirEnts);
|
|
|
|
printf("Root dir sectors = %u\n", bs->sysRootDirSecs);
|
|
|
|
|
|
|
|
printf( "FAT starts at sector %lu = (%lu + %u)\n", bs->sysFatStart,
|
|
|
|
bs->bsHiddenSecs, bs->bsResSectors);
|
|
|
|
printf("Root directory starts at sector %lu = (PREVIOUS + %u * %u)\n",
|
|
|
|
bs->sysRootDirStart, bs->bsFATsecs, bs->bsFATs);
|
|
|
|
printf("DATA starts at sector %lu = (PREVIOUS + %u)\n", bs->sysDataStart,
|
2000-05-06 21:34:20 +02:00
|
|
|
bs->sysRootDirSecs);
|
|
|
|
#endif
|
2001-04-29 19:34:41 +02:00
|
|
|
#endif
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
#ifdef DDEBUG
|
|
|
|
printf("\nNew Boot Sector:\n");
|
2000-05-06 21:34:20 +02:00
|
|
|
dump_sector(newboot);
|
|
|
|
#endif
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
#ifdef DEBUG
|
|
|
|
printf("writing new bootsector to drive %c:\n",drive+'A');
|
|
|
|
#endif
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
if (abswrite(drive, 1, 0, newboot) != 0)
|
|
|
|
{
|
|
|
|
printf("Can't write new boot sector to drive %c:\n", drive +'A');
|
2000-05-06 21:34:20 +02:00
|
|
|
exit(1);
|
2001-04-29 19:34:41 +02:00
|
|
|
}
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
}
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL check_space(COUNT drive, BYTE * BlkBuffer)
|
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
/* this should check, if on destination is enough space
|
|
|
|
to hold command.com+ kernel.sys */
|
|
|
|
|
|
|
|
if (drive);
|
|
|
|
if (BlkBuffer);
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BOOL copy(COUNT drive, BYTE * file)
|
|
|
|
{
|
|
|
|
BYTE dest[64];
|
2001-04-29 19:34:41 +02:00
|
|
|
COUNT ifd, ofd;
|
|
|
|
unsigned ret;
|
|
|
|
int fdin, fdout;
|
2000-05-06 21:34:20 +02:00
|
|
|
BYTE buffer[COPY_SIZE];
|
|
|
|
struct ftime ftime;
|
2001-04-29 19:34:41 +02:00
|
|
|
ULONG copied = 0;
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
sprintf(dest, "%c:\\%s", 'A' + drive, file);
|
2001-04-29 19:34:41 +02:00
|
|
|
if ((fdin = open(file, O_RDONLY|O_BINARY)) < 0)
|
2000-05-06 21:34:20 +02:00
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( "%s: \"%s\" not found\n", pgm, file);
|
2000-05-06 21:34:20 +02:00
|
|
|
return FALSE;
|
|
|
|
}
|
2001-04-29 19:34:41 +02:00
|
|
|
if ((fdout = open(dest, O_RDWR | O_TRUNC | O_CREAT | O_BINARY,S_IREAD|S_IWRITE)) < 0)
|
2000-05-06 21:34:20 +02:00
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
printf( " %s: can't create\"%s\"\nDOS errnum %d", pgm, dest, errno);
|
|
|
|
close(fdin);
|
2000-05-06 21:34:20 +02:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2001-04-29 19:34:41 +02:00
|
|
|
while ((ret = read(fdin, buffer,COPY_SIZE)) > 0)
|
2000-05-06 21:34:20 +02:00
|
|
|
{
|
2001-04-29 19:34:41 +02:00
|
|
|
if (write(fdout, buffer, ret) != ret)
|
|
|
|
{
|
|
|
|
printf("Can't write %u bytes to %s\n",dest);
|
|
|
|
close(fdout);
|
|
|
|
unlink(dest);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
copied += ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
getftime(fdin, &ftime);
|
|
|
|
setftime(fdout, &ftime);
|
|
|
|
|
|
|
|
close(fdin);
|
|
|
|
close(fdout);
|
|
|
|
|
|
|
|
printf("%lu Bytes transferred", copied);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|