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