FreeBSD Bugzilla – Attachment 32446 Details for
Bug 53621
devname(3)'s man page needs an example
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
devname.3-patch
devname.3-patch (text/plain; charset=us-ascii), 433 bytes, created by
Marc Silver
on 2004-03-04 13:25:00 UTC
(
hide
)
Description:
devname.3-patch
Filename:
MIME Type:
Creator:
Marc Silver
Created:
2004-03-04 13:25:00 UTC
Size:
433 bytes
patch
obsolete
>--- devname.3-orig Thu Mar 4 14:59:30 2004 >+++ devname.3 Thu Mar 4 15:18:05 2004 >@@ -78,6 +78,16 @@ > on subsequent calls. > .Fn devname_r > takes a buffer and length as argument to avoid this problem. >+.Sh EXAMPLES >+.Bd -literal -compact >+int fd; >+struct stat buf; >+char *name; >+ >+ fd = open("/dev/tun"); >+ fstat(fd, &buf); >+ printf("devname is /dev/%s\en", devname(buf.st_rdev, S_IFCHR)); >+.Ed > .Sh SEE ALSO > .Xr stat 2 > .Sh HISTORY
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 53621
: 32446