projects/iolib/libfixposix.git
5 months agoFix typo: lfp_mkostemp not mkostemp master
Stelian Ionescu [Mon, 19 Nov 2012 16:54:05 +0000] 
Fix typo: lfp_mkostemp not mkostemp

5 months agoInclude stdlib.h for OSX
Stelian Ionescu [Mon, 19 Nov 2012 16:53:51 +0000] 
Include stdlib.h for OSX

5 months agoMove macro checks up, seems to fix OSX bug
Stelian Ionescu [Mon, 19 Nov 2012 16:16:39 +0000] 
Move macro checks up, seems to fix OSX bug

7 months agoMake the includes C++-friendly again, "template" is a reserved keyword
Stelian Ionescu [Sat, 6 Oct 2012 17:18:55 +0000] 
Make the includes C++-friendly again, "template" is a reserved keyword

9 months agoStyle fix
Stelian Ionescu [Tue, 14 Aug 2012 23:01:37 +0000] 
Style fix

9 months agoUse plain strlen instead of pathconf+strnlen
Stelian Ionescu [Tue, 14 Aug 2012 20:05:07 +0000] 
Use plain strlen instead of pathconf+strnlen

Bug found by Coverity Scan

9 months agoioctl.c needs termios.h for TIOCSCTTY
David Lichteblau [Tue, 15 Mar 2011 14:54:35 +0000] 
ioctl.c needs termios.h for TIOCSCTTY

9 months agoUse gcc-specific __attribute__ only on gcc
David Lichteblau [Tue, 15 Mar 2011 14:53:39 +0000] 
Use gcc-specific __attribute__ only on gcc

9 months agoAdd lfp_mkostemp()
Stelian Ionescu [Tue, 14 Aug 2012 02:44:11 +0000] 
Add lfp_mkostemp()

9 months agoFix typo
Stelian Ionescu [Tue, 14 Aug 2012 02:36:11 +0000] 
Fix typo

9 months agoImplement mkstemp() instead of wrapping the system-provided instance
Stelian Ionescu [Tue, 14 Aug 2012 02:31:06 +0000] 
Implement mkstemp() instead of wrapping the system-provided instance

In addition to POSIX mkstemp(), lfp_mkstemp() opens files using mode 0600 and O_CLOEXEC

9 months agoFix file-descriptor leak in LFP_SPAWN_FILE_ACTION_OPEN
Stelian Ionescu [Sat, 11 Aug 2012 22:18:56 +0000] 
Fix file-descriptor leak in LFP_SPAWN_FILE_ACTION_OPEN

Bug found by Coverity Scan

9 months agoAdd macro GET_ERRNO
Stelian Ionescu [Sat, 11 Aug 2012 22:17:18 +0000] 
Add macro GET_ERRNO

9 months agoMove macros used in just one file to the place of use
Stelian Ionescu [Sat, 11 Aug 2012 22:16:36 +0000] 
Move macros used in just one file to the place of use

9 months agoFix licence name in .spec file
Stelian Ionescu [Sat, 11 Aug 2012 22:15:17 +0000] 
Fix licence name in .spec file

10 months agoLFP_REQUIRE_HEADERS and LFP_REQUIRE_FUNCS now report the precise missing feature
Stelian Ionescu [Wed, 27 Jun 2012 14:00:51 +0000] 
LFP_REQUIRE_HEADERS and LFP_REQUIRE_FUNCS now report the precise missing feature

10 months agolfp_parse_memsize now returns int64_t
Stelian Ionescu [Wed, 27 Jun 2012 11:44:11 +0000] 
lfp_parse_memsize now returns int64_t

On some systems ssize_t is 32-bit, so use int64_t

10 months agoAllow make check to complete if tests disabled
Stelian Ionescu [Wed, 27 Jun 2012 10:42:27 +0000] 
Allow make check to complete if tests disabled

