source: MondoRescue/branches/2.2.5/mindi-busybox/libbb/makedev.c@ 1765

Last change on this file since 1765 was 1765, checked in by Bruno Cornec, 16 years ago

Update to busybox 1.7.2

  • Property svn:eol-style set to native
File size: 657 bytes
Line 
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
17/* suppress gcc "no previous prototype" warning */
18unsigned long long bb_makedev(unsigned int major, unsigned int minor);
19unsigned long long bb_makedev(unsigned int major, unsigned int minor)
20{
21 return makedev(major, minor);
22}
23#endif
Note: See TracBrowser for help on using the repository browser.