svn commit: trunk/busybox/libbb

vda at busybox.net vda at busybox.net
Fri Nov 24 15:06:28 UTC 2006


Author: vda
Date: 2006-11-24 07:06:28 -0800 (Fri, 24 Nov 2006)
New Revision: 16656

Log:
svn add makedev.c. Forgot as usual... :(


Added:
   trunk/busybox/libbb/makedev.c


Changeset:
Added: trunk/busybox/libbb/makedev.c
===================================================================
--- trunk/busybox/libbb/makedev.c	2006-11-24 14:59:45 UTC (rev 16655)
+++ trunk/busybox/libbb/makedev.c	2006-11-24 15:06:28 UTC (rev 16656)
@@ -0,0 +1,19 @@
+/*
+ * Utility routines.
+ *
+ * Copyright (C) 2006 Denis Vlasenko
+ *
+ * Licensed under GPL version 2, see file LICENSE in this tarball for details.
+ */
+
+/* We do not include libbb.h - #define makedev() is there! */
+#include <sys/sysmacros.h>
+
+#ifdef __GLIBC__
+/* At least glibc has horrendously large inline for this, so wrap it */
+/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
+unsigned long long bb_makedev(unsigned int major, unsigned int minor)
+{
+	return makedev(major, minor);
+}
+#endif




More information about the busybox-cvs mailing list