692 Commits

Author SHA1 Message Date
Guenter Obiltschnig
64635f7c8b - prefer clock_getttime() over gettimeofday() if available
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
2016-08-11 13:00:22 +02:00
Guenter Obiltschnig
a1b8f96111 fixed a potential buffer overrun in Path_WIN32U.cpp (noncritical, as the failing code should never be reached) 2016-08-03 17:25:36 +08:00
Guenter Obiltschnig
8e7018df90 #1319: remove call to poco_unexpected() 2016-08-02 13:11:04 +08:00
Günter Obiltschnig
cab7142a4e Merge pull request #1319 from ObjSal/develop
Fixes an issue in DirectoryWatcher where it stops listening for events
2016-08-02 13:07:14 +08:00
Salvador Guerrero
5be13279cb Fixes an issue in DirectoryWatcher where it stops listening for events after a batch deletion 2016-07-19 23:24:18 -06:00
Guenter Obiltschnig
4bc95aaedf fixed GH #1304: URI doesn't know ws:/ or wss:// schemes 2016-07-03 11:20:48 +02:00
Miklos Vajna
4421048c78 GH #1050 Util tests: fix gcc -Wshadow warnings 2016-05-11 09:55:43 +02:00
Günter Obiltschnig
ac4f0625fd Merge pull request #1131 from Kampbell/DynamicIgnoredToken
Make the Token ignore property a dynamic property.
2016-05-05 10:51:37 +02:00
Benoît Bleuzé
76254ca055 Improves timestamp resolution on Unix systems
Adds microsecond precision when possible on Linux,
BSD and Apple systems.

Uses platform specific `struct stat`, and `utimes()`,
instead of `utime()`.
2016-04-17 20:20:34 +02:00
Guenter Obiltschnig
9710a828a3 style fixes (something messed up if-else formatting) 2016-04-16 09:39:24 +02:00
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
FrancisANDRE
1c826040e5 Make the Token ignore property a dynamic property.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-20 17:01:41 +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