URL
https://opencores.org/ocsvn/plasma/plasma/trunk
Subversion Repositories plasma
Compare Revisions
- This comparison shows the changes necessary to convert path
/plasma/trunk
- from Rev 423 to Rev 424
- ↔ Reverse comparison
Rev 423 → Rev 424
/kernel/filesys.c
391,7 → 391,7
{ |
int count, rc = -1; |
uint32 blockIndex, blockOffset; |
uint32 blockIndexEmpty=BLOCK_EOF, blockOffsetEmpty=0; |
uint32 blockIndexEmpty=BLOCK_EOF, blockOffsetEmpty=0, fileOffsetEmpty=0; |
|
// Loop through files in directory |
for(;;) |
410,6 → 410,7
{ |
blockIndexEmpty = blockIndex; |
blockOffsetEmpty = blockOffset; |
fileOffsetEmpty = directory->fileOffset - sizeof(OS_FileEntry_t); |
} |
} |
if(rc == 0 || directory->fileEntry.mediaType == FILE_MEDIA_FLASH || |
420,12 → 421,13
BlockRead(directory, blockIndex); |
directory->blockOffset = blockOffset; |
} |
else |
else if(blockIndexEmpty != BLOCK_EOF) |
{ |
// Backup to empty slot |
if(directory->blockIndex != blockIndexEmpty) |
BlockRead(directory, blockIndexEmpty); |
directory->blockOffset = blockOffsetEmpty; |
directory->fileOffset = fileOffsetEmpty; |
} |
return rc; |
} |
/kernel/tcpip.h
137,6 → 137,7
void ConsoleInit(void); |
void *IPNameValue(const char *name, void *value); |
int ConsoleGetch(void); |
void ConsoleRun(IPSocket *socket, char *argv[]); |
#ifndef INSIDE_NETUTIL |
int ConsoleScanf(char *format, ...); |
int ConsolePrintf(char *format, ...); |
/kernel/netutil.c
16,7 → 16,7
#include "tcpip.h" |
|
#ifndef EXCLUDE_DLL |
static void ConsoleRun(IPSocket *socket, char *argv[]); |
void ConsoleRun(IPSocket *socket, char *argv[]); |
#endif |
|
//******************* FTP Server ************************ |
1306,7 → 1306,7
} |
|
|
static void ConsoleRun(IPSocket *socket, char *argv[]) |
void ConsoleRun(IPSocket *socket, char *argv[]) |
{ |
FILE *file; |
int bytes, i, run=0; |