|
Lines 315-320
Link Here
|
| 315 |
.Fn NDFREE |
315 |
.Fn NDFREE |
| 316 |
function. |
316 |
function. |
| 317 |
.El |
317 |
.El |
|
|
318 |
.Sh RETURN VALUES |
| 319 |
If successful, |
| 320 |
.Fn namei |
| 321 |
will return 0, otherwise it will return an error. |
| 322 |
.Sh ERRORS |
| 323 |
Errors which |
| 324 |
.Fn namei |
| 325 |
may return: |
| 326 |
.Bl -tag -width Er |
| 327 |
.It Bq Er ENOENT |
| 328 |
No such file or directory. A component of a specified pathname did not exist, or the pathname was an empty string. |
| 329 |
.It Bq Er ACCES |
| 330 |
Permission denied. An attempt was made to access a file in a way forbidden by its file access permissions. |
| 331 |
.It Bq Er ENOTDIR |
| 332 |
Not a directory. A component of the specified pathname existed, but it was not a directory, when a directory was expected. |
| 333 |
.It Bq Er EISDIR |
| 334 |
Is a directory. An attempt was made to open a directory with write mode specified. |
| 335 |
.It Bq Er EROFS |
| 336 |
Read-only file system. An attempt was made to modify a file or directory on a file system that was read-only at the time. |
| 337 |
.It Bq Er ELOOP |
| 338 |
Too many levels of symbolic links. A path name lookup involved more than 32 (MAXSYMLINKS) symbolic links. |
| 339 |
.It Bq Er ENAMETOOLONG |
| 340 |
File name too long. A component of a path name exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters. |
| 341 |
.El |
| 318 |
.Sh FILES |
342 |
.Sh FILES |
| 319 |
.Bl -tag |
343 |
.Bl -tag |
| 320 |
.It Pa src/sys/kern/vfs_lookup.c |
344 |
.It Pa src/sys/kern/vfs_lookup.c |