Extreme buggy version.
Fixed a lot of bugs and dependancy problems (like strncpy can't have src and dest same string).
Intentionally put a return 1 in create.c:39 as it doesn't create a file just before that(should have).
So no relation file is made.
changes. [1] In insertrec.c, call to getnextRid() 2nd argument was expecting slotnum, instead slotmap was given
[2] openrel.c wasn't handling already opened relations
[3] create.c the file creation flag O_CREAT is added, and removed return 1.
--- Current Issue: inf loop at insertrec.c:68 due to condition at :70. --- first occurance at prevRid = {1,9} and curRid={2,1} in relation attrcat.
inf. loop problem corrected by using do while.
recsPerPg is edited to 32 or MAXRECORD/recLength, whichever is smaller
main is running to print relcat and attrcat.
SUCCESSFULLY created a new relation.