10 months agoDisable test suite by default
Stelian Ionescu [Wed, 27 Jun 2012 10:42:03 +0000] 
Disable test suite by default

10 months agoMake test suite optional
Stelian Ionescu [Wed, 27 Jun 2012 10:29:37 +0000] 
Make test suite optional

10 months agoMove test suite check at the end of configure.ac
Stelian Ionescu [Wed, 27 Jun 2012 10:29:19 +0000] 
Move test suite check at the end of configure.ac

10 months agoUpdate Debian build files
Stelian Ionescu [Tue, 26 Jun 2012 19:29:56 +0000] 
Update Debian build files

11 months agoRelease 0.2.4 v0.2.4
Stelian Ionescu [Wed, 13 Jun 2012 14:53:06 +0000] 
Release 0.2.4

11 months agolfp_tty_attach: fix FD leak
Stelian Ionescu [Wed, 13 Jun 2012 14:44:56 +0000] 
lfp_tty_attach: fix FD leak

11 months agoRelease 0.2.3 v0.2.3
Stelian Ionescu [Wed, 13 Jun 2012 14:08:30 +0000] 
Release 0.2.3

11 months agoAdd lfp_tty_attach() and lfp_tty_fattach(), use for LFP_SPAWN_SETCTTY
Stelian Ionescu [Wed, 13 Jun 2012 13:48:55 +0000] 
Add lfp_tty_attach() and lfp_tty_fattach(), use for LFP_SPAWN_SETCTTY

11 months agoLFP_SPAWN_SETCTTY requires LFP_SPAWN_SETSID
Stelian Ionescu [Wed, 13 Jun 2012 13:47:34 +0000] 
LFP_SPAWN_SETCTTY requires LFP_SPAWN_SETSID

11 months agoUpdate Debian control file to standards version 3.9.3
Stelian Ionescu [Wed, 30 May 2012 16:30:13 +0000] 
Update Debian control file to standards version 3.9.3

11 months agoRelease 0.2.2 v0.2.2
Stelian Ionescu [Wed, 30 May 2012 16:10:07 +0000] 
Release 0.2.2

11 months agoFreeBSD: define __BSD_VISIBLE to access OS-specific syscalls
Stelian Ionescu [Wed, 30 May 2012 16:09:42 +0000] 
FreeBSD: define __BSD_VISIBLE to access OS-specific syscalls

11 months agoAdd RPM .spec file
Stelian Ionescu [Wed, 30 May 2012 16:08:39 +0000] 
Add RPM .spec file

12 months agoMention dependency on check in the README
Stelian Ionescu [Sat, 5 May 2012 20:12:22 +0000] 
Mention dependency on check in the README

15 months agoFix comment
Stelian Ionescu [Tue, 31 Jan 2012 14:55:01 +0000] 
Fix comment

16 months agoUse AS_IF in configure.ac
Stelian Ionescu [Mon, 16 Jan 2012 00:58:45 +0000] 
Use AS_IF in configure.ac

16 months agoFix tests: proper signature of main()
Stelian Ionescu [Sat, 24 Dec 2011 20:55:34 +0000] 
Fix tests: proper signature of main()

17 months agoShorter lfp_strndup()
Stelian Ionescu [Sun, 4 Dec 2011 23:23:16 +0000] 
Shorter lfp_strndup()

17 months agoRemove stray include
Stelian Ionescu [Sun, 4 Dec 2011 22:53:56 +0000] 
Remove stray include

17 months agolfp_getpath() now accepts NULL meaning the global environment
Stelian Ionescu [Sun, 4 Dec 2011 22:39:22 +0000] 
lfp_getpath() now accepts NULL meaning the global environment

17 months agolfp_getpath() now does some minimal checks returning the default PATH if they fail
Stelian Ionescu [Sun, 4 Dec 2011 22:38:52 +0000] 
lfp_getpath() now does some minimal checks returning the default PATH if they fail

