author | Florian Forster <octo@noris.net> | |
Mon, 14 Jul 2008 15:27:36 +0000 (17:27 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Mon, 14 Jul 2008 15:27:36 +0000 (17:27 +0200) | ||
commit | e5182de306d64ba778c39a34f5c34961bd8c01b3 | |
tree | 40fc51122ea58f7795fc2cfc45b6e318803405ad | tree | snapshot |
parent | e3a720229e831073dc22fb1bc5a63530647bcf9c | commit | diff |
vserver plugin: Use `readdir_r' instead of `readdir'.
`readdir' is not thread safe, so use the (more thread safe) `readdir_r'.
Also, don't use the non-standard `d_type' member of the `dirent'
structure - it's not portable.
I'm aware that this plugin is very Linux specific and Linux most likely
will never use another C library than the GNU libc, but using this
member prevents me from compiling with the most restrictive `strict'
settings..
`readdir' is not thread safe, so use the (more thread safe) `readdir_r'.
Also, don't use the non-standard `d_type' member of the `dirent'
structure - it's not portable.
I'm aware that this plugin is very Linux specific and Linux most likely
will never use another C library than the GNU libc, but using this
member prevents me from compiling with the most restrictive `strict'
settings..
src/vserver.c | diff | blob | history |