Descriptionos: Emulate plan 9 libc in stat
If the stat buffer is too short, the kernel informs us by putting the 2-byte
size in the buffer, so we read that and try again.
This follows the same algorithm as /sys/src/libc/9sys/dirfstat.c.
Fixes issue 8781.
Patch Set 1 #Patch Set 2 : diff -r 67bbd0083f7d8b423dfcac34c990d4dcedcca14f https://code.google.com/p/go/ #Patch Set 3 : diff -r 67bbd0083f7d8b423dfcac34c990d4dcedcca14f https://code.google.com/p/go/ #Patch Set 4 : diff -r 67bbd0083f7d8b423dfcac34c990d4dcedcca14f https://code.google.com/p/go/ #Patch Set 5 : diff -r 67bbd0083f7d8b423dfcac34c990d4dcedcca14f https://code.google.com/p/go/ #Patch Set 6 : diff -r 67bbd0083f7d8b423dfcac34c990d4dcedcca14f https://code.google.com/p/go/ #Patch Set 7 : diff -r be3fe3a1120009c4d0b9b5d497b0c8d274177292 https://code.google.com/p/go/ #MessagesTotal messages: 7
|