vfs: don't SUSPEND for unknown calls

. returning ENOSYS helps for implementing
	  new calls with forwards compatability
This commit is contained in:
Ben Gras 2011-07-02 17:15:20 +02:00
parent 03ff167d4d
commit 86a226680b

View file

@ -169,7 +169,7 @@ PUBLIC int main(void)
default: default:
/* Call the internal function that does the work. */ /* Call the internal function that does the work. */
if (call_nr < 0 || call_nr >= NCALLS) { if (call_nr < 0 || call_nr >= NCALLS) {
error = SUSPEND; error = ENOSYS;
/* Not supposed to happen. */ /* Not supposed to happen. */
printf("VFS: illegal %d system call by %d\n", printf("VFS: illegal %d system call by %d\n",
call_nr, who_e); call_nr, who_e);