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