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