Permalink
Browse files

Initial import

git-svn-id: https://plibc.svn.sourceforge.net/svnroot/plibc/trunk/plibc@3 1596915d-9e13-0410-ab7f-96e59408e0f0
  • Loading branch information...
1 parent 67de31e commit 04d976735639dd2525854395a15851322d19b1fd ndurner committed Jan 16, 2008
Showing with 121,609 additions and 0 deletions.
  1. +6 −0 AUTHORS
  2. +458 −0 COPYING
  3. +49 −0 ChangeLog
  4. +17 −0 Makefile.am
  5. +3 −0 NEWS
  6. +23 −0 README
  7. +6 −0 acinclude.m4
  8. +5 −0 bootstrap
  9. +80 −0 configure.in
  10. +14 −0 contrib/plibcCheckSrc-printf.grep
  11. +43 −0 contrib/plibcCheckSrc.grep
  12. +6 −0 contrib/plibcCheckSrc.sh
  13. +515 −0 libltdl/COPYING.LIB
  14. +645 −0 libltdl/Makefile
  15. +48 −0 libltdl/Makefile.am
  16. +645 −0 libltdl/Makefile.in
  17. +10 −0 libltdl/README
  18. +6,306 −0 libltdl/acinclude.m4
  19. +918 −0 libltdl/aclocal.m4
  20. +23,471 −0 libltdl/autom4te.cache/output.0
  21. +23,471 −0 libltdl/autom4te.cache/output.1
  22. +350 −0 libltdl/autom4te.cache/requests
  23. +2,878 −0 libltdl/autom4te.cache/traces.0
  24. +720 −0 libltdl/autom4te.cache/traces.1
  25. +195 −0 libltdl/config-h.in
  26. +1,391 −0 libltdl/config.guess
  27. +196 −0 libltdl/config.h
  28. +1,275 −0 libltdl/config.status
  29. +1,493 −0 libltdl/config.sub
  30. +23,471 −0 libltdl/configure
  31. +79 −0 libltdl/configure.ac
  32. +310 −0 libltdl/install-sh
  33. +7,370 −0 libltdl/libtool
  34. +4,482 −0 libltdl/ltdl.c
  35. +361 −0 libltdl/ltdl.h
  36. +6,402 −0 libltdl/ltmain.sh
  37. +360 −0 libltdl/missing
  38. +1 −0 libltdl/stamp-h1
  39. +32 −0 m4/ChangeLog
  40. +36 −0 m4/Makefile.am
  41. +410 −0 m4/Makefile.in
  42. +35 −0 m4/ac_define_dir.m4
  43. +23 −0 m4/codeset.m4
  44. +178 −0 m4/freetype2.m4
  45. +487 −0 m4/gettext.m4
  46. +212 −0 m4/glib-2.0.m4
  47. +380 −0 m4/glib-gettext.m4
  48. +32 −0 m4/glibc21.m4
  49. +196 −0 m4/gtk-2.0.m4
  50. +221 −0 m4/guile.m4
  51. +103 −0 m4/iconv.m4
  52. +72 −0 m4/intdiv0.m4
  53. +32 −0 m4/intmax.m4
  54. +32 −0 m4/inttypes-pri.m4
  55. +27 −0 m4/inttypes.m4
  56. +28 −0 m4/inttypes_h.m4
  57. +26 −0 m4/isc-posix.m4
  58. +32 −0 m4/lcmessage.m4
  59. +112 −0 m4/lib-ld.m4
  60. +551 −0 m4/lib-link.m4
  61. +155 −0 m4/lib-prefix.m4
  62. +108 −0 m4/libgcrypt.m4
  63. +30 −0 m4/longdouble.m4
  64. +25 −0 m4/longlong.m4
  65. +49 −0 m4/nls.m4
  66. +57 −0 m4/pkg.m4
  67. +426 −0 m4/po.m4
  68. +46 −0 m4/printf-posix.m4
  69. +91 −0 m4/progtest.m4
  70. +19 −0 m4/signed.m4
  71. +61 −0 m4/size_max.m4
  72. +28 −0 m4/stdint_h.m4
  73. +32 −0 m4/uintmax_t.m4
  74. +25 −0 m4/ulonglong.m4
  75. +22 −0 m4/wchar_t.m4
  76. +22 −0 m4/wint_t.m4
  77. +14 −0 m4/xsize.m4
  78. +15 −0 plibc.lsm.in
  79. +91 −0 plibc.spec.in
  80. +65 −0 src/Makefile.am
  81. +47 −0 src/access.c
  82. +32 −0 src/atoll.c
  83. +45 −0 src/chdir.c
  84. +47 −0 src/chmod.c
  85. +60 −0 src/choosedir.c
  86. +56 −0 src/choosefile.c
  87. +70 −0 src/close.c
  88. +49 −0 src/creat.c
  89. +52 −0 src/ctime.c
  90. +641 −0 src/errno.c
  91. +92 −0 src/flock.c
  92. +49 −0 src/fopen.c
  93. +49 −0 src/fread.c
  94. +54 −0 src/fstat.c
  95. +44 −0 src/fsync.c
  96. +41 −0 src/fwrite.c
  97. +38 −0 src/gettimeofday.c
  98. +10 −0 src/include/Makefile.am
  99. +161 −0 src/include/langinfo.h
  100. +593 −0 src/include/plibc.h
  101. +83 −0 src/include/plibc_private.h
  102. +188 −0 src/inet_ntop.c
  103. +333 −0 src/inet_pton.c
  104. +42 −0 src/intl.c
  105. +217 −0 src/langinfo.c
  106. +32 −0 src/lseek.c
  107. +67 −0 src/mkstemp.c
  108. +175 −0 src/mmap.c
  109. +67 −0 src/open.c
  110. +46 −0 src/opendir.c
  111. +339 −0 src/path.c
  112. +35 −0 src/pid.c
  113. +50 −0 src/pipe.c
  114. +427 −0 src/plibc.c
  115. +1,200 −0 src/printf.c
  116. +35 −0 src/random.c
  117. +92 −0 src/read.c
  118. +58 −0 src/readlink.c
  119. +45 −0 src/realpath.c
  120. +53 −0 src/registry.c
  121. +46 −0 src/remove.c
  122. +53 −0 src/rename.c
  123. +45 −0 src/rmdir.c
  124. +267 −0 src/select.c
  125. +304 −0 src/shortcut.cc
  126. +247 −0 src/socket.c
  127. +146 −0 src/stat.c
  128. +118 −0 src/statfs.c
  129. +677 −0 src/strerror.c
  130. +165 −0 src/string.c
  131. +751 −0 src/strptime.c
  132. +53 −0 src/symlink.c
  133. +72 −0 src/truncate.c
  134. +46 −0 src/unlink.c
  135. +94 −0 src/write.c
