[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 17/18] mini-os: use function vectors instead of switch for file operations
On 11.01.22 21:05, Samuel Thibault wrote: Juergen Gross, le mar. 11 janv. 2022 15:58:16 +0100, a ecrit:@@ -370,8 +413,45 @@ int write(int fd, const void *buf, size_t nbytes) return -1; }+off_t lseek_default(int fd, off_t offset, int whence)+{ + switch ( whence ) + {Is there a reason for making this one a separate function, unlike others for which you kept the code in the main function? Yes, it will be used as .lseek callback in some cases. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |