diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man2/udbuf.2 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man2/udbuf.2')
| -rw-r--r-- | static/v10/man2/udbuf.2 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/static/v10/man2/udbuf.2 b/static/v10/man2/udbuf.2 new file mode 100644 index 00000000..d965be35 --- /dev/null +++ b/static/v10/man2/udbuf.2 @@ -0,0 +1,48 @@ +.TH UDBUF 2 +.CT 2 file_io file_inq_creat +.SH NAME +udbuf \(mi fetch file name component +.SH SYNOPSIS +.nf +.B #include <sys/types.h> +.B #include <sys/dir.h> +.PP +.B int udbuf(name) +.B char name[DIRSIZ]; +.fi +.SH DESCRIPTION +.I Udbuf +copies the current contents of the user's +.B u.u_dbuf +array into the array +.I name. +This is the most recent filename component decoded by the +kernel subroutine +.BR namei . +It is usually the last component of the filename which was +most +recently presented by the user process to a system call. +If that file name, however, +refered to an entry in a `blind directory' (see +.IR bl (4)) +the kernel may have randomized the name before using it. +.SH "SEE ALSO" +.IR bl (4), +.IR mkunique (3) +.SH DIAGNOSTICS +.L +EFAULT +.SH BUGS +Ill named. +On a VAX the +.I u. +area is in user space, and +the same effect may be had by: +.EX +#include <sys/types.h> +#include <sys/dir.h> +#include <sys/user.h> + +struct user *ua = (struct user *)(0x80000000 - UPAGES*NBPG); +strncpy(name, ua->u_dbuf, DIRSIZ); +.EE |