View
@@ -0,0 +1,6 @@
+Core developer:
+Nils Durner <ndurner@users.sourceforge.net>
+
+Code contributions also came from:
+Wez Furlong
+Felix von Leitner
View
458 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,49 @@
+2006-01-12 Nils Durner <ndurner@users.sourceforge.net>
+ * plibc_conv_to_win_path(_ex)() no longer crashes if passed null pointers
+
+2006-01-05 Nils Durner <ndurner@users.sourceforge.net>
+ * fstat() didn't work with pipes
+ * support for "$HOME" in path names
+
+2006-05-13 Nils Durner <ndurner@users.sourceforge.net>
+ * releasing 0.1.3
+
+2006-05-08 Nils Durner <ndurner@users.sourceforge.net>
+ * strncasecmp(), strcasecmp
+
+2006-04-18 Nils Durner <ndurner@users.sourceforge.net>
+ * stat64, lstat64
+
+2006-12-03 Nils Durner <ndurner@users.sourceforge.net>
+
+ * support for locales in strptime
+ * define MAP_FAILED
+ * define EILSEQ and EOVERFLOW
+ * strndup
+
+2005-12-20 Nils Durner <ndurner@users.sourceforge.net>
+
+ * dereferencing symlinks/shortcuts always set errno = EINVAL
+ * readlink() returned incorrect data sometimes
+
+2005-09-04 Nils Durner <ndurner@users.sourceforge.net>
+
+ * Added check for ftruncate()
+ * Fix symlink(): when overwriting an existing link, a link by the same name
+ as the orginal file was created
+ * Make header file compatible with gcc 2.95 (Unix)
+ * Fix symlinks under Win9x
+ * If newfile named a symlink, rename() didn't operate on the link itself
+ * Symlink names were not expanded (dir/file -> dir\file.lnk)
+ * Add support for "Open file" common dialog
+ * fix mkstemp()
+ * fix memory leak in symlink dereferencing
+
+2005-07-08 Nils Durner <ndurner@users.sourceforge.net>
+
+ * releasing 0.1.0
+
+2005-04-27 Nils Durner <ndurner@users.sourceforge.net>
+
+ * initial version.
+
View
@@ -0,0 +1,17 @@
+INCLUDES = -I$(top_srcdir)/src/include
+SUBDIRS = src
+
+EXTRA_DIST = \
+ AUTHORS \
+ COPYING \
+ ChangeLog \
+ Makefile.am \
+ NEWS \
+ README \
+ acinclude.m4 \
+ configure.in \
+ plibc.lsm.in \
+ plibc.spec.in
+
+ACLOCAL_AMFLAGS = -I m4
+
View
3 NEWS
@@ -0,0 +1,3 @@
+ * Newer versions of MinGW define ftruncate(). Because of that,
+ a check needs to be added to configure.ac/configure.in:
+ AC_CHECK_FUNCS(ftruncate)
View
23 README
@@ -0,0 +1,23 @@
+ plibc - POSIX compliant libc extension for Windows
+
+
+
+ Copyright (C) 2005 Nils Durner
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Comments are welcome.
+
+ - Nils Durner <ndurner@users.sourceforge.net>
View
@@ -0,0 +1,6 @@
+
+
+
+
+
+
View
@@ -0,0 +1,5 @@
+#!/bin/sh
+cd libltdl
+autoreconf -f -i
+cd ..
+autoreconf -f -i
View
@@ -0,0 +1,80 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT([PlibC], [0.1.3],[plibc-devel@lists.sf.net])
+dnl Every other copy of the package version number gets its value from here
+AM_INIT_AUTOMAKE(PlibC, 0.1.3)
+
+dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
+AM_CONFIG_HEADER(config.h)
+
+AC_SUBST(VERSION)
+
+ISODATE=`date +%Y-%m-%d`
+AC_SUBST(ISODATE)
+
+AC_CANONICAL_HOST
+
+# Check system type
+case "$host_os" in
+*cygwin*)
+ AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
+ AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system])
+ build_target="windows"
+ ;;
+*mingw*)
+ AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
+ AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system])
+ build_target="windows"
+ ;;
+*)
+ build_target="unix"
+;;
+esac
+
+AC_MSG_CHECKING([for build target])
+AM_CONDITIONAL(WINDOWS, test "$build_target" = "windows")
+AC_MSG_RESULT([$build_target])
+
+# We define the paths here, because MinGW/GCC expands paths
+# passed through the command line ("-DLOCALEDIR=..."). This would
+# lead to hard-coded paths ("C:\mingw\mingw\bin...") that do
+# not contain the actual installation.
+AC_DEFINE_DIR([LOCALEDIR], [datadir/locale], [gettext catalogs])
+
+dnl Checks for programs.
+AC_PROG_INSTALL
+AC_PROG_CC
+AC_PROG_CXX
+
+# dynamic libraries
+AC_LIBLTDL_INSTALLABLE
+AC_SUBST(LTDLINCL)
+AC_SUBST(LIBLTDL)
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AC_LIB_LTDL
+AC_CONFIG_SUBDIRS(libltdl)
+
+AC_CHECK_LIB(intl, gettext)
+LDFLAGS="$LDFLAGS -no-undefined -Wl,--export-all-symbols -lws2_32"
+
+dnl Checks for libraries.
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h )
+AC_CHECK_FUNCS(ftruncate)
+
+AC_HEADER_MAJOR
+AC_FUNC_ALLOCA
+AC_STRUCT_TM
+AC_STRUCT_ST_BLOCKS
+AC_FUNC_CLOSEDIR_VOID
+AC_CHECK_FUNCS(mkfifo)
+AC_CHECK_FUNC(mknod)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+
+dnl Checks for library functions.
+
+AC_OUTPUT(Makefile src/Makefile src/include/Makefile plibc.lsm plibc.spec)
@@ -0,0 +1,14 @@
+[^[:alnum:]_.->]printf[:space:]*(
+[^[:alnum:]_.->]fprintf[:space:]*(
+[^[:alnum:]_.->]vprintf[:space:]*(
+[^[:alnum:]_.->]vfprintf[:space:]*(
+[^[:alnum:]_.->]vsprintf[:space:]*(
+[^[:alnum:]_.->]vsnprintf[:space:]*(
+[^[:alnum:]_.->]snprintf[:space:]*(
+[^[:alnum:]_.->]sprintf[:space:]*(
+[^[:alnum:]_.->]vsscanf[:space:]*(
+[^[:alnum:]_.->]sscanf[:space:]*(
+[^[:alnum:]_.->]vfscanf[:space:]*(
+[^[:alnum:]_.->]vscanf[:space:]*(
+[^[:alnum:]_.->]scanf[:space:]*(
+[^[:alnum:]_.->]fscanf[:space:]*(
View
@@ -0,0 +1,43 @@
+[^[:alnum:]_.->]access[:space:]*(
+[^[:alnum:]_.->]bindtextdomain[:space:]*(
+[^[:alnum:]_.->]creat[:space:]*(
+[^[:alnum:]_.->]fopen[:space:]*(
+[^[:alnum:]_.->]opendir[:space:]*(
+[^[:alnum:]_.->]open[:space:]*(
+[^[:alnum:]_.->]chdir[:space:]*(
+[^[:alnum:]_.->]close[:space:]*(
+[^[:alnum:]_.->]rmdir[:space:]*(
+[^[:alnum:]_.->]access[:space:]*(
+[^[:alnum:]_.->]chmod[:space:]*(
+[^[:alnum:]_.->]fstat[:space:]*(
+[^[:alnum:]_.->]pipe[:space:]*(
+[^[:alnum:]_.->]remove[:space:]*(
+[^[:alnum:]_.->]rename[:space:]*(
+[^[:alnum:]_.->]stat[:space:]*(
+[^[:alnum:]_.->]unlink[:space:]*(
+[^[:alnum:]_.->]write[:space:]*(
+[^[:alnum:]_.->]read[:space:]*(
+[^[:alnum:]_.->]fread[:space:]*(
+[^[:alnum:]_.->]fwrite[:space:]*(
+[^[:alnum:]_.->]symlink[:space:]*(
+[^[:alnum:]_.->]mmap[:space:]*(
+[^[:alnum:]_.->]munmap[:space:]*(
+[^[:alnum:]_.->]strerror[:space:]*(
+[^[:alnum:]_.->]readlink[:space:]*(
+[^[:alnum:]_.->]lstat[:space:]*(
+[^[:alnum:]_.->]accept[:space:]*(
+[^[:alnum:]_.->]bind[:space:]*(
+[^[:alnum:]_.->]connect[:space:]*(
+[^[:alnum:]_.->]getpeername[:space:]*(
+[^[:alnum:]_.->]getsockname[:space:]*(
+[^[:alnum:]_.->]getsockopt[:space:]*(
+[^[:alnum:]_.->]listen[:space:]*(
+[^[:alnum:]_.->]recv[:space:]*(
+[^[:alnum:]_.->]recvfrom[:space:]*(
+[^[:alnum:]_.->]select[:space:]*(
+[^[:alnum:]_.->]send[:space:]*(
+[^[:alnum:]_.->]sendto[:space:]*(
+[^[:alnum:]_.->]setsockopt[:space:]*(
+[^[:alnum:]_.->]shutdown[:space:]*(
+[^[:alnum:]_.->]socket[:space:]*(
+[^[:alnum:]_.->]gethostbyname[:space:]*(
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Checks source files for function calls that are not directed
+# to PlibC
+
+grep -nrf plibcCheckSrc.grep $1/* | egrep \.c:[[:digit:]]+:
Oops, something went wrong.

0 comments on commit 04d9767

Please sign in to comment.