Deleted Added
full compact
29c29
< .\" $FreeBSD: head/lib/libc/gen/devname.3 165903 2007-01-09 00:28:16Z imp $
---
> .\" $FreeBSD: head/lib/libc/gen/devname.3 188497 2009-02-11 20:24:59Z ed $
45a46,49
> .Ft char *
> .Fn fdevname "int fd"
> .Ft char *
> .Fn fdevname_r "int fd" "char *buf" "int len"
71a76,84
> The
> .Fn fdevname
> and
> .Fn fdevname_r
> function obtains the device name directly from a file descriptor
> pointing to a character device.
> If it is unable to come up with a suitable name, these functions will
> return a NULL pointer.
> .Pp
73c86,88
< returns the name stored in a static buffer which will be overwritten
---
> and
> .Fn fdevname
> return the name stored in a static buffer which will be overwritten
76c91,93
< takes a buffer and length as argument to avoid this problem.
---
> and
> .Fn fdevname_r
> take a buffer and length as argument to avoid this problem.
85a103
> printf("fdevname is /dev/%s\en", fdevname(fd));
93a112,115
> The
> .Fn fdevname
> function appeared in
> .Fx 8.0 .