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
marco
02069109d1
* haiku also sinlen, Mantis 16176
...
git-svn-id: trunk@15104 -
2010-04-01 11:38:55 +00:00
marco
8cce3d3f91
* closethread thread manager field/function. Mantis 13160
...
git-svn-id: trunk@15072 -
2010-03-26 23:31:52 +00:00
Jonas Maebe
4d8f578e4c
* when typecasting the result of pthread_self, always call it using
...
pthread_self(), because it's a procvar under Linux and hence otherwise
the value of the procvar instead of the function result will be
taken (mantis #15821 )
git-svn-id: trunk@15049 -
2010-03-24 21:51:07 +00:00
marco
c477df5046
* TCriticalSection.Tryenter support (Mantis 15928) + short test/demo
...
tested on FreeBSD (general Unix) and Windows. Note that Haiku seems
to have a native threadmgr rather than the Unix one. Will notify
maintainer (Olivier)
git-svn-id: trunk@15026 -
2010-03-21 11:34:05 +00:00
Jonas Maebe
3ea3a41d2a
o patch from Olivier for Haiku libiconv functionality (mantis #15906 ):
...
* Haiku's nl_langinfo implementation is now used under Haiku instead of
the BeOS stub.
* Fix linking to iconv in the iconvenc package. The prefix has change
since the previous Haiku's version.
git-svn-id: trunk@14995 -
2010-03-09 09:58:14 +00:00
Jonas Maebe
9cd0a2ff1e
* link to libpthread at compile time on Linux to avoid problems on some
...
newer glibc systems when it's only loaded dynamically at run time
git-svn-id: trunk@14970 -
2010-03-04 15:36:35 +00:00
marco
be98b13554
* fix for 11263, changed fileread and fd_zero to out using $modeswitch.
...
git-svn-id: trunk@14965 -
2010-03-01 22:35:14 +00:00
Tomas Hajny
5c31042f6a
* SharedSuffix moved to include files to reduce number of ifdefs
...
git-svn-id: trunk@14902 -
2010-02-13 15:44:12 +00:00
pierre
048b2ba67b
* fix pthread problem wen using nice for solaris
...
git-svn-id: trunk@14823 -
2010-01-28 19:05:42 +00:00
pierre
df33542ca9
+ Timezone support for solaris
...
git-svn-id: trunk@14821 -
2010-01-28 11:03:32 +00:00
marco
b8d5a8f44c
* Linux specific time_t fixes. Also tested with -dFPC_USE_LIBC and more problem fixed.
...
git-svn-id: trunk@14586 -
2010-01-09 22:02:36 +00:00
marco
5d87461507
* moves the alias "TTime = time_t" from ptypes.inc to unixtype.pp.
...
This means it is not aliased in the body of the system unit (which causes
trouble with the delphi type of the same name), but baseunix/unix/unixtype
will containue to export the type.
git-svn-id: trunk@14584 -
2010-01-09 16:05:42 +00:00
marco
8e9a7e14ad
* Revised yesterday solution to a more general one. Executeprocess gets
...
another parameter, a set type with flags, default = []
git-svn-id: trunk@14572 -
2010-01-07 20:49:28 +00:00
Jonas Maebe
b214448b9e
* don't access the thread instance after calling DoTerminate to avoid
...
race conditions in case DoTerminate can cause the thread to be freed
already. Side-effect: changing FreeOnTerminate in DoTerminate no longer
has any effects, but this is compatible with the generic code for
ThreadProc in objpas/classes/classes.inc (patch by Nikolai ZHUBR)
git-svn-id: trunk@14504 -
2009-12-30 14:46:56 +00:00
florian
a3884c4e49
* fixes bootstrapping with 2.2.x
...
git-svn-id: trunk@14355 -
2009-12-07 20:16:31 +00:00
pierre
90ddd046bc
* Use default functions if call to iconv_open failed
...
git-svn-id: trunk@14352 -
2009-12-07 16:57:12 +00:00
Jonas Maebe
722d48c8c2
* only return an error if locking a file fails when the file is already
...
locked, but not when another error occurs (such as EsysNOLCK, because
this error may always be returned if the kernel doesn't support
locking, in which case programs such as fpcmake no longer work on
such systems)
git-svn-id: trunk@14350 -
2009-12-07 13:30:19 +00:00
michael
01ed4a6745
* Implemented OnBeep to install custom beep handler
...
git-svn-id: trunk@14254 -
2009-11-22 17:33:56 +00:00
marco
17062d667c
* ansistring versions of mk/rm/chdir in objpas, Mantis 15010. The os-dependant routines of *nix/os2/win/dos have been converted
...
git-svn-id: trunk@14211 -
2009-11-18 18:04:51 +00:00
Jonas Maebe
c2190ebd30
* return errors from unimplemented functions instead of random values
...
git-svn-id: trunk@14002 -
2009-11-01 15:41:29 +00:00
marco
778505701c
* set/getrlimit now also visible in baseunix when syscalls are used.
...
on systems that force ugetrlimit, use that transparently. (since
ugetrlimit is not posix in theory or practice, we can't export it),
resolves 13916
git-svn-id: trunk@13903 -
2009-10-17 19:14:09 +00:00
marco
5121f470a2
* moved ugetrlimit to the implementation (as linux specific call it shouldn't be exported)
...
* syscall implementation for FreeBSD of get/setrlimit
git-svn-id: trunk@13875 -
2009-10-16 18:47:43 +00:00
olivier
2e8a93da16
* tune new variable TerminalSupportsBold and TerminalSupportsHighIntensityColors
...
for BeOS and Haiku.
* BeOS : the terminal is very limited. Disabling both give best result.
* Haiku : Haiku's terminal claims to be xterm but has it's own problems.
git-svn-id: trunk@13741 -
2009-09-19 16:10:36 +00:00
florian
07ef0c33df
o another linux console patch by Nikolay Nikolov:
...
* disabled linux VCSA output in UTF-8 mode, because it does not do any translation
and assumes that the font is cp437, or similar, which looks horrible on fonts
(like fedora's default latarcyrheb-sun16), which are designed only for unicode
support and have no similarity at all to cp437. We already can display all the
cp437 characters in UTF-8 mode (including the low 32 characters), in case the
font is cp437, and the UTF-8 translation provides better approximation (e.g.
for the line drawing characters) if the font is not cp437.
* do not "restore" the linux system font in SysDoneVideo in UTF-8 mode,
since we didn't change the font on startup
* added try_grab_vcsa to try harder to open VCSA in the linux IDE user
screen restore code. While VCSA is no longer needed in the video unit on
UTF-8 systems, the IDE still needs it, because it's the only way to provide
the "restore user screen" functionality on the linux virtual console.
git-svn-id: trunk@13726 -
2009-09-16 19:58:42 +00:00
Jonas Maebe
1f6b55290e
* fixed fpsignal for linux/x86_64 and possibly some other platforms as well
...
(patch by Nikolay Nikolov, mantis #14514 )
git-svn-id: trunk@13666 -
2009-09-06 20:03:09 +00:00
florian
a023c165da
o patch by Nikolay Nikolov to make the text mode IDE look pretty under
...
modern Linuxes by a patch for UTF-8 console output.
Previously, only BeOS used UTF-8. Tested with:
- the linux console
- xterm
- gnome-terminal
- konsole
- rxvt-unicode
using Fedora 11.
Tested with
- gnome-terminal
- xterm
- konsole
using Ubuntu 9.04
Known "features":
* high intensity colours were actually normal intensity, with a bold attribute set.
This worked fine under gnome-terminal, but xterm didn't have bold versions of all cp437 characters,
which screwed up the window borders in the IDE. And although konsole had them, I didn't like the font -
it converted all the double window borders to a very thick single-line border.
So I disabled the bolding of high intensity colours in all X11 terminals (TERM=xterm)
and replaced it with another ANSI attribute, that actually sets high intensity
colours, but is not (in theory) supported by all terminals. The linux console doesn't
support it - it actually wants a bold attribute, to set high intensity,
so that's why I enabled it only for X11 terminals. All the ones,
that I tried, worked fine (xterm, gnome-terminal,
konsole, rxvt-unicode, also the plain old rxvt, with a non-UTF-8 locale).
* Fedora 11 by default uses a 512-characters font, called latarcyrheb-sun16
for the linux text mode console, which disables the high intensity colours,
effectively reducing the set of available colours to only 8.
This is a hardware limitation of the VGA hardware and can be avoided by
using a 256-character font. It does not need to be cp437,
but it has to have an unicode mapping.
* I haven't tried other linux distros (and unix-like OSes, i.e. FreeBSD and Mac OS X) -
although they should work in theory, they might look bad, due to different fonts, etc.
git-svn-id: trunk@13651 -
2009-09-05 14:54:22 +00:00
olivier
7616e9e50e
* Harmonize kbAltUp, kbAltDown and kbAltRight declarations for xterm
...
terminals with kbAltLeft. Only applied to Haiku to stay on the safe side.
Fix use of up, down and right arrow keys in fpide under Haiku
(mantis #14491 )
git-svn-id: trunk@13644 -
2009-09-04 21:29:25 +00:00
michael
e8a375c774
* Patch from Henry Vermaak to fix EABI kernel API for arm.
...
git-svn-id: trunk@13563 -
2009-08-20 08:00:50 +00:00
Jonas Maebe
ef1c033f49
+ added fppause() for FPC_USE_LIBC
...
* fixed test
git-svn-id: trunk@13436 -
2009-07-24 21:52:01 +00:00
marco
7c52be9287
* moved a linux specific call to the implementation of system, where
...
it is used. General Unix units should not expose Linux-specific
functionality.
git-svn-id: trunk@13427 -
2009-07-23 11:35:18 +00:00
Jonas Maebe
deb052c3f5
* skip glibc-specific modifiers while parsing the locale info
...
(patch by Petr-K, fixes mantis #12148 )
git-svn-id: trunk@13396 -
2009-07-16 16:51:10 +00:00
Jonas Maebe
4e446c6184
* use ShortTimeFormat also for LongTimeFormat if T_FMT_AMPM is not defined
...
for the current locale (Kylix-compatible, thanks to Luca Olivetti for
the hint, fixes mantis #13947 )
git-svn-id: trunk@13395 -
2009-07-16 16:44:15 +00:00
Jonas Maebe
25463000ac
* do not mark all found files with Find* as "faHidden" if the search path
...
starts with './' (mantis #14020 )
* also mark files whose name starts with '.' that are found in subdirectories
as faHidden (not reported, but was due to a similar error)
- removed some unused variables related to the Find* functionality
git-svn-id: trunk@13307 -
2009-06-21 10:21:06 +00:00
marco
a862d93652
* unix sockets now also exports tsocklen, like windows one
...
git-svn-id: trunk@13276 -
2009-06-15 08:17:05 +00:00
michael
9538da64f9
* Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)
...
git-svn-id: trunk@13209 -
2009-05-29 07:24:02 +00:00
Jonas Maebe
78c29a33ba
* changed the parameters of gotoxy() and the return values of wherex/wherey
...
from byte into tcrtcoord=1..255, since all crt unit coordinates are
1-based (not for Window() procedure, see comments in crth.inc;
mantis #13788 )
git-svn-id: trunk@13191 -
2009-05-24 11:48:49 +00:00
Jonas Maebe
f6d452c2c0
* remove the RTL's installed signal handlers at the end of the system
...
unit's initialization code in case we're in a library
+ implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
UnhookSignal() in the sysutils unit
* for Kylix compatibility, these routines support operating on
SIGINT and SIGQUIT as well, although they are not hooked by default
by FPC. The run time errors/exception codes for these signals are
resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
to 234).
* changed the BSD syscall version of fpsigaction to use pointer
rather than "var" arguments (compatible with other targets, and
required to be able to pass nil arguments inside the system unit)
-> together fixes mantis #12704
git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
99a02a93ca
* also consider the search attributes for findfirst if the name does
...
not contain wildcards + test
* don't return true from FindGetFileInfo if the file name is ok, but the
search attributes don't match (resulted in returning multiple times the
name of the previous entry that did fulfill all requirements)
git-svn-id: trunk@13074 -
2009-05-01 16:03:56 +00:00
Jonas Maebe
afab9fb99c
* force utf-8 on iPhoneOS, because locale settings are absent/ignored there
...
git-svn-id: trunk@13066 -
2009-05-01 09:19:53 +00:00
Jonas Maebe
4771ca3ce1
* import iconv functions as libiconv_* instead of as iconv_* for ppc32
...
for Mac OS X 10.3 compatibility
git-svn-id: trunk@13035 -
2009-04-25 09:34:11 +00:00
Jonas Maebe
1ad1eac9e8
* use monetary thousands separator if numerical thousands separator is #0
...
(mantis #13552 , patch by Jesus Reyes)
git-svn-id: trunk@13029 -
2009-04-23 19:17:37 +00:00
Jonas Maebe
039847b5c0
- removed duplicate GenMouseEvent() procedure (patch by Danny Milosavljevic,
...
mantis #13412 )
git-svn-id: trunk@12993 -
2009-04-01 17:12:55 +00:00
Jonas Maebe
c66791a605
* made AddSpecialSequence() public with the "platform" keyword, as
...
suggested by Marco in his comment to mantis #13413
git-svn-id: trunk@12992 -
2009-04-01 17:05:33 +00:00
Jonas Maebe
fe773871d6
* EINTR handling...
...
git-svn-id: trunk@12930 -
2009-03-20 13:03:14 +00:00
Jonas Maebe
803e78ff8c
* and more ESysEINTR and fpwaitpid fixing
...
git-svn-id: trunk@12929 -
2009-03-19 22:51:41 +00:00
Jonas Maebe
8b53f8c41a
* fixed a bunch of cases where ESysEINTR wasn't handled
...
git-svn-id: trunk@12924 -
2009-03-19 21:46:12 +00:00
Jonas Maebe
b92df02778
* new Intbasicevent*() implementation based on pthread_cond_signal by
...
Fabio Luis Girardi (mantis #9895 )
git-svn-id: trunk@12857 -
2009-03-04 20:15:27 +00:00
Jonas Maebe
fba565d666
* use statvfs/fstatvfs on solaris instead of statfs/fstatfs, because the
...
latter are deprecated
* replaced (wrong) statfs record definition with the definition of statvfs
git-svn-id: trunk@12815 -
2009-02-28 10:18:36 +00:00
Jonas Maebe
f7003119d0
* fixed AddDisk() in sysutils and dos units, and fixed memory leaks
...
related to this functionality, based on analysis/patch by Michael
Kamburelis (mantis #9985 )
git-svn-id: trunk@12814 -
2009-02-27 22:02:24 +00:00
Jonas Maebe
9e7efd7321
* reduced waiting steps in emulated "timed wait" in basiceventwaitfor
...
further from 50ms to 20ms (mantis #9895 )
git-svn-id: trunk@12813 -
2009-02-27 21:36:55 +00:00
florian
475cd9926d
* couple of small haiku fixes by Olivier Coursiere
...
git-svn-id: trunk@12739 -
2009-02-14 10:36:12 +00:00
Jonas Maebe
6f12cb03db
* if no locking is specified, also request an exclusive lock for solaris
...
in case the file is opened as read/write (instead of only if opened as
write-only)
git-svn-id: trunk@12685 -
2009-02-04 11:41:18 +00:00
Jonas Maebe
78f6e5ff6e
* fixed fmShareDenyNone for Solaris
...
git-svn-id: trunk@12684 -
2009-02-04 10:13:46 +00:00
Jonas Maebe
6581c8dec5
* hopefully final fix to unix locking: specifying no locking mode again
...
means "exclusive lock" where supported (not on Solaris when opening
a file in read-only mode)
git-svn-id: trunk@12675 -
2009-02-03 13:34:56 +00:00
marco
6ab2cae3cc
* deprecated (for 2.4) some functions that take a shortstring path.
...
(problems with long filenames)
git-svn-id: trunk@12653 -
2009-02-02 10:06:03 +00:00
florian
c127154efa
o Haiku patches by Olivier Coursiere
...
+ add posix thread support
* improve signal handling
* synchronize haiku's baseunix unit with the unix one (maybe it will be possible to remove Haiku's one in a future patch, but i keep it for now)
+ add support for standard sockets
* fix some functions import to use the right libraries under Haiku
* fix packages compilation
git-svn-id: trunk@12636 -
2009-02-01 10:30:55 +00:00
Jonas Maebe
f9556bad39
* fixed ESysEIntr checking for fpflock
...
git-svn-id: trunk@12635 -
2009-01-31 21:12:17 +00:00
Jonas Maebe
4a829da2fc
* fixed fileopen when not specifying any sharing (should not perform any
...
locking at all) (= fmShareCompat, as that one is 0)
* fixed test for this change (and for fmShareDenyNone)
git-svn-id: trunk@12634 -
2009-01-31 18:46:11 +00:00
Jonas Maebe
9fabb0b127
* fixed file locking of files opened as read- or write-only on solaris
...
(locking is based on fcntl there, and that one cannot create an
exclusive lock for a read-only file or a shared lock for a write-only
file)
git-svn-id: trunk@12633 -
2009-01-31 18:11:58 +00:00
Jonas Maebe
57ff980bc3
* hopefully fixed beos compilation after r12630 (it doesn't have flock)
...
git-svn-id: trunk@12631 -
2009-01-30 16:09:08 +00:00
Jonas Maebe
a730ee7f10
+ support for file locking for *nix systems based on flock (mantis #13012 )
...
git-svn-id: trunk@12630 -
2009-01-30 15:08:30 +00:00
Jonas Maebe
9b67b6469b
* fixed FpFcntl() for libc-based systems
...
* fixed FpIoctl() for Linux/libc (it also uses varargs)
git-svn-id: trunk@12628 -
2009-01-29 15:38:17 +00:00
ivost
38bf32dddf
* added csize_t and pcsize_t for non unix systems (in unix/ctypes.pp)
...
* added csize_t = UnixTypes.size_t in ctypes.pp for unix systems.
* reason: size_t is a C type and it's often used by C header files. Several packages define their own size_t.
git-svn-id: trunk@12602 -
2009-01-26 12:58:20 +00:00
Jonas Maebe
ee05e0e740
* keep reading in getxy until the entire xterm response has been read
...
(mantis #8842 )
git-svn-id: trunk@12593 -
2009-01-25 14:08:27 +00:00
Jonas Maebe
1a1fc1357d
* honour the specified stack size when creating new threads on unix
...
platforms + test (mantis #12942 )
git-svn-id: trunk@12527 -
2009-01-08 18:37:24 +00:00
marco
b8194205af
* two more culong(1) shl fixes.
...
git-svn-id: trunk@12419 -
2008-12-23 14:00:59 +00:00
marco
a88ebff6dd
* fix for 64-bit signed<->unsigned issue, bug #12841
...
git-svn-id: trunk@12418 -
2008-12-23 13:57:25 +00:00
marco
52bb5ac229
* removed some old 1.0.x ->2.0.x transitional code (executeprocess)
...
git-svn-id: trunk@12238 -
2008-11-26 23:08:17 +00:00
florian
d78855cea8
+ more c types
...
git-svn-id: trunk@12175 -
2008-11-19 11:36:43 +00:00
micha
4594758ae5
+ add poll support for unix
...
git-svn-id: trunk@12128 -
2008-11-16 17:05:47 +00:00
Jonas Maebe
13d92bfa04
+ fpmkfifo for libc
...
git-svn-id: trunk@11903 -
2008-10-16 11:12:37 +00:00
florian
b178b08ba7
Merged revisions 11665-11738 via svnmerge from
...
http://svn.freepascal.org/svn/fpc/branches/unicodestring
........
r11665 | florian | 2008-08-30 13:30:17 +0200 (Sat, 30 Aug 2008) | 1 line
* continued to work on unicodestring type support
........
r11666 | florian | 2008-08-30 19:02:26 +0200 (Sat, 30 Aug 2008) | 2 lines
* expectloc for wide/ansi/unicode strings is LOC_CONSTANT or LOC_REGISTER now
........
r11667 | florian | 2008-08-30 20:42:37 +0200 (Sat, 30 Aug 2008) | 1 line
* more unicodestring stuff fixed, test results on win32 are already good
........
r11670 | florian | 2008-08-30 23:21:48 +0200 (Sat, 30 Aug 2008) | 2 lines
* first fixes for unix bootstrapping
........
r11683 | ivost | 2008-09-01 12:46:39 +0200 (Mon, 01 Sep 2008) | 2 lines
* fixed 64bit bug in iconvenc.pas
........
r11689 | florian | 2008-09-01 23:12:34 +0200 (Mon, 01 Sep 2008) | 1 line
* fixed several errors when building on unix
........
r11694 | florian | 2008-09-03 20:32:43 +0200 (Wed, 03 Sep 2008) | 1 line
* fixed unix compilation
........
r11695 | florian | 2008-09-03 21:01:04 +0200 (Wed, 03 Sep 2008) | 1 line
* bootstrapping fix
........
r11696 | florian | 2008-09-03 21:07:18 +0200 (Wed, 03 Sep 2008) | 1 line
* more bootstrapping fixed
........
r11698 | florian | 2008-09-03 22:47:54 +0200 (Wed, 03 Sep 2008) | 1 line
+ two missing compiler procs exported
........
r11701 | florian | 2008-09-04 16:42:34 +0200 (Thu, 04 Sep 2008) | 2 lines
+ lazarus project for the linux rtl
........
r11702 | florian | 2008-09-04 16:43:27 +0200 (Thu, 04 Sep 2008) | 2 lines
+ set unicode string procedures
........
r11707 | florian | 2008-09-04 23:23:02 +0200 (Thu, 04 Sep 2008) | 2 lines
* fixed several type casting stuff
........
r11712 | florian | 2008-09-05 22:46:03 +0200 (Fri, 05 Sep 2008) | 1 line
* fixed unicodestring compilation on windows after recent unix changes
........
r11713 | florian | 2008-09-05 23:35:12 +0200 (Fri, 05 Sep 2008) | 1 line
+ UnicodeString support for Variants
........
r11715 | florian | 2008-09-06 20:59:54 +0200 (Sat, 06 Sep 2008) | 1 line
* patch by Martin Schreiber for UnicodeString streaming
........
r11716 | florian | 2008-09-06 22:22:55 +0200 (Sat, 06 Sep 2008) | 2 lines
* fixed test
........
r11717 | florian | 2008-09-07 10:25:51 +0200 (Sun, 07 Sep 2008) | 1 line
* fixed typo when converting tunicodestring to punicodechar
........
r11718 | florian | 2008-09-07 11:29:52 +0200 (Sun, 07 Sep 2008) | 3 lines
* fixed writing of UnicodeString properties
* moved some helper routines to unicode headers
........
r11734 | florian | 2008-09-09 22:38:55 +0200 (Tue, 09 Sep 2008) | 1 line
* fixed bootstrapping
........
r11735 | florian | 2008-09-10 11:25:28 +0200 (Wed, 10 Sep 2008) | 2 lines
* first fixes for persisten unicodestrings
........
r11736 | florian | 2008-09-10 14:31:00 +0200 (Wed, 10 Sep 2008) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-11663" from
http://svn.freepascal.org/svn/fpc/trunk
........
r11737 | florian | 2008-09-10 21:06:57 +0200 (Wed, 10 Sep 2008) | 3 lines
* fixed unicodestring <-> variant handling
* fixed unicodestring property reading
........
git-svn-id: trunk@11739 -
2008-09-10 20:14:31 +00:00
Jonas Maebe
4f5513466a
* reverted r11671 because it breaks tthread.waitfor on unix
...
git-svn-id: trunk@11731 -
2008-09-08 21:10:38 +00:00
Jonas Maebe
7aee2f3d71
* moved fplstat(ansistring,pstat) overload to bunxovl(h).inc, so all
...
platforms have (fixes compilation for FPC_USE_LIBC platforms after
r11681)
git-svn-id: trunk@11693 -
2008-09-02 10:14:45 +00:00
michael
7a058a9bf2
* Added overloaded call for fplstat which has var argument (as for stat)
...
* Implemented support for faSymlink, as per 9915
git-svn-id: trunk@11681 -
2008-09-01 09:17:58 +00:00
michael
c179162028
* Call EndThread manually if thread function returns (mantis #11490 )
...
git-svn-id: trunk@11671 -
2008-08-30 21:48:39 +00:00
Jonas Maebe
bbaacc593a
+ darwin implementation of ipc unit by Werner Bochtler (mantis #10612 )
...
git-svn-id: trunk@11549 -
2008-08-11 21:29:49 +00:00
Jonas Maebe
0c002889b0
+ fpchown() for FPC_USE_LIBC (by Tobias Giesen, mantis #11705 )
...
git-svn-id: trunk@11432 -
2008-07-21 19:37:24 +00:00
joost
acff7f60bd
* Add path-delimiters properly in GetAppConfigDir and GetAppConfigFile
...
git-svn-id: trunk@11384 -
2008-07-15 13:12:42 +00:00
florian
5ff2312993
* fixed x86 unit for x86-64
...
* enabled ports again for x86_64-linux
git-svn-id: trunk@11360 -
2008-07-10 19:52:14 +00:00
marco
f9c179da18
* add psize_t
...
git-svn-id: trunk@11296 -
2008-06-28 18:16:44 +00:00
Almindor
6433f8c38b
* fix DiskFree and DiskSize to check for Drive argument
...
git-svn-id: trunk@11226 -
2008-06-14 11:19:51 +00:00
florian
494e237b1e
* Haiku patch by Olivier Coursiere
...
- a little more native rtl: it use a native haiku library for select function instead of relying on a compatibility symlink
- haiku in the list of target that support the ide
- some more fix in some packages
git-svn-id: trunk@11135 -
2008-05-31 11:33:02 +00:00
michael
26575472b6
* Added GetUSerDir function (ID 11338)
...
git-svn-id: trunk@11074 -
2008-05-24 11:50:26 +00:00
michael
6378cc25eb
* Fixed 8076
...
git-svn-id: trunk@11040 -
2008-05-22 18:12:10 +00:00
florian
3d17adaeeb
* patch for 10812 by Danny Milosavljevic
...
git-svn-id: trunk@11018 -
2008-05-19 20:02:23 +00:00
florian
35c0f78642
+ Haiku support by Olivier Coursière based on old BeOS support
...
git-svn-id: trunk@11014 -
2008-05-19 17:33:35 +00:00
florian
d955c9b4f7
+ proper handling of lineinfo retrival for dyn. libs in unix
...
git-svn-id: trunk@11010 -
2008-05-18 18:42:09 +00:00
marco
619ccffac0
* fix currency copy with extra safety on *BSD, fixed ampm
...
git-svn-id: trunk@10804 -
2008-04-26 15:15:16 +00:00
marco
a37bb0dd6e
* some debug stuff under ifdef + one fix for *BSD currency
...
git-svn-id: trunk@10801 -
2008-04-26 11:30:11 +00:00
marco
36b557b142
* quick test successful -> commit
...
git-svn-id: trunk@10626 -
2008-04-11 15:00:26 +00:00
michael
fce221f9b4
* Added clocale.pp from Petr Kristan
...
git-svn-id: trunk@10620 -
2008-04-09 08:32:26 +00:00
micha
83b7f81f81
+ add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
...
git-svn-id: trunk@10422 -
2008-03-02 12:59:02 +00:00
peter
f4f3ae84d0
* AllowDirectorySeparators and AllowDriveSeparators typed constants
...
added to allow customization of path and directory parsing in the rtl
* Use the new sets instead of the hardcoded / and \
git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
95d0ce1270
* VendorName function added to allow an extra subdirectory
...
to group multiple products
* OnGetVendorName hook, like OnGetApplicationName
* use COMMON_APPPATH for global config files under windows
git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
Jonas Maebe
8349cde7db
* changed byte/word/longbool to be Delphi-compatible (+ similar changes
...
for qwordbool) + test:
o assigning true to such a variable now sets them to $ff/$ffff/$ffffffff
o these types are now all signed
o converting an integer type to a byte/word/long/qwordbool using an
explicit type cast keeps the integer's original value stored in the
bool, instead of forcing it to ord(true)/ord(false)
(mantis #10233 and #10613 , implemented for all architectures, testsuite
tested for ppc32, sparc and x86)
* fixed some places where the rtl depended on longbool(true) having the
value 1
* extended several boolean tests (and adapted some to no longer assume
that byte/word/long/qwordbool(true)=1)
+ support for converting to qwordbool in second_int_to_bool for x86, ppc
and sparc
git-svn-id: trunk@9898 -
2008-01-24 21:30:55 +00:00
peter
73871b64ce
* BeOS/Haiku updates from Olivier Coursière
...
git-svn-id: trunk@9880 -
2008-01-23 15:37:25 +00:00
Jonas Maebe
1d88e3eb11
* replace strpcopy with its own code because unix no longer
...
depends on the strings unit (patch from Peter)
git-svn-id: trunk@9851 -
2008-01-21 14:45:40 +00:00
peter
1aa548426b
* remove uses strings
...
git-svn-id: trunk@9827 -
2008-01-20 21:27:01 +00:00
peter
37e509f290
* remove uses strings, strlen/strpas are in system unit
...
git-svn-id: trunk@9826 -
2008-01-20 21:07:08 +00:00
yury
c4e60fd1a5
- Removed systhrd.inc from targets where thread manager is stub by default. Stub is installed in common thread.inc file if DISABLE_NO_THREAD_MANAGER is not defined.
...
git-svn-id: trunk@9558 -
2007-12-28 15:21:02 +00:00
florian
213dd11800
* setlength in utf16/widestringtoutf32 fixed, resolves #10462
...
git-svn-id: trunk@9517 -
2007-12-22 18:43:29 +00:00
Jonas Maebe
2ffc310ebb
* fixed AnsiStrLComp and AnsiStrLIComp: they also have to ignore
...
embedded #0 's apparently + adapted test
git-svn-id: trunk@9471 -
2007-12-16 10:41:18 +00:00
Jonas Maebe
8536e35e44
* fixed indentation of LowerAnsiString/UpperAnsiString
...
git-svn-id: trunk@9444 -
2007-12-13 21:01:17 +00:00
Jonas Maebe
19985965e6
* fixed AnsiStrLower/AnsiStrUpper (were exchanged)
...
git-svn-id: trunk@9441 -
2007-12-13 20:49:52 +00:00
Jonas Maebe
60ccf03a0b
* completed cwstring unit
...
* optimized LowerWideString/UpperWideString not to call UniqueString
for each string character
* fixed LowerAnsiString/UpperAnsiString in case an ascii character
has a lower/uppercase version with a different length than 1
+ generic test for ansistring comparisons using on the widestring
manager (based on glibc test)
- removed ansi2ucs4-related stuff as it's not used/needed
git-svn-id: trunk@9440 -
2007-12-13 20:41:31 +00:00
Jonas Maebe
7ec9dc5bc9
* fixed unix CompareWideString to not treat null characters inside
...
a widestring as end-of-string + test (which fails on Darwin/FreeBSD
in utf-8/utf-16 locales, because their libc's wcscoll is documented
as only working in single-byte locales and falling back to wcscmp
for others)
git-svn-id: trunk@9416 -
2007-12-08 16:00:09 +00:00
Jonas Maebe
8b8ee03c32
* fixed BeOS compilation (patch from Olivier Coursiere)
...
git-svn-id: trunk@9398 -
2007-12-06 08:08:17 +00:00
Jonas Maebe
02c714aec1
* characters <= 127, not just < 127, can be concatenated to an
...
ansistring without conversion
git-svn-id: trunk@9395 -
2007-12-05 18:48:54 +00:00
Jonas Maebe
a180fdcc74
- removed commented out implementation of Upper/LowerWideString which
...
takes into account surrogate pairs (not needed, since upper/lower
case characters never need surrogate pairs)
git-svn-id: trunk@9394 -
2007-12-05 17:44:34 +00:00
Jonas Maebe
68595c8b72
* fixed wchar_t type (was: widechar, now is cint/cint32/long depending on
...
platform)
+ mbstate_t type for all unixes except BeOS (doesn't exist for BeOS)
+ implemented UpperAnsiStringProc/LowerAnsiStringProc for unix
* fixed Ansi2UCS4Move in cwstring (although it isn't used anywhere
currently)
+ test for Upper/LowerAnsiString
git-svn-id: trunk@9393 -
2007-12-05 17:42:35 +00:00
Jonas Maebe
34d0fd2c30
* give generic IntbasiceventWaitFor a granularity of 50 rather than
...
500 miliseconds
git-svn-id: trunk@9222 -
2007-11-12 22:06:39 +00:00
Jonas Maebe
4d254e4de8
* import iconv routines as iconv_* rather than libiconv_* for darwin
...
as the 32 bit libraries export both variants, but the new 64 bit
ones on Mac OS X 10.5 only export iconv_*
git-svn-id: trunk@9184 -
2007-11-10 21:12:45 +00:00
Jonas Maebe
f60c72b773
* fixed ioctl for non-linux: the third parameter is "..." there rather
...
than a pointer. The interface still accepts a plain pointer for
backwards compatibility.
git-svn-id: trunk@9176 -
2007-11-10 18:22:37 +00:00
florian
7f4c387841
o new BeOS patch by Olivier Coursiere:
...
* correctly define the stack size for BeOS,
+ implement a minimum nl_langinfo function to correctly initialize WideString support
+ add fgl unit in the BeOS RTL makefile
* SysOSAlloc now return nil when the system can not allocate the asked memory,
* HAS_SYSOSFREE is no more defined with an empty implementation under BeOS. This was preventing FPC to reuse memory.
+ there is now a basic implementation of CheckPointer under BeOS.
git-svn-id: trunk@8994 -
2007-10-29 19:00:32 +00:00
Jonas Maebe
2701a0f743
* initialise timespec.tv_sec again for generic BasicEventWaitFor
...
git-svn-id: trunk@8836 -
2007-10-17 21:14:01 +00:00
micha
5f3e2b10e8
* use sem_timedwait for BasicEventWaitFor if available (linux now)
...
git-svn-id: trunk@8835 -
2007-10-17 20:49:25 +00:00
micha
5d1a952f2a
* fix initial state of basicevent
...
git-svn-id: trunk@8781 -
2007-10-13 20:25:46 +00:00
Almindor
fdcc5f4332
* use TIOCtlRequest instead of hard ifdefs to remove warnings
...
git-svn-id: trunk@8679 -
2007-09-29 14:22:41 +00:00
Almindor
5474e0c987
* fix ioCtl differences between BSD and POSIX
...
git-svn-id: trunk@8676 -
2007-09-29 08:24:23 +00:00
marco
827d380691
* pchar(pointer()) isms that were safe.
...
git-svn-id: trunk@8672 -
2007-09-28 21:57:45 +00:00
Jonas Maebe
4e78a30ee3
* only print exception backtrace at end of unhandled exception in
...
tthread in case rtl is compiled with -dDEBUG_MT
git-svn-id: trunk@8595 -
2007-09-21 15:09:08 +00:00
Tomas Hajny
3b3849c02c
+ AllFilesMask constant added
...
git-svn-id: trunk@8492 -
2007-09-15 12:09:25 +00:00
Almindor
d2e4f53a13
* hopefuly fix the fp* problems for stat and others
...
git-svn-id: trunk@8405 -
2007-09-08 13:51:39 +00:00
Almindor
148255b5cf
* fix deprecated stat calls to use the fp<> ones and not the other way around
...
git-svn-id: trunk@8401 -
2007-09-08 09:55:35 +00:00
florian
bcd5fc555a
* rtl part of Olivier Coursier's BeOS patch
...
git-svn-id: trunk@8396 -
2007-09-07 19:25:05 +00:00
peter
65afe53eb0
* fix settimeofday timeval parameter
...
git-svn-id: trunk@8315 -
2007-08-28 09:29:25 +00:00
Almindor
7a21cb5888
* add preliminary UnixSockets with linux implementation
...
git-svn-id: trunk@8290 -
2007-08-19 13:35:43 +00:00
Jonas Maebe
815cd2b39d
+ support for widestring manager based widechar conversions
...
(widechar<->char, widechar<>*string), based on patch from
Rimgaudas Laucius (mantis #7758 )
* no longer perform compile-time widechar/string->char/ansi/
shortstring conversions if they would destroy information
(they can't cope with widechars with ord>=128). This means
that you can now properly constant widechars/widestrings
in source code with a {$codepage } set without risking that
the compiler will mangle everything afterwards
* support ESysEINVAL return code from iconv (happens if last
multibyte char is incomplete)
* fixed writing of widechars (were converted to char -> lost
information)
git-svn-id: trunk@8274 -
2007-08-12 20:01:08 +00:00
Jonas Maebe
123362235b
* use initc.fpgetCerrno rather than fpgeterrno to get the errno
...
results of the sem_* routines (since those always come from libc/
libpthread)
git-svn-id: trunk@8266 -
2007-08-12 08:29:48 +00:00
Jonas Maebe
4457538435
* explicitly unmask SIGSEGV, SIGILL, SIGBUS and SIGFPE at the start
...
of a new thread (should fix #9073 )
git-svn-id: trunk@8265 -
2007-08-11 20:59:37 +00:00
Jonas Maebe
ce86cedd4d
* return wrAbandoned rather than wrError from IntbasiceventWaitFor
...
in case a sleep is interrupted while the event is being destroyed
git-svn-id: trunk@8260 -
2007-08-11 08:13:36 +00:00
Jonas Maebe
ef801ba3a3
* check once more whether we can lock after we've waited
...
for the entire timeout in IntbasiceventWaitFor
git-svn-id: trunk@8259 -
2007-08-11 08:07:44 +00:00
Jonas Maebe
494fb81dd8
* fixed semaphore implementation based on file handles (select needs
...
file descriptor + 1 as first parameter, select can also be EIntr)
* changed IntbasiceventWaitFor (used by syncobjs) so it can emulate
timeouts (using a loop and short sleeps) (mantis #9414 )
* also added wrAbandoned support to IntbasiceventWaitFor
* enhanced tbrtlevt.pp to test new functionality
git-svn-id: trunk@8257 -
2007-08-10 20:20:44 +00:00
Jonas Maebe
fd98a0cc5b
* don't call runerror if a unix threading error occurs (because this
...
immediately terminates the whole application), but instead call
handleerrorframe (which can be converted into an exception) (#7954 )
git-svn-id: trunk@8248 -
2007-08-08 13:59:17 +00:00
Jonas Maebe
f3a00b0731
* cache result of GetThreadManager in InitThreads
...
git-svn-id: trunk@8245 -
2007-08-08 11:33:54 +00:00
Károly Balogh
bee56abb78
- dec(comment_typos,2);
...
git-svn-id: trunk@8130 -
2007-07-22 10:22:26 +00:00
daniel
354cd09f31
* long double=double on powerpc-linux
...
* educated guess this is the case on arm-linux as well
* temporary change: do not alias clongdouble from unixtype into ctypes to prevent
having to work in two places.
git-svn-id: trunk@8127 -
2007-07-22 10:04:48 +00:00
micha
dd350255a4
* print thread handle unsigned in unix thread debug info
...
git-svn-id: trunk@8094 -
2007-07-18 20:14:48 +00:00
micha
721ae51cd0
* dump stack when thread terminates because of exception (unix)
...
git-svn-id: trunk@8093 -
2007-07-18 20:13:39 +00:00
Almindor
5baca0cfd3
* fix IPC for FPC_USE_LIBS
...
* fix shmget to use size_t as per manpage
* directly use external, don't depend on ipccdecl.inc (may be removed if confirmed)
git-svn-id: trunk@7973 -
2007-07-07 09:13:23 +00:00
daniel
0c3a2a257d
* Convert heap to ptruint.
...
git-svn-id: trunk@7950 -
2007-07-04 19:46:47 +00:00
Jonas Maebe
0d8594a705
* made cwstring thread safe without locks + test (twide4): widestring
...
manager now has two extra parameterless procedures (ThreadInitProc
and ThreadFiniProc) which are called whenever a thread begins/ends,
and cwstring uses these to create separate iconv handles for
each thread (via threadvars)
* renamed UCS4 to UCS-4BE/LE, because UCS4 is not recognised by most
systems
* clean up all iconv handles on exit, and check whether they are
valid before doing so
git-svn-id: trunk@7949 -
2007-07-04 18:10:34 +00:00
daniel
f77150fa71
* Fix another bug found by new hint.
...
git-svn-id: trunk@7819 -
2007-06-26 08:24:09 +00:00
marco
58e3f8ad0d
* more deprecated fixes
...
git-svn-id: trunk@7718 -
2007-06-17 20:31:08 +00:00
marco
0ef2cb0b02
* fixed deprecated
...
git-svn-id: trunk@7717 -
2007-06-17 20:29:33 +00:00
Jonas Maebe
7b47ebff6b
* removed Darwin/Solaris-specific code and fixed all issues by calling
...
setlocale(LC_ALL,'') per POSIX, which initialises the langinfo stuff
based on the environment variables (some OS'es do that automatically,
but at least Darwin and Solaris don't)
git-svn-id: trunk@7672 -
2007-06-15 18:51:06 +00:00
micha
3e97c6b324
* fix cwstring compilation: remove extra "}"
...
git-svn-id: trunk@7661 -
2007-06-14 14:45:19 +00:00
Jonas Maebe
6111e3e2b9
* also force utf-8 on Solaris, nl_langinfo(CODESET) doesn't work there
...
either and utf-8 is also its default "international" encoding
git-svn-id: trunk@7660 -
2007-06-14 10:56:29 +00:00
Jonas Maebe
8523bdc831
* force utf-8 for darwin
...
git-svn-id: trunk@7644 -
2007-06-13 12:59:39 +00:00
Jonas Maebe
172f85c8c3
* fixed important typo in better comments :)
...
git-svn-id: trunk@7618 -
2007-06-09 20:37:26 +00:00
Jonas Maebe
e93d612f4a
* fixed FFreeOnTerminate handing in destructor + better comments
...
git-svn-id: trunk@7617 -
2007-06-09 20:36:35 +00:00
Jonas Maebe
4dd3be0e5a
* return thread function result via pthread_exit() from CBeginThread
...
(Vinzent Hoefler)
* simplified CWaitForThreadTerminate based on comments from Vinzent
Hoefler
* fixed resource leaks where in some cases a pthread would not be
reaped based on comments from Vinzent Hoefler (resolves #9016 )
git-svn-id: trunk@7588 -
2007-06-06 15:18:48 +00:00
Jonas Maebe
526a79a3c6
* disable thread suspension from another thread under *nix, see added
...
comments in cthreads.pp why
git-svn-id: trunk@7551 -
2007-06-02 11:39:59 +00:00
marco
08d10efb9f
* now also fixes div hz with hz=0 for Linux, and reenables it for FreeBSD. Still needs phys console check though
...
git-svn-id: trunk@7489 -
2007-05-27 12:00:55 +00:00
Jonas Maebe
d1f7be8c7b
* disabled sound/nosound for non-Linux, as the used ioctl is
...
Linux-specific (and at least under Mac OS X, there seems to be
no way to play sound without going via the Carbon/Quicktime/...
frameworks)
git-svn-id: trunk@7488 -
2007-05-27 11:11:13 +00:00
Jonas Maebe
399ab249d6
* initialise/finalise critical section
...
git-svn-id: trunk@7455 -
2007-05-24 12:24:45 +00:00
Jonas Maebe
7e3b792713
* fixed for solaris:
...
* iconv is in libc for solaris
* use official names for unicode encodings (UTF-16BE/UTF-16LE instead
of unofficial UNICODEBIG/UNICODELITTLE aliases, which are not supported
by solaris' iconv)
git-svn-id: trunk@7452 -
2007-05-24 11:38:07 +00:00
peter
dd3fdac68e
* beos support from Olivier Coursiere
...
git-svn-id: trunk@7443 -
2007-05-24 07:16:17 +00:00
Jonas Maebe
3ab9ace8c4
* implement CThreadSwitch using sched_yield()
...
git-svn-id: trunk@7429 -
2007-05-23 13:38:20 +00:00
micha
7f2a257102
+ heap manager now per thread, reduce heap lock contention
...
+ heap threading test
git-svn-id: trunk@7407 -
2007-05-20 20:58:12 +00:00
micha
6ec55d2e74
* fix heap mutex deadlock in case of runtime error within heap management (needs recursive heap mutex)
...
git-svn-id: trunk@7337 -
2007-05-14 21:09:16 +00:00
marco
8991b8f365
* new socketerror scheme. OS/2 and netware are now broken and still must be done. (merge me and all previous socket related commits please)
...
git-svn-id: trunk@7327 -
2007-05-13 18:30:24 +00:00
marco
11bda8f5f2
* fpexeclpe
...
git-svn-id: trunk@7309 -
2007-05-11 15:08:38 +00:00
marco
e074f9383c
* typo corrected
...
git-svn-id: trunk@7271 -
2007-05-05 10:19:44 +00:00
marco
699e231223
* more cleanup of unit unix (merge)
...
git-svn-id: trunk@7269 -
2007-05-04 22:39:28 +00:00
marco
fd6f6cf7e9
* fix for 8801. mmap constants inconsistancy. Old constants are aliased for compat. non portable moved to OS specific units (merge)
...
git-svn-id: trunk@7265 -
2007-05-04 21:23:02 +00:00
marco
b8c21889f9
* bug #8807 , PRIO_ constants not aliased to baseunix _merge_
...
git-svn-id: trunk@7264 -
2007-05-04 19:16:11 +00:00
Jonas Maebe
065b9c39f7
* fixed compilation
...
git-svn-id: trunk@7256 -
2007-05-04 08:26:38 +00:00
daniel
41d171bda0
- Comment out duplicate entries (F11/F12 <--> Shift+F1/F2)
...
git-svn-id: trunk@7254 -
2007-05-03 22:54:12 +00:00
marco
4ba29cdbe1
* first set of deprecated tags.
...
git-svn-id: trunk@7199 -
2007-04-29 22:08:18 +00:00
florian
572608a64f
* fixed ipc for 32 bit systems
...
git-svn-id: trunk@7073 -
2007-04-07 18:42:01 +00:00
florian
d90bc77a54
* fixed several type declarations
...
git-svn-id: trunk@7071 -
2007-04-07 18:23:03 +00:00
florian
0c889207ca
* fixed ipc syscalls and data structures for x86-64, resolves #8616
...
git-svn-id: trunk@7070 -
2007-04-07 18:00:05 +00:00
Almindor
02702d199f
* fix typo in ESock[s]errors
...
git-svn-id: trunk@7030 -
2007-03-29 20:51:10 +00:00
Almindor
ed8e6b71e3
* add common socket error constants to all platforms/socket.pp
...
git-svn-id: trunk@7022 -
2007-03-29 19:29:04 +00:00
micha
3a1b633325
+ revive generics based tfplist/tstringlist implementation for generics testing; build with FPC_TESTGENERICS
...
git-svn-id: trunk@7001 -
2007-03-25 19:19:04 +00:00
daniel
5acd85f447
* Revert 6964
...
git-svn-id: trunk@7000 -
2007-03-25 17:55:47 +00:00
daniel
8127fb7a05
* Switch to classic field names to prevent further messing with compatibility.
...
git-svn-id: trunk@6964 -
2007-03-23 22:35:12 +00:00
daniel
5da5440e12
* Ptrint considered harmfull bug no 54689826, change to ptruint.
...
git-svn-id: trunk@6961 -
2007-03-23 15:38:28 +00:00
Jonas Maebe
95474a2d38
* fixed memory leak in executeprocess for FPC_USE_FPEXEC
...
git-svn-id: trunk@6826 -
2007-03-13 18:54:27 +00:00
Tomas Hajny
b06b453ee1
* check for 64-bit support in FileTruncate based on TOff definition
...
git-svn-id: trunk@6746 -
2007-03-06 20:33:28 +00:00
Jonas Maebe
6a7321c318
* enabled 64 bit filetruncate
...
git-svn-id: trunk@6739 -
2007-03-06 10:17:03 +00:00
peter
7fb4c0675a
* fixed compile error
...
git-svn-id: trunk@6732 -
2007-03-06 07:13:20 +00:00
Tomas Hajny
5e1a7997ee
+ FileTruncate allows 64-bit parameter
...
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
ivost
025b57815f
* removed inline flag from FUTEX_OP in linux.pp
...
* added msync constants
git-svn-id: trunk@6691 -
2007-03-01 14:20:34 +00:00
marco
57cfd89fbd
* Linux 64-bit FS patch from neli for FPC_USE_LIBC
...
git-svn-id: trunk@6517 -
2007-02-16 22:16:54 +00:00
Jonas Maebe
5792438e3a
* fixed 64 bit error
...
git-svn-id: trunk@6512 -
2007-02-16 15:24:55 +00:00
florian
e70c6df440
* arm-linux has to link explicitly against libc
...
git-svn-id: trunk@6355 -
2007-02-07 17:42:40 +00:00
Jonas Maebe
f842eb854a
+ fppause for FPC_USE_LIBC
...
git-svn-id: trunk@6282 -
2007-02-01 12:07:12 +00:00
tom_at_work
923c70932e
* removed surplus semicolon
...
git-svn-id: trunk@6252 -
2007-01-28 19:21:14 +00:00
daniel
f60b66fba0
* Modify code to set xterm in rigth font.
...
git-svn-id: trunk@6243 -
2007-01-28 16:04:34 +00:00
daniel
e8050233af
+ Patch by Thorsten Engler to optimize string comparisons for = and <> cases. (Mantis #8231 )
...
git-svn-id: trunk@6241 -
2007-01-28 10:58:52 +00:00
daniel
95aeaf7df5
* Check COLORTERM in case TERM=xterm to detect rxvt.
...
git-svn-id: trunk@6236 -
2007-01-27 20:35:16 +00:00
daniel
6c92edea04
* Send correct amount of characters for custom font.
...
git-svn-id: trunk@6235 -
2007-01-27 20:34:41 +00:00
daniel
53d640777a
* Xterm mouse handling re-engineered.
...
git-svn-id: trunk@6225 -
2007-01-27 12:49:29 +00:00
tom_at_work
704f8dae14
* fixed rtl compilation with -dFPC_USE_LIBC by providing a more generic fpprctl() call (including libc variant) and moving related constants slightly
...
git-svn-id: trunk@6134 -
2007-01-22 22:21:32 +00:00
daniel
5f1f8936e5
* Comment to document libgpm/xterm mouse mess.
...
git-svn-id: trunk@6083 -
2007-01-19 22:26:58 +00:00
daniel
ac23d1ea3c
* Mouse unit is solely responsible for xterm mouse.
...
* Improve detection of xterm mouse
* Improve detection of gpm mouse
git-svn-id: trunk@6082 -
2007-01-19 21:59:24 +00:00
pierre
2c09c499ab
* avoid a range check error
...
git-svn-id: trunk@6064 -
2007-01-19 02:53:46 +00:00
daniel
e6438fe23d
* Make error constants cross platform.
...
git-svn-id: trunk@5977 -
2007-01-14 21:22:47 +00:00
daniel
1c452dd4f9
+ Restore and fix text/file socket functionality.
...
git-svn-id: trunk@5973 -
2007-01-14 18:50:19 +00:00
Almindor
62e276d064
* remove text and file based socket conversions and operations from sockets
...
git-svn-id: trunk@5955 -
2007-01-13 22:21:38 +00:00
michael
ea0fc335d1
* Fixed FileExists for >2GB files
...
git-svn-id: trunk@5929 -
2007-01-12 19:36:24 +00:00
florian
f7da932aa4
* use ctypes instead of defining own types
...
git-svn-id: trunk@5918 -
2007-01-12 10:56:29 +00:00
daniel
a6a0745436
* Apply path in Mantis report 8103 to fix ansi2wide issue
...
git-svn-id: trunk@5916 -
2007-01-12 10:35:20 +00:00
Jonas Maebe
157e5eb02e
* fixed debug code for 64 bit
...
git-svn-id: trunk@5913 -
2007-01-12 09:12:13 +00:00
micha
702685717f
* cleanup of rtlevents, remove startwait due to persistance guarantee
...
git-svn-id: trunk@5854 -
2007-01-08 19:11:07 +00:00
marco
779b33148c
* fix
...
git-svn-id: trunk@5769 -
2006-12-31 16:21:19 +00:00
Jonas Maebe
bdfd3e5453
* patch from Lloyd B. Park to support persistent signals
...
for RTLEvent under unix
git-svn-id: trunk@5750 -
2006-12-30 17:28:10 +00:00
chrivers
6a34534c2d
* Removed "platform" keyword from dladdr(), since it actually IS portable.
...
git-svn-id: trunk@5718 -
2006-12-26 17:06:42 +00:00
chrivers
b8e514c466
* Cleaned up keyword-case style ("FUnction" => "function", etc)
...
git-svn-id: trunk@5707 -
2006-12-25 12:37:26 +00:00
chrivers
9fa75157ce
+ Added MAP_FAILED const for all unix platforms
...
git-svn-id: trunk@5705 -
2006-12-25 12:23:28 +00:00
chrivers
ed72c61524
+ Added dl_info record
...
+ Added dladdr() prototype
+ Added RTLD_DEFAULT const for BSD and LINUX
+ Added RTLD_NEXT for all platforms
git-svn-id: trunk@5704 -
2006-12-25 12:22:19 +00:00
Jonas Maebe
652d331922
* fixed 64 bit compilation
...
git-svn-id: trunk@5680 -
2006-12-22 16:50:09 +00:00
Jonas Maebe
cf4b3f2e4d
* don't destroy fsem in tthread.destroy before its potential last use
...
git-svn-id: trunk@5678 -
2006-12-22 14:53:54 +00:00
Jonas Maebe
4cbbfd7f5c
* set FSuspended also if a tthread is suspended by an external thread
...
on unix
* fixed some dataraces in unix' suspend/resume (although they can't
be solved completely due to no possibility to atomically
suspend/resume and set fsuspended at the same time)
git-svn-id: trunk@5677 -
2006-12-22 14:49:49 +00:00
Jonas Maebe
1867a46f34
- disabled fix for mantis 6693 from r5662 since the fix itself also
...
contains a race condition
git-svn-id: trunk@5670 -
2006-12-21 23:11:35 +00:00
Jonas Maebe
96b379ab0b
* fixed initial suspending bug in r5662
...
git-svn-id: trunk@5668 -
2006-12-21 21:51:41 +00:00
Jonas Maebe
0c3afc0cf4
+ implementation of cSemaphore* and BasicRTLEvent based on
...
sem_open/sem_close for Darwin (doesn't have sem_init/sem_destroy)
+ implementation of cSemaphore* based on pipes (for potential future
systems that don't have either sem* routines)
+ test for basicrtlevent
* fixed datarace whereby a TThread could be started, run and exit before
TThread.AfterConstructor had been called (Mantis 6693, all platforms)
* throw EThread exceptions in TThread.create if something during creating
the tthread goes wrong (*nix)
* don't crash in TThread.Destroy if the TThread throws an exception before
it was fully initialised (*nix)
* changed order of operations in TThread.Destroy so it doesn't perform
invalid thread operations in some edge cases (*nix)
* fixed usage of sem_wait/sem_trywait (can be interrupted) in Semaphore
and RTLEvent implementations
* fixed erroneous waiting for threads after they had already exited via
pthread_detach/pthread_exit
* fixed several memory leaks in case of thread intialisation errors
(*nix)
* unified tthread.inc for all Unices
git-svn-id: trunk@5662 -
2006-12-21 18:22:47 +00:00
michael
fa28889633
* Reverted dependency on fgl generics unit. fgl itself remains untouched.
...
git-svn-id: trunk@5651 -
2006-12-19 19:53:21 +00:00
micha
b1c1b6fd3d
+ generic implementation of list and map; adapt TList/TStringList to use it
...
git-svn-id: trunk@5624 -
2006-12-17 15:52:42 +00:00
Jonas Maebe
87a4372d7f
* enable vfork for solaris
...
git-svn-id: trunk@5557 -
2006-12-08 10:20:38 +00:00
daniel
598cf9fcf0
+ Add shortstring version of system().
...
git-svn-id: trunk@5495 -
2006-11-26 18:40:19 +00:00
michael
285e02ba83
* Fix to be able to allocate threadvars when code outside FPC creates a thread
...
git-svn-id: trunk@5474 -
2006-11-25 14:53:53 +00:00
daniel
76cf70bdbd
* Use proper critical sections.
...
- Remove sysutils dependency by turning exception into runerror, which is
converted into exception anyway if user decides to use sysutils.
git-svn-id: trunk@5471 -
2006-11-25 07:32:36 +00:00
Jonas Maebe
eb411035eb
* fixed range errors
...
git-svn-id: trunk@5315 -
2006-11-10 20:45:59 +00:00
daniel
610cf1e2da
* Fix reversed home/end.
...
git-svn-id: trunk@5297 -
2006-11-09 14:47:43 +00:00
Jonas Maebe
edafc80d8c
* use pthread_kill() for Suspend/Resume in cthreads
...
git-svn-id: trunk@5280 -
2006-11-07 21:40:58 +00:00
Jonas Maebe
4240479f5d
* fixed datarace in CBeginThread
...
git-svn-id: trunk@5274 -
2006-11-07 14:05:09 +00:00
marco
ed5e73b9a3
* reenabled the old getdir code when fpgetcwd was not FPC_USE_LIBC. getcwd
...
syscalls can fail, specially on special file systems.
git-svn-id: trunk@5262 -
2006-11-05 22:03:37 +00:00
micha
0043aff24d
* fix linux/sysutils 64 bit file handling: make off_t 64 bit
...
git-svn-id: trunk@5152 -
2006-11-01 16:32:12 +00:00
Jonas Maebe
e4acf70c58
* fixed fplseek declaration for linux
...
git-svn-id: trunk@5145 -
2006-11-01 12:32:40 +00:00
micha
9238003e4f
+ 64 bit file support for linux
...
git-svn-id: trunk@5116 -
2006-10-31 11:20:21 +00:00
florian
4626f2c489
* NetBSD rtl compiles again
...
git-svn-id: trunk@5049 -
2006-10-28 22:17:49 +00:00
marco
dd7f715405
* FreeBSD fixes
...
git-svn-id: trunk@4994 -
2006-10-21 13:16:56 +00:00
daniel
ce3bfabfe6
- Remove unused sysutils dependency.
...
git-svn-id: trunk@4965 -
2006-10-18 20:10:02 +00:00
marco
449ba0b47b
* reverted march fix from Florian that stops exporting pthread* types.
...
git-svn-id: trunk@4926 -
2006-10-15 15:20:57 +00:00
Almindor
2ee7e64a4a
* adds semaphore support to ThreadManager, removes pipe hack from non linux
...
+ adds SemaphoreInit, SemaphorePost, SemaphoreWait and SemaphoreDestroy to TM
git-svn-id: trunk@4900 -
2006-10-14 11:39:47 +00:00
marco
94e0b66d0a
* fix for popen brokenness
...
git-svn-id: trunk@4894 -
2006-10-13 22:29:08 +00:00
micha
0c5124c295
* fix compilation of sysutils, partly revert patch from peter which was a modified version of my patch
...
git-svn-id: trunk@4863 -
2006-10-11 18:19:06 +00:00
peter
d9bcee0cbe
* don't allocate unixfinddata if we search only one file, patch from neli
...
git-svn-id: trunk@4855 -
2006-10-11 07:04:45 +00:00
Almindor
d107c6649c
* fixes a findfirst bug (thanks to jesusrmx)
...
git-svn-id: trunk@4807 -
2006-10-05 20:28:53 +00:00
micha
d704af7216
fix compilation for {$T+} linux/win
...
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
Almindor
57d5ce9713
* some unix changes mainly on freeBSD and fix to MAXPATHLEN constant
...
+ added kld* syscalls for freeBSD (tested)
+ changed "directives" macro for freeBSD unit to "extdecl" for Lazarus
+ changed MAXPATHLEN from 255 (wrong on all unices known to fpc since 1993) to 1024 for non-linux and 4096 for linux as per source code (2.4+ for linux, 1993 BSD for BSDs, Solaris 10)
git-svn-id: trunk@4779 -
2006-10-03 20:35:07 +00:00
peter
25fe773e25
* FindFirst/FindNext replaced with optimized versions based on the
...
code in the dos unit.
git-svn-id: trunk@4772 -
2006-10-02 21:06:50 +00:00
ivost
23e1ebb357
-ctypes cleanup, it was quite a mess with naming conventions, eg. some times shortened long to l like cldouble
...
-long is written out now, while signed and unsigned are shortened to s and u
git-svn-id: trunk@4647 -
2006-09-18 21:41:08 +00:00
florian
78d5ba9ff0
* extended ctypes by Aison
...
git-svn-id: trunk@4622 -
2006-09-15 21:03:50 +00:00
Jonas Maebe
7522d8d967
* fixed sparc alignment issues with popen/pclose
...
git-svn-id: trunk@4346 -
2006-08-04 13:07:01 +00:00
Jonas Maebe
2b98aa8005
+ CODESET for solaris
...
git-svn-id: trunk@4335 -
2006-08-03 15:36:13 +00:00
micha
d0e0ef3d8c
2.0.4: pthread_cond_timedwait needs absolute time (from crossbuilder, issue #7196 )
...
git-svn-id: trunk@4296 -
2006-07-25 20:34:20 +00:00
daniel
e357dc5cf0
+ Add rxvt keyboard sequences by Micha
...
git-svn-id: trunk@4268 -
2006-07-20 21:28:05 +00:00
michael
497abf8f5d
+ Several improvements by Martin Schreiber
...
git-svn-id: trunk@4246 -
2006-07-17 19:52:00 +00:00
Jonas Maebe
9e801eb048
* removed/conditionalised several unused variables
...
git-svn-id: trunk@4199 -
2006-07-14 20:44:57 +00:00
florian
e92cc059a7
* fixed previous commit
...
git-svn-id: trunk@3949 -
2006-06-25 20:37:14 +00:00
florian
f32b1ccbe0
+ cwstring multithreading safe, fixes #6873
...
git-svn-id: trunk@3948 -
2006-06-25 20:17:32 +00:00
micha
2bd88e3406
read timezone file optimization
...
git-svn-id: trunk@3907 -
2006-06-21 09:26:17 +00:00
michael
dc0e8428a6
+ Fixed rights parameter in TFileStream.Create and FileCreate
...
git-svn-id: trunk@3862 -
2006-06-13 22:01:49 +00:00
daniel
4a3248bc08
+ Correct behaviour when initialization fails.
...
git-svn-id: trunk@3841 -
2006-06-11 09:00:19 +00:00
michael
e73bc0b772
+ Made AddDisk a function, returning the current number of drives.
...
git-svn-id: trunk@3816 -
2006-06-06 20:54:21 +00:00
michael
305e4142ff
+ Fixed FileGetAttr so hidden is correctly detected
...
git-svn-id: trunk@3790 -
2006-06-04 14:18:55 +00:00
daniel
aa93e6a11e
* Fix window resizing in X.
...
git-svn-id: trunk@3767 -
2006-06-02 20:46:46 +00:00
Tomas Hajny
a9b515c0bf
* fexpand defines kept in platform specific sysutils.pp
...
git-svn-id: trunk@3726 -
2006-05-28 21:29:26 +00:00
daniel
cb1b6419ed
* Set standard I/O line ending to #13#10 when keyboard in raw mode.
...
git-svn-id: trunk@3698 -
2006-05-27 16:42:47 +00:00
peter
da85b3db8c
* fix linux build
...
git-svn-id: trunk@3626 -
2006-05-22 06:57:41 +00:00
daniel
ae740894a3
* Inline on in classes
...
git-svn-id: trunk@3507 -
2006-05-13 20:12:51 +00:00
marco
416e55c49c
* IPC_PRIVATE now also for Linux
...
git-svn-id: trunk@3489 -
2006-05-13 10:51:48 +00:00
daniel
ce3ce89028
* Prevent range check error when compiling with -Cr
...
git-svn-id: trunk@3470 -
2006-05-10 16:26:37 +00:00
daniel
111fc2ca42
* Codepage code had a bug
...
git-svn-id: trunk@3434 -
2006-05-06 18:39:32 +00:00
Jonas Maebe
a6863b49e1
* fixed compilation on non-Linux
...
git-svn-id: trunk@3393 -
2006-04-30 20:51:02 +00:00
daniel
469789071d
* Make hack uglier, so it works better.
...
git-svn-id: trunk@3374 -
2006-04-29 21:43:37 +00:00