17 months agoUpdate Debian build rules
Stelian Ionescu [Fri, 25 Nov 2011 23:34:33 +0000] 
Update Debian build rules

17 months agoRelease 0.2.1 v0.2.1
Stelian Ionescu [Fri, 25 Nov 2011 22:04:53 +0000] 
Release 0.2.1

17 months agoAdd lfp_parse_memsize()
Stelian Ionescu [Fri, 25 Nov 2011 17:30:36 +0000] 
Add lfp_parse_memsize()

17 months agoSave compile flags properly during tests
Stelian Ionescu [Fri, 25 Nov 2011 17:28:22 +0000] 
Save compile flags properly during tests

17 months agoDefine LFP_* flags later during configure
Stelian Ionescu [Fri, 25 Nov 2011 17:27:48 +0000] 
Define LFP_* flags later during configure

17 months agoSyntax and standards-compliance fixes
Stelian Ionescu [Fri, 25 Nov 2011 17:27:08 +0000] 
Syntax and standards-compliance fixes

17 months agoCosmetic change
Stelian Ionescu [Fri, 25 Nov 2011 16:42:55 +0000] 
Cosmetic change

18 months agoRelease 0.2
Stelian Ionescu [Mon, 14 Nov 2011 14:57:15 +0000] 
Release 0.2

18 months agoAdd dependency on check >= 0.9.4 to Debian rules
Stelian Ionescu [Mon, 14 Nov 2011 14:05:13 +0000] 
Add dependency on check >= 0.9.4 to Debian rules

18 months agoAdd dependency on libcheck for the test suite
Stelian Ionescu [Tue, 8 Nov 2011 23:24:28 +0000] 
Add dependency on libcheck for the test suite

18 months agoCosmetic fixes
Stelian Ionescu [Wed, 2 Nov 2011 13:01:49 +0000] 
Cosmetic fixes

18 months agoFix typoes
Stelian Ionescu [Wed, 2 Nov 2011 13:01:43 +0000] 
Fix typoes

18 months agoMark symbols hidden by default, add explicit exports
Stelian Ionescu [Wed, 2 Nov 2011 13:00:46 +0000] 
Mark symbols hidden by default, add explicit exports

18 months agoAuto-include config.h, split utils.h into macros.h and inlines.h
Stelian Ionescu [Wed, 2 Nov 2011 12:58:41 +0000] 
Auto-include config.h, split utils.h into macros.h and inlines.h

18 months agoBring back __xpg_strerror_r
Stelian Ionescu [Wed, 2 Nov 2011 12:53:09 +0000] 
Bring back __xpg_strerror_r

18 months agoMove library auxiliary files into src/
Stelian Ionescu [Wed, 2 Nov 2011 12:51:55 +0000] 
Move library auxiliary files into src/

19 months agoEnable threading extensions on Solaris
Stelian Ionescu [Sun, 9 Oct 2011 19:45:34 +0000] 
Enable threading extensions on Solaris

19 months agoQuote shell variables in Autoconf macros
Stelian Ionescu [Sun, 9 Oct 2011 17:55:44 +0000] 
Quote shell variables in Autoconf macros

19 months agoAdd comment
Stelian Ionescu [Sat, 8 Oct 2011 21:09:27 +0000] 
Add comment

19 months agoRemove stray SYSERR(ENOSYS) from lfp_getpeereid()
Stelian Ionescu [Sat, 8 Oct 2011 00:52:33 +0000] 
Remove stray SYSERR(ENOSYS) from lfp_getpeereid()

19 months agoAllocate ucred_t on the stack
Stelian Ionescu [Sat, 8 Oct 2011 00:28:01 +0000] 
Allocate ucred_t on the stack

19 months agoAdd lfp_getpeereid()
Stelian Ionescu [Sat, 8 Oct 2011 00:13:10 +0000] 
Add lfp_getpeereid()

19 months agoShorter check for OSX
Stelian Ionescu [Fri, 7 Oct 2011 22:58:52 +0000] 
Shorter check for OSX

