Günter Obiltschnig
3e0d788162
fixes for compatibility
2016-04-15 17:40:09 +02:00
Tony Abbott
1db7811ce5
GH #1222 Escape command line arguments passed to Process::launch() on Windows
2016-04-15 16:45:41 +02:00
Aleksandar Fabijanic
3c735ff6b0
remove comment
2016-04-04 20:17:52 -05:00
Jörg Krause
30159aea4b
GNU version of strerror_r not available on musl
...
The GNU version of glibc' `strerror_r` is non-portable.
When the POSIX and GNU API collides musl always provides the POSIX API. That
being the case for `strerror_r` musl does only support the POSIX version,
despite of `_GNU_SOURCE`.
2016-04-04 21:02:17 +02:00
FrancisANDRE
620d9e109d
Merge remote-tracking branch 'pocoproject/develop' into IncreaseLoggerAdicity
2016-03-25 15:12:01 +01:00
FrancisANDRE
fd442f100e
Remove unused code. Extends Logger::testFormatAny up to 15 args.
...
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-03-25 10:04:42 +01:00
liuluheng
8f7afd4c99
Update DirectoryIteratorStrategy.cpp
2016-03-25 08:48:33 +08:00
liuluheng
6d0e71e68d
fix #1211
...
add try...catch to both DFS and BFS
2016-03-24 12:43:13 +08:00
Aleksandar Fabijanic
00a787e0cb
Merge pull request #945 from aaron0x/RefactoryBinaryReaderWriter
...
Refactory BinaryReader and BinaryWriter
2016-03-13 23:08:44 -07:00
Guenter Obiltschnig
139649fd61
TaskManager::count() now returns std::size_t; release mutex before posting progress notification
2016-03-09 20:22:44 +01:00
Mathäus Mendel
d67c9ea6f2
On AIX, statfs takes a non-const char* as the first parameter. Fixing it.
...
Since the function does not change the content of the variable, it is safe
to remove the constness of the variable for UNIX platforms.
2016-03-07 16:31:07 -03:00
Günter Obiltschnig
5a1920c935
Merge pull request #1132 from TcT2k/FileDiskSpace
...
Add partition space information to File class
2016-03-05 15:01:28 +01:00
Guenter Obiltschnig
c4c9bcb034
one more fix for #1002
2016-02-29 19:13:19 +01:00
Alex Fabijanic
14a0872556
Poco::NumberFormatter::format(float, precision) rounding changed #1128
2016-02-28 22:59:29 -06:00
Guenter Obiltschnig
4e85aa4df2
fixed GH #1128 : Poco::NumberFormatter::format(float, precision) rounding changed
2016-02-28 13:33:21 +01:00
Guenter Obiltschnig
861303267e
fixed GH #1002 : ActiveDispatcher saves reference to event context after event was performed until it gets new event
2016-02-27 17:49:54 +01:00
Guenter Obiltschnig
a1d8591dfd
fixed GH #1141 : Poco::StringTokenizer::TOK_TRIM changes behavior between 1.4 and 1.6
...
Conflicts:
Foundation/include/Poco/StringTokenizer.h
Foundation/src/StringTokenizer.cpp
2016-02-27 16:19:25 +01:00
Guenter Obiltschnig
53353d6ec1
support for Win8/Win10
2016-02-22 11:50:52 +01:00
Guenter Obiltschnig
94dbc1f34c
fix comment; don't send TaskProgressNotification if progress does not change
2016-02-13 20:22:02 +01:00
Tobias Taschner
9972496811
Add partition space information to File class
...
Add File::totalSpaceImpl(), File::usableSpaceImpl() and File::freeSpaceImpl() to retrieve total, available and usable space in the filesystem for the specified path.
2016-01-22 09:58:40 +01:00
Mike Gelfand
0425866486
Allow for process termination when polling with isRunning
...
On *NIX, one needs to call `waitpid()` in order for process to exit the
zombie state. If one uses `Process::isRunning()` to emulate non-blocking
wait for child process termination, process will stay zombie and function
will always return true.
This commit changes `Process::isRunning()` to call `waitpid()` with
`WNOHANG` instead of using `kill()` when checking for child process (i.e.
the one we have ProcessHandle for), which allows for process termination.
Additional trickery with mutex and event is needed to prevent exceptions
when `Process::isRunning()` and/or `Process::wait()` is called concurrently
on the same handle from different threads.
Fixes #1097 .
2016-01-09 02:36:55 +03:00
Rangel Reale
b47f38fc33
* Don't leak <windows.h> (Poco/Unwindows.h) to library users
2015-12-10 13:16:02 -02:00
Guenter Obiltschnig
fbf10469b3
Merge branch 'develop' of https://github.com/pocoproject/poco into develop
2015-12-08 14:55:20 +01:00
Aleksandar Fabijanic
cf02d38986
Merge pull request #1066 from fbraem/develop
...
Escape Unicode in JSON
2015-12-07 11:56:49 -06:00
fbraem
18b92b5b36
Use escape to correctly escape unicode characters
2015-12-07 17:33:10 +01:00
fbraem
7086d93324
Add escape/unescape functions
2015-12-07 17:31:49 +01:00
Alex Fabijanic
95f1a7c30d
Process hangs on waitpid #1063
2015-12-06 23:18:29 -06:00
Guenter Obiltschnig
dc2e299bef
Merge branch 'develop' of https://github.com/pocoproject/poco into develop
2015-12-05 11:54:07 +01:00
Miklos Vajna
b9cfd346a1
GH #1050 Foundation: fix gcc -Wshadow warnings
2015-11-30 15:49:07 +01:00
Guenter Obiltschnig
e896d92585
fix error handling in setThreadName ( #1022 )
2015-11-13 11:12:09 +01:00
Guenter Obiltschnig
825e99578a
GH #1022 : clean-up setThreadName
2015-11-10 10:07:48 +01:00
Günter Obiltschnig
c25d9f00e5
Merge pull request #973 from aaboyd/move-overwrite-on-windows
...
overwrite existing files on windows when moving files
2015-10-09 09:35:58 +02:00
Alex Boyd
7ef3c2e44c
overwrite existing files on windows when moving files
2015-10-09 00:48:23 -04:00
Mike Gelfand
3abdb1fc23
Return non-zero from ProcessHandle::wait if killed by signal
...
Currently, ProcessHandle::wait (and transitively Process::wait) on *NIX
return zero if process was terminated as a result of unhandled signal.
Check if this is the case and return negative signal number instead to
indicate non-graceful process termination.
2015-10-03 15:32:15 +03:00
Guenter Obiltschnig
92e2a19661
added EventChannel class (from macchina.io)
2015-09-30 11:03:03 +02:00
Guenter Obiltschnig
5184a8526f
tvOS support
2015-09-29 14:25:54 +02:00
Guenter Obiltschnig
06ab1e9820
setThreadName: abbreviate thread name if too long
2015-09-28 22:46:31 +02:00
David Morán
8f1f678f76
Named substring support
2015-09-28 02:21:21 +02:00
aaron0x
0a64390399
Enhance FileChannel purge setting.
2015-09-26 23:31:30 +08:00
aaron0x
928a7ffce8
avoid redundant strlen.
2015-09-20 19:52:30 +08:00
aaron0x
7d079772ef
add missing return.
2015-09-20 05:35:04 +08:00
aaron0x
3e7f722ca6
1. move flipBytes(float/double) to ByteOrder.
...
2. remove redundant code from BinaryWriter and BinaryReader.
2015-09-20 05:21:36 +08:00
FrancisANDRE
a4479552b6
add SharedLibrary::getOSName() to improve portability of shared library
...
real filename over different OS like Linux/Unix/Cygwin & Windows.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-09-19 08:28:26 +02:00
Guenter Obiltschnig
622d9d4c6c
NumberParser::parseHex[64](): allow 0x/0X prefix
2015-09-09 14:38:08 +02:00
FrancisANDRE
7f01fbc3db
add std::string SharedLibrary::prefix() for building library name that
...
complies with Cygwin standard.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:48:26 +02:00
Aleksandar Fabijanic
23f8842a14
Merge pull request #903 from zosrothko/develop
...
Various fixes for Cygwin X86_64 port and additional minor fixes
2015-08-20 16:56:46 -05:00
Guenter Obiltschnig
ec71e76f0a
PatternFormatter fix, added test
2015-08-20 20:23:13 +02:00
Guenter Obiltschnig
fafe691a04
fixes for style and consistency
2015-08-20 14:55:17 +02:00
Günter Obiltschnig
74ffb112bc
Merge pull request #907 from dedvalson/develop
...
PatternFormatter Priority Name Enhancement
2015-08-20 14:48:36 +02:00
Günter Obiltschnig
bc5d83cf5f
Merge pull request #909 from mkrivos/develop
...
Some more runtime exceptions types
2015-08-19 09:07:14 +02:00