Contents of /trunk/mkinitrd-magellan/busybox/libbb/makedev.c
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 534 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 534 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * Utility routines. |
3 | * |
4 | * Copyright (C) 2006 Denis 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 <features.h> |
11 | #include <sys/sysmacros.h> |
12 | |
13 | #ifdef __GLIBC__ |
14 | /* At least glibc has horrendously large inline for this, so wrap it */ |
15 | /* uclibc people please check - do we need "&& !__UCLIBC__" above? */ |
16 | unsigned long long bb_makedev(unsigned int major, unsigned int minor) |
17 | { |
18 | return makedev(major, minor); |
19 | } |
20 | #endif |