History log of /dflybsd-src/lib/libc/gen/fdevname.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 32cb8272 04-Jul-2016 Sascha Wildner <saw@online.de>

<pthread.h>: Include <machine/limits.h> instead of <limits.h> for ULONG_MAX.

Also include <limits.h> in a couple of files that were missing it.

This commit will break 4 ports:

devel/clanlib1
games

<pthread.h>: Include <machine/limits.h> instead of <limits.h> for ULONG_MAX.

Also include <limits.h> in a couple of files that were missing it.

This commit will break 4 ports:

devel/clanlib1
games/orbital_eunuchs_sniper
games/zatacka
sysutils/cdargs

These will be fixed in the next time.

show more ...


# 6ddaf485 11-Aug-2009 Sascha Wildner <saw@online.de>

Add some documentation for fdevname() and fdevname_r() (thanks, alexh).


# 65653ce5 11-Aug-2009 Alex Hornung <ahornung@gmail.com>

fdevname - Set errno if fdevname_r call fails; don't prepend /dev

* Return EINVAL if the fd does not belong to a character device and
return EBADF if the fd is not valid.

* If fdevname_r returns

fdevname - Set errno if fdevname_r call fails; don't prepend /dev

* Return EINVAL if the fd does not belong to a character device and
return EBADF if the fd is not valid.

* If fdevname_r returns non-null when called from fdevname, set errno
in fdevname to whatever *_r returned.

* Don't prepend "/dev/" string to the returned buffer, just put in
the device name itself, without absolute path.

Reported-By: Sascha Wildner

show more ...


# 45e80934 04-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

DEVFS - rollup - Userland, nrelease, and installer

* Remove MAKEDEV and MAKEDEV use in the build system.

* Add a new libc function fdevname() taking a file descriptor and
returning the device nam

DEVFS - rollup - Userland, nrelease, and installer

* Remove MAKEDEV and MAKEDEV use in the build system.

* Add a new libc function fdevname() taking a file descriptor and
returning the device name.

* Remove the MFS /dev for the CD and adjust the nrelease build system
to use devfs.

* Installer adjustments: PFI search path, remove device node maker
(it is non-applicable with devfs).

* Add mount_devfs to the build Makefile.

* Change dhclient to use an auto-cloning bpf.

* The VN device now uses labels by default, and no longer supports
non-label configurations (though you can of course ignore the label
area and just r/w the raw device anyway).

Submitted-by: Alex Hornung <ahornung@gmail.com>, and Matthew Dillon

show more ...