summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:14:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:14:12 +0000
commit42c9f525369ba06742d53d7a89ad00153b317de6 (patch)
tree384ccc4bd211f66950ae1b72bf7b3188c58c4d56 /libc
parent12c4a2b9298f6bb4320509b8bb21ba0aa2d4392d (diff)
Add files for IMA. Yes, I know it's a hack and no, I won't split the affected files
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/accept.c8
-rw-r--r--libc/inet/bind.c8
-rw-r--r--libc/inet/closenameservers.c8
-rw-r--r--libc/inet/connect.c8
-rw-r--r--libc/inet/decodea.c8
-rw-r--r--libc/inet/decoded.c8
-rw-r--r--libc/inet/decodeh.c8
-rw-r--r--libc/inet/decodep.c8
-rw-r--r--libc/inet/decodeq.c8
-rw-r--r--libc/inet/dnslookup.c8
-rw-r--r--libc/inet/encodea.c8
-rw-r--r--libc/inet/encoded.c8
-rw-r--r--libc/inet/encodeh.c8
-rw-r--r--libc/inet/encodep.c8
-rw-r--r--libc/inet/encodeq.c8
-rw-r--r--libc/inet/formquery.c8
-rw-r--r--libc/inet/get_hosts_byaddr_r.c8
-rw-r--r--libc/inet/get_hosts_byname_r.c8
-rw-r--r--libc/inet/gethostbyaddr.c8
-rw-r--r--libc/inet/gethostbyaddr_r.c8
-rw-r--r--libc/inet/gethostbyname.c8
-rw-r--r--libc/inet/gethostbyname2.c8
-rw-r--r--libc/inet/gethostbyname2_r.c8
-rw-r--r--libc/inet/gethostbyname_r.c8
-rw-r--r--libc/inet/gethostent.c8
-rw-r--r--libc/inet/getnameinfo.c8
-rw-r--r--libc/inet/getpeername.c8
-rw-r--r--libc/inet/getsockname.c8
-rw-r--r--libc/inet/getsockopt.c8
-rw-r--r--libc/inet/inet_addr.c8
-rw-r--r--libc/inet/inet_aton.c8
-rw-r--r--libc/inet/inet_lnaof.c8
-rw-r--r--libc/inet/inet_makeaddr.c8
-rw-r--r--libc/inet/inet_netof.c8
-rw-r--r--libc/inet/inet_ntoa.c8
-rw-r--r--libc/inet/lengthd.c8
-rw-r--r--libc/inet/lengthq.c8
-rw-r--r--libc/inet/listen.c8
-rw-r--r--libc/inet/ns_name.c8
-rw-r--r--libc/inet/opennameservers.c8
-rw-r--r--libc/inet/read_etc_hosts_r.c8
-rw-r--r--libc/inet/recv.c8
-rw-r--r--libc/inet/recvfrom.c8
-rw-r--r--libc/inet/recvmsg.c8
-rw-r--r--libc/inet/res_comp.c8
-rw-r--r--libc/inet/res_init.c8
-rw-r--r--libc/inet/res_query.c8
-rw-r--r--libc/inet/resolveaddress.c8
-rw-r--r--libc/inet/resolvename.c8
-rw-r--r--libc/inet/send.c8
-rw-r--r--libc/inet/sendmsg.c8
-rw-r--r--libc/inet/sendto.c8
-rw-r--r--libc/inet/setsockopt.c8
-rw-r--r--libc/inet/shutdown.c8
-rw-r--r--libc/inet/socket.c8
-rw-r--r--libc/inet/socketpair.c8
-rw-r--r--libc/misc/ctype/__C_ctype_b.c8
-rw-r--r--libc/misc/ctype/__C_ctype_tolower.c8
-rw-r--r--libc/misc/ctype/__C_ctype_toupper.c8
-rw-r--r--libc/misc/ctype/__ctype_assert.c8
-rw-r--r--libc/misc/ctype/__ctype_b_loc.c8
-rw-r--r--libc/misc/ctype/__ctype_tolower_loc.c8
-rw-r--r--libc/misc/ctype/__ctype_toupper_loc.c8
-rw-r--r--libc/misc/ctype/isalnum.c8
-rw-r--r--libc/misc/ctype/isalnum_l.c9
-rw-r--r--libc/misc/ctype/isalpha.c8
-rw-r--r--libc/misc/ctype/isalpha_l.c9
-rw-r--r--libc/misc/ctype/isascii.c8
-rw-r--r--libc/misc/ctype/isascii_l.c9
-rw-r--r--libc/misc/ctype/isblank.c8
-rw-r--r--libc/misc/ctype/isblank_l.c9
-rw-r--r--libc/misc/ctype/iscntrl.c8
-rw-r--r--libc/misc/ctype/iscntrl_l.c9
-rw-r--r--libc/misc/ctype/isctype.c8
-rw-r--r--libc/misc/ctype/isdigit.c8
-rw-r--r--libc/misc/ctype/isdigit_l.c9
-rw-r--r--libc/misc/ctype/isgraph.c8
-rw-r--r--libc/misc/ctype/isgraph_l.c9
-rw-r--r--libc/misc/ctype/islower.c8
-rw-r--r--libc/misc/ctype/islower_l.c9
-rw-r--r--libc/misc/ctype/isprint.c8
-rw-r--r--libc/misc/ctype/isprint_l.c9
-rw-r--r--libc/misc/ctype/ispunct.c8
-rw-r--r--libc/misc/ctype/ispunct_l.c9
-rw-r--r--libc/misc/ctype/isspace.c8
-rw-r--r--libc/misc/ctype/isspace_l.c9
-rw-r--r--libc/misc/ctype/isupper.c8
-rw-r--r--libc/misc/ctype/isupper_l.c9
-rw-r--r--libc/misc/ctype/isxdigit.c8
-rw-r--r--libc/misc/ctype/isxdigit_l.c9
-rw-r--r--libc/misc/ctype/toascii.c8
-rw-r--r--libc/misc/ctype/toascii_l.c9
-rw-r--r--libc/misc/ctype/tolower.c8
-rw-r--r--libc/misc/ctype/tolower_l.c9
-rw-r--r--libc/misc/ctype/toupper.c8
-rw-r--r--libc/misc/ctype/toupper_l.c9
-rw-r--r--libc/misc/locale/__curlocale.c9
-rw-r--r--libc/misc/locale/__locale_mbrtowc_l.c8
-rw-r--r--libc/misc/locale/_locale_init.c8
-rw-r--r--libc/misc/locale/duplocale.c9
-rw-r--r--libc/misc/locale/freelocale.c9
-rw-r--r--libc/misc/locale/localeconv.c8
-rw-r--r--libc/misc/locale/newlocale.c8
-rw-r--r--libc/misc/locale/nl_langinfo.c8
-rw-r--r--libc/misc/locale/nl_langinfo_l.c9
-rw-r--r--libc/misc/locale/setlocale.c8
-rw-r--r--libc/misc/locale/uselocale.c9
-rw-r--r--libc/misc/search/hcreate_r.c8
-rw-r--r--libc/misc/search/hdestroy_r.c8
-rw-r--r--libc/misc/search/hsearch_r.c8
-rw-r--r--libc/misc/search/insque.c8
-rw-r--r--libc/misc/search/lfind.c8
-rw-r--r--libc/misc/search/lsearch.c8
-rw-r--r--libc/misc/search/remque.c8
-rw-r--r--libc/misc/search/tdelete.c8
-rw-r--r--libc/misc/search/tdestroy.c8
-rw-r--r--libc/misc/search/tfind.c8
-rw-r--r--libc/misc/search/tsearch.c8
-rw-r--r--libc/misc/search/twalk.c8
-rw-r--r--libc/misc/sysvipc/msgctl.c8
-rw-r--r--libc/misc/sysvipc/msgget.c8
-rw-r--r--libc/misc/sysvipc/msgrcv.c8
-rw-r--r--libc/misc/sysvipc/msgsnd.c8
-rw-r--r--libc/misc/sysvipc/semctl.c8
-rw-r--r--libc/misc/sysvipc/semget.c8
-rw-r--r--libc/misc/sysvipc/semop.c8
-rw-r--r--libc/misc/sysvipc/shmat.c8
-rw-r--r--libc/misc/sysvipc/shmctl.c8
-rw-r--r--libc/misc/sysvipc/shmdt.c8
-rw-r--r--libc/misc/sysvipc/shmget.c8
-rw-r--r--libc/misc/time/__time_tm.c8
-rw-r--r--libc/misc/time/_time_localtime_tzi.c8
-rw-r--r--libc/misc/time/_time_mktime.c8
-rw-r--r--libc/misc/time/_time_mktime_tzi.c8
-rw-r--r--libc/misc/time/_time_t2tm.c8
-rw-r--r--libc/misc/time/asctime.c8
-rw-r--r--libc/misc/time/asctime_r.c8
-rw-r--r--libc/misc/time/clock.c8
-rw-r--r--libc/misc/time/ctime.c8
-rw-r--r--libc/misc/time/ctime_r.c8
-rw-r--r--libc/misc/time/difftime.c8
-rw-r--r--libc/misc/time/dysize.c8
-rw-r--r--libc/misc/time/gmtime.c8
-rw-r--r--libc/misc/time/gmtime_r.c8
-rw-r--r--libc/misc/time/localtime.c8
-rw-r--r--libc/misc/time/localtime_r.c8
-rw-r--r--libc/misc/time/mktime.c8
-rw-r--r--libc/misc/time/strftime.c8
-rw-r--r--libc/misc/time/strftime_l.c9
-rw-r--r--libc/misc/time/strptime.c8
-rw-r--r--libc/misc/time/strptime_l.c9
-rw-r--r--libc/misc/time/timegm.c8
-rw-r--r--libc/misc/time/tzset.c8
-rw-r--r--libc/misc/time/wcsftime.c8
-rw-r--r--libc/misc/time/wcsftime_l.c9
-rw-r--r--libc/misc/wchar/_wchar_utf8sntowcs.c8
-rw-r--r--libc/misc/wchar/_wchar_wcsntoutf8s.c8
-rw-r--r--libc/misc/wchar/btowc.c8
-rw-r--r--libc/misc/wchar/iconv.c8
-rw-r--r--libc/misc/wchar/mbrlen.c8
-rw-r--r--libc/misc/wchar/mbrtowc.c8
-rw-r--r--libc/misc/wchar/mbsinit.c8
-rw-r--r--libc/misc/wchar/mbsnrtowcs.c8
-rw-r--r--libc/misc/wchar/mbsrtowcs.c8
-rw-r--r--libc/misc/wchar/wcrtomb.c8
-rw-r--r--libc/misc/wchar/wcsnrtombs.c8
-rw-r--r--libc/misc/wchar/wcsrtombs.c8
-rw-r--r--libc/misc/wchar/wcswidth.c8
-rw-r--r--libc/misc/wchar/wctob.c8
-rw-r--r--libc/misc/wchar/wcwidth.c8
-rw-r--r--libc/misc/wctype/iswalnum.c8
-rw-r--r--libc/misc/wctype/iswalnum_l.c9
-rw-r--r--libc/misc/wctype/iswalpha.c8
-rw-r--r--libc/misc/wctype/iswalpha_l.c9
-rw-r--r--libc/misc/wctype/iswblank.c8
-rw-r--r--libc/misc/wctype/iswblank_l.c9
-rw-r--r--libc/misc/wctype/iswcntrl.c8
-rw-r--r--libc/misc/wctype/iswcntrl_l.c9
-rw-r--r--libc/misc/wctype/iswctype.c8
-rw-r--r--libc/misc/wctype/iswctype_l.c9
-rw-r--r--libc/misc/wctype/iswdigit.c8
-rw-r--r--libc/misc/wctype/iswdigit_l.c9
-rw-r--r--libc/misc/wctype/iswgraph.c8
-rw-r--r--libc/misc/wctype/iswgraph_l.c9
-rw-r--r--libc/misc/wctype/iswlower.c8
-rw-r--r--libc/misc/wctype/iswlower_l.c9
-rw-r--r--libc/misc/wctype/iswprint.c8
-rw-r--r--libc/misc/wctype/iswprint_l.c9
-rw-r--r--libc/misc/wctype/iswpunct.c8
-rw-r--r--libc/misc/wctype/iswpunct_l.c9
-rw-r--r--libc/misc/wctype/iswspace.c8
-rw-r--r--libc/misc/wctype/iswspace_l.c9
-rw-r--r--libc/misc/wctype/iswupper.c8
-rw-r--r--libc/misc/wctype/iswupper_l.c9
-rw-r--r--libc/misc/wctype/iswxdigit.c8
-rw-r--r--libc/misc/wctype/iswxdigit_l.c9
-rw-r--r--libc/misc/wctype/towctrans.c8
-rw-r--r--libc/misc/wctype/towctrans_l.c9
-rw-r--r--libc/misc/wctype/towlower.c8
-rw-r--r--libc/misc/wctype/towlower_l.c9
-rw-r--r--libc/misc/wctype/towupper.c8
-rw-r--r--libc/misc/wctype/towupper_l.c9
-rw-r--r--libc/misc/wctype/wctrans.c8
-rw-r--r--libc/misc/wctype/wctrans_l.c9
-rw-r--r--libc/misc/wctype/wctype.c8
-rw-r--r--libc/misc/wctype/wctype_l.c9
-rw-r--r--libc/pwd_grp/__parsegrent.c8
-rw-r--r--libc/pwd_grp/__parsepwent.c8
-rw-r--r--libc/pwd_grp/__parsespent.c8
-rw-r--r--libc/pwd_grp/__pgsreader.c8
-rw-r--r--libc/pwd_grp/fgetgrent.c8
-rw-r--r--libc/pwd_grp/fgetgrent_r.c8
-rw-r--r--libc/pwd_grp/fgetpwent.c8
-rw-r--r--libc/pwd_grp/fgetpwent_r.c8
-rw-r--r--libc/pwd_grp/fgetspent.c8
-rw-r--r--libc/pwd_grp/fgetspent_r.c8
-rw-r--r--libc/pwd_grp/getgrent.c8
-rw-r--r--libc/pwd_grp/getgrent_r.c12
-rw-r--r--libc/pwd_grp/getgrgid.c8
-rw-r--r--libc/pwd_grp/getgrgid_r.c8
-rw-r--r--libc/pwd_grp/getgrnam.c8
-rw-r--r--libc/pwd_grp/getgrnam_r.c8
-rw-r--r--libc/pwd_grp/getpw.c12
-rw-r--r--libc/pwd_grp/getpwent.c8
-rw-r--r--libc/pwd_grp/getpwent_r.c8
-rw-r--r--libc/pwd_grp/getpwnam.c8
-rw-r--r--libc/pwd_grp/getpwnam_r.c8
-rw-r--r--libc/pwd_grp/getpwuid.c8
-rw-r--r--libc/pwd_grp/getpwuid_r.c8
-rw-r--r--libc/pwd_grp/getspent.c8
-rw-r--r--libc/pwd_grp/getspent_r.c8
-rw-r--r--libc/pwd_grp/getspnam.c8
-rw-r--r--libc/pwd_grp/getspnam_r.c8
-rw-r--r--libc/pwd_grp/initgroups.c8
-rw-r--r--libc/pwd_grp/putgrent.c12
-rw-r--r--libc/pwd_grp/putpwent.c8
-rw-r--r--libc/pwd_grp/putspent.c8
-rw-r--r--libc/pwd_grp/sgetspent.c8
-rw-r--r--libc/pwd_grp/sgetspent_r.c8
-rw-r--r--libc/stdio/__psfs_do_numeric.c9
-rw-r--r--libc/stdio/__psfs_parse_spec.c9
-rw-r--r--libc/stdio/__scan_cookie.c9
-rw-r--r--libc/stdio/_ppfs_init.c9
-rw-r--r--libc/stdio/_ppfs_parsespec.c9
-rw-r--r--libc/stdio/_ppfs_prepargs.c9
-rw-r--r--libc/stdio/_ppfs_setargs.c9
-rw-r--r--libc/stdio/clearerr_unlocked.c9
-rw-r--r--libc/stdio/feof_unlocked.c9
-rw-r--r--libc/stdio/ferror_unlocked.c9
-rw-r--r--libc/stdio/fflush_unlocked.c9
-rw-r--r--libc/stdio/fgetc_unlocked.c9
-rw-r--r--libc/stdio/fgets_unlocked.c14
-rw-r--r--libc/stdio/fgetwc_unlocked.c9
-rw-r--r--libc/stdio/fgetws_unlocked.c9
-rw-r--r--libc/stdio/fileno_unlocked.c9
-rw-r--r--libc/stdio/fputc_unlocked.c9
-rw-r--r--libc/stdio/fputs_unlocked.c14
-rw-r--r--libc/stdio/fputwc_unlocked.c9
-rw-r--r--libc/stdio/fputws_unlocked.c9
-rw-r--r--libc/stdio/fread_unlocked.c9
-rw-r--r--libc/stdio/fscanf.c9
-rw-r--r--libc/stdio/fwrite_unlocked.c9
-rw-r--r--libc/stdio/fwscanf.c9
-rw-r--r--libc/stdio/getchar_unlocked.c9
-rw-r--r--libc/stdio/getwchar_unlocked.c9
-rw-r--r--libc/stdio/parse_printf_format.c9
-rw-r--r--libc/stdio/putchar_unlocked.c9
-rw-r--r--libc/stdio/putwchar_unlocked.c9
-rw-r--r--libc/stdio/register_printf_function.c9
-rw-r--r--libc/stdio/scanf.c9
-rw-r--r--libc/stdio/sscanf.c9
-rw-r--r--libc/stdio/swscanf.c9
-rw-r--r--libc/stdio/vfprintf.c9
-rw-r--r--libc/stdio/vfscanf.c9
-rw-r--r--libc/stdio/vfwprintf.c9
-rw-r--r--libc/stdio/vfwscanf.c9
-rw-r--r--libc/stdio/vscanf.c9
-rw-r--r--libc/stdio/vsscanf.c9
-rw-r--r--libc/stdio/vswscanf.c9
-rw-r--r--libc/stdio/vwscanf.c9
-rw-r--r--libc/stdio/wscanf.c9
-rw-r--r--libc/stdlib/__cxa_atexit.c8
-rw-r--r--libc/stdlib/__cxa_finalize.c8
-rw-r--r--libc/stdlib/__exit_handler.c8
-rw-r--r--libc/stdlib/__fp_range_check.c8
-rw-r--r--libc/stdlib/__strtofpmax.c8
-rw-r--r--libc/stdlib/__strtofpmax_l.c9
-rw-r--r--libc/stdlib/__wcstofpmax.c8
-rw-r--r--libc/stdlib/__wcstofpmax_l.c9
-rw-r--r--libc/stdlib/_stdlib_mb_cur_max.c7
-rw-r--r--libc/stdlib/_stdlib_strto_l.c7
-rw-r--r--libc/stdlib/_stdlib_strto_l_l.c8
-rw-r--r--libc/stdlib/_stdlib_strto_ll.c7
-rw-r--r--libc/stdlib/_stdlib_strto_ll_l.c8
-rw-r--r--libc/stdlib/_stdlib_wcsto_l.c7
-rw-r--r--libc/stdlib/_stdlib_wcsto_l_l.c8
-rw-r--r--libc/stdlib/_stdlib_wcsto_ll.c7
-rw-r--r--libc/stdlib/_stdlib_wcsto_ll_l.c8
-rw-r--r--libc/stdlib/abs.c7
-rw-r--r--libc/stdlib/atexit.c8
-rw-r--r--libc/stdlib/atof.c7
-rw-r--r--libc/stdlib/atoi.c7
-rw-r--r--libc/stdlib/atol.c7
-rw-r--r--libc/stdlib/atoll.c7
-rw-r--r--libc/stdlib/bsearch.c7
-rw-r--r--libc/stdlib/exit.c8
-rw-r--r--libc/stdlib/labs.c7
-rw-r--r--libc/stdlib/llabs.c7
-rw-r--r--libc/stdlib/malloc-simple/calloc.c8
-rw-r--r--libc/stdlib/malloc-simple/free.c8
-rw-r--r--libc/stdlib/malloc-simple/malloc.c8
-rw-r--r--libc/stdlib/malloc-simple/memalign.c8
-rw-r--r--libc/stdlib/malloc-simple/realloc.c8
-rw-r--r--libc/stdlib/mblen.c7
-rw-r--r--libc/stdlib/mbstowcs.c7
-rw-r--r--libc/stdlib/mbtowc.c7
-rw-r--r--libc/stdlib/old_atexit.c8
-rw-r--r--libc/stdlib/on_exit.c8
-rw-r--r--libc/stdlib/qsort.c7
-rw-r--r--libc/stdlib/strtod.c8
-rw-r--r--libc/stdlib/strtod_l.c9
-rw-r--r--libc/stdlib/strtof.c8
-rw-r--r--libc/stdlib/strtof_l.c9
-rw-r--r--libc/stdlib/strtol.c7
-rw-r--r--libc/stdlib/strtol_l.c8
-rw-r--r--libc/stdlib/strtold.c8
-rw-r--r--libc/stdlib/strtold_l.c9
-rw-r--r--libc/stdlib/strtoll.c7
-rw-r--r--libc/stdlib/strtoll_l.c8
-rw-r--r--libc/stdlib/strtoul.c7
-rw-r--r--libc/stdlib/strtoul_l.c8
-rw-r--r--libc/stdlib/strtoull.c7
-rw-r--r--libc/stdlib/strtoull_l.c8
-rw-r--r--libc/stdlib/wcstod.c8
-rw-r--r--libc/stdlib/wcstod_l.c9
-rw-r--r--libc/stdlib/wcstof.c8
-rw-r--r--libc/stdlib/wcstof_l.c9
-rw-r--r--libc/stdlib/wcstol.c7
-rw-r--r--libc/stdlib/wcstol_l.c8
-rw-r--r--libc/stdlib/wcstold.c8
-rw-r--r--libc/stdlib/wcstold_l.c9
-rw-r--r--libc/stdlib/wcstoll.c7
-rw-r--r--libc/stdlib/wcstoll_l.c8
-rw-r--r--libc/stdlib/wcstombs.c7
-rw-r--r--libc/stdlib/wcstoul.c7
-rw-r--r--libc/stdlib/wcstoul_l.c8
-rw-r--r--libc/stdlib/wcstoull.c7
-rw-r--r--libc/stdlib/wcstoull_l.c8
-rw-r--r--libc/stdlib/wctomb.c7
-rw-r--r--libc/unistd/__exec_alloc.c8
-rw-r--r--libc/unistd/execl.c8
-rw-r--r--libc/unistd/execle.c8
-rw-r--r--libc/unistd/execlp.c8
-rw-r--r--libc/unistd/execv.c8
-rw-r--r--libc/unistd/execvp.c8
355 files changed, 2927 insertions, 0 deletions
diff --git a/libc/inet/accept.c b/libc/inet/accept.c
new file mode 100644
index 000000000..0217a6876
--- /dev/null
+++ b/libc/inet/accept.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_accept
+#include "socketcalls.c"
diff --git a/libc/inet/bind.c b/libc/inet/bind.c
new file mode 100644
index 000000000..d13e2262e
--- /dev/null
+++ b/libc/inet/bind.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_bind
+#include "socketcalls.c"
diff --git a/libc/inet/closenameservers.c b/libc/inet/closenameservers.c
new file mode 100644
index 000000000..ca4dae3fb
--- /dev/null
+++ b/libc/inet/closenameservers.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_closenameservers
+#include "resolv.c"
diff --git a/libc/inet/connect.c b/libc/inet/connect.c
new file mode 100644
index 000000000..bddbe16e6
--- /dev/null
+++ b/libc/inet/connect.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_connect
+#include "socketcalls.c"
diff --git a/libc/inet/decodea.c b/libc/inet/decodea.c
new file mode 100644
index 000000000..409a97843
--- /dev/null
+++ b/libc/inet/decodea.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_decodea
+#include "resolv.c"
diff --git a/libc/inet/decoded.c b/libc/inet/decoded.c
new file mode 100644
index 000000000..73849ef5f
--- /dev/null
+++ b/libc/inet/decoded.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_decoded
+#include "resolv.c"
diff --git a/libc/inet/decodeh.c b/libc/inet/decodeh.c
new file mode 100644
index 000000000..86681fa88
--- /dev/null
+++ b/libc/inet/decodeh.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_decodeh
+#include "resolv.c"
diff --git a/libc/inet/decodep.c b/libc/inet/decodep.c
new file mode 100644
index 000000000..40b0bda0d
--- /dev/null
+++ b/libc/inet/decodep.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_decodep
+#include "resolv.c"
diff --git a/libc/inet/decodeq.c b/libc/inet/decodeq.c
new file mode 100644
index 000000000..a6109677e
--- /dev/null
+++ b/libc/inet/decodeq.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_decodeq
+#include "resolv.c"
diff --git a/libc/inet/dnslookup.c b/libc/inet/dnslookup.c
new file mode 100644
index 000000000..4ffc34f0a
--- /dev/null
+++ b/libc/inet/dnslookup.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_dnslookup
+#include "resolv.c"
diff --git a/libc/inet/encodea.c b/libc/inet/encodea.c
new file mode 100644
index 000000000..628f9bad5
--- /dev/null
+++ b/libc/inet/encodea.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_encodea
+#include "resolv.c"
diff --git a/libc/inet/encoded.c b/libc/inet/encoded.c
new file mode 100644
index 000000000..d60618771
--- /dev/null
+++ b/libc/inet/encoded.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_encoded
+#include "resolv.c"
diff --git a/libc/inet/encodeh.c b/libc/inet/encodeh.c
new file mode 100644
index 000000000..1d5488017
--- /dev/null
+++ b/libc/inet/encodeh.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_encodeh
+#include "resolv.c"
diff --git a/libc/inet/encodep.c b/libc/inet/encodep.c
new file mode 100644
index 000000000..d2f248b40
--- /dev/null
+++ b/libc/inet/encodep.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_encodep
+#include "resolv.c"
diff --git a/libc/inet/encodeq.c b/libc/inet/encodeq.c
new file mode 100644
index 000000000..be1a3123b
--- /dev/null
+++ b/libc/inet/encodeq.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_encodeq
+#include "resolv.c"
diff --git a/libc/inet/formquery.c b/libc/inet/formquery.c
new file mode 100644
index 000000000..2c53e33de
--- /dev/null
+++ b/libc/inet/formquery.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_formquery
+#include "resolv.c"
diff --git a/libc/inet/get_hosts_byaddr_r.c b/libc/inet/get_hosts_byaddr_r.c
new file mode 100644
index 000000000..c377aec13
--- /dev/null
+++ b/libc/inet/get_hosts_byaddr_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_get_hosts_byaddr_r
+#include "resolv.c"
diff --git a/libc/inet/get_hosts_byname_r.c b/libc/inet/get_hosts_byname_r.c
new file mode 100644
index 000000000..7ad1e3fa5
--- /dev/null
+++ b/libc/inet/get_hosts_byname_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_get_hosts_byname_r
+#include "resolv.c"
diff --git a/libc/inet/gethostbyaddr.c b/libc/inet/gethostbyaddr.c
new file mode 100644
index 000000000..ae8a543e5
--- /dev/null
+++ b/libc/inet/gethostbyaddr.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyaddr
+#include "resolv.c"
diff --git a/libc/inet/gethostbyaddr_r.c b/libc/inet/gethostbyaddr_r.c
new file mode 100644
index 000000000..6235c82e1
--- /dev/null
+++ b/libc/inet/gethostbyaddr_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyaddr_r
+#include "resolv.c"
diff --git a/libc/inet/gethostbyname.c b/libc/inet/gethostbyname.c
new file mode 100644
index 000000000..3d46ab015
--- /dev/null
+++ b/libc/inet/gethostbyname.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyname
+#include "resolv.c"
diff --git a/libc/inet/gethostbyname2.c b/libc/inet/gethostbyname2.c
new file mode 100644
index 000000000..685801642
--- /dev/null
+++ b/libc/inet/gethostbyname2.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyname2
+#include "resolv.c"
diff --git a/libc/inet/gethostbyname2_r.c b/libc/inet/gethostbyname2_r.c
new file mode 100644
index 000000000..06d058ae7
--- /dev/null
+++ b/libc/inet/gethostbyname2_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyname2_r
+#include "resolv.c"
diff --git a/libc/inet/gethostbyname_r.c b/libc/inet/gethostbyname_r.c
new file mode 100644
index 000000000..fc9e56da5
--- /dev/null
+++ b/libc/inet/gethostbyname_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostbyname_r
+#include "resolv.c"
diff --git a/libc/inet/gethostent.c b/libc/inet/gethostent.c
new file mode 100644
index 000000000..16133c0e4
--- /dev/null
+++ b/libc/inet/gethostent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gethostent
+#include "resolv.c"
diff --git a/libc/inet/getnameinfo.c b/libc/inet/getnameinfo.c
new file mode 100644
index 000000000..fbfd3ede1
--- /dev/null
+++ b/libc/inet/getnameinfo.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getnameinfo
+#include "resolv.c"
diff --git a/libc/inet/getpeername.c b/libc/inet/getpeername.c
new file mode 100644
index 000000000..74825a7b2
--- /dev/null
+++ b/libc/inet/getpeername.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpeername
+#include "socketcalls.c"
diff --git a/libc/inet/getsockname.c b/libc/inet/getsockname.c
new file mode 100644
index 000000000..4a4d6a135
--- /dev/null
+++ b/libc/inet/getsockname.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getsockname
+#include "socketcalls.c"
diff --git a/libc/inet/getsockopt.c b/libc/inet/getsockopt.c
new file mode 100644
index 000000000..48f72e999
--- /dev/null
+++ b/libc/inet/getsockopt.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getsockopt
+#include "socketcalls.c"
diff --git a/libc/inet/inet_addr.c b/libc/inet/inet_addr.c
new file mode 100644
index 000000000..445f850a1
--- /dev/null
+++ b/libc/inet/inet_addr.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_makeaddr
+#include "addr.c"
diff --git a/libc/inet/inet_aton.c b/libc/inet/inet_aton.c
new file mode 100644
index 000000000..d79ba07b0
--- /dev/null
+++ b/libc/inet/inet_aton.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_aton
+#include "addr.c"
diff --git a/libc/inet/inet_lnaof.c b/libc/inet/inet_lnaof.c
new file mode 100644
index 000000000..9887a4342
--- /dev/null
+++ b/libc/inet/inet_lnaof.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_lnaof
+#include "addr.c"
diff --git a/libc/inet/inet_makeaddr.c b/libc/inet/inet_makeaddr.c
new file mode 100644
index 000000000..9f946967c
--- /dev/null
+++ b/libc/inet/inet_makeaddr.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_addr
+#include "addr.c"
diff --git a/libc/inet/inet_netof.c b/libc/inet/inet_netof.c
new file mode 100644
index 000000000..045c120c9
--- /dev/null
+++ b/libc/inet/inet_netof.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_netof
+#include "addr.c"
diff --git a/libc/inet/inet_ntoa.c b/libc/inet/inet_ntoa.c
new file mode 100644
index 000000000..83ed13803
--- /dev/null
+++ b/libc/inet/inet_ntoa.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_inet_ntoa
+#include "addr.c"
diff --git a/libc/inet/lengthd.c b/libc/inet/lengthd.c
new file mode 100644
index 000000000..07c7fc6f1
--- /dev/null
+++ b/libc/inet/lengthd.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_lengthd
+#include "resolv.c"
diff --git a/libc/inet/lengthq.c b/libc/inet/lengthq.c
new file mode 100644
index 000000000..e62e6f25a
--- /dev/null
+++ b/libc/inet/lengthq.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_lengthq
+#include "resolv.c"
diff --git a/libc/inet/listen.c b/libc/inet/listen.c
new file mode 100644
index 000000000..32e347895
--- /dev/null
+++ b/libc/inet/listen.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_listen
+#include "socketcalls.c"
diff --git a/libc/inet/ns_name.c b/libc/inet/ns_name.c
new file mode 100644
index 000000000..158a1a331
--- /dev/null
+++ b/libc/inet/ns_name.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ns_name
+#include "resolv.c"
diff --git a/libc/inet/opennameservers.c b/libc/inet/opennameservers.c
new file mode 100644
index 000000000..effd10800
--- /dev/null
+++ b/libc/inet/opennameservers.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_opennameservers
+#include "resolv.c"
diff --git a/libc/inet/read_etc_hosts_r.c b/libc/inet/read_etc_hosts_r.c
new file mode 100644
index 000000000..6504e541f
--- /dev/null
+++ b/libc/inet/read_etc_hosts_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_read_etc_hosts_r
+#include "resolv.c"
diff --git a/libc/inet/recv.c b/libc/inet/recv.c
new file mode 100644
index 000000000..1c77ce323
--- /dev/null
+++ b/libc/inet/recv.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_recv
+#include "socketcalls.c"
diff --git a/libc/inet/recvfrom.c b/libc/inet/recvfrom.c
new file mode 100644
index 000000000..ec683f6c8
--- /dev/null
+++ b/libc/inet/recvfrom.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_recvfrom
+#include "socketcalls.c"
diff --git a/libc/inet/recvmsg.c b/libc/inet/recvmsg.c
new file mode 100644
index 000000000..db51d8b03
--- /dev/null
+++ b/libc/inet/recvmsg.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_recvmsg
+#include "socketcalls.c"
diff --git a/libc/inet/res_comp.c b/libc/inet/res_comp.c
new file mode 100644
index 000000000..8aee6b17c
--- /dev/null
+++ b/libc/inet/res_comp.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_res_comp
+#include "resolv.c"
diff --git a/libc/inet/res_init.c b/libc/inet/res_init.c
new file mode 100644
index 000000000..09caf4927
--- /dev/null
+++ b/libc/inet/res_init.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_res_init
+#include "resolv.c"
diff --git a/libc/inet/res_query.c b/libc/inet/res_query.c
new file mode 100644
index 000000000..c662510e6
--- /dev/null
+++ b/libc/inet/res_query.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_res_query
+#include "resolv.c"
diff --git a/libc/inet/resolveaddress.c b/libc/inet/resolveaddress.c
new file mode 100644
index 000000000..d57366c98
--- /dev/null
+++ b/libc/inet/resolveaddress.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_resolveaddress
+#include "resolv.c"
diff --git a/libc/inet/resolvename.c b/libc/inet/resolvename.c
new file mode 100644
index 000000000..157878fd1
--- /dev/null
+++ b/libc/inet/resolvename.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_resolvename
+#include "resolv.c"
diff --git a/libc/inet/send.c b/libc/inet/send.c
new file mode 100644
index 000000000..6b7d44b53
--- /dev/null
+++ b/libc/inet/send.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_send
+#include "socketcalls.c"
diff --git a/libc/inet/sendmsg.c b/libc/inet/sendmsg.c
new file mode 100644
index 000000000..834e83998
--- /dev/null
+++ b/libc/inet/sendmsg.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_sendmsg
+#include "socketcalls.c"
diff --git a/libc/inet/sendto.c b/libc/inet/sendto.c
new file mode 100644
index 000000000..328baa326
--- /dev/null
+++ b/libc/inet/sendto.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_sendto
+#include "socketcalls.c"
diff --git a/libc/inet/setsockopt.c b/libc/inet/setsockopt.c
new file mode 100644
index 000000000..b0f4a4e96
--- /dev/null
+++ b/libc/inet/setsockopt.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_setsockopt
+#include "socketcalls.c"
diff --git a/libc/inet/shutdown.c b/libc/inet/shutdown.c
new file mode 100644
index 000000000..0bcdb9f38
--- /dev/null
+++ b/libc/inet/shutdown.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_shutdown
+#include "socketcalls.c"
diff --git a/libc/inet/socket.c b/libc/inet/socket.c
new file mode 100644
index 000000000..752744b88
--- /dev/null
+++ b/libc/inet/socket.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_socket
+#include "socketcalls.c"
diff --git a/libc/inet/socketpair.c b/libc/inet/socketpair.c
new file mode 100644
index 000000000..f7c435474
--- /dev/null
+++ b/libc/inet/socketpair.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_socketpair
+#include "socketcalls.c"
diff --git a/libc/misc/ctype/__C_ctype_b.c b/libc/misc/ctype/__C_ctype_b.c
new file mode 100644
index 000000000..d22359f33
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_b.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_b
+#include "ctype.c"
diff --git a/libc/misc/ctype/__C_ctype_tolower.c b/libc/misc/ctype/__C_ctype_tolower.c
new file mode 100644
index 000000000..fc6027f51
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_tolower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_tolower
+#include "ctype.c"
diff --git a/libc/misc/ctype/__C_ctype_toupper.c b/libc/misc/ctype/__C_ctype_toupper.c
new file mode 100644
index 000000000..ec42fbfbe
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_toupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_toupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_assert.c b/libc/misc/ctype/__ctype_assert.c
new file mode 100644
index 000000000..fe459458c
--- /dev/null
+++ b/libc/misc/ctype/__ctype_assert.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_assert
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_b_loc.c b/libc/misc/ctype/__ctype_b_loc.c
new file mode 100644
index 000000000..11d504693
--- /dev/null
+++ b/libc/misc/ctype/__ctype_b_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_b_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_tolower_loc.c b/libc/misc/ctype/__ctype_tolower_loc.c
new file mode 100644
index 000000000..54037a598
--- /dev/null
+++ b/libc/misc/ctype/__ctype_tolower_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_tolower_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_toupper_loc.c b/libc/misc/ctype/__ctype_toupper_loc.c
new file mode 100644
index 000000000..e511d0f72
--- /dev/null
+++ b/libc/misc/ctype/__ctype_toupper_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_toupper_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalnum.c b/libc/misc/ctype/isalnum.c
new file mode 100644
index 000000000..8bc8ad6d5
--- /dev/null
+++ b/libc/misc/ctype/isalnum.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalnum
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalnum_l.c b/libc/misc/ctype/isalnum_l.c
new file mode 100644
index 000000000..8ecd9d59b
--- /dev/null
+++ b/libc/misc/ctype/isalnum_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalnum_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalpha.c b/libc/misc/ctype/isalpha.c
new file mode 100644
index 000000000..22f23d92c
--- /dev/null
+++ b/libc/misc/ctype/isalpha.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalpha
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalpha_l.c b/libc/misc/ctype/isalpha_l.c
new file mode 100644
index 000000000..10a2ecfce
--- /dev/null
+++ b/libc/misc/ctype/isalpha_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalpha_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isascii.c b/libc/misc/ctype/isascii.c
new file mode 100644
index 000000000..84f701f8d
--- /dev/null
+++ b/libc/misc/ctype/isascii.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isascii
+#include "ctype.c"
diff --git a/libc/misc/ctype/isascii_l.c b/libc/misc/ctype/isascii_l.c
new file mode 100644
index 000000000..7fe5545b3
--- /dev/null
+++ b/libc/misc/ctype/isascii_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isascii_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isblank.c b/libc/misc/ctype/isblank.c
new file mode 100644
index 000000000..d11fe26cd
--- /dev/null
+++ b/libc/misc/ctype/isblank.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isblank
+#include "ctype.c"
diff --git a/libc/misc/ctype/isblank_l.c b/libc/misc/ctype/isblank_l.c
new file mode 100644
index 000000000..144cd932d
--- /dev/null
+++ b/libc/misc/ctype/isblank_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isblank_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/iscntrl.c b/libc/misc/ctype/iscntrl.c
new file mode 100644
index 000000000..4a0c09d36
--- /dev/null
+++ b/libc/misc/ctype/iscntrl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iscntrl
+#include "ctype.c"
diff --git a/libc/misc/ctype/iscntrl_l.c b/libc/misc/ctype/iscntrl_l.c
new file mode 100644
index 000000000..fbee951c4
--- /dev/null
+++ b/libc/misc/ctype/iscntrl_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iscntrl_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isctype.c b/libc/misc/ctype/isctype.c
new file mode 100644
index 000000000..a2d0b3dd8
--- /dev/null
+++ b/libc/misc/ctype/isctype.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isctype
+#include "ctype.c"
diff --git a/libc/misc/ctype/isdigit.c b/libc/misc/ctype/isdigit.c
new file mode 100644
index 000000000..e185c89d5
--- /dev/null
+++ b/libc/misc/ctype/isdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isdigit
+#include "ctype.c"
diff --git a/libc/misc/ctype/isdigit_l.c b/libc/misc/ctype/isdigit_l.c
new file mode 100644
index 000000000..5b764f12f
--- /dev/null
+++ b/libc/misc/ctype/isdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isgraph.c b/libc/misc/ctype/isgraph.c
new file mode 100644
index 000000000..c4ad1b7b5
--- /dev/null
+++ b/libc/misc/ctype/isgraph.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isgraph
+#include "ctype.c"
diff --git a/libc/misc/ctype/isgraph_l.c b/libc/misc/ctype/isgraph_l.c
new file mode 100644
index 000000000..005e19fc8
--- /dev/null
+++ b/libc/misc/ctype/isgraph_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isgraph_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/islower.c b/libc/misc/ctype/islower.c
new file mode 100644
index 000000000..aff65dd90
--- /dev/null
+++ b/libc/misc/ctype/islower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_islower
+#include "ctype.c"
diff --git a/libc/misc/ctype/islower_l.c b/libc/misc/ctype/islower_l.c
new file mode 100644
index 000000000..dd085578f
--- /dev/null
+++ b/libc/misc/ctype/islower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_islower_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isprint.c b/libc/misc/ctype/isprint.c
new file mode 100644
index 000000000..b6f7d6cc1
--- /dev/null
+++ b/libc/misc/ctype/isprint.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isprint
+#include "ctype.c"
diff --git a/libc/misc/ctype/isprint_l.c b/libc/misc/ctype/isprint_l.c
new file mode 100644
index 000000000..32f9b3f32
--- /dev/null
+++ b/libc/misc/ctype/isprint_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isprint_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/ispunct.c b/libc/misc/ctype/ispunct.c
new file mode 100644
index 000000000..08f7b19ac
--- /dev/null
+++ b/libc/misc/ctype/ispunct.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ispunct
+#include "ctype.c"
diff --git a/libc/misc/ctype/ispunct_l.c b/libc/misc/ctype/ispunct_l.c
new file mode 100644
index 000000000..513bb5238
--- /dev/null
+++ b/libc/misc/ctype/ispunct_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ispunct_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isspace.c b/libc/misc/ctype/isspace.c
new file mode 100644
index 000000000..c8ff56746
--- /dev/null
+++ b/libc/misc/ctype/isspace.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isspace
+#include "ctype.c"
diff --git a/libc/misc/ctype/isspace_l.c b/libc/misc/ctype/isspace_l.c
new file mode 100644
index 000000000..97e0c9921
--- /dev/null
+++ b/libc/misc/ctype/isspace_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isspace_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isupper.c b/libc/misc/ctype/isupper.c
new file mode 100644
index 000000000..36d6e6e96
--- /dev/null
+++ b/libc/misc/ctype/isupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/isupper_l.c b/libc/misc/ctype/isupper_l.c
new file mode 100644
index 000000000..8aa4dbdfa
--- /dev/null
+++ b/libc/misc/ctype/isupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isxdigit.c b/libc/misc/ctype/isxdigit.c
new file mode 100644
index 000000000..40919f7bf
--- /dev/null
+++ b/libc/misc/ctype/isxdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isxdigit
+#include "ctype.c"
diff --git a/libc/misc/ctype/isxdigit_l.c b/libc/misc/ctype/isxdigit_l.c
new file mode 100644
index 000000000..5dce7f1a5
--- /dev/null
+++ b/libc/misc/ctype/isxdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isxdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/toascii.c b/libc/misc/ctype/toascii.c
new file mode 100644
index 000000000..a63b99344
--- /dev/null
+++ b/libc/misc/ctype/toascii.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toascii
+#include "ctype.c"
diff --git a/libc/misc/ctype/toascii_l.c b/libc/misc/ctype/toascii_l.c
new file mode 100644
index 000000000..617952639
--- /dev/null
+++ b/libc/misc/ctype/toascii_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toascii_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/tolower.c b/libc/misc/ctype/tolower.c
new file mode 100644
index 000000000..3673642c4
--- /dev/null
+++ b/libc/misc/ctype/tolower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tolower
+#include "ctype.c"
diff --git a/libc/misc/ctype/tolower_l.c b/libc/misc/ctype/tolower_l.c
new file mode 100644
index 000000000..327e63cae
--- /dev/null
+++ b/libc/misc/ctype/tolower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tolower_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/toupper.c b/libc/misc/ctype/toupper.c
new file mode 100644
index 000000000..a9d8aab6d
--- /dev/null
+++ b/libc/misc/ctype/toupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/toupper_l.c b/libc/misc/ctype/toupper_l.c
new file mode 100644
index 000000000..c91d79151
--- /dev/null
+++ b/libc/misc/ctype/toupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/locale/__curlocale.c b/libc/misc/locale/__curlocale.c
new file mode 100644
index 000000000..aa38f4346
--- /dev/null
+++ b/libc/misc/locale/__curlocale.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___curlocale
+#define __UCLIBC_DO_XLOCALE
+#include "locale.c"
diff --git a/libc/misc/locale/__locale_mbrtowc_l.c b/libc/misc/locale/__locale_mbrtowc_l.c
new file mode 100644
index 000000000..ea7fbceb7
--- /dev/null
+++ b/libc/misc/locale/__locale_mbrtowc_l.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___locale_mbrtowc_l
+#include "locale.c"
diff --git a/libc/misc/locale/_locale_init.c b/libc/misc/locale/_locale_init.c
new file mode 100644
index 000000000..9ced732a7
--- /dev/null
+++ b/libc/misc/locale/_locale_init.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__locale_init
+#include "locale.c"
diff --git a/libc/misc/locale/duplocale.c b/libc/misc/locale/duplocale.c
new file mode 100644
index 000000000..db9c7a3c1
--- /dev/null
+++ b/libc/misc/locale/duplocale.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_duplocale
+#define __UCLIBC_DO_XLOCALE
+#include "locale.c"
diff --git a/libc/misc/locale/freelocale.c b/libc/misc/locale/freelocale.c
new file mode 100644
index 000000000..c1ef8e1ca
--- /dev/null
+++ b/libc/misc/locale/freelocale.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_freelocale
+#define __UCLIBC_DO_XLOCALE
+#include "locale.c"
diff --git a/libc/misc/locale/localeconv.c b/libc/misc/locale/localeconv.c
new file mode 100644
index 000000000..7e67fb249
--- /dev/null
+++ b/libc/misc/locale/localeconv.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_localeconv
+#include "locale.c"
diff --git a/libc/misc/locale/newlocale.c b/libc/misc/locale/newlocale.c
new file mode 100644
index 000000000..a9868849f
--- /dev/null
+++ b/libc/misc/locale/newlocale.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_newlocale
+#include "locale.c"
diff --git a/libc/misc/locale/nl_langinfo.c b/libc/misc/locale/nl_langinfo.c
new file mode 100644
index 000000000..0bc0a002b
--- /dev/null
+++ b/libc/misc/locale/nl_langinfo.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_nl_langinfo
+#include "locale.c"
diff --git a/libc/misc/locale/nl_langinfo_l.c b/libc/misc/locale/nl_langinfo_l.c
new file mode 100644
index 000000000..7205ccab1
--- /dev/null
+++ b/libc/misc/locale/nl_langinfo_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_nl_langinfo_l
+#define __UCLIBC_DO_XLOCALE
+#include "locale.c"
diff --git a/libc/misc/locale/setlocale.c b/libc/misc/locale/setlocale.c
new file mode 100644
index 000000000..1eae88aca
--- /dev/null
+++ b/libc/misc/locale/setlocale.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_setlocale
+#include "locale.c"
diff --git a/libc/misc/locale/uselocale.c b/libc/misc/locale/uselocale.c
new file mode 100644
index 000000000..2aecc5498
--- /dev/null
+++ b/libc/misc/locale/uselocale.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_uselocale
+#define __UCLIBC_DO_XLOCALE
+#include "locale.c"
diff --git a/libc/misc/search/hcreate_r.c b/libc/misc/search/hcreate_r.c
new file mode 100644
index 000000000..b62991e46
--- /dev/null
+++ b/libc/misc/search/hcreate_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_hcreate_r
+#include "_hsearch_r.c"
diff --git a/libc/misc/search/hdestroy_r.c b/libc/misc/search/hdestroy_r.c
new file mode 100644
index 000000000..98e1ddbe7
--- /dev/null
+++ b/libc/misc/search/hdestroy_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_hdestroy_r
+#include "_hsearch_r.c"
diff --git a/libc/misc/search/hsearch_r.c b/libc/misc/search/hsearch_r.c
new file mode 100644
index 000000000..48bdf2d61
--- /dev/null
+++ b/libc/misc/search/hsearch_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_hsearch_r
+#include "_hsearch_r.c"
diff --git a/libc/misc/search/insque.c b/libc/misc/search/insque.c
new file mode 100644
index 000000000..fc5bf807e
--- /dev/null
+++ b/libc/misc/search/insque.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_insque
+#include "insremque.c"
diff --git a/libc/misc/search/lfind.c b/libc/misc/search/lfind.c
new file mode 100644
index 000000000..66111c5a4
--- /dev/null
+++ b/libc/misc/search/lfind.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_lfind
+#include "_lsearch.c"
diff --git a/libc/misc/search/lsearch.c b/libc/misc/search/lsearch.c
new file mode 100644
index 000000000..1e632975f
--- /dev/null
+++ b/libc/misc/search/lsearch.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_lsearch
+#include "_lsearch.c"
diff --git a/libc/misc/search/remque.c b/libc/misc/search/remque.c
new file mode 100644
index 000000000..bab698505
--- /dev/null
+++ b/libc/misc/search/remque.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_remque
+#include "insremque.c"
diff --git a/libc/misc/search/tdelete.c b/libc/misc/search/tdelete.c
new file mode 100644
index 000000000..33d9fe8a6
--- /dev/null
+++ b/libc/misc/search/tdelete.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tdelete
+#include "_tsearch.c"
diff --git a/libc/misc/search/tdestroy.c b/libc/misc/search/tdestroy.c
new file mode 100644
index 000000000..3e397ea8c
--- /dev/null
+++ b/libc/misc/search/tdestroy.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tdestroy
+#include "_tsearch.c"
diff --git a/libc/misc/search/tfind.c b/libc/misc/search/tfind.c
new file mode 100644
index 000000000..e5a316172
--- /dev/null
+++ b/libc/misc/search/tfind.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tfind
+#include "_tsearch.c"
diff --git a/libc/misc/search/tsearch.c b/libc/misc/search/tsearch.c
new file mode 100644
index 000000000..8984fc1d5
--- /dev/null
+++ b/libc/misc/search/tsearch.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tsearch
+#include "_tsearch.c"
diff --git a/libc/misc/search/twalk.c b/libc/misc/search/twalk.c
new file mode 100644
index 000000000..f36d341f5
--- /dev/null
+++ b/libc/misc/search/twalk.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_twalk
+#include "_tsearch.c"
diff --git a/libc/misc/sysvipc/msgctl.c b/libc/misc/sysvipc/msgctl.c
new file mode 100644
index 000000000..480a54cbb
--- /dev/null
+++ b/libc/misc/sysvipc/msgctl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_msgctl
+#include "msgq.c"
diff --git a/libc/misc/sysvipc/msgget.c b/libc/misc/sysvipc/msgget.c
new file mode 100644
index 000000000..f7e54d5c8
--- /dev/null
+++ b/libc/misc/sysvipc/msgget.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_msgget
+#include "msgq.c"
diff --git a/libc/misc/sysvipc/msgrcv.c b/libc/misc/sysvipc/msgrcv.c
new file mode 100644
index 000000000..a85e52a99
--- /dev/null
+++ b/libc/misc/sysvipc/msgrcv.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_msgrcv
+#include "msgq.c"
diff --git a/libc/misc/sysvipc/msgsnd.c b/libc/misc/sysvipc/msgsnd.c
new file mode 100644
index 000000000..9f09d1fd4
--- /dev/null
+++ b/libc/misc/sysvipc/msgsnd.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_msgsnd
+#include "msgq.c"
diff --git a/libc/misc/sysvipc/semctl.c b/libc/misc/sysvipc/semctl.c
new file mode 100644
index 000000000..df62a76e3
--- /dev/null
+++ b/libc/misc/sysvipc/semctl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_semctl
+#include "sem.c"
diff --git a/libc/misc/sysvipc/semget.c b/libc/misc/sysvipc/semget.c
new file mode 100644
index 000000000..94d0b5dad
--- /dev/null
+++ b/libc/misc/sysvipc/semget.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_semget
+#include "sem.c"
diff --git a/libc/misc/sysvipc/semop.c b/libc/misc/sysvipc/semop.c
new file mode 100644
index 000000000..0c67f62f3
--- /dev/null
+++ b/libc/misc/sysvipc/semop.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_semop
+#include "sem.c"
diff --git a/libc/misc/sysvipc/shmat.c b/libc/misc/sysvipc/shmat.c
new file mode 100644
index 000000000..d6cd22a59
--- /dev/null
+++ b/libc/misc/sysvipc/shmat.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_shmat
+#include "shm.c"
diff --git a/libc/misc/sysvipc/shmctl.c b/libc/misc/sysvipc/shmctl.c
new file mode 100644
index 000000000..90fab5a25
--- /dev/null
+++ b/libc/misc/sysvipc/shmctl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_shmctl
+#include "shm.c"
diff --git a/libc/misc/sysvipc/shmdt.c b/libc/misc/sysvipc/shmdt.c
new file mode 100644
index 000000000..078334136
--- /dev/null
+++ b/libc/misc/sysvipc/shmdt.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_shmdt
+#include "shm.c"
diff --git a/libc/misc/sysvipc/shmget.c b/libc/misc/sysvipc/shmget.c
new file mode 100644
index 000000000..4778e3619
--- /dev/null
+++ b/libc/misc/sysvipc/shmget.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_shmget
+#include "shm.c"
diff --git a/libc/misc/time/__time_tm.c b/libc/misc/time/__time_tm.c
new file mode 100644
index 000000000..59b7d8aac
--- /dev/null
+++ b/libc/misc/time/__time_tm.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___time_tm
+#include "time.c"
diff --git a/libc/misc/time/_time_localtime_tzi.c b/libc/misc/time/_time_localtime_tzi.c
new file mode 100644
index 000000000..32728a491
--- /dev/null
+++ b/libc/misc/time/_time_localtime_tzi.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__time_localtime_tzi
+#include "time.c"
diff --git a/libc/misc/time/_time_mktime.c b/libc/misc/time/_time_mktime.c
new file mode 100644
index 000000000..1fd920020
--- /dev/null
+++ b/libc/misc/time/_time_mktime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__time_mktime
+#include "time.c"
diff --git a/libc/misc/time/_time_mktime_tzi.c b/libc/misc/time/_time_mktime_tzi.c
new file mode 100644
index 000000000..543893e6a
--- /dev/null
+++ b/libc/misc/time/_time_mktime_tzi.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__time_mktime_tzi
+#include "time.c"
diff --git a/libc/misc/time/_time_t2tm.c b/libc/misc/time/_time_t2tm.c
new file mode 100644
index 000000000..903651ffd
--- /dev/null
+++ b/libc/misc/time/_time_t2tm.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__time_t2tm
+#include "time.c"
diff --git a/libc/misc/time/asctime.c b/libc/misc/time/asctime.c
new file mode 100644
index 000000000..d80c017a6
--- /dev/null
+++ b/libc/misc/time/asctime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_asctime
+#include "time.c"
diff --git a/libc/misc/time/asctime_r.c b/libc/misc/time/asctime_r.c
new file mode 100644
index 000000000..aec38b139
--- /dev/null
+++ b/libc/misc/time/asctime_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_asctime_r
+#include "time.c"
diff --git a/libc/misc/time/clock.c b/libc/misc/time/clock.c
new file mode 100644
index 000000000..9cc425412
--- /dev/null
+++ b/libc/misc/time/clock.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_clock
+#include "time.c"
diff --git a/libc/misc/time/ctime.c b/libc/misc/time/ctime.c
new file mode 100644
index 000000000..4bd09a8a9
--- /dev/null
+++ b/libc/misc/time/ctime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ctime
+#include "time.c"
diff --git a/libc/misc/time/ctime_r.c b/libc/misc/time/ctime_r.c
new file mode 100644
index 000000000..c03f5c95d
--- /dev/null
+++ b/libc/misc/time/ctime_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ctime_r
+#include "time.c"
diff --git a/libc/misc/time/difftime.c b/libc/misc/time/difftime.c
new file mode 100644
index 000000000..4bcec2c06
--- /dev/null
+++ b/libc/misc/time/difftime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_difftime
+#include "time.c"
diff --git a/libc/misc/time/dysize.c b/libc/misc/time/dysize.c
new file mode 100644
index 000000000..b1bf84b64
--- /dev/null
+++ b/libc/misc/time/dysize.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_dysize
+#include "time.c"
diff --git a/libc/misc/time/gmtime.c b/libc/misc/time/gmtime.c
new file mode 100644
index 000000000..24a512c03
--- /dev/null
+++ b/libc/misc/time/gmtime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gmtime
+#include "time.c"
diff --git a/libc/misc/time/gmtime_r.c b/libc/misc/time/gmtime_r.c
new file mode 100644
index 000000000..8677dd2d6
--- /dev/null
+++ b/libc/misc/time/gmtime_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_gmtime_r
+#include "time.c"
diff --git a/libc/misc/time/localtime.c b/libc/misc/time/localtime.c
new file mode 100644
index 000000000..e4bffbd2d
--- /dev/null
+++ b/libc/misc/time/localtime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_localtime
+#include "time.c"
diff --git a/libc/misc/time/localtime_r.c b/libc/misc/time/localtime_r.c
new file mode 100644
index 000000000..5351834b2
--- /dev/null
+++ b/libc/misc/time/localtime_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_localtime_r
+#include "time.c"
diff --git a/libc/misc/time/mktime.c b/libc/misc/time/mktime.c
new file mode 100644
index 000000000..2b2c8e459
--- /dev/null
+++ b/libc/misc/time/mktime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mktime
+#include "time.c"
diff --git a/libc/misc/time/strftime.c b/libc/misc/time/strftime.c
new file mode 100644
index 000000000..2eb827dad
--- /dev/null
+++ b/libc/misc/time/strftime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strftime
+#include "time.c"
diff --git a/libc/misc/time/strftime_l.c b/libc/misc/time/strftime_l.c
new file mode 100644
index 000000000..e1d34ad4a
--- /dev/null
+++ b/libc/misc/time/strftime_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strftime_l
+#define __UCLIBC_DO_XLOCALE
+#include "time.c"
diff --git a/libc/misc/time/strptime.c b/libc/misc/time/strptime.c
new file mode 100644
index 000000000..771633fb6
--- /dev/null
+++ b/libc/misc/time/strptime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strptime
+#include "time.c"
diff --git a/libc/misc/time/strptime_l.c b/libc/misc/time/strptime_l.c
new file mode 100644
index 000000000..16ee7e1bd
--- /dev/null
+++ b/libc/misc/time/strptime_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strptime_l
+#define __UCLIBC_DO_XLOCALE
+#include "time.c"
diff --git a/libc/misc/time/timegm.c b/libc/misc/time/timegm.c
new file mode 100644
index 000000000..ae2fc7df5
--- /dev/null
+++ b/libc/misc/time/timegm.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_timegm
+#include "time.c"
diff --git a/libc/misc/time/tzset.c b/libc/misc/time/tzset.c
new file mode 100644
index 000000000..e5607a51b
--- /dev/null
+++ b/libc/misc/time/tzset.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tzset
+#include "time.c"
diff --git a/libc/misc/time/wcsftime.c b/libc/misc/time/wcsftime.c
new file mode 100644
index 000000000..e4b25c0d1
--- /dev/null
+++ b/libc/misc/time/wcsftime.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcsftime
+#include "time.c"
diff --git a/libc/misc/time/wcsftime_l.c b/libc/misc/time/wcsftime_l.c
new file mode 100644
index 000000000..68c295458
--- /dev/null
+++ b/libc/misc/time/wcsftime_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcsftime_l
+#define __UCLIBC_DO_XLOCALE
+#include "time.c"
diff --git a/libc/misc/wchar/_wchar_utf8sntowcs.c b/libc/misc/wchar/_wchar_utf8sntowcs.c
new file mode 100644
index 000000000..a01990ebd
--- /dev/null
+++ b/libc/misc/wchar/_wchar_utf8sntowcs.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__wchar_utf8sntowcs
+#include "wchar.c"
diff --git a/libc/misc/wchar/_wchar_wcsntoutf8s.c b/libc/misc/wchar/_wchar_wcsntoutf8s.c
new file mode 100644
index 000000000..a63aa9114
--- /dev/null
+++ b/libc/misc/wchar/_wchar_wcsntoutf8s.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__wchar_wcsntoutf8s
+#include "wchar.c"
diff --git a/libc/misc/wchar/btowc.c b/libc/misc/wchar/btowc.c
new file mode 100644
index 000000000..d5e60ce6c
--- /dev/null
+++ b/libc/misc/wchar/btowc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_btowc
+#include "wchar.c"
diff --git a/libc/misc/wchar/iconv.c b/libc/misc/wchar/iconv.c
new file mode 100644
index 000000000..e6e8ea881
--- /dev/null
+++ b/libc/misc/wchar/iconv.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iconv
+#include "wchar.c"
diff --git a/libc/misc/wchar/mbrlen.c b/libc/misc/wchar/mbrlen.c
new file mode 100644
index 000000000..01bd31ebc
--- /dev/null
+++ b/libc/misc/wchar/mbrlen.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbrlen
+#include "wchar.c"
diff --git a/libc/misc/wchar/mbrtowc.c b/libc/misc/wchar/mbrtowc.c
new file mode 100644
index 000000000..76ce28a71
--- /dev/null
+++ b/libc/misc/wchar/mbrtowc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbrtowc
+#include "wchar.c"
diff --git a/libc/misc/wchar/mbsinit.c b/libc/misc/wchar/mbsinit.c
new file mode 100644
index 000000000..23aaac50f
--- /dev/null
+++ b/libc/misc/wchar/mbsinit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbsinit
+#include "wchar.c"
diff --git a/libc/misc/wchar/mbsnrtowcs.c b/libc/misc/wchar/mbsnrtowcs.c
new file mode 100644
index 000000000..9b407c1d8
--- /dev/null
+++ b/libc/misc/wchar/mbsnrtowcs.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbsnrtowcs
+#include "wchar.c"
diff --git a/libc/misc/wchar/mbsrtowcs.c b/libc/misc/wchar/mbsrtowcs.c
new file mode 100644
index 000000000..dd47a91a3
--- /dev/null
+++ b/libc/misc/wchar/mbsrtowcs.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbsrtowcs
+#include "wchar.c"
diff --git a/libc/misc/wchar/wcrtomb.c b/libc/misc/wchar/wcrtomb.c
new file mode 100644
index 000000000..91eb3062d
--- /dev/null
+++ b/libc/misc/wchar/wcrtomb.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcrtomb
+#include "wchar.c"
diff --git a/libc/misc/wchar/wcsnrtombs.c b/libc/misc/wchar/wcsnrtombs.c
new file mode 100644
index 000000000..af9d6c33d
--- /dev/null
+++ b/libc/misc/wchar/wcsnrtombs.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcsnrtombs
+#include "wchar.c"
diff --git a/libc/misc/wchar/wcsrtombs.c b/libc/misc/wchar/wcsrtombs.c
new file mode 100644
index 000000000..e5b6c0b38
--- /dev/null
+++ b/libc/misc/wchar/wcsrtombs.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcsrtombs
+#include "wchar.c"
diff --git a/libc/misc/wchar/wcswidth.c b/libc/misc/wchar/wcswidth.c
new file mode 100644
index 000000000..3d955a21c
--- /dev/null
+++ b/libc/misc/wchar/wcswidth.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcswidth
+#include "wchar.c"
diff --git a/libc/misc/wchar/wctob.c b/libc/misc/wchar/wctob.c
new file mode 100644
index 000000000..88d31f5ad
--- /dev/null
+++ b/libc/misc/wchar/wctob.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctob
+#include "wchar.c"
diff --git a/libc/misc/wchar/wcwidth.c b/libc/misc/wchar/wcwidth.c
new file mode 100644
index 000000000..6c4a34476
--- /dev/null
+++ b/libc/misc/wchar/wcwidth.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcwidth
+#include "wchar.c"
diff --git a/libc/misc/wctype/iswalnum.c b/libc/misc/wctype/iswalnum.c
new file mode 100644
index 000000000..a85a03dc8
--- /dev/null
+++ b/libc/misc/wctype/iswalnum.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswalnum
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswalnum_l.c b/libc/misc/wctype/iswalnum_l.c
new file mode 100644
index 000000000..6e3cd7770
--- /dev/null
+++ b/libc/misc/wctype/iswalnum_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswalnum_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswalpha.c b/libc/misc/wctype/iswalpha.c
new file mode 100644
index 000000000..6b829eb82
--- /dev/null
+++ b/libc/misc/wctype/iswalpha.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswalpha
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswalpha_l.c b/libc/misc/wctype/iswalpha_l.c
new file mode 100644
index 000000000..79b11cf72
--- /dev/null
+++ b/libc/misc/wctype/iswalpha_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswalpha_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswblank.c b/libc/misc/wctype/iswblank.c
new file mode 100644
index 000000000..67862d59e
--- /dev/null
+++ b/libc/misc/wctype/iswblank.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswblank
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswblank_l.c b/libc/misc/wctype/iswblank_l.c
new file mode 100644
index 000000000..4c5709cf8
--- /dev/null
+++ b/libc/misc/wctype/iswblank_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswblank_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswcntrl.c b/libc/misc/wctype/iswcntrl.c
new file mode 100644
index 000000000..50d72b46f
--- /dev/null
+++ b/libc/misc/wctype/iswcntrl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswcntrl
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswcntrl_l.c b/libc/misc/wctype/iswcntrl_l.c
new file mode 100644
index 000000000..2fe64d744
--- /dev/null
+++ b/libc/misc/wctype/iswcntrl_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswcntrl_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswctype.c b/libc/misc/wctype/iswctype.c
new file mode 100644
index 000000000..777d41048
--- /dev/null
+++ b/libc/misc/wctype/iswctype.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswctype
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswctype_l.c b/libc/misc/wctype/iswctype_l.c
new file mode 100644
index 000000000..71bce184e
--- /dev/null
+++ b/libc/misc/wctype/iswctype_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswctype_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswdigit.c b/libc/misc/wctype/iswdigit.c
new file mode 100644
index 000000000..b2aa5d00a
--- /dev/null
+++ b/libc/misc/wctype/iswdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswdigit
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswdigit_l.c b/libc/misc/wctype/iswdigit_l.c
new file mode 100644
index 000000000..4832c9c80
--- /dev/null
+++ b/libc/misc/wctype/iswdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswgraph.c b/libc/misc/wctype/iswgraph.c
new file mode 100644
index 000000000..8113054f5
--- /dev/null
+++ b/libc/misc/wctype/iswgraph.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswgraph
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswgraph_l.c b/libc/misc/wctype/iswgraph_l.c
new file mode 100644
index 000000000..db683156e
--- /dev/null
+++ b/libc/misc/wctype/iswgraph_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswgraph_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswlower.c b/libc/misc/wctype/iswlower.c
new file mode 100644
index 000000000..016d8cc8e
--- /dev/null
+++ b/libc/misc/wctype/iswlower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswlower
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswlower_l.c b/libc/misc/wctype/iswlower_l.c
new file mode 100644
index 000000000..5b9f82126
--- /dev/null
+++ b/libc/misc/wctype/iswlower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswlower_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswprint.c b/libc/misc/wctype/iswprint.c
new file mode 100644
index 000000000..8e47e88c1
--- /dev/null
+++ b/libc/misc/wctype/iswprint.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswprint
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswprint_l.c b/libc/misc/wctype/iswprint_l.c
new file mode 100644
index 000000000..148414c49
--- /dev/null
+++ b/libc/misc/wctype/iswprint_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswprint_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswpunct.c b/libc/misc/wctype/iswpunct.c
new file mode 100644
index 000000000..1175e1ad6
--- /dev/null
+++ b/libc/misc/wctype/iswpunct.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswpunct
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswpunct_l.c b/libc/misc/wctype/iswpunct_l.c
new file mode 100644
index 000000000..a6d361650
--- /dev/null
+++ b/libc/misc/wctype/iswpunct_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswpunct_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswspace.c b/libc/misc/wctype/iswspace.c
new file mode 100644
index 000000000..603f5cf4a
--- /dev/null
+++ b/libc/misc/wctype/iswspace.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswspace
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswspace_l.c b/libc/misc/wctype/iswspace_l.c
new file mode 100644
index 000000000..e389f8913
--- /dev/null
+++ b/libc/misc/wctype/iswspace_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswspace_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswupper.c b/libc/misc/wctype/iswupper.c
new file mode 100644
index 000000000..4cfdebb1a
--- /dev/null
+++ b/libc/misc/wctype/iswupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswupper
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswupper_l.c b/libc/misc/wctype/iswupper_l.c
new file mode 100644
index 000000000..359aef984
--- /dev/null
+++ b/libc/misc/wctype/iswupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswxdigit.c b/libc/misc/wctype/iswxdigit.c
new file mode 100644
index 000000000..568f253fd
--- /dev/null
+++ b/libc/misc/wctype/iswxdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswxdigit
+#include "_wctype.c"
diff --git a/libc/misc/wctype/iswxdigit_l.c b/libc/misc/wctype/iswxdigit_l.c
new file mode 100644
index 000000000..1d543abbd
--- /dev/null
+++ b/libc/misc/wctype/iswxdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iswxdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towctrans.c b/libc/misc/wctype/towctrans.c
new file mode 100644
index 000000000..9ad0468ff
--- /dev/null
+++ b/libc/misc/wctype/towctrans.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towctrans
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towctrans_l.c b/libc/misc/wctype/towctrans_l.c
new file mode 100644
index 000000000..e179b50fe
--- /dev/null
+++ b/libc/misc/wctype/towctrans_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towctrans_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towlower.c b/libc/misc/wctype/towlower.c
new file mode 100644
index 000000000..dffbff3d6
--- /dev/null
+++ b/libc/misc/wctype/towlower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towlower
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towlower_l.c b/libc/misc/wctype/towlower_l.c
new file mode 100644
index 000000000..f1aa7e6ee
--- /dev/null
+++ b/libc/misc/wctype/towlower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towlower_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towupper.c b/libc/misc/wctype/towupper.c
new file mode 100644
index 000000000..1dab8fed0
--- /dev/null
+++ b/libc/misc/wctype/towupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towupper
+#include "_wctype.c"
diff --git a/libc/misc/wctype/towupper_l.c b/libc/misc/wctype/towupper_l.c
new file mode 100644
index 000000000..cf05d5c87
--- /dev/null
+++ b/libc/misc/wctype/towupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_towupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/wctrans.c b/libc/misc/wctype/wctrans.c
new file mode 100644
index 000000000..f99d9cd9d
--- /dev/null
+++ b/libc/misc/wctype/wctrans.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctrans
+#include "_wctype.c"
diff --git a/libc/misc/wctype/wctrans_l.c b/libc/misc/wctype/wctrans_l.c
new file mode 100644
index 000000000..79854c2d1
--- /dev/null
+++ b/libc/misc/wctype/wctrans_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctrans_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/misc/wctype/wctype.c b/libc/misc/wctype/wctype.c
new file mode 100644
index 000000000..0dc1e6d70
--- /dev/null
+++ b/libc/misc/wctype/wctype.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctype
+#include "_wctype.c"
diff --git a/libc/misc/wctype/wctype_l.c b/libc/misc/wctype/wctype_l.c
new file mode 100644
index 000000000..65f82e2b1
--- /dev/null
+++ b/libc/misc/wctype/wctype_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2002-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctype_l
+#define __UCLIBC_DO_XLOCALE
+#include "_wctype.c"
diff --git a/libc/pwd_grp/__parsegrent.c b/libc/pwd_grp/__parsegrent.c
new file mode 100644
index 000000000..e3ac4ad7b
--- /dev/null
+++ b/libc/pwd_grp/__parsegrent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___parsegrent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/__parsepwent.c b/libc/pwd_grp/__parsepwent.c
new file mode 100644
index 000000000..2804a0a2f
--- /dev/null
+++ b/libc/pwd_grp/__parsepwent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___parsepwent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/__parsespent.c b/libc/pwd_grp/__parsespent.c
new file mode 100644
index 000000000..08321d075
--- /dev/null
+++ b/libc/pwd_grp/__parsespent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___parsespent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/__pgsreader.c b/libc/pwd_grp/__pgsreader.c
new file mode 100644
index 000000000..ac39ce94f
--- /dev/null
+++ b/libc/pwd_grp/__pgsreader.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___pgsreader
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetgrent.c b/libc/pwd_grp/fgetgrent.c
new file mode 100644
index 000000000..695aee119
--- /dev/null
+++ b/libc/pwd_grp/fgetgrent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetgrent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetgrent_r.c b/libc/pwd_grp/fgetgrent_r.c
new file mode 100644
index 000000000..ea97af72f
--- /dev/null
+++ b/libc/pwd_grp/fgetgrent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetgrent_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetpwent.c b/libc/pwd_grp/fgetpwent.c
new file mode 100644
index 000000000..ddcc7ffb7
--- /dev/null
+++ b/libc/pwd_grp/fgetpwent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetpwent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetpwent_r.c b/libc/pwd_grp/fgetpwent_r.c
new file mode 100644
index 000000000..8b9350347
--- /dev/null
+++ b/libc/pwd_grp/fgetpwent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetpwent_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetspent.c b/libc/pwd_grp/fgetspent.c
new file mode 100644
index 000000000..b7c1ef24f
--- /dev/null
+++ b/libc/pwd_grp/fgetspent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetspent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/fgetspent_r.c b/libc/pwd_grp/fgetspent_r.c
new file mode 100644
index 000000000..7196d80e9
--- /dev/null
+++ b/libc/pwd_grp/fgetspent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_fgetspent_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getgrent.c b/libc/pwd_grp/getgrent.c
new file mode 100644
index 000000000..808e4e817
--- /dev/null
+++ b/libc/pwd_grp/getgrent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getgrent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getgrent_r.c b/libc/pwd_grp/getgrent_r.c
new file mode 100644
index 000000000..5f0b7c295
--- /dev/null
+++ b/libc/pwd_grp/getgrent_r.c
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <features.h>
+
+#ifdef __USE_GNU
+# define L_getgrent_r
+# include "pwd_grp.c"
+#endif
diff --git a/libc/pwd_grp/getgrgid.c b/libc/pwd_grp/getgrgid.c
new file mode 100644
index 000000000..96ce9039d
--- /dev/null
+++ b/libc/pwd_grp/getgrgid.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getgrgid
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getgrgid_r.c b/libc/pwd_grp/getgrgid_r.c
new file mode 100644
index 000000000..a962f4cec
--- /dev/null
+++ b/libc/pwd_grp/getgrgid_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getgrgid_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getgrnam.c b/libc/pwd_grp/getgrnam.c
new file mode 100644
index 000000000..3b47d9a9f
--- /dev/null
+++ b/libc/pwd_grp/getgrnam.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getgrnam
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getgrnam_r.c b/libc/pwd_grp/getgrnam_r.c
new file mode 100644
index 000000000..592a66c47
--- /dev/null
+++ b/libc/pwd_grp/getgrnam_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getgrnam_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpw.c b/libc/pwd_grp/getpw.c
new file mode 100644
index 000000000..943da3f26
--- /dev/null
+++ b/libc/pwd_grp/getpw.c
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <features.h>
+
+#ifdef __USE_GNU
+# define L_getpw
+# include "pwd_grp.c"
+#endif
diff --git a/libc/pwd_grp/getpwent.c b/libc/pwd_grp/getpwent.c
new file mode 100644
index 000000000..a617bc8b2
--- /dev/null
+++ b/libc/pwd_grp/getpwent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpwent_r.c b/libc/pwd_grp/getpwent_r.c
new file mode 100644
index 000000000..9f00b05f4
--- /dev/null
+++ b/libc/pwd_grp/getpwent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwent_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpwnam.c b/libc/pwd_grp/getpwnam.c
new file mode 100644
index 000000000..d00640b54
--- /dev/null
+++ b/libc/pwd_grp/getpwnam.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwnam
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpwnam_r.c b/libc/pwd_grp/getpwnam_r.c
new file mode 100644
index 000000000..a4440e756
--- /dev/null
+++ b/libc/pwd_grp/getpwnam_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwnam_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpwuid.c b/libc/pwd_grp/getpwuid.c
new file mode 100644
index 000000000..16ac50f72
--- /dev/null
+++ b/libc/pwd_grp/getpwuid.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwuid
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getpwuid_r.c b/libc/pwd_grp/getpwuid_r.c
new file mode 100644
index 000000000..21d39ed7f
--- /dev/null
+++ b/libc/pwd_grp/getpwuid_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getpwuid_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getspent.c b/libc/pwd_grp/getspent.c
new file mode 100644
index 000000000..5699b67d6
--- /dev/null
+++ b/libc/pwd_grp/getspent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getspent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getspent_r.c b/libc/pwd_grp/getspent_r.c
new file mode 100644
index 000000000..da147a523
--- /dev/null
+++ b/libc/pwd_grp/getspent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getspent_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getspnam.c b/libc/pwd_grp/getspnam.c
new file mode 100644
index 000000000..19e40c737
--- /dev/null
+++ b/libc/pwd_grp/getspnam.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getspnam
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/getspnam_r.c b/libc/pwd_grp/getspnam_r.c
new file mode 100644
index 000000000..053b697ea
--- /dev/null
+++ b/libc/pwd_grp/getspnam_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_getspnam_r
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/initgroups.c b/libc/pwd_grp/initgroups.c
new file mode 100644
index 000000000..d02be5e02
--- /dev/null
+++ b/libc/pwd_grp/initgroups.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_initgroups
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/putgrent.c b/libc/pwd_grp/putgrent.c
new file mode 100644
index 000000000..20a6faf98
--- /dev/null
+++ b/libc/pwd_grp/putgrent.c
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <features.h>
+
+#ifdef __USE_GNU
+# define L_putgrent
+# include "pwd_grp.c"
+#endif
diff --git a/libc/pwd_grp/putpwent.c b/libc/pwd_grp/putpwent.c
new file mode 100644
index 000000000..045462e9e
--- /dev/null
+++ b/libc/pwd_grp/putpwent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_putpwent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/putspent.c b/libc/pwd_grp/putspent.c
new file mode 100644
index 000000000..d6b5b2891
--- /dev/null
+++ b/libc/pwd_grp/putspent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_putspent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/sgetspent.c b/libc/pwd_grp/sgetspent.c
new file mode 100644
index 000000000..877a2478a
--- /dev/null
+++ b/libc/pwd_grp/sgetspent.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_sgetspent
+#include "pwd_grp.c"
diff --git a/libc/pwd_grp/sgetspent_r.c b/libc/pwd_grp/sgetspent_r.c
new file mode 100644
index 000000000..131e0bd36
--- /dev/null
+++ b/libc/pwd_grp/sgetspent_r.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_sgetspent_r
+#include "pwd_grp.c"
diff --git a/libc/stdio/__psfs_do_numeric.c b/libc/stdio/__psfs_do_numeric.c
new file mode 100644
index 000000000..e3714776c
--- /dev/null
+++ b/libc/stdio/__psfs_do_numeric.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L___psfs_do_numeric
+#include "_scanf.c"
diff --git a/libc/stdio/__psfs_parse_spec.c b/libc/stdio/__psfs_parse_spec.c
new file mode 100644
index 000000000..cac9cda46
--- /dev/null
+++ b/libc/stdio/__psfs_parse_spec.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L___psfs_parse_spec
+#include "_scanf.c"
diff --git a/libc/stdio/__scan_cookie.c b/libc/stdio/__scan_cookie.c
new file mode 100644
index 000000000..d5d53c4c5
--- /dev/null
+++ b/libc/stdio/__scan_cookie.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L___scan_cookie
+#include "_scanf.c"
diff --git a/libc/stdio/_ppfs_init.c b/libc/stdio/_ppfs_init.c
new file mode 100644
index 000000000..80d8aeb96
--- /dev/null
+++ b/libc/stdio/_ppfs_init.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L__ppfs_init
+#include "_vfprintf.c"
diff --git a/libc/stdio/_ppfs_parsespec.c b/libc/stdio/_ppfs_parsespec.c
new file mode 100644
index 000000000..a3e298801
--- /dev/null
+++ b/libc/stdio/_ppfs_parsespec.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L__ppfs_parsespec
+#include "_vfprintf.c"
diff --git a/libc/stdio/_ppfs_prepargs.c b/libc/stdio/_ppfs_prepargs.c
new file mode 100644
index 000000000..a6efbf466
--- /dev/null
+++ b/libc/stdio/_ppfs_prepargs.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L__ppfs_prepargs
+#include "_vfprintf.c"
diff --git a/libc/stdio/_ppfs_setargs.c b/libc/stdio/_ppfs_setargs.c
new file mode 100644
index 000000000..41214d993
--- /dev/null
+++ b/libc/stdio/_ppfs_setargs.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L__ppfs_setargs
+#include "_vfprintf.c"
diff --git a/libc/stdio/clearerr_unlocked.c b/libc/stdio/clearerr_unlocked.c
new file mode 100644
index 000000000..1728d0378
--- /dev/null
+++ b/libc/stdio/clearerr_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "clearerr.c"
diff --git a/libc/stdio/feof_unlocked.c b/libc/stdio/feof_unlocked.c
new file mode 100644
index 000000000..4553f306b
--- /dev/null
+++ b/libc/stdio/feof_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "feof.c"
diff --git a/libc/stdio/ferror_unlocked.c b/libc/stdio/ferror_unlocked.c
new file mode 100644
index 000000000..19722b8bb
--- /dev/null
+++ b/libc/stdio/ferror_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "ferror.c"
diff --git a/libc/stdio/fflush_unlocked.c b/libc/stdio/fflush_unlocked.c
new file mode 100644
index 000000000..a6adb59c2
--- /dev/null
+++ b/libc/stdio/fflush_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fflush.c"
diff --git a/libc/stdio/fgetc_unlocked.c b/libc/stdio/fgetc_unlocked.c
new file mode 100644
index 000000000..a20c7eef2
--- /dev/null
+++ b/libc/stdio/fgetc_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fgetc.c"
diff --git a/libc/stdio/fgets_unlocked.c b/libc/stdio/fgets_unlocked.c
new file mode 100644
index 000000000..db0191305
--- /dev/null
+++ b/libc/stdio/fgets_unlocked.c
@@ -0,0 +1,14 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+
+#include <features.h>
+
+#ifdef __USE_GNU
+# define __DO_UNLOCKED
+# include "fgets.c"
+#endif
diff --git a/libc/stdio/fgetwc_unlocked.c b/libc/stdio/fgetwc_unlocked.c
new file mode 100644
index 000000000..8eab84393
--- /dev/null
+++ b/libc/stdio/fgetwc_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fgetwc.c"
diff --git a/libc/stdio/fgetws_unlocked.c b/libc/stdio/fgetws_unlocked.c
new file mode 100644
index 000000000..6dd58f20a
--- /dev/null
+++ b/libc/stdio/fgetws_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fgetws.c"
diff --git a/libc/stdio/fileno_unlocked.c b/libc/stdio/fileno_unlocked.c
new file mode 100644
index 000000000..e50059296
--- /dev/null
+++ b/libc/stdio/fileno_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fileno.c"
diff --git a/libc/stdio/fputc_unlocked.c b/libc/stdio/fputc_unlocked.c
new file mode 100644
index 000000000..dc4c77a51
--- /dev/null
+++ b/libc/stdio/fputc_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fputc.c"
diff --git a/libc/stdio/fputs_unlocked.c b/libc/stdio/fputs_unlocked.c
new file mode 100644
index 000000000..c7ff3f59b
--- /dev/null
+++ b/libc/stdio/fputs_unlocked.c
@@ -0,0 +1,14 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+
+#include <features.h>
+
+#ifdef __USE_GNU
+# define __DO_UNLOCKED
+# include "fputs.c"
+#endif
diff --git a/libc/stdio/fputwc_unlocked.c b/libc/stdio/fputwc_unlocked.c
new file mode 100644
index 000000000..757cbd0d2
--- /dev/null
+++ b/libc/stdio/fputwc_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fputwc.c"
diff --git a/libc/stdio/fputws_unlocked.c b/libc/stdio/fputws_unlocked.c
new file mode 100644
index 000000000..b3a037771
--- /dev/null
+++ b/libc/stdio/fputws_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fputws.c"
diff --git a/libc/stdio/fread_unlocked.c b/libc/stdio/fread_unlocked.c
new file mode 100644
index 000000000..441edbb64
--- /dev/null
+++ b/libc/stdio/fread_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fread.c"
diff --git a/libc/stdio/fscanf.c b/libc/stdio/fscanf.c
new file mode 100644
index 000000000..102cb8d59
--- /dev/null
+++ b/libc/stdio/fscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_fscanf
+#include "_scanf.c"
diff --git a/libc/stdio/fwrite_unlocked.c b/libc/stdio/fwrite_unlocked.c
new file mode 100644
index 000000000..0f9e026c0
--- /dev/null
+++ b/libc/stdio/fwrite_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "fwrite.c"
diff --git a/libc/stdio/fwscanf.c b/libc/stdio/fwscanf.c
new file mode 100644
index 000000000..3409d00a0
--- /dev/null
+++ b/libc/stdio/fwscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_fwscanf
+#include "_scanf.c"
diff --git a/libc/stdio/getchar_unlocked.c b/libc/stdio/getchar_unlocked.c
new file mode 100644
index 000000000..60ea25129
--- /dev/null
+++ b/libc/stdio/getchar_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "getchar.c"
diff --git a/libc/stdio/getwchar_unlocked.c b/libc/stdio/getwchar_unlocked.c
new file mode 100644
index 000000000..af4a9e888
--- /dev/null
+++ b/libc/stdio/getwchar_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "getwchar.c"
diff --git a/libc/stdio/parse_printf_format.c b/libc/stdio/parse_printf_format.c
new file mode 100644
index 000000000..38266b3de
--- /dev/null
+++ b/libc/stdio/parse_printf_format.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_parse_printf_format
+#include "_vfprintf.c"
diff --git a/libc/stdio/putchar_unlocked.c b/libc/stdio/putchar_unlocked.c
new file mode 100644
index 000000000..6d6ec471a
--- /dev/null
+++ b/libc/stdio/putchar_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "putchar.c"
diff --git a/libc/stdio/putwchar_unlocked.c b/libc/stdio/putwchar_unlocked.c
new file mode 100644
index 000000000..5b0c60006
--- /dev/null
+++ b/libc/stdio/putwchar_unlocked.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define __DO_UNLOCKED
+#include "putwchar.c"
diff --git a/libc/stdio/register_printf_function.c b/libc/stdio/register_printf_function.c
new file mode 100644
index 000000000..c6b3240a7
--- /dev/null
+++ b/libc/stdio/register_printf_function.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_register_printf_function
+#include "_vfprintf.c"
diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c
new file mode 100644
index 000000000..4943c88df
--- /dev/null
+++ b/libc/stdio/scanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_scanf
+#include "_scanf.c"
diff --git a/libc/stdio/sscanf.c b/libc/stdio/sscanf.c
new file mode 100644
index 000000000..f53c06545
--- /dev/null
+++ b/libc/stdio/sscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_sscanf
+#include "_scanf.c"
diff --git a/libc/stdio/swscanf.c b/libc/stdio/swscanf.c
new file mode 100644
index 000000000..06f8cb75f
--- /dev/null
+++ b/libc/stdio/swscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_swscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c
new file mode 100644
index 000000000..78b725fd9
--- /dev/null
+++ b/libc/stdio/vfprintf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vfprintf
+#include "_vfprintf.c"
diff --git a/libc/stdio/vfscanf.c b/libc/stdio/vfscanf.c
new file mode 100644
index 000000000..b13ff8db8
--- /dev/null
+++ b/libc/stdio/vfscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vfscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vfwprintf.c b/libc/stdio/vfwprintf.c
new file mode 100644
index 000000000..323b90015
--- /dev/null
+++ b/libc/stdio/vfwprintf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vfwprintf
+#include "_vfprintf.c"
diff --git a/libc/stdio/vfwscanf.c b/libc/stdio/vfwscanf.c
new file mode 100644
index 000000000..ac982b4f1
--- /dev/null
+++ b/libc/stdio/vfwscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vfwscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vscanf.c b/libc/stdio/vscanf.c
new file mode 100644
index 000000000..834fe92ee
--- /dev/null
+++ b/libc/stdio/vscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vsscanf.c b/libc/stdio/vsscanf.c
new file mode 100644
index 000000000..882c2713e
--- /dev/null
+++ b/libc/stdio/vsscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vsscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vswscanf.c b/libc/stdio/vswscanf.c
new file mode 100644
index 000000000..fddb60209
--- /dev/null
+++ b/libc/stdio/vswscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vswscanf
+#include "_scanf.c"
diff --git a/libc/stdio/vwscanf.c b/libc/stdio/vwscanf.c
new file mode 100644
index 000000000..9e21a271e
--- /dev/null
+++ b/libc/stdio/vwscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_vwscanf
+#include "_scanf.c"
diff --git a/libc/stdio/wscanf.c b/libc/stdio/wscanf.c
new file mode 100644
index 000000000..d354d527f
--- /dev/null
+++ b/libc/stdio/wscanf.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L_wscanf
+#include "_scanf.c"
diff --git a/libc/stdlib/__cxa_atexit.c b/libc/stdlib/__cxa_atexit.c
new file mode 100644
index 000000000..fbf06e5a7
--- /dev/null
+++ b/libc/stdlib/__cxa_atexit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___cxa_atexit
+#include "_atexit.c"
diff --git a/libc/stdlib/__cxa_finalize.c b/libc/stdlib/__cxa_finalize.c
new file mode 100644
index 000000000..4a91626bd
--- /dev/null
+++ b/libc/stdlib/__cxa_finalize.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___cxa_finalize
+#include "_atexit.c"
diff --git a/libc/stdlib/__exit_handler.c b/libc/stdlib/__exit_handler.c
new file mode 100644
index 000000000..ae4ff84be
--- /dev/null
+++ b/libc/stdlib/__exit_handler.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___exit_handler
+#include "_atexit.c"
diff --git a/libc/stdlib/__fp_range_check.c b/libc/stdlib/__fp_range_check.c
new file mode 100644
index 000000000..9c60972ad
--- /dev/null
+++ b/libc/stdlib/__fp_range_check.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___fp_range_check
+#include "_strtod.c"
diff --git a/libc/stdlib/__strtofpmax.c b/libc/stdlib/__strtofpmax.c
new file mode 100644
index 000000000..6b01aca0f
--- /dev/null
+++ b/libc/stdlib/__strtofpmax.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___strtofpmax
+#include "_strtod.c"
diff --git a/libc/stdlib/__strtofpmax_l.c b/libc/stdlib/__strtofpmax_l.c
new file mode 100644
index 000000000..a6141323e
--- /dev/null
+++ b/libc/stdlib/__strtofpmax_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___strtofpmax_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/__wcstofpmax.c b/libc/stdlib/__wcstofpmax.c
new file mode 100644
index 000000000..3c3fdccee
--- /dev/null
+++ b/libc/stdlib/__wcstofpmax.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___wcstofpmax
+#include "_strtod.c"
diff --git a/libc/stdlib/__wcstofpmax_l.c b/libc/stdlib/__wcstofpmax_l.c
new file mode 100644
index 000000000..909b7204d
--- /dev/null
+++ b/libc/stdlib/__wcstofpmax_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___wcstofpmax_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/_stdlib_mb_cur_max.c b/libc/stdlib/_stdlib_mb_cur_max.c
new file mode 100644
index 000000000..b87f6094b
--- /dev/null
+++ b/libc/stdlib/_stdlib_mb_cur_max.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_mb_cur_max
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_strto_l.c b/libc/stdlib/_stdlib_strto_l.c
new file mode 100644
index 000000000..4dfa03785
--- /dev/null
+++ b/libc/stdlib/_stdlib_strto_l.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_strto_l
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_strto_l_l.c b/libc/stdlib/_stdlib_strto_l_l.c
new file mode 100644
index 000000000..1692f0cf2
--- /dev/null
+++ b/libc/stdlib/_stdlib_strto_l_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_strto_l_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_strto_ll.c b/libc/stdlib/_stdlib_strto_ll.c
new file mode 100644
index 000000000..ce79598b4
--- /dev/null
+++ b/libc/stdlib/_stdlib_strto_ll.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_strto_ll
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_strto_ll_l.c b/libc/stdlib/_stdlib_strto_ll_l.c
new file mode 100644
index 000000000..b5fb11171
--- /dev/null
+++ b/libc/stdlib/_stdlib_strto_ll_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_strto_ll_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_wcsto_l.c b/libc/stdlib/_stdlib_wcsto_l.c
new file mode 100644
index 000000000..d05a20786
--- /dev/null
+++ b/libc/stdlib/_stdlib_wcsto_l.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_wcsto_l
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_wcsto_l_l.c b/libc/stdlib/_stdlib_wcsto_l_l.c
new file mode 100644
index 000000000..26ea5a704
--- /dev/null
+++ b/libc/stdlib/_stdlib_wcsto_l_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_wcsto_l_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_wcsto_ll.c b/libc/stdlib/_stdlib_wcsto_ll.c
new file mode 100644
index 000000000..e67a57739
--- /dev/null
+++ b/libc/stdlib/_stdlib_wcsto_ll.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_wcsto_ll
+#include "stdlib.c"
diff --git a/libc/stdlib/_stdlib_wcsto_ll_l.c b/libc/stdlib/_stdlib_wcsto_ll_l.c
new file mode 100644
index 000000000..9d6471282
--- /dev/null
+++ b/libc/stdlib/_stdlib_wcsto_ll_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L__stdlib_wcsto_ll_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/abs.c b/libc/stdlib/abs.c
new file mode 100644
index 000000000..540c020ec
--- /dev/null
+++ b/libc/stdlib/abs.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_abs
+#include "stdlib.c"
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
new file mode 100644
index 000000000..158869e77
--- /dev/null
+++ b/libc/stdlib/atexit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_atexit
+#include "_atexit.c"
diff --git a/libc/stdlib/atof.c b/libc/stdlib/atof.c
new file mode 100644
index 000000000..2fdd75cda
--- /dev/null
+++ b/libc/stdlib/atof.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_atof
+#include "stdlib.c"
diff --git a/libc/stdlib/atoi.c b/libc/stdlib/atoi.c
new file mode 100644
index 000000000..61562bbb2
--- /dev/null
+++ b/libc/stdlib/atoi.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_atoi
+#include "stdlib.c"
diff --git a/libc/stdlib/atol.c b/libc/stdlib/atol.c
new file mode 100644
index 000000000..3e5772085
--- /dev/null
+++ b/libc/stdlib/atol.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_atol
+#include "stdlib.c"
diff --git a/libc/stdlib/atoll.c b/libc/stdlib/atoll.c
new file mode 100644
index 000000000..f6b04a66c
--- /dev/null
+++ b/libc/stdlib/atoll.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_atoll
+#include "stdlib.c"
diff --git a/libc/stdlib/bsearch.c b/libc/stdlib/bsearch.c
new file mode 100644
index 000000000..4feceefd3
--- /dev/null
+++ b/libc/stdlib/bsearch.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_bsearch
+#include "stdlib.c"
diff --git a/libc/stdlib/exit.c b/libc/stdlib/exit.c
new file mode 100644
index 000000000..a2255d2b4
--- /dev/null
+++ b/libc/stdlib/exit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_exit
+#include "_atexit.c"
diff --git a/libc/stdlib/labs.c b/libc/stdlib/labs.c
new file mode 100644
index 000000000..95196af99
--- /dev/null
+++ b/libc/stdlib/labs.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_labs
+#include "stdlib.c"
diff --git a/libc/stdlib/llabs.c b/libc/stdlib/llabs.c
new file mode 100644
index 000000000..17ec30a64
--- /dev/null
+++ b/libc/stdlib/llabs.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_llabs
+#include "stdlib.c"
diff --git a/libc/stdlib/malloc-simple/calloc.c b/libc/stdlib/malloc-simple/calloc.c
new file mode 100644
index 000000000..75edff86d
--- /dev/null
+++ b/libc/stdlib/malloc-simple/calloc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_calloc
+#include "alloc.c"
diff --git a/libc/stdlib/malloc-simple/free.c b/libc/stdlib/malloc-simple/free.c
new file mode 100644
index 000000000..553a6bfc8
--- /dev/null
+++ b/libc/stdlib/malloc-simple/free.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_free
+#include "alloc.c"
diff --git a/libc/stdlib/malloc-simple/malloc.c b/libc/stdlib/malloc-simple/malloc.c
new file mode 100644
index 000000000..61f33d871
--- /dev/null
+++ b/libc/stdlib/malloc-simple/malloc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_malloc
+#include "alloc.c"
diff --git a/libc/stdlib/malloc-simple/memalign.c b/libc/stdlib/malloc-simple/memalign.c
new file mode 100644
index 000000000..24b7ab9c5
--- /dev/null
+++ b/libc/stdlib/malloc-simple/memalign.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_memalign
+#include "alloc.c"
diff --git a/libc/stdlib/malloc-simple/realloc.c b/libc/stdlib/malloc-simple/realloc.c
new file mode 100644
index 000000000..de9675d59
--- /dev/null
+++ b/libc/stdlib/malloc-simple/realloc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_realloc
+#include "alloc.c"
diff --git a/libc/stdlib/mblen.c b/libc/stdlib/mblen.c
new file mode 100644
index 000000000..c7a0ccb6e
--- /dev/null
+++ b/libc/stdlib/mblen.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mblen
+#include "stdlib.c"
diff --git a/libc/stdlib/mbstowcs.c b/libc/stdlib/mbstowcs.c
new file mode 100644
index 000000000..f61800373
--- /dev/null
+++ b/libc/stdlib/mbstowcs.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbstowcs
+#include "stdlib.c"
diff --git a/libc/stdlib/mbtowc.c b/libc/stdlib/mbtowc.c
new file mode 100644
index 000000000..5d888d163
--- /dev/null
+++ b/libc/stdlib/mbtowc.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_mbtowc
+#include "stdlib.c"
diff --git a/libc/stdlib/old_atexit.c b/libc/stdlib/old_atexit.c
new file mode 100644
index 000000000..b15fd0aa2
--- /dev/null
+++ b/libc/stdlib/old_atexit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_old_atexit
+#include "_atexit.c"
diff --git a/libc/stdlib/on_exit.c b/libc/stdlib/on_exit.c
new file mode 100644
index 000000000..cb943aca1
--- /dev/null
+++ b/libc/stdlib/on_exit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_on_exit
+#include "_atexit.c"
diff --git a/libc/stdlib/qsort.c b/libc/stdlib/qsort.c
new file mode 100644
index 000000000..31fc2eaf8
--- /dev/null
+++ b/libc/stdlib/qsort.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_qsort
+#include "stdlib.c"
diff --git a/libc/stdlib/strtod.c b/libc/stdlib/strtod.c
new file mode 100644
index 000000000..7f59aef49
--- /dev/null
+++ b/libc/stdlib/strtod.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtod
+#include "_strtod.c"
diff --git a/libc/stdlib/strtod_l.c b/libc/stdlib/strtod_l.c
new file mode 100644
index 000000000..413124230
--- /dev/null
+++ b/libc/stdlib/strtod_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtod_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/strtof.c b/libc/stdlib/strtof.c
new file mode 100644
index 000000000..35e89771a
--- /dev/null
+++ b/libc/stdlib/strtof.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtof
+#include "_strtod.c"
diff --git a/libc/stdlib/strtof_l.c b/libc/stdlib/strtof_l.c
new file mode 100644
index 000000000..7b44d1b05
--- /dev/null
+++ b/libc/stdlib/strtof_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtof_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/strtol.c b/libc/stdlib/strtol.c
new file mode 100644
index 000000000..cee4e1347
--- /dev/null
+++ b/libc/stdlib/strtol.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtol
+#include "stdlib.c"
diff --git a/libc/stdlib/strtol_l.c b/libc/stdlib/strtol_l.c
new file mode 100644
index 000000000..d59c1e50c
--- /dev/null
+++ b/libc/stdlib/strtol_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtol_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/strtold.c b/libc/stdlib/strtold.c
new file mode 100644
index 000000000..91a3ba79d
--- /dev/null
+++ b/libc/stdlib/strtold.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtold
+#include "_strtod.c"
diff --git a/libc/stdlib/strtold_l.c b/libc/stdlib/strtold_l.c
new file mode 100644
index 000000000..7eccd00bb
--- /dev/null
+++ b/libc/stdlib/strtold_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtold_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/strtoll.c b/libc/stdlib/strtoll.c
new file mode 100644
index 000000000..a9c7c83ee
--- /dev/null
+++ b/libc/stdlib/strtoll.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoll
+#include "stdlib.c"
diff --git a/libc/stdlib/strtoll_l.c b/libc/stdlib/strtoll_l.c
new file mode 100644
index 000000000..9fa46bdd4
--- /dev/null
+++ b/libc/stdlib/strtoll_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoll_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/strtoul.c b/libc/stdlib/strtoul.c
new file mode 100644
index 000000000..e92d2464b
--- /dev/null
+++ b/libc/stdlib/strtoul.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoul
+#include "stdlib.c"
diff --git a/libc/stdlib/strtoul_l.c b/libc/stdlib/strtoul_l.c
new file mode 100644
index 000000000..2aef138a5
--- /dev/null
+++ b/libc/stdlib/strtoul_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoul_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/strtoull.c b/libc/stdlib/strtoull.c
new file mode 100644
index 000000000..60b626fe0
--- /dev/null
+++ b/libc/stdlib/strtoull.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoull
+#include "stdlib.c"
diff --git a/libc/stdlib/strtoull_l.c b/libc/stdlib/strtoull_l.c
new file mode 100644
index 000000000..81e045a4d
--- /dev/null
+++ b/libc/stdlib/strtoull_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtoull_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstod.c b/libc/stdlib/wcstod.c
new file mode 100644
index 000000000..08f802112
--- /dev/null
+++ b/libc/stdlib/wcstod.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstod
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstod_l.c b/libc/stdlib/wcstod_l.c
new file mode 100644
index 000000000..be0e58e51
--- /dev/null
+++ b/libc/stdlib/wcstod_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstod_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstof.c b/libc/stdlib/wcstof.c
new file mode 100644
index 000000000..27ad22f61
--- /dev/null
+++ b/libc/stdlib/wcstof.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstof
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstof_l.c b/libc/stdlib/wcstof_l.c
new file mode 100644
index 000000000..953ebe040
--- /dev/null
+++ b/libc/stdlib/wcstof_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstof_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstol.c b/libc/stdlib/wcstol.c
new file mode 100644
index 000000000..74462e1a8
--- /dev/null
+++ b/libc/stdlib/wcstol.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstol
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstol_l.c b/libc/stdlib/wcstol_l.c
new file mode 100644
index 000000000..4282987dc
--- /dev/null
+++ b/libc/stdlib/wcstol_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstol_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstold.c b/libc/stdlib/wcstold.c
new file mode 100644
index 000000000..cd879c110
--- /dev/null
+++ b/libc/stdlib/wcstold.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstold
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstold_l.c b/libc/stdlib/wcstold_l.c
new file mode 100644
index 000000000..2ea23b0d5
--- /dev/null
+++ b/libc/stdlib/wcstold_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstold_l
+#define __UCLIBC_DO_XLOCALE
+#include "_strtod.c"
diff --git a/libc/stdlib/wcstoll.c b/libc/stdlib/wcstoll.c
new file mode 100644
index 000000000..4cc9b05fb
--- /dev/null
+++ b/libc/stdlib/wcstoll.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoll
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstoll_l.c b/libc/stdlib/wcstoll_l.c
new file mode 100644
index 000000000..66c23c290
--- /dev/null
+++ b/libc/stdlib/wcstoll_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoll_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstombs.c b/libc/stdlib/wcstombs.c
new file mode 100644
index 000000000..c3d08d8d5
--- /dev/null
+++ b/libc/stdlib/wcstombs.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstombs
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstoul.c b/libc/stdlib/wcstoul.c
new file mode 100644
index 000000000..55427447c
--- /dev/null
+++ b/libc/stdlib/wcstoul.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoul
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstoul_l.c b/libc/stdlib/wcstoul_l.c
new file mode 100644
index 000000000..529e8e40b
--- /dev/null
+++ b/libc/stdlib/wcstoul_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoul_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstoull.c b/libc/stdlib/wcstoull.c
new file mode 100644
index 000000000..ea884ef08
--- /dev/null
+++ b/libc/stdlib/wcstoull.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoull
+#include "stdlib.c"
diff --git a/libc/stdlib/wcstoull_l.c b/libc/stdlib/wcstoull_l.c
new file mode 100644
index 000000000..976d103ee
--- /dev/null
+++ b/libc/stdlib/wcstoull_l.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wcstoull_l
+#define __UCLIBC_DO_XLOCALE
+#include "stdlib.c"
diff --git a/libc/stdlib/wctomb.c b/libc/stdlib/wctomb.c
new file mode 100644
index 000000000..3f612be27
--- /dev/null
+++ b/libc/stdlib/wctomb.c
@@ -0,0 +1,7 @@
+/* Copyright (C) 2004-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_wctomb
+#include "stdlib.c"
diff --git a/libc/unistd/__exec_alloc.c b/libc/unistd/__exec_alloc.c
new file mode 100644
index 000000000..837ffb472
--- /dev/null
+++ b/libc/unistd/__exec_alloc.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___exec_alloc
+#include "exec.c"
diff --git a/libc/unistd/execl.c b/libc/unistd/execl.c
new file mode 100644
index 000000000..176b18bcc
--- /dev/null
+++ b/libc/unistd/execl.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_execl
+#include "exec.c"
diff --git a/libc/unistd/execle.c b/libc/unistd/execle.c
new file mode 100644
index 000000000..05dd3a028
--- /dev/null
+++ b/libc/unistd/execle.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_execle
+#include "exec.c"
diff --git a/libc/unistd/execlp.c b/libc/unistd/execlp.c
new file mode 100644
index 000000000..b7e615d7b
--- /dev/null
+++ b/libc/unistd/execlp.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_execlp
+#include "exec.c"
diff --git a/libc/unistd/execv.c b/libc/unistd/execv.c
new file mode 100644
index 000000000..25030428d
--- /dev/null
+++ b/libc/unistd/execv.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_execv
+#include "exec.c"
diff --git a/libc/unistd/execvp.c b/libc/unistd/execvp.c
new file mode 100644
index 000000000..9fc025fcb
--- /dev/null
+++ b/libc/unistd/execvp.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_execvp
+#include "exec.c"