… | |
… | |
1223 | not exist" is a status change like any other. The condition "path does |
1223 | not exist" is a status change like any other. The condition "path does |
1224 | not exist" is signified by the C<st_nlink> field being zero (which is |
1224 | not exist" is signified by the C<st_nlink> field being zero (which is |
1225 | otherwise always forced to be at least one) and all the other fields of |
1225 | otherwise always forced to be at least one) and all the other fields of |
1226 | the stat buffer having unspecified contents. |
1226 | the stat buffer having unspecified contents. |
1227 | |
1227 | |
|
|
1228 | The path I<should> be absolute and I<must not> end in a slash. If it is |
|
|
1229 | relative and your working directory changes, the behaviour is undefined. |
|
|
1230 | |
1228 | Since there is no standard to do this, the portable implementation simply |
1231 | Since there is no standard to do this, the portable implementation simply |
1229 | calls C<stat (2)> regularly on the path to see if it changed somehow. You |
1232 | calls C<stat (2)> regularly on the path to see if it changed somehow. You |
1230 | can specify a recommended polling interval for this case. If you specify |
1233 | can specify a recommended polling interval for this case. If you specify |
1231 | a polling interval of C<0> (highly recommended!) then a I<suitable, |
1234 | a polling interval of C<0> (highly recommended!) then a I<suitable, |
1232 | unspecified default> value will be used (which you can expect to be around |
1235 | unspecified default> value will be used (which you can expect to be around |