Changeset 479


Ignore:
Timestamp:
Mar 6, 2011, 11:59:55 PM (10 years ago)
Author:
khorben
Message:

Packaged DeforaOS libc 0.0.6 and fixed building Xynth

Location:
trunk/System/Sources/libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/System/Sources/libc/Makefile

    r465 r479  
    11PACKAGE = libc
    2 VERSION = 0.0.5
     2VERSION = 0.0.6
    33DESTDIR =
    44PREFIX  = /usr/local
     
    1010TOUCH   = touch
    1111ARCHIVE = $(PACKAGE)-$(VERSION).tar.gz
    12 MIRROR  = http://www.defora.org/os/download/download/3477
     12MIRROR  = http://www.defora.org/os/download/download/3490
    1313URL     = $(MIRROR)/$(ARCHIVE)
    1414
  • trunk/System/Sources/libc/patches/patch-linux_fb.diff

    r439 r479  
    1 diff -Naur libc-0.0.3.orig/include/kernel/linux/Makefile libc-0.0.3/include/kernel/linux/Makefile
    2 --- libc-0.0.3.orig/include/kernel/linux/Makefile       2009-11-11 10:34:58.000000000 +0100
    3 +++ libc-0.0.3/include/kernel/linux/Makefile    2009-11-16 10:53:10.000000000 +0100
     1diff -Naur libc-0.0.5/Makefile libc-0.0.5.new/Makefile
     2--- libc-0.0.5/Makefile 2011-02-26 20:12:50.000000000 +0100
     3+++ libc-0.0.5.new/Makefile     2011-02-26 22:06:06.000000000 +0100
     4@@ -307,6 +307,13 @@
     5                $(PACKAGE)-$(VERSION)/include/kernel/linux/utmpx.h \
     6                $(PACKAGE)-$(VERSION)/include/kernel/linux/Makefile \
     7                $(PACKAGE)-$(VERSION)/include/kernel/linux/project.conf \
     8+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/fb.h \
     9+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/kd.h \
     10+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/keyboard.h \
     11+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/vt.h \
     12+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/Makefile \
     13+               $(PACKAGE)-$(VERSION)/include/kernel/linux/linux/project.conf \
     14+               $(PACKAGE)-$(VERSION)/include/kernel/linux/sys/kd.h \
     15                $(PACKAGE)-$(VERSION)/include/kernel/linux/sys/ioctl.h \
     16                $(PACKAGE)-$(VERSION)/include/kernel/linux/sys/mman.h \
     17                $(PACKAGE)-$(VERSION)/include/kernel/linux/sys/mount.h \
     18@@ -337,6 +344,7 @@
     19                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/Makefile \
     20                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/project.conf \
     21                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/sys/ioctl.h \
     22+               $(PACKAGE)-$(VERSION)/include/kernel/netbsd/sys/kd.h \
     23                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/sys/mman.h \
     24                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/sys/mount.h \
     25                $(PACKAGE)-$(VERSION)/include/kernel/netbsd/sys/reboot.h \
     26@@ -445,6 +453,7 @@
     27                $(PACKAGE)-$(VERSION)/include/socket/sys/project.conf \
     28                $(PACKAGE)-$(VERSION)/include/sys/ioctl.h \
     29                $(PACKAGE)-$(VERSION)/include/sys/ipc.h \
     30+               $(PACKAGE)-$(VERSION)/include/sys/kd.h \
     31                $(PACKAGE)-$(VERSION)/include/sys/mman.h \
     32                $(PACKAGE)-$(VERSION)/include/sys/mount.h \
     33                $(PACKAGE)-$(VERSION)/include/sys/param.h \
     34diff -Naur libc-0.0.5/include/compat/sys/Makefile libc-0.0.5.new/include/compat/sys/Makefile
     35--- libc-0.0.5/include/compat/sys/Makefile      2011-02-26 20:12:50.000000000 +0100
     36+++ libc-0.0.5.new/include/compat/sys/Makefile  2011-02-26 22:07:46.000000000 +0100
     37@@ -17,6 +17,8 @@
     38        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/compat/sys
     39        $(INSTALL) -m 0644 -- ioctl.h $(DESTDIR)$(INCLUDEDIR)/compat/sys/ioctl.h
     40        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/compat/sys
     41+       $(INSTALL) -m 0644 -- kd.h $(DESTDIR)$(INCLUDEDIR)/compat/sys/kd.h
     42+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/compat/sys
     43        $(INSTALL) -m 0644 -- mman.h $(DESTDIR)$(INCLUDEDIR)/compat/sys/mman.h
     44        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/compat/sys
     45        $(INSTALL) -m 0644 -- mount.h $(DESTDIR)$(INCLUDEDIR)/compat/sys/mount.h
     46@@ -43,6 +45,7 @@
     47 
     48 uninstall:
     49        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/compat/sys/ioctl.h
     50+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/compat/sys/kd.h
     51        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/compat/sys/mman.h
     52        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/compat/sys/mount.h
     53        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/compat/sys/reboot.h
     54diff -Naur libc-0.0.5/include/compat/sys/kd.h libc-0.0.5.new/include/compat/sys/kd.h
     55--- libc-0.0.5/include/compat/sys/kd.h  1970-01-01 01:00:00.000000000 +0100
     56+++ libc-0.0.5.new/include/compat/sys/kd.h      2011-02-26 22:09:49.000000000 +0100
     57@@ -0,0 +1,30 @@
     58+/* $Id$ */
     59+/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
     60+/* This file is part of DeforaOS System libc */
     61+/* This program is free software: you can redistribute it and/or modify
     62+ * it under the terms of the GNU General Public License as published by
     63+ * the Free Software Foundation, version 3 of the License.
     64+ *
     65+ * This program is distributed in the hope that it will be useful,
     66+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
     67+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     68+ * GNU General Public License for more details.
     69+ *
     70+ * You should have received a copy of the GNU General Public License
     71+ * along with this program.  If not, see <http://www.gnu.org/licenses/>. */
     72+
     73+
     74+
     75+#ifndef LIBC_COMPAT_SYS_KD_H
     76+# define LIBC_COMPAT_SYS_KD_H
     77+
     78+
     79+# if defined(__linux__)
     80+#  include "kernel/linux/sys/kd.h"
     81+# elif defined(__NetBSD__)
     82+#  include "kernel/netbsd/sys/kd.h"
     83+# else
     84+#  warning Unsupported platform
     85+# endif
     86+
     87+#endif /* !LIBC_COMPAT_SYS_KD_H */
     88diff -Naur libc-0.0.5/include/compat/sys/project.conf libc-0.0.5.new/include/compat/sys/project.conf
     89--- libc-0.0.5/include/compat/sys/project.conf  2009-12-29 06:20:41.000000000 +0100
     90+++ libc-0.0.5.new/include/compat/sys/project.conf      2011-02-26 22:07:15.000000000 +0100
     91@@ -1,9 +1,12 @@
     92-includes=ioctl.h,mman.h,mount.h,reboot.h,resource.h,select.h,shm.h,stat.h,time.h,times.h,types.h,utsname.h,vt.h
     93+includes=ioctl.h,kd.h,mman.h,mount.h,reboot.h,resource.h,select.h,shm.h,stat.h,time.h,times.h,types.h,utsname.h,vt.h
     94 dist=Makefile
     95 
     96 [ioctl.h]
     97 install=$(INCLUDEDIR)/compat/sys
     98 
     99+[kd.h]
     100+install=$(INCLUDEDIR)/compat/sys
     101+
     102 [mman.h]
     103 install=$(INCLUDEDIR)/compat/sys
     104 
     105diff -Naur libc-0.0.5/include/kernel/linux/Makefile libc-0.0.5.new/include/kernel/linux/Makefile
     106--- libc-0.0.5/include/kernel/linux/Makefile    2011-02-26 20:12:50.000000000 +0100
     107+++ libc-0.0.5.new/include/kernel/linux/Makefile        2011-02-26 22:06:06.000000000 +0100
    4108@@ -1,4 +1,4 @@
    5109-SUBDIRS        = sys
     
    8112 DESTDIR        =
    9113 RM     = rm -f
    10 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/Makefile libc-0.0.3/include/kernel/linux/linux/Makefile
    11 --- libc-0.0.3.orig/include/kernel/linux/linux/Makefile 1970-01-01 01:00:00.000000000 +0100
    12 +++ libc-0.0.3/include/kernel/linux/linux/Makefile      2009-11-16 10:53:10.000000000 +0100
     114diff -Naur libc-0.0.5/include/kernel/linux/linux/Makefile libc-0.0.5.new/include/kernel/linux/linux/Makefile
     115--- libc-0.0.5/include/kernel/linux/linux/Makefile      1970-01-01 01:00:00.000000000 +0100
     116+++ libc-0.0.5.new/include/kernel/linux/linux/Makefile  2011-02-26 22:06:06.000000000 +0100
    13117@@ -0,0 +1,32 @@
    14118+PREFIX = /usr/local
     
    27131+distclean: clean
    28132+
    29 +install: all
     133+install:
    30134+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/linux
    31 +       $(INSTALL) -m 0644 fb.h $(DESTDIR)$(INCLUDEDIR)/linux/fb.h
     135+       $(INSTALL) -m 0644 -- fb.h $(DESTDIR)$(INCLUDEDIR)/linux/fb.h
    32136+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/linux
    33 +       $(INSTALL) -m 0644 kd.h $(DESTDIR)$(INCLUDEDIR)/linux/kd.h
     137+       $(INSTALL) -m 0644 -- kd.h $(DESTDIR)$(INCLUDEDIR)/linux/kd.h
    34138+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/linux
    35 +       $(INSTALL) -m 0644 keyboard.h $(DESTDIR)$(INCLUDEDIR)/linux/keyboard.h
     139+       $(INSTALL) -m 0644 -- keyboard.h $(DESTDIR)$(INCLUDEDIR)/linux/keyboard.h
    36140+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/linux
    37 +       $(INSTALL) -m 0644 vt.h $(DESTDIR)$(INCLUDEDIR)/linux/vt.h
     141+       $(INSTALL) -m 0644 -- vt.h $(DESTDIR)$(INCLUDEDIR)/linux/vt.h
    38142+
    39143+uninstall:
    40 +       $(RM) $(DESTDIR)$(INCLUDEDIR)/linux/fb.h
    41 +       $(RM) $(DESTDIR)$(INCLUDEDIR)/linux/kd.h
    42 +       $(RM) $(DESTDIR)$(INCLUDEDIR)/linux/keyboard.h
    43 +       $(RM) $(DESTDIR)$(INCLUDEDIR)/linux/vt.h
     144+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/linux/fb.h
     145+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/linux/kd.h
     146+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/linux/keyboard.h
     147+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/linux/vt.h
    44148+
    45149+.PHONY: all clean distclean install uninstall
    46 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/fb.h libc-0.0.3/include/kernel/linux/linux/fb.h
    47 --- libc-0.0.3.orig/include/kernel/linux/linux/fb.h     1970-01-01 01:00:00.000000000 +0100
    48 +++ libc-0.0.3/include/kernel/linux/linux/fb.h  2009-11-16 10:54:22.000000000 +0100
     150diff -Naur libc-0.0.5/include/kernel/linux/linux/fb.h libc-0.0.5.new/include/kernel/linux/linux/fb.h
     151--- libc-0.0.5/include/kernel/linux/linux/fb.h  1970-01-01 01:00:00.000000000 +0100
     152+++ libc-0.0.5.new/include/kernel/linux/linux/fb.h      2011-02-26 21:32:11.000000000 +0100
    49153@@ -0,0 +1,173 @@
    50154+/* $Id$ */
     
    221325+
    222326+#endif /* !LIBC_KERNEL_LINUX_LINUX_FB_H */
    223 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/kd.h libc-0.0.3/include/kernel/linux/linux/kd.h
    224 --- libc-0.0.3.orig/include/kernel/linux/linux/kd.h     1970-01-01 01:00:00.000000000 +0100
    225 +++ libc-0.0.3/include/kernel/linux/linux/kd.h  2009-11-16 10:54:22.000000000 +0100
     327diff -Naur libc-0.0.5/include/kernel/linux/linux/kd.h libc-0.0.5.new/include/kernel/linux/linux/kd.h
     328--- libc-0.0.5/include/kernel/linux/linux/kd.h  1970-01-01 01:00:00.000000000 +0100
     329+++ libc-0.0.5.new/include/kernel/linux/linux/kd.h      2011-02-26 21:32:11.000000000 +0100
    226330@@ -0,0 +1,23 @@
    227331+/* $Id$ */
     
    248352+
    249353+#endif /* !LIBC_KERNEL_LINUX_LINUX_KD_H */
    250 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/keyboard.h libc-0.0.3/include/kernel/linux/linux/keyboard.h
    251 --- libc-0.0.3.orig/include/kernel/linux/linux/keyboard.h       1970-01-01 01:00:00.000000000 +0100
    252 +++ libc-0.0.3/include/kernel/linux/linux/keyboard.h    2009-11-16 10:54:22.000000000 +0100
     354diff -Naur libc-0.0.5/include/kernel/linux/linux/keyboard.h libc-0.0.5.new/include/kernel/linux/linux/keyboard.h
     355--- libc-0.0.5/include/kernel/linux/linux/keyboard.h    1970-01-01 01:00:00.000000000 +0100
     356+++ libc-0.0.5.new/include/kernel/linux/linux/keyboard.h        2011-02-26 21:32:11.000000000 +0100
    253357@@ -0,0 +1,460 @@
    254358+/* $Id$ */
     
    712816+
    713817+#endif /* !LIBC_KERNEL_LINUX_LINUX_KEYBOARD_H */
    714 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/project.conf libc-0.0.3/include/kernel/linux/linux/project.conf
    715 --- libc-0.0.3.orig/include/kernel/linux/linux/project.conf     1970-01-01 01:00:00.000000000 +0100
    716 +++ libc-0.0.3/include/kernel/linux/linux/project.conf  2009-11-16 10:52:30.000000000 +0100
     818diff -Naur libc-0.0.5/include/kernel/linux/linux/project.conf libc-0.0.5.new/include/kernel/linux/linux/project.conf
     819--- libc-0.0.5/include/kernel/linux/linux/project.conf  1970-01-01 01:00:00.000000000 +0100
     820+++ libc-0.0.5.new/include/kernel/linux/linux/project.conf      2011-02-26 21:32:11.000000000 +0100
    717821@@ -0,0 +1,14 @@
    718822+includes=fb.h,kd.h,keyboard.h,vt.h
     
    730834+[vt.h]
    731835+install=$(INCLUDEDIR)/linux
    732 diff -Naur libc-0.0.3.orig/include/kernel/linux/linux/vt.h libc-0.0.3/include/kernel/linux/linux/vt.h
    733 --- libc-0.0.3.orig/include/kernel/linux/linux/vt.h     1970-01-01 01:00:00.000000000 +0100
    734 +++ libc-0.0.3/include/kernel/linux/linux/vt.h  2009-11-16 10:54:22.000000000 +0100
     836diff -Naur libc-0.0.5/include/kernel/linux/linux/vt.h libc-0.0.5.new/include/kernel/linux/linux/vt.h
     837--- libc-0.0.5/include/kernel/linux/linux/vt.h  1970-01-01 01:00:00.000000000 +0100
     838+++ libc-0.0.5.new/include/kernel/linux/linux/vt.h      2011-02-26 21:32:11.000000000 +0100
    735839@@ -0,0 +1,21 @@
    736840+/* $Id$ */
     
    755859+
    756860+#endif /* LIBC_KERNEL_LINUX_LINUX_VT_H */
    757 diff -Naur libc-0.0.3.orig/include/kernel/linux/project.conf libc-0.0.3/include/kernel/linux/project.conf
    758 --- libc-0.0.3.orig/include/kernel/linux/project.conf   2008-10-31 19:51:40.000000000 +0100
    759 +++ libc-0.0.3/include/kernel/linux/project.conf        2009-11-16 10:51:59.000000000 +0100
     861diff -Naur libc-0.0.5/include/kernel/linux/project.conf libc-0.0.5.new/include/kernel/linux/project.conf
     862--- libc-0.0.5/include/kernel/linux/project.conf        2008-10-31 19:51:40.000000000 +0100
     863+++ libc-0.0.5.new/include/kernel/linux/project.conf    2011-02-26 21:32:11.000000000 +0100
    760864@@ -1,4 +1,4 @@
    761865-subdirs=sys
     
    764868 dist=Makefile
    765869 
    766 diff -Naur libc-0.0.3.orig/include/kernel/linux/sys/Makefile libc-0.0.3/include/kernel/linux/sys/Makefile
    767 --- libc-0.0.3.orig/include/kernel/linux/sys/Makefile   2009-11-11 10:34:58.000000000 +0100
    768 +++ libc-0.0.3/include/kernel/linux/sys/Makefile        2009-11-16 10:53:10.000000000 +0100
     870diff -Naur libc-0.0.5/include/kernel/linux/sys/Makefile libc-0.0.5.new/include/kernel/linux/sys/Makefile
     871--- libc-0.0.5/include/kernel/linux/sys/Makefile        2011-02-26 20:12:50.000000000 +0100
     872+++ libc-0.0.5.new/include/kernel/linux/sys/Makefile    2011-02-26 22:06:06.000000000 +0100
    769873@@ -14,6 +14,8 @@
    770874 distclean: clean
    771875 
    772  install: all
     876 install:
    773877+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
    774 +       $(INSTALL) -m 0644 kd.h $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
     878+       $(INSTALL) -m 0644 -- kd.h $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
    775879        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys
    776         $(INSTALL) -m 0644 ioctl.h $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/ioctl.h
     880        $(INSTALL) -m 0644 -- ioctl.h $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/ioctl.h
    777881        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys
    778882@@ -40,6 +42,7 @@
    779         $(INSTALL) -m 0644 utsname.h $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/utsname.h
     883        $(INSTALL) -m 0644 -- utsname.h $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/utsname.h
    780884 
    781885 uninstall:
    782 +       $(RM) $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
    783         $(RM) $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/ioctl.h
    784         $(RM) $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/mman.h
    785         $(RM) $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/mount.h
    786 diff -Naur libc-0.0.3.orig/include/kernel/linux/sys/kd.h libc-0.0.3/include/kernel/linux/sys/kd.h
    787 --- libc-0.0.3.orig/include/kernel/linux/sys/kd.h       1970-01-01 01:00:00.000000000 +0100
    788 +++ libc-0.0.3/include/kernel/linux/sys/kd.h    2009-11-16 10:54:48.000000000 +0100
     886+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
     887        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/ioctl.h
     888        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/mman.h
     889        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/linux/sys/mount.h
     890diff -Naur libc-0.0.5/include/kernel/linux/sys/kd.h libc-0.0.5.new/include/kernel/linux/sys/kd.h
     891--- libc-0.0.5/include/kernel/linux/sys/kd.h    1970-01-01 01:00:00.000000000 +0100
     892+++ libc-0.0.5.new/include/kernel/linux/sys/kd.h        2011-02-26 21:32:11.000000000 +0100
    789893@@ -0,0 +1,65 @@
    790894+/* $Id$ */
     
    853957+
    854958+#endif /* !LIBC_KERNEL_LINUX_SYS_KD_H */
    855 diff -Naur libc-0.0.3.orig/include/kernel/linux/sys/project.conf libc-0.0.3/include/kernel/linux/sys/project.conf
    856 --- libc-0.0.3.orig/include/kernel/linux/sys/project.conf       2008-10-16 23:12:31.000000000 +0200
    857 +++ libc-0.0.3/include/kernel/linux/sys/project.conf    2009-11-16 10:53:08.000000000 +0100
     959diff -Naur libc-0.0.5/include/kernel/linux/sys/project.conf libc-0.0.5.new/include/kernel/linux/sys/project.conf
     960--- libc-0.0.5/include/kernel/linux/sys/project.conf    2008-10-16 23:12:31.000000000 +0200
     961+++ libc-0.0.5.new/include/kernel/linux/sys/project.conf        2011-02-26 21:32:11.000000000 +0100
    858962@@ -1,6 +1,9 @@
    859963-includes=ioctl.h,mman.h,mount.h,reboot.h,resource.h,select.h,shm.h,stat.h,time.h,times.h,types.h,utsname.h
     
    867971 install=$(INCLUDEDIR)/kernel/linux/sys
    868972 
     973diff -Naur libc-0.0.5/include/kernel/netbsd/sys/Makefile libc-0.0.5.new/include/kernel/netbsd/sys/Makefile
     974--- libc-0.0.5/include/kernel/netbsd/sys/Makefile       2011-02-26 20:12:50.000000000 +0100
     975+++ libc-0.0.5.new/include/kernel/netbsd/sys/Makefile   2011-02-26 22:06:06.000000000 +0100
     976@@ -17,6 +17,8 @@
     977        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys
     978        $(INSTALL) -m 0644 -- ioctl.h $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/ioctl.h
     979        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys
     980+       $(INSTALL) -m 0644 -- kd.h $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/kd.h
     981+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys
     982        $(INSTALL) -m 0644 -- mman.h $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/mman.h
     983        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys
     984        $(INSTALL) -m 0644 -- mount.h $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/mount.h
     985@@ -43,6 +45,7 @@
     986 
     987 uninstall:
     988        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/ioctl.h
     989+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/kd.h
     990        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/mman.h
     991        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/mount.h
     992        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/kernel/netbsd/sys/reboot.h
     993diff -Naur libc-0.0.5/include/kernel/netbsd/sys/kd.h libc-0.0.5.new/include/kernel/netbsd/sys/kd.h
     994--- libc-0.0.5/include/kernel/netbsd/sys/kd.h   1970-01-01 01:00:00.000000000 +0100
     995+++ libc-0.0.5.new/include/kernel/netbsd/sys/kd.h       2011-02-26 22:09:10.000000000 +0100
     996@@ -0,0 +1,67 @@
     997+/* $Id$ */
     998+/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
     999+/* This file is part of DeforaOS System libc */
     1000+/* This program is free software: you can redistribute it and/or modify
     1001+ * it under the terms of the GNU General Public License as published by
     1002+ * the Free Software Foundation, version 3 of the License.
     1003+ *
     1004+ * This program is distributed in the hope that it will be useful,
     1005+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
     1006+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     1007+ * GNU General Public License for more details.
     1008+ *
     1009+ * You should have received a copy of the GNU General Public License
     1010+ * along with this program.  If not, see <http://www.gnu.org/licenses/>. */
     1011+/* FIXME:
     1012+ * - directly copied from Linux */
     1013+
     1014+
     1015+
     1016+#ifndef LIBC_KERNEL_NETBSD_SYS_KD_H
     1017+# define LIBC_KERNEL_NETBSD_SYS_KD_H
     1018+
     1019+
     1020+/* types */
     1021+struct kbentry
     1022+{
     1023+       unsigned char kb_table;
     1024+       unsigned char kb_index;
     1025+       unsigned short kb_value;
     1026+};
     1027+
     1028+
     1029+/* constants */
     1030+# define KDGETLED      0x4b31
     1031+# define KDSETLED      0x4b32
     1032+# define KDSETMODE     0x4b3a
     1033+# define KDGETMODE     0x4b3b
     1034+# define KDGKBMODE     0x4b44
     1035+# define KDSKBMODE     0x4b45
     1036+# define KDGKBENT      0x4b46
     1037+# define KDSKBENT      0x4b47
     1038+# define KDGKBMETA     0x4b62
     1039+# define KDSKBMETA     0x4b63
     1040+# define KDGKLED       0x4b64
     1041+# define KDSKLED       0x4b65
     1042+
     1043+# define K_RAW         0x00
     1044+# define K_XLATE       0x01
     1045+# define K_MEDIUMRAW   0x02
     1046+# define K_UNICODE     0x03
     1047+
     1048+# define K_SCROLLLOCK  0x01
     1049+# define K_NUMLOCK     0x02
     1050+# define K_CAPSLOCK    0x04
     1051+
     1052+/* for KD_GETLED/KD_SETLED */
     1053+# define LED_SCR       0x01
     1054+# define LED_NUM       0x02
     1055+# define LED_CAP       0x04
     1056+
     1057+/* for KDGETMODE/KDSETMODE */
     1058+# define KD_TEXT       0x00
     1059+# define KD_GRAPHICS   0x01
     1060+# define KD_TEXT0      0x02
     1061+# define KD_TEXT1      0x03
     1062+
     1063+#endif /* !LIBC_KERNEL_NETBSD_SYS_KD_H */
     1064diff -Naur libc-0.0.5/include/kernel/netbsd/sys/project.conf libc-0.0.5.new/include/kernel/netbsd/sys/project.conf
     1065--- libc-0.0.5/include/kernel/netbsd/sys/project.conf   2009-12-29 06:20:41.000000000 +0100
     1066+++ libc-0.0.5.new/include/kernel/netbsd/sys/project.conf       2011-02-26 22:02:23.000000000 +0100
     1067@@ -1,9 +1,12 @@
     1068-includes=ioctl.h,mman.h,mount.h,reboot.h,resource.h,select.h,shm.h,stat.h,time.h,times.h,types.h,utsname.h,vt.h
     1069+includes=ioctl.h,kd.h,mman.h,mount.h,reboot.h,resource.h,select.h,shm.h,stat.h,time.h,times.h,types.h,utsname.h,vt.h
     1070 dist=Makefile
     1071 
     1072 [ioctl.h]
     1073 install=$(INCLUDEDIR)/kernel/netbsd/sys
     1074 
     1075+[kd.h]
     1076+install=$(INCLUDEDIR)/kernel/netbsd/sys
     1077+
     1078 [mman.h]
     1079 install=$(INCLUDEDIR)/kernel/netbsd/sys
     1080 
     1081diff -Naur libc-0.0.5/include/sys/Makefile libc-0.0.5.new/include/sys/Makefile
     1082--- libc-0.0.5/include/sys/Makefile     2011-02-26 20:12:50.000000000 +0100
     1083+++ libc-0.0.5.new/include/sys/Makefile 2011-02-26 22:06:06.000000000 +0100
     1084@@ -19,6 +19,8 @@
     1085        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
     1086        $(INSTALL) -m 0644 -- ipc.h $(DESTDIR)$(INCLUDEDIR)/sys/ipc.h
     1087        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
     1088+       $(INSTALL) -m 0644 -- kd.h $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
     1089+       $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
     1090        $(INSTALL) -m 0644 -- mman.h $(DESTDIR)$(INCLUDEDIR)/sys/mman.h
     1091        $(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
     1092        $(INSTALL) -m 0644 -- mount.h $(DESTDIR)$(INCLUDEDIR)/sys/mount.h
     1093@@ -54,6 +56,7 @@
     1094 uninstall:
     1095        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/ioctl.h
     1096        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/ipc.h
     1097+       $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/kd.h
     1098        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/mman.h
     1099        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/mount.h
     1100        $(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/param.h
     1101diff -Naur libc-0.0.5/include/sys/kd.h libc-0.0.5.new/include/sys/kd.h
     1102--- libc-0.0.5/include/sys/kd.h 1970-01-01 01:00:00.000000000 +0100
     1103+++ libc-0.0.5.new/include/sys/kd.h     2011-02-26 22:06:49.000000000 +0100
     1104@@ -0,0 +1,23 @@
     1105+/* $Id$ */
     1106+/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
     1107+/* This file is part of DeforaOS System libc */
     1108+/* This program is free software: you can redistribute it and/or modify
     1109+ * it under the terms of the GNU General Public License as published by
     1110+ * the Free Software Foundation, version 3 of the License.
     1111+ *
     1112+ * This program is distributed in the hope that it will be useful,
     1113+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
     1114+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     1115+ * GNU General Public License for more details.
     1116+ *
     1117+ * You should have received a copy of the GNU General Public License
     1118+ * along with this program.  If not, see <http://www.gnu.org/licenses/>. */
     1119+
     1120+
     1121+
     1122+#ifndef LIBC_SYS_KD_H
     1123+# define LIBC_SYS_KD_H
     1124+
     1125+# include "compat/sys/kd.h"
     1126+
     1127+#endif /* !LIBC_SYS_KD_H */
     1128diff -Naur libc-0.0.5/include/sys/project.conf libc-0.0.5.new/include/sys/project.conf
     1129--- libc-0.0.5/include/sys/project.conf 2010-04-18 02:47:29.000000000 +0200
     1130+++ libc-0.0.5.new/include/sys/project.conf     2011-02-26 22:05:48.000000000 +0100
     1131@@ -1,4 +1,4 @@
     1132-includes=ioctl.h,ipc.h,mman.h,mount.h,param.h,reboot.h,resource.h,select.h,shm.h,stat.h,statvfs.h,time.h,times.h,types.h,uio.h,utsname.h,vt.h,wait.h
     1133+includes=ioctl.h,ipc.h,kd.h,mman.h,mount.h,param.h,reboot.h,resource.h,select.h,shm.h,stat.h,statvfs.h,time.h,times.h,types.h,uio.h,utsname.h,vt.h,wait.h
     1134 dist=Makefile
     1135 
     1136 [ioctl.h]
     1137@@ -7,6 +7,9 @@
     1138 [ipc.h]
     1139 install=$(INCLUDEDIR)/sys
     1140 
     1141+[kd.h]
     1142+install=$(INCLUDEDIR)/sys
     1143+
     1144 [mman.h]
     1145 install=$(INCLUDEDIR)/sys
     1146 
Note: See TracChangeset for help on using the changeset viewer.