Contents of /tags/mkinitrd-6_1_3/busybox/libbb/makedev.c
Parent Directory | Revision Log
Revision 846 -
(show annotations)
(download)
Mon May 4 18:51:23 2009 UTC (15 years, 4 months ago) by niro
File MIME type: text/plain
File size: 699 byte(s)
Mon May 4 18:51:23 2009 UTC (15 years, 4 months ago) by niro
File MIME type: text/plain
File size: 699 byte(s)
tagged 'mkinitrd-6_1_3'
1 | /* |
2 | * Utility routines. |
3 | * |
4 | * Copyright (C) 2006 Denys Vlasenko |
5 | * |
6 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. |
7 | */ |
8 | |
9 | /* We do not include libbb.h - #define makedev() is there! */ |
10 | #include "platform.h" |
11 | #include <features.h> |
12 | #include <sys/sysmacros.h> |
13 | |
14 | #ifdef __GLIBC__ |
15 | /* At least glibc has horrendously large inline for this, so wrap it */ |
16 | /* uclibc people please check - do we need "&& !__UCLIBC__" above? */ |
17 | |
18 | /* suppress gcc "no previous prototype" warning */ |
19 | unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor); |
20 | unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor) |
21 | { |
22 | return makedev(major, minor); |
23 | } |
24 | #endif |