Better optimisation for hppa 7100LC cpu

This commit is contained in:
Michiel Broek 2004-09-25 10:47:33 +00:00
parent 4255e9d3b1
commit b605aba2d0
4 changed files with 13 additions and 6 deletions

View File

@ -34,6 +34,8 @@ v0.61.4 11-Aug-2004
cleaned magic aliases.
Fixed a problem with the files database were the temp file used
for sorting and inserting files didn't close the temp file.
Changed method of inserting new files that now hopefully old
magic names are really cleared.
mbcico:
Removed a little debug logging.

2
TODO
View File

@ -117,6 +117,8 @@ mbfido:
N: Implement areamgr/filemgr %avail command to list available areas
from areas files.
M: Add switch to tic areas that new links connect SR to the area.
mbcico:
L: Implement binkp option ND.

View File

@ -76,6 +76,9 @@ case $OS in
1.1*) FLAGS='-march=1.1' ;;
2.0*) FLAGS='-march=2.0' ;;
esac
case "`egrep 'cpu ' /proc/cpuinfo | cut -d ' ' -f 2`" in
PA7100LC) FLAGS=${FLAGS}' -mschedule=7100LC' ;;
esac
;;
i386)

View File

@ -260,7 +260,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
Syslog('f', "mbsedb_InsertFDB: insertpoint=%d, found=%s, done=%s", Insert, Found?"true":"false", Done?"true":"false");
if (Found) {
// if (Found) {
if ((fp = fopen(temp, "a+")) == NULL) {
WriteError("$Can't create %s", temp);
mbsedb_UnlockFDB(fdb_area);
@ -333,13 +333,13 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
mbsedb_Temp2Data(fdb_area->area);
fdb_area->fp = fp;
fdb_area->locked = 0;
} else {
// } else {
/*
* Append new entry
*/
fseek(fdb_area->fp, 0, SEEK_END);
fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
}
// fseek(fdb_area->fp, 0, SEEK_END);
// fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
// }
free(temp);