Searched hist:b39be1b35ced251ca5f39addb70d3c28e6fd2d54 (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/kern/ |
H A D | subr_fattime.c | diff b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy. b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy.
|
/freebsd/sys/sys/ |
H A D | clock.h | diff b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy. diff b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy.
|
/freebsd/sys/conf/ |
H A D | files | diff b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy. diff b39be1b35ced251ca5f39addb70d3c28e6fd2d54 Sun Oct 22 20:19:08 CEST 2006 Poul-Henning Kamp <phk@FreeBSD.org> Add two new functions to convert FAT filesystem format timestamps to and from struct timespec, to replace the crummy conversion function which have been copy&pasted into three different filesystems already.
Apart from general crummyness as indicated by code like:
for (year = 1970;; year++) { inc = year & 0x03 ? 365 : 366; if (days < inc) break; days -= inc; }
They also contain specialized crummyness which tries to compensate for the general crummyness by caching recent conversion results, with no regard for locking or consistency.
These replacement functions are smaller, O(1) and handle the Y2.1K leap-year correctly.
Ideally, these functions should live in a module of their own, which the three offending filesystems would depend on, but the size is 877 bytes of code (on i386), so that would be false economy.
|