pierre
9bba5c956a
Add support for indirect values
...
git-svn-id: trunk@21830 -
2012-07-09 13:46:11 +00:00
pierre
2d6093645f
Add a C compilation phase to check Error value
...
git-svn-id: trunk@21826 -
2012-07-09 13:14:37 +00:00
pierre
b93b08427f
Set needgsed to 0 for non-NetBSD systems
...
git-svn-id: trunk@21823 -
2012-07-09 09:56:45 +00:00
tom_at_work
4150f0a2fb
Rebase with r21814
...
git-svn-id: branches/targetandroid@21815 -
2012-07-07 23:09:20 +00:00
sergei
185e34915c
- Removed level 2 comments and control characters in comments.
...
git-svn-id: trunk@21726 -
2012-06-27 20:04:39 +00:00
pierre
cd0522189c
Try to improve system error check script
...
git-svn-id: trunk@21633 -
2012-06-17 14:47:26 +00:00
marco
0757517dde
* more removal of deprecated functions (deprecated before 2.4.0)
...
old copies of routines in dos, and some shortstring shorthands for fsplit.
git-svn-id: trunk@21359 -
2012-05-22 08:04:24 +00:00
marco
043ff2c81c
* more deprecations. Copies of stringtypes usually defined in unit dos, but
...
that are no longer needed.
git-svn-id: trunk@21358 -
2012-05-22 08:00:36 +00:00
marco
725a280059
* sleeper vfork code copied from deleted parts so it is not lost, made
...
shortstring version call the ansistring one.
git-svn-id: trunk@21336 -
2012-05-19 14:03:20 +00:00
marco
455d675c5a
* removed an empty overloaded version of statfs that could be called recursively
...
and its use in sysutils. Fixes failure of tw1041 and tw9985 in last runs.
git-svn-id: trunk@21334 -
2012-05-19 12:09:39 +00:00
marco
1a73c652ca
* improve deprecation message.
...
git-svn-id: trunk@21333 -
2012-05-19 11:58:59 +00:00
marco
0ddd03eef2
* removed some deprecated functions (deprecated since 2.2.0/2007 times)
...
* added some new minor deprecations (mostly unused constants that are
potentially not crossplatform, and an shortstring version of a function)
git-svn-id: trunk@21321 -
2012-05-18 12:11:06 +00:00
marco
6c0ba4af0c
* getfs deprecated, replaced by a totally crossplatform sysutils.getfilehandle, probably already since 2.4.0
...
git-svn-id: trunk@21317 -
2012-05-17 16:58:09 +00:00
tom_at_work
77a85b7448
* basic android/x86 support
...
git-svn-id: branches/targetandroid@21296 -
2012-05-14 21:14:12 +00:00
tom_at_work
bf2a01cfeb
fix pthreads use with Android: it does not provide some functions. This patch is partially based on the bug report 0021525. Further, fix use of sem_timedwait in cthreads.pp since Android supports it.
...
git-svn-id: branches/targetandroid@21066 -
2012-04-26 19:05:06 +00:00
tom_at_work
a7b48be598
bugfixes:
...
- do not compile ipc unit for android, not supported
- fix geterrnolocation external name
- implement dummy getdomainname; does not exist in android
- remove wrong 'if defined(android)' clauses
git-svn-id: branches/targetandroid@21065 -
2012-04-26 13:15:52 +00:00
tom_at_work
acbc94e0fd
- initial support for the android/arm target in the compiler; resulting .so's can be used for Android/ARM app development.
...
- basic rtl support using system calls
- fp(c)make/fppkg/makefile support
todo:
- revisit systems/t_android.pas: mostly duplicate with t_linux.pas, containing
lots of unnecessary code
- revisit rtl changes
- android ndk header translation import
- better app build/packaging support
- android/x86 support
git-svn-id: branches/targetandroid@21061 -
2012-04-26 09:36:42 +00:00
pierre
cea6ca2df9
Fix FpSigProcMask overload for OpenBSD: Warning this probably breaks compilation of unix's RTL by obsolete 2.4.4 release compiler, 2.6.0 required
...
git-svn-id: trunk@21005 -
2012-04-23 10:12:43 +00:00
pierre
8c047abb43
+ New script to check constant entries against system headers
...
git-svn-id: trunk@20934 -
2012-04-19 14:56:32 +00:00
pierre
3f24548e58
+ New script to check errnostr.inc entries
...
git-svn-id: trunk@20933 -
2012-04-19 14:55:57 +00:00
pierre
0309511353
Add clean option, do not create executable (unneeded)
...
git-svn-id: trunk@20932 -
2012-04-19 14:52:47 +00:00
pierre
9106753b8a
Improve check_sys.sh script
...
git-svn-id: trunk@20926 -
2012-04-19 07:18:13 +00:00
pierre
1592f98a69
Avoid inappropriate file name expansion
...
git-svn-id: trunk@20921 -
2012-04-18 15:43:47 +00:00
pierre
6568de7e0f
Avoid \t which is not supported properly on NetBSD and accept negative values
...
git-svn-id: trunk@20918 -
2012-04-18 10:50:16 +00:00
pierre
c4288ea2c0
* Fix missing echo command
...
git-svn-id: trunk@20916 -
2012-04-18 10:35:47 +00:00
pierre
eb90a60afe
New test for sysnr.inc system error numbers
...
git-svn-id: trunk@20914 -
2012-04-18 10:31:29 +00:00
pierre
90f12d0e4d
Improve check for Linux
...
git-svn-id: trunk@20913 -
2012-04-18 10:30:19 +00:00
pierre
b3f3e0d2a1
Move check_sys.sh to unix/scripts directory
...
git-svn-id: trunk@20911 -
2012-04-18 10:24:34 +00:00
pierre
11fe796ac3
Add script directory
...
git-svn-id: trunk@20910 -
2012-04-18 10:10:03 +00:00
pierre
7d82ed4459
+ Add ACCEPT_646 for systems that return '646' for nl_langinfo(CODESET) call
...
git-svn-id: trunk@20905 -
2012-04-17 15:28:28 +00:00
Tomas Hajny
d442d14e0c
+ FileNameCasePreserving added - see #18066 in Mantis
...
git-svn-id: trunk@20894 -
2012-04-15 20:56:13 +00:00
Jonas Maebe
f0b7ce8afe
* fix building for Haiku/BeOS after r20839 (patch by Olivier Coursière)
...
git-svn-id: trunk@20878 -
2012-04-14 20:36:02 +00:00
Jonas Maebe
1e9b92ee50
+ AIX support for cwstring
...
o AIX-specific codepage names
o AIX/ppc32 uses a 16 bit wchar_t
o special support for handling cp866 on AIX: AIX only supports converting
cp866 from/to ISO8859-5 -> always use that code page as an intermediate
one on AIX (it's lossy, but better than completely failing)
* in case the default system code page cannot be detected, fall back to
UTF-8
git-svn-id: trunk@20839 -
2012-04-11 18:06:22 +00:00
Jonas Maebe
2c1f98320f
* disable implicit exception frames, no exceptions are raised by this unit
...
git-svn-id: trunk@20838 -
2012-04-11 18:06:18 +00:00
Jonas Maebe
d545a72f1a
+ lnfogdb unit that can use gdb to symbolicate backtraces on unix targets
...
(used for stabx/aix)
git-svn-id: trunk@20833 -
2012-04-11 18:05:56 +00:00
Jonas Maebe
9a1cd0ec4c
* fixed checking the address of installed signal handlers on aix and
...
linux/ppc64 (have to look past the function descriptors)
git-svn-id: trunk@20820 -
2012-04-11 18:04:50 +00:00
Jonas Maebe
7c0469e1fd
* link libbsd for AIX, because several UNIX routines are part of its BSD
...
Compatibility library
git-svn-id: trunk@20788 -
2012-04-11 18:00:08 +00:00
Jonas Maebe
8d8fc0fdee
+ RTL for AIX
...
git-svn-id: trunk@20786 -
2012-04-11 17:59:49 +00:00
pierre
ae83b5ce92
Return -1 for fpIOPL and set errno to ESysENoSys for non-linux systems
...
git-svn-id: trunk@20773 -
2012-04-09 21:55:18 +00:00
pierre
55665c6713
Set local variable s to empty string at entry of transform_cp437_to_UTF8 function
...
git-svn-id: trunk@20772 -
2012-04-09 21:54:19 +00:00
Jonas Maebe
d3004d2bf6
* use same defaults for iPhoneSimulator as for iOS (UTF-8 etc, newer
...
iPhoneSimulator platforms no longer inherit the Mac OS X settings)
git-svn-id: trunk@20653 -
2012-03-29 17:13:29 +00:00
pierre
ff5d25174a
* Fix wide string shared library loading by adding 'lib' prefix if needed
...
git-svn-id: trunk@20568 -
2012-03-22 09:02:07 +00:00
Jonas Maebe
cc736fe115
* use same code path for iphonesim as for darwin (should fix mantis #21190 )
...
git-svn-id: trunk@20374 -
2012-02-17 20:28:43 +00:00
pierre
ea9f152d64
* Remove local redefinition of types and clarify TIPC_Perm record
...
git-svn-id: trunk@20354 -
2012-02-15 13:18:30 +00:00
pierre
24d100d164
NetBSD CODESET and LC_ALL added
...
git-svn-id: trunk@20337 -
2012-02-13 16:43:45 +00:00
pierre
b4f024362b
NetBSD code added
...
git-svn-id: trunk@20336 -
2012-02-13 16:43:16 +00:00
sergei
e94508d5eb
* Improved utf16 to ucs4 conversion routines: removed function call on every character, allocate memory once and made as much as possible code shared between WideString and UnicodeString versions.
...
git-svn-id: trunk@20269 -
2012-02-06 17:55:06 +00:00
sergei
c862aec17c
* cwstring.pp, Wide2AnsiMove: moved SetCodePage to the end, so it comes after the last SetLength. Necessary after r20209, because SetLength has been modified to always set the code page of its argument. Here it sets code page of 'dest' to CP_NONE, because dest is RawByteString.
...
(Before r20209, SetLength was preserving code page when the string was resized in place and had refcount=1)
git-svn-id: trunk@20214 -
2012-02-01 21:08:13 +00:00
marco
a0b200db76
* Add dlvsym under ifdef ELF, defined ELF for the OSes I could check
...
(FreeBSD, OpenBSD, Linux) Mantis #18892
git-svn-id: trunk@20134 -
2012-01-21 11:56:40 +00:00
Jonas Maebe
eb680bcc5b
* don't try to set the iconv transliterate property in case the iconv
...
encoder was not successfully initialised
git-svn-id: trunk@19965 -
2012-01-04 16:08:15 +00:00
Jonas Maebe
f287cf3f61
* default to UTF-8 as system code page in case nl_langinfo(CODESET) returns
...
an empty string
git-svn-id: trunk@19964 -
2012-01-04 16:06:27 +00:00
michael
2625b1dfa4
* Improved efficiency of Now/Date/Time
...
git-svn-id: trunk@19572 -
2011-11-02 14:33:33 +00:00
michael
86c0b324fd
* Added ReReadTimeZone
...
git-svn-id: trunk@19569 -
2011-11-01 18:05:38 +00:00
paul
b7185a554c
rtl:
...
- replace ifndef ver2_4 with ifdef FPC_HAS_CPSTRING for places with TextRec.CodePage access
- convert codepages for Read and Write text file operations
git-svn-id: trunk@19545 -
2011-10-25 08:40:49 +00:00
paul
e08c68f308
rtl: set codepages for TextRec field when Text file is opened + update this field for standard IO files when cwstring is used
...
git-svn-id: trunk@19543 -
2011-10-25 06:27:54 +00:00
paul
270fb09e87
rtl: add WideStringManager.GetStandardCodePageProc method to retrieve system ansi and console code pages
...
git-svn-id: trunk@19539 -
2011-10-25 01:39:11 +00:00
paul
3e29f0b179
rtl: make cwstring.pp dependent of dynlibs, load iconvctl dynamically
...
git-svn-id: trunk@19538 -
2011-10-25 01:25:23 +00:00
Jonas Maebe
9ee27c1606
* support for iOS-specific location of "localtime" time zone file
...
(problem reported at http://blogs.embarcadero.com/ao/2011/10/20/39180 )
git-svn-id: trunk@19537 -
2011-10-24 19:24:57 +00:00
Jonas Maebe
01b980a462
* added "inc" extension to {$i winiconv}
...
git-svn-id: trunk@19529 -
2011-10-22 08:59:07 +00:00
Jonas Maebe
2b63a7d66f
* fixed compilation on darwin/arm after r19522
...
* replaced defined(arm) with defined(cpuarm) checks (cleaner)
git-svn-id: trunk@19528 -
2011-10-22 08:40:37 +00:00
paul
5d7d143300
rtl: transliterate characters if possible intead of replacing them with "?" chars while converting between codepages
...
git-svn-id: trunk@19522 -
2011-10-21 03:23:23 +00:00
pierre
ad40c306cd
* Use recent libc __errno function for OpenBSD
...
git-svn-id: trunk@19447 -
2011-10-10 21:33:58 +00:00
pierre
dbd3df9ddf
+ Added OpenBSD CODESET and LC_ALL values
...
git-svn-id: trunk@19369 -
2011-10-04 22:20:41 +00:00
pierre
7f69e6426d
* Try to update i386/openbsd port
...
git-svn-id: trunk@19350 -
2011-10-03 23:22:28 +00:00
paul
6384fa2a19
rtl: revert r19330. We probably need to create a separate encoding<->codepage table.
...
git-svn-id: trunk@19332 -
2011-10-03 10:28:14 +00:00
paul
a0e7196ae9
rtl: move winiconv.inc into general inc directory and rename it to wincodepages.inc, also rename win2iconv, iconv2win to CodePageToCodePageName, CodePageNameToCodePage.
...
This change is required since CodePage to CodePage name conversions are required in other parts of RTL. Moreover those codepage identifiers are windows codepage identifiers and thus must be compatible with codepage identifiers used by delphi.
git-svn-id: trunk@19330 -
2011-10-03 03:35:45 +00:00
Jonas Maebe
591230104b
* prevent the internal windows code page number -> iconv name and vice versa
...
conversion routines from resulting in any code page conversions themselves
git-svn-id: trunk@19320 -
2011-10-01 23:26:12 +00:00
Jonas Maebe
258869c8f1
* and one more fix to prevent endless loops
...
git-svn-id: trunk@19196 -
2011-09-23 19:16:48 +00:00
Jonas Maebe
3469942f34
* fixed potential endless loop if the code page passed to win2iconv()
...
is not found
git-svn-id: trunk@19195 -
2011-09-23 18:34:31 +00:00
Jonas Maebe
7dd5811828
+ support for transcoding the new ansistring type on unix platforms
...
* initialize DefaultSystemCodePage on unix platforms
git-svn-id: trunk@19194 -
2011-09-23 17:32:18 +00:00
marco
07fabab526
* fpgetsid, Mantis #20329
...
git-svn-id: trunk@19178 -
2011-09-22 13:21:38 +00:00
michael
1579470a68
* Also check TMPDIR, a UNIX standard used by a.o. iOS (mantis #20248 )
...
git-svn-id: trunk@19175 -
2011-09-22 11:29:50 +00:00
paul
528f7fbb06
rtl: manual merge some cpstrnew changes which was impossible to merge using regular tools due to the merge conflicts
...
git-svn-id: trunk@19137 -
2011-09-18 01:40:56 +00:00
paul
091627883f
merge r14347 from cpstrnew branch by florian:
...
* fixed bootstrapping with 2.4.0
* patches by Graeme Geldenhuys, resolve #15251 , #15252 , #15253
git-svn-id: trunk@19102 -
2011-09-17 12:00:06 +00:00
florian
c32bc3a22a
* patch by Nikolay Nikolov to support Alt-Tab and Ctrl-Tab on the linux console, resolves #19247
...
git-svn-id: trunk@18225 -
2011-08-16 18:58:50 +00:00
marco
7eeb4ab539
* also return fasymbolic if dir is found.
...
* update getattr to also return fasymbolic
Patch by Dimitri B. Mantis #16817
git-svn-id: trunk@18043 -
2011-08-01 11:36:28 +00:00
marco
2c00a2a0b3
* fixed FPC_USE_LIBC building for Linux and exception handling (mantis #13450 )
...
- fixed a platform modifier in ipc.pp
- fixed different layout sigaction record in libc. (field order)
- fixed many bad use_libc fixes in linux. Most of these were only checked
for compilation, not linking. (e.g. futex doesn't link)
git-svn-id: trunk@18042 -
2011-07-31 23:36:17 +00:00
michael
e357dc3fb9
* LongdateFormat equals shortdateformat (no longdateformat is available in langinfo) Bug #19616 .
...
git-svn-id: trunk@17914 -
2011-07-02 13:42:44 +00:00
michael
a201f07420
* Added share mode argument to FileCreate call
...
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
florian
16b47d4e07
* patch by Nikolay Nikolov to use a hardware block cursor on the
...
linux console, resolves #19259
git-svn-id: trunk@17516 -
2011-05-20 20:39:43 +00:00
michael
be484359b8
* Corrected fix for FileAge
...
git-svn-id: trunk@17224 -
2011-04-02 15:28:24 +00:00
michael
9747f7f0cd
* Do not allow fileage for directories (15873)
...
git-svn-id: trunk@17221 -
2011-04-02 10:43:39 +00:00
sergei
d3fe020a55
* Don't use deprecated symbols anymore, silences compilation.
...
* GetFormatSettings function now can fill an arbitrary TFormatSettings record.
git-svn-id: trunk@17209 -
2011-03-30 16:20:56 +00:00
marco
d9773a2ee0
* added alias for statsfs
...
git-svn-id: trunk@17037 -
2011-02-27 20:14:11 +00:00
marco
608498c64c
* committed the fpc/ hierarchy parts of the patch in mants 18271:
...
Adding clocale to Solaris.
git-svn-id: trunk@16771 -
2011-01-16 10:37:02 +00:00
Jonas Maebe
a2e8134b7c
* part of r16533, forgot to commit
...
* also fixes CharLengthPChar() for non-BeOS by initialising the mbstate
parameter passed to mbrlen() to 0 (otherwise its contents are interpreted
as already valid, containing information about the current shiftstate etc)
git-svn-id: trunk@16552 -
2010-12-11 18:08:16 +00:00
sergei
cbdc08b641
* dynlibs.pas: added 'const' modifiers to eliminate unnecessary local string copies
...
git-svn-id: trunk@16366 -
2010-11-18 22:09:48 +00:00
Jonas Maebe
0cb2fa1baf
+ semtimedop() for Linux, marked as "platform" (last part of patch from
...
mantis #14075 )
git-svn-id: trunk@16339 -
2010-11-13 18:37:43 +00:00
Jonas Maebe
36aa39cc38
o fixed several Linux ipc bugs, based on patch by Ruben Chaer/
...
Pablo Alfaro (mantis #14075 , also fixes #13363 ):
* ipc msgtyp is clong, not cint
* TIPC_Perm and TSEMid_ds are different on 64 bit systems
* fixed passing semun arguments (have to be passed by value, not reference)
* fixed the order of parameters to msg* syscalls, and don't use
TIPC_Kludge for msgrcv syscall (only for ipccall.inc variants)
* use new operation variants on 64 bit platforms in ipccall.inc
* introduced use kernel_mode/uid/gid_t types for use by the Linux ipc
records
* fixed type of TSEMid_ds.sem_base for Darwin
* added {$packrecords c} to ipc unit, and {$packrecords 4} around
certain structs for Darwin as in the C headers
* fixed passing semun argument to semctl for libc platforms (by
value, not reference)
git-svn-id: trunk@16336 -
2010-11-13 16:58:23 +00:00
Jonas Maebe
c4488f6b3a
* hook up CompareUnicodeStringProc and CompareTextUnicodeStringProc in
...
cwstring (fixes webtbs/tw17591.pp on unix platforms)
* enhanced webtbs/tw17591.pp so it also (superficially) checks the
correctness of the called routines, and add cwstring for unix platforms
git-svn-id: trunk@16298 -
2010-11-03 12:16:20 +00:00
michael
8dd254b281
* Fixed synchronize/waitfor issue
...
git-svn-id: trunk@16145 -
2010-10-12 18:08:24 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
Jonas Maebe
1258fd6ef0
- disabled FpSigTimedWait also for haiku (based on patch by
...
Olivier Coursiere, mantis #16996 )
git-svn-id: trunk@15620 -
2010-07-20 20:54:04 +00:00
Jonas Maebe
62ece31615
- disabled fpsigtimedwait for darwin because it doesn't exist there
...
git-svn-id: trunk@15605 -
2010-07-18 22:07:33 +00:00
daniel
1009a84e25
+ Add modify_ldt to linux unit
...
+ Add sched_yield to linux unit
- Remove clone for m68k from linux unit (unimplemented assembler section)
+ Add fpsigtimedwait to baseunix unit
git-svn-id: trunk@15602 -
2010-07-18 21:53:26 +00:00
Jonas Maebe
d7cdd9afba
* allow tthread-based threads to only start executing once the constructor
...
has finished running (based on patch by Jared Davison, mantis #16884 )
git-svn-id: trunk@15599 -
2010-07-18 16:31:25 +00:00
Jonas Maebe
bfc1a6ff1c
+ added support for intialising/finalising threads not started via the FPC
...
runtime
git-svn-id: trunk@15557 -
2010-07-12 16:16:50 +00:00
Tomas Hajny
03f52902f3
* do not use / as DriveSeparator
...
git-svn-id: trunk@15454 -
2010-06-19 16:22:10 +00:00
Jonas Maebe
194855eee0
* de-tabbed
...
git-svn-id: trunk@15419 -
2010-06-13 11:44:33 +00:00
Jonas Maebe
45c813929a
* update the coordinates properly if a string is written that exactly fills
...
a line (mantis #15599 )
git-svn-id: trunk@15241 -
2010-05-08 11:29:25 +00:00