Károly Balogh
ab1a82bfb3
fix typo in comment. no functional change.
...
git-svn-id: trunk@37567 -
2017-11-07 15:50:59 +00:00
pierre
0c7646761f
Also disable pthread_attr_setinheritsched call for BeOS
...
git-svn-id: trunk@37266 -
2017-09-20 13:56:05 +00:00
pierre
98be7e67f1
Disable FpSigTimedWait also for BeOS
...
git-svn-id: trunk@37259 -
2017-09-20 08:49:12 +00:00
marco
b6824290fc
* initial fileflush, mantis #15824
...
git-svn-id: trunk@37135 -
2017-09-03 16:41:32 +00:00
marco
d98065d706
* change external name of wait to wait instead of waitpid. Reported
...
by Toshihiko Okuhara, mantis #32288
git-svn-id: trunk@36858 -
2017-08-08 10:56:54 +00:00
michael
52cd572cec
* Use specific type for TFPSet elements
...
git-svn-id: trunk@36710 -
2017-07-09 14:47:27 +00:00
florian
a927181d87
* properly align threadvars for sparc64
...
git-svn-id: trunk@36694 -
2017-07-08 21:22:40 +00:00
svenbarth
d5c8fe7455
* on targets with indirect main entry argc, argv and envp are provided through the indirect entry information instead of externals
...
git-svn-id: trunk@36686 -
2017-07-08 19:18:20 +00:00
florian
453fedf089
* empty lines removed
...
git-svn-id: trunk@36541 -
2017-06-19 21:17:56 +00:00
florian
1b371b15e3
* make webtbs/tw30535 also working on OSes using cthreads
...
git-svn-id: trunk@35570 -
2017-03-12 09:28:41 +00:00
Jonas Maebe
6d5339cdb6
* CP819/IBM819 should be mapped to Windows code page 28591 (ISO8859-1)
...
(mantis #30639 )
git-svn-id: trunk@35397 -
2017-02-04 22:44:36 +00:00
michael
d05175a17f
* FileOpen should not open directories (Windows compatible) Bug ID #30766
...
git-svn-id: trunk@35063 -
2016-12-04 12:41:57 +00:00
yury
1ccf551d1c
* android: Try to get the package files directory for any shared library. If it is valid use it as a home dir.
...
* android: Always set the syslog tag.
git-svn-id: trunk@34926 -
2016-11-20 10:53:23 +00:00
Jonas Maebe
1c04470b66
* converted for-loop to while-loop, because its loop count is used on exit
...
even if no break is triggered
git-svn-id: trunk@34776 -
2016-11-01 14:01:41 +00:00
Jonas Maebe
85f2903b8b
* don't index past the end of the transitions array (mantis #30829 )
...
git-svn-id: trunk@34775 -
2016-11-01 14:01:38 +00:00
sergei
67bd4775fd
- Cleaned out thread manager semaphore support which was ever implemented only for Unix, and not used since r28965. This also reverts changes to System unit interface introduced in r27665.
...
git-svn-id: trunk@34542 -
2016-09-20 20:14:36 +00:00
florian
16ac523f50
* link always excplicitly against libc on linux when using the dl unit so
...
the correct startup code is used
git-svn-id: trunk@34370 -
2016-08-22 14:16:21 +00:00
florian
80fc6a459c
* corrected r34366 (powerpc -> cpupowerpc)
...
git-svn-id: trunk@34368 -
2016-08-22 10:23:09 +00:00
florian
385f13cae9
* excplicitly link against libc in the unit dl, so the correct startup files are used, resolves issue #29594
...
git-svn-id: trunk@34366 -
2016-08-22 10:03:58 +00:00
yury
7756dab2bf
* android: Create app files dir if needed.
...
git-svn-id: trunk@34356 -
2016-08-20 12:41:36 +00:00
yury
419c6ce61e
* android:
...
+ API to write to the Android system log.
+ API to redirect standard output and error to the Android system log. The redirection is performed automatically for shared libraries loaded by Java applications.
git-svn-id: trunk@34352 -
2016-08-19 20:21:52 +00:00
yury
3822515bd9
* android: Fixed GetAppConfigDir, GetAppConfigFile, GetUserDir, GetTempDir to return correct writable locations. For NDK libraries, the path to local storage of host Java app is used. For console apps the /data/local/tmp is used.
...
git-svn-id: trunk@34351 -
2016-08-19 18:07:57 +00:00
yury
064375ea72
* android: Use ICU to get timezone information if running on an Android version where libc does not implement timezone.
...
git-svn-id: trunk@34348 -
2016-08-19 14:57:02 +00:00
yury
2630f3c498
* android: Properly initialize time zone information.
...
git-svn-id: trunk@34332 -
2016-08-18 14:03:34 +00:00
Jonas Maebe
60d75fa97e
* fixed (harmless) range error in 64 bit BSD-based RTLs
...
git-svn-id: trunk@33736 -
2016-05-21 14:48:32 +00:00
michael
960963e74b
* SearchAttr needs more bits (faSymlink=$400), bug ID #29870
...
git-svn-id: trunk@33340 -
2016-03-27 00:01:14 +00:00
marco
66608fec02
* unicode executeprocess from work during Lazarus convention in IJsselstein
...
git-svn-id: trunk@33290 -
2016-03-19 17:59:42 +00:00
marco
581f1188a5
* deprecated dt routines in unixutils. Julian routines already were
...
duplicated to the implementations of dos & sysutils.
localtoepoch and vv not yet.
git-svn-id: trunk@32378 -
2015-11-20 15:06:29 +00:00
michael
b651a8925e
* Observe TZ and TZDir when determining timezone
...
git-svn-id: trunk@32369 -
2015-11-19 22:34:23 +00:00
michael
9447b975f2
* Fix bug #28987 , fpfd_clr, and fpfdfillset using cardinal instead of correctly sized culong
...
git-svn-id: trunk@32329 -
2015-11-15 12:14:14 +00:00
michael
fde42ca8ef
* Type helpers, compatible to Delphi XE 8
...
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
marco
266ebc351b
* remove some deprecated functions. Most have alternatives since at least 2.4, and more often 2.2
...
I left getdomainname in "unix" for now, I don't know the exact status.
git-svn-id: trunk@32255 -
2015-11-06 14:55:38 +00:00
Jonas Maebe
f0c0b00467
* avoid threadvar memory leaks for external hooked threads if the tlskey
...
thread data is finalised by libpthread before the CleanupKey routine
is called (based on patch by Derek, mantis #28806 )
git-svn-id: trunk@32168 -
2015-10-27 21:52:05 +00:00
yury
7688639a10
* Return a real base address for ELF executables by GetModuleByAddr() instead of hard-coded 0.
...
* Obtain a real processaddress for ELF images by OpenExeFile() instead of hard-coded 0.
* It fixes line info information for Position Independent Executables (PIE).
git-svn-id: trunk@32052 -
2015-10-13 20:08:03 +00:00
yury
e1a0b1204a
* Removed unused vars in RTL.
...
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
yury
6f15b5bf63
* Use /data/local/tmp/ as a fallback temp dir on Android.
...
git-svn-id: trunk@31720 -
2015-09-16 16:37:17 +00:00
Jonas Maebe
4e0d546323
* Use mbrlen instead of mblen under Haiku like on other Unix like platforms.
...
This fixes the twide3 unit test (patch by Olivier Coursière, mantis #28538 )
git-svn-id: trunk@31427 -
2015-08-25 21:26:05 +00:00
Jonas Maebe
dc1f5f1a13
* Haiku use UTF-8 from day one, so it make sense to use the corresponding
...
code page as the default one (patch by Olivier Coursière, mantis #28520 )
git-svn-id: trunk@31333 -
2015-08-16 13:22:57 +00:00
Jonas Maebe
7f61cf5519
* Modify CODESET value according to the corresponding declaration in
...
langinfo.h under Haiku (patch by Olivier Cousière, mantis #28523 )
git-svn-id: trunk@31329 -
2015-08-16 13:22:45 +00:00
michael
4242934edb
* Fixed ftruncate to take 64-bit argument
...
git-svn-id: trunk@30892 -
2015-05-21 07:32:30 +00:00
Jonas Maebe
9b987fde93
* fmShareDenyNone should also take a shared lock (+ test)
...
git-svn-id: trunk@30877 -
2015-05-17 11:08:08 +00:00
Jonas Maebe
31037d0664
* when creating a file with an exclusive sharing mode on Unix, first check
...
whether there isn't already a file and of so whether we can open it using
this exclusive sharing mode (since the locking is advisory, simply
overwriting any existing file and then locking it exclusively will
always work) (mantis #27998 )
git-svn-id: trunk@30861 -
2015-05-15 19:45:12 +00:00
michael
8196427ca6
* Patch from Bernd to fix SedDateTime (wrong tv_usec values, bug ID #27969 )
...
git-svn-id: trunk@30728 -
2015-04-26 08:43:47 +00:00
michael
9bf410e6a0
* Fix bug ID #27617 , heap messed up due to not resetting pointer
...
git-svn-id: trunk@30368 -
2015-03-29 15:54:49 +00:00
Jonas Maebe
1e227f78fe
* factored out the check for whether we have to generate dotted function
...
names, and disabled them for ppc64 ELFv2
* disabling those also disables the function descriptors, so use the
_CALL_ELF compiler variable to check whether there is in fact a
function descriptor
git-svn-id: trunk@30196 -
2015-03-14 18:35:25 +00:00
Jonas Maebe
6defd861b0
* fixed uninitialized function result in r30048 (mantis #27586 )
...
git-svn-id: trunk@30078 -
2015-03-02 21:45:40 +00:00
Jonas Maebe
9da8a2304a
* converted matching UTF-8 filenames in findfirst/findnext to use
...
system.Utf8CodePointLen()
git-svn-id: trunk@30048 -
2015-03-01 17:12:21 +00:00
Jonas Maebe
5a8959381c
+ Darwin/AArch64 support
...
git-svn-id: trunk@29934 -
2015-02-23 22:53:50 +00:00
svenbarth
2d454dc8fa
Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages.
...
Each port that allows the usage of dynamic libraries should call InitSystemDynLibs during initialization of the System unit.
The DynLibs unit has been adjusted to be a forwarder for the functions that now reside in the System unit (for backwards compatiblity just in case). Additionally the unit will register the DynLibsManager if it doesn't reside in the System unit anyway.
Currently only the Windows targets (Win32, Win64 and WinCE) implement the DynLibsManager inside the System unit. For other systems using the LoadLibrary, etc. functions will lead to a run error/exception.
If a port wants to implement its own DynLibsManager then it needs to define DISABLE_NO_DYNLIBS_MANAGER. TLibHandle, NilHandle and optionally TOrdinalEntry (it's set to SizeUInt otherwise) should be defined in sysdlh.inc which needs to be enabled using the define FPC_SYSTEM_HAS_SYSDLH (because there are targets which have FEATURE_DYNLIBS enabled, but don't support them... e.g. powerpc-wii -.-).
The DynLibsManager contains methods for loading a library based on a RawByteString and based on a UnicodeString. BOTH should be implemented, but internally one can forward to the other.
The loading by ordinal *can* be be implemented. If it is set to Nil then the implementation of GetProcAddress(lib,ordinal) will return Nil.
+ new functions SetDynLibsManager and GetDynLibsManager to set and retrieve the current DynLibsManager
* provide interface of DynLibs unit in unit System
git-svn-id: trunk@29613 -
2015-02-03 20:00:00 +00:00
Jonas Maebe
16183bebfe
* libc's open() function is a varargs function
...
git-svn-id: trunk@29585 -
2015-01-30 19:31:25 +00:00