19 months agoFix typo
Stelian Ionescu [Fri, 7 Oct 2011 22:56:51 +0000] 
Fix typo

19 months agoFix typo
Stelian Ionescu [Mon, 26 Sep 2011 16:50:54 +0000] 
Fix typo

19 months agoDeclare the main language to be C
Stelian Ionescu [Mon, 26 Sep 2011 16:49:51 +0000] 
Declare the main language to be C

19 months agoCheck for sys/signal.h before using
Stelian Ionescu [Mon, 26 Sep 2011 16:49:41 +0000] 
Check for sys/signal.h before using

19 months agoMake lfp_wifcontinued() return false if WIFCONTINUED isn't defined, like on NetBSD 5.1
Stelian Ionescu [Sun, 25 Sep 2011 21:17:26 +0000] 
Make lfp_wifcontinued() return false if WIFCONTINUED isn't defined, like on NetBSD 5.1

19 months agoVarious fixes for NetBSD
Stelian Ionescu [Sun, 25 Sep 2011 21:07:39 +0000] 
Various fixes for NetBSD

19 months agoAdd checks for OSX Mach features
Stelian Ionescu [Sat, 24 Sep 2011 21:07:51 +0000] 
Add checks for OSX Mach features

19 months agoDon't define _XOPEN_SOURCE on OSX
Stelian Ionescu [Sat, 24 Sep 2011 21:07:27 +0000] 
Don't define _XOPEN_SOURCE on OSX

19 months agoCheck for NSIG in sys/signal.h too
Stelian Ionescu [Sat, 24 Sep 2011 21:06:50 +0000] 
Check for NSIG in sys/signal.h too

20 months agoThe second argument of lfp_execve() and lfp_execvpe() too must be non-NULL
Stelian Ionescu [Fri, 16 Sep 2011 00:13:15 +0000] 
The second argument of lfp_execve() and lfp_execvpe() too must be non-NULL

20 months agoUse execve() instead of lfp_execve() in lfp_execvpe(), so as not to check arguments...
Stelian Ionescu [Fri, 16 Sep 2011 00:12:40 +0000] 
Use execve() instead of lfp_execve() in lfp_execvpe(), so as not to check arguments twice

20 months agoAdd lfp_set_environ()
Stelian Ionescu [Thu, 15 Sep 2011 20:49:02 +0000] 
Add lfp_set_environ()

20 months agoAdd lfp_clerenv()
Stelian Ionescu [Thu, 15 Sep 2011 20:48:50 +0000] 
Add lfp_clerenv()

20 months agoCosmetic changes
Stelian Ionescu [Thu, 15 Sep 2011 16:50:20 +0000] 
Cosmetic changes

20 months agoUse strtok_r() instead of strsep()
Stelian Ionescu [Thu, 15 Sep 2011 16:40:01 +0000] 
Use strtok_r() instead of strsep()

20 months agoAdd libnsl to search list for socket()
Stelian Ionescu [Thu, 15 Sep 2011 16:24:09 +0000] 
Add libnsl to search list for socket()

20 months agoUse LFP_SEARCH_LIBS to search for socket()
Stelian Ionescu [Thu, 15 Sep 2011 16:19:03 +0000] 
Use LFP_SEARCH_LIBS to search for socket()

20 months agoUse LFP_SEARCH_LIBS to search for clock_gettime()
Stelian Ionescu [Thu, 15 Sep 2011 16:18:49 +0000] 
Use LFP_SEARCH_LIBS to search for clock_gettime()

20 months agoAdd LFP_SEARCH_LIBS
Stelian Ionescu [Thu, 15 Sep 2011 16:18:29 +0000] 
Add LFP_SEARCH_LIBS

20 months agoReplace AC_CHECK_FUNCS_ONCE with AC_CHECK_FUNCS
Stelian Ionescu [Thu, 15 Sep 2011 16:17:37 +0000] 
Replace AC_CHECK_FUNCS_ONCE with AC_CHECK_FUNCS

