Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
git-svn-id: https://plibc.svn.sourceforge.net/svnroot/plibc/trunk/plibc@3 1596915d-9e13-0410-ab7f-96e59408e0f0
  • Loading branch information
ndurner committed Jan 16, 2008
1 parent 67de31e commit 04d9767
Show file tree
Hide file tree
Showing 135 changed files with 121,609 additions and 0 deletions.
6 changes: 6 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Core developer:
Nils Durner <ndurner@users.sourceforge.net>

Code contributions also came from:
Wez Furlong
Felix von Leitner
458 changes: 458 additions & 0 deletions COPYING

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

17 changes: 17 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -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

3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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)
23 changes: 23 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -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>
6 changes: 6 additions & 0 deletions acinclude.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@






5 changes: 5 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd libltdl
autoreconf -f -i
cd ..
autoreconf -f -i
80 changes: 80 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
@@ -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)
14 changes: 14 additions & 0 deletions contrib/plibcCheckSrc-printf.grep
Original file line number Diff line number Diff line change
@@ -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:]*(
43 changes: 43 additions & 0 deletions contrib/plibcCheckSrc.grep
Original file line number Diff line number Diff line change
@@ -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:]*(
6 changes: 6 additions & 0 deletions contrib/plibcCheckSrc.sh
Original file line number Diff line number Diff line change
@@ -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:]]+:
Loading

0 comments on commit 04d9767

Please sign in to comment.