Commit Graph

1278 Commits

Author SHA1 Message Date
micha
87ef559542 * rtl: fix i386-linux uclibc atexit functionality (call exit instead of _exit)
git-svn-id: trunk@15110 -
2010-04-03 13:18:10 +00:00
marco
30207d73ea * epoll_oneshot constant, mantis 15732
git-svn-id: trunk@14931 -
2010-02-20 22:24:01 +00:00
Jonas Maebe
d2a7a4c627 * fixed signal return trampolines for ARM EABI (mantis #15803)
git-svn-id: trunk@14922 -
2010-02-18 20:53:28 +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
florian
1d1e62fcd0 * .lpi version update
git-svn-id: trunk@14522 -
2010-01-02 15:54:39 +00:00
florian
b42b96752c * linux rtl contains target cpu specific files
git-svn-id: trunk@14480 -
2009-12-26 20:41:26 +00:00
florian
9e59c6dec7 * more mipsel code
git-svn-id: trunk@14340 -
2009-12-06 12:12:15 +00:00
florian
28ac4a8dda * several mips/mipsel related stuff fixed
* regenerated linux makefile to support mipsel

git-svn-id: trunk@14278 -
2009-11-27 15:10:56 +00:00
florian
80fc5f05dc + system unit part of David Zhang's MIPS port
git-svn-id: trunk@14268 -
2009-11-24 21:26:36 +00:00
Jonas Maebe
38c09952a3 * don't exit the program in the exit code of shared libraries under Linux
(mantis #14958)

git-svn-id: trunk@14184 -
2009-11-15 13:50:14 +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
Jonas Maebe
92ff07deaf * several fixes by Pierre Pede (parts of his patch to mantis #12492)
o fixed gprof under linux/i386
    o fixed pic-compilation of the linux/i386 rtl
    o initialisation of linux shared libraries is now possible with pic-code

git-svn-id: trunk@13703 -
2009-09-12 21:57:41 +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
marco
bafbe5a451 * socket ->fpsocket
git-svn-id: trunk@13505 -
2009-08-09 10:30:15 +00:00
Jonas Maebe
e246cac3ac * regenerated using latest fpcmake
git-svn-id: trunk@13487 -
2009-08-02 18:40:14 +00:00
marco
b43b3c4564 * "external;" added to pthreads.inc as per #14179.
git-svn-id: trunk@13437 -
2009-07-25 09:58:37 +00:00
florian
6dc51122e7 * fixes fpsigsuspend call at least on i386-linux
git-svn-id: trunk@13433 -
2009-07-24 16:30:32 +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
53ad1bcabe * fixed linux flock type by defining and using a kernel_off_t type
whose size depends on whether the run time environment is 32 or
    64 bit (mantis #13647)
  + added flock64 type for 32 bit systems (usable with special 64 bit
    fcntl operations)

git-svn-id: trunk@13119 -
2009-05-09 19:47:59 +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
marco
9f3b8511ba * fix for socketerror problems; x86_64 specific (NEED_SOCKETCALL).
internal_socketerror now set after calls, Mantis 13506
  

git-svn-id: trunk@13021 -
2009-04-19 21:02:28 +00:00
Jonas Maebe
1f6ec36064 * save/restore errno inside reenable_signal, because it can be called
from inside signal handlers

git-svn-id: trunk@12997 -
2009-04-04 09:59:41 +00:00
daniel
7084dd4192 * Apply patch written by Jonas in bug report 13362 to make the gpm
unit handle EINTR situations.

git-svn-id: trunk@12964 -
2009-03-23 22:20:56 +00:00
florian
4bc28de96f * use different haltproc for arm-linux-eabi, this should be cleaned up by using also pascal units for the startup code for arm-linux
git-svn-id: trunk@12808 -
2009-02-27 15:20:20 +00:00
Jonas Maebe
d20080c3d6 * fixed order of parameter pushing to gmon_monstartup
git-svn-id: trunk@12778 -
2009-02-23 18:03:49 +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
Jonas Maebe
3216e8c7bc * mark produced object files as "does not require executable stack" by
default for Linux (overridable using -WX switch) (mantis #11563)

git-svn-id: trunk@12356 -
2008-12-12 16:26:25 +00:00
marco
8056591845 * marked domain field of Linux record with "platform" directive. under IFNDEF 2.2, do not merge
git-svn-id: trunk@12342 -
2008-12-11 17:42:36 +00:00
micha
aa38b10011 * attempt to fix powerpc64-linux sync_file_range compilation
git-svn-id: trunk@12274 -
2008-11-29 15:43:09 +00:00
micha
04d8ad3f17 * fix linux syscall numbers naming consistency #2 (overlooked some)
git-svn-id: trunk@12154 -
2008-11-17 21:48:02 +00:00
micha
176f545c3b * fix linux syscall numbers naming consistency (fixes x86_64 unit linux build)
git-svn-id: trunk@12153 -
2008-11-17 21:46:34 +00:00
micha
4594758ae5 + add poll support for unix
git-svn-id: trunk@12128 -
2008-11-16 17:05:47 +00:00
micha
923e5eff19 * fix lstat syscall for linux/powerpc64 (lstat64 is only for 32 bit platforms)
git-svn-id: trunk@12122 -
2008-11-16 14:22:36 +00:00
micha
1b418875b3 * fix typo
git-svn-id: trunk@12110 -
2008-11-15 20:49:18 +00:00
micha
28e614c237 * move fdatasync to linux unit
git-svn-id: trunk@12109 -
2008-11-15 20:44:44 +00:00
micha
2a1fc6723a + add fdatasync syscalls for linux
git-svn-id: trunk@12108 -
2008-11-15 17:04:27 +00:00
micha
d7e90f9e48 + add splice and sync_file_range linux-only syscalls
git-svn-id: trunk@12107 -
2008-11-15 15:43:52 +00:00
micha
341cec908d * update linux syscall numbers (merge powerpc64 to powerpc)
git-svn-id: trunk@12106 -
2008-11-15 15:42:12 +00:00
marco
e5db5e4aa8 * regened makefiles to propagate makefile versions
git-svn-id: trunk@11947 -
2008-10-22 17:32:15 +00:00
florian
10e0f0e387 * keep stack aligned at 8 byte boundary inside the startup code
git-svn-id: trunk@11934 -
2008-10-18 21:20:54 +00:00
florian
2cbdf2cd61 + arm linux syscalls updated
git-svn-id: trunk@11930 -
2008-10-18 18:57:20 +00:00
florian
14a0ec4ea3 * made fptime based on usgettimeofday available
* moved defines selecting the right syscall from ossysc.inc to osdefs.inc

git-svn-id: trunk@11915 -
2008-10-18 13:50:55 +00:00
florian
037f95c451 * fixed syscall0 for arm eabi
git-svn-id: trunk@11914 -
2008-10-18 13:49:39 +00:00
florian
3b5699e488 * removed packed, the stat record should be c packed
* deprecated old fields as it is done on other architectures

git-svn-id: trunk@11912 -
2008-10-18 13:48:17 +00:00
florian
7c6e0a48e9 * arm-linux-eabi uses mmap2 and ugetrlimit
git-svn-id: trunk@11908 -
2008-10-17 19:00:58 +00:00
florian
17e7c221fd * typo fixed
git-svn-id: trunk@11829 -
2008-09-27 12:37:30 +00:00
marco
aa4edaf074 * yet another fix for 10292, mea culpa. (identifiers were added for the wrong architecture)
git-svn-id: trunk@11826 -
2008-09-26 19:32:39 +00:00
marco
6cbe4131f1 * fix for 10292, baudrates for x86_64
git-svn-id: trunk@11819 -
2008-09-24 19:57:15 +00:00