20 months agoFix lfp_spawn() test: use lfp_get_environ() instead of environ
Stelian Ionescu [Fri, 9 Sep 2011 13:29:50 +0000] 
Fix lfp_spawn() test: use lfp_get_environ() instead of environ

20 months agoRequire program getconf
Stelian Ionescu [Thu, 8 Sep 2011 15:35:44 +0000] 
Require program getconf

20 months agoAdd Debian watch file
Stelian Ionescu [Thu, 8 Sep 2011 15:02:46 +0000] 
Add Debian watch file

20 months agoPrint some useful information at the start of configure: build dirs and build flags
Stelian Ionescu [Thu, 8 Sep 2011 14:42:59 +0000] 
Print some useful information at the start of configure: build dirs and build flags

20 months agoMove warning about $builddir up
Stelian Ionescu [Thu, 8 Sep 2011 14:42:04 +0000] 
Move warning about $builddir up

20 months agoMove all build-related files to build/
Stelian Ionescu [Thu, 8 Sep 2011 14:13:11 +0000] 
Move all build-related files to build/

20 months agoFix the pselect-less branch of lfp_select
Stelian Ionescu [Wed, 7 Sep 2011 15:05:06 +0000] 
Fix the pselect-less branch of lfp_select

20 months agoDeclare as constant the first argument of time struct converters
Stelian Ionescu [Wed, 7 Sep 2011 15:01:56 +0000] 
Declare as constant the first argument of time struct converters

20 months agoBetter detection of non-C99 users in aux.h
Stelian Ionescu [Tue, 6 Sep 2011 21:57:31 +0000] 
Better detection of non-C99 users in aux.h

20 months agoRename CPLUSPLUS_GUARD -> LFP_BEGIN_DECLS, END_CPLUSPLUS_GUARD -> LFP_END_DECLS
Stelian Ionescu [Tue, 6 Sep 2011 21:48:47 +0000] 
Rename CPLUSPLUS_GUARD -> LFP_BEGIN_DECLS, END_CPLUSPLUS_GUARD -> LFP_END_DECLS

20 months agoBetter wrapping of strerror_r
Stelian Ionescu [Tue, 6 Sep 2011 21:32:44 +0000] 
Better wrapping of strerror_r

Drop test for __xpg_strerror_r and move lfp_strerror to its own file,
where _GNU_SOURCE is undefined before including system headers

20 months agoRevert "Don't use += in configure"
Stelian Ionescu [Tue, 6 Sep 2011 18:55:45 +0000] 
Revert "Don't use += in configure"

The configure script checks that the shell supports += so it's safe to use

This reverts commit efdc08afef2b6da64f0d7167133bb313e92ef494.

20 months agoAdd Debian build rules
Stelian Ionescu [Tue, 6 Sep 2011 00:07:32 +0000] 
Add Debian build rules

20 months agoDon't use += in configure
Stelian Ionescu [Mon, 5 Sep 2011 23:34:38 +0000] 
Don't use += in configure

20 months agoDon't install config.h, rather use AC_SUBST to hardcode flags in headers
Stelian Ionescu [Mon, 5 Sep 2011 23:34:03 +0000] 
Don't install config.h, rather use AC_SUBST to hardcode flags in headers

20 months agoAdd header guards to config.h
Stelian Ionescu [Mon, 5 Sep 2011 21:31:07 +0000] 
Add header guards to config.h

20 months agoAdd LFP_REQUIRE_PROG, use it to check for getconf
Stelian Ionescu [Mon, 5 Sep 2011 21:30:53 +0000] 
Add LFP_REQUIRE_PROG, use it to check for getconf

20 months agoAdd copyright to configure.ac
Stelian Ionescu [Mon, 5 Sep 2011 21:04:46 +0000] 
Add copyright to configure.ac