Commit Graph

13458 Commits

Author SHA1 Message Date
Andrew Johnson 60459effaa Merged the gen-pkg-config branch 2014-09-26 10:13:01 -05:00
Andrew Johnson abff9a6954 Improve epicsSockResolveTest tests. 2014-09-26 10:11:47 -05:00
Andrew Johnson 8fde7fb4f3 Merged changes from 3.14 branch
Fixed issues building on Solaris.

Up to revno 12497.
2014-09-25 16:34:12 -05:00
Andrew Johnson c078a9cef8 Replaced split with a single regex 2014-09-25 16:24:23 -05:00
Michael Davidsaver 7a3e52b647 comment in configure/RULES_EXPAND 2014-09-25 16:49:44 -04:00
Michael Davidsaver 3fe84c5ace src/tools: export additional variables to pkg-config
No need for new names/capitalization
2014-09-25 16:49:40 -04:00
Michael Davidsaver 5e9b225a2e src/tools: ensure epics-base.pc is generated only for EPICS_HOST_ARCH 2014-09-25 14:04:10 -04:00
Michael Davidsaver 2f577c136c expandVars.pl: correctly handle macro values containing '='. 2014-09-25 13:24:41 -04:00
Michael Davidsaver b1918c1e31 allow expandVars for all targets 2014-09-25 11:50:13 -04:00
Andrew Johnson e1eac6657d confiugre: Update the vxWorks Intel build configurations
Wind River changed from cc386 to ccpentium many years ago.
2014-09-24 16:53:44 -05:00
Andrew Johnson d73b4eb470 Fix epicsSockResolveTest, host is now a real TLD 2014-09-23 15:31:53 -05:00
Andrew Johnson 82f24149d9 Improve error handling of dbdExpand.pl 2014-09-23 15:11:40 -05:00
Andrew Johnson 32ca04dda8 Make stdRecords.dbd depend on rec/Makefile 2014-09-23 15:10:49 -05:00
Andrew Johnson c8a7179ab8 Added dbd dependency. 2014-09-23 15:09:26 -05:00
Andrew Johnson a721794da7 Missed installing asSub.dbd 2014-09-23 15:07:55 -05:00
Andrew Johnson 5bee899f25 Merged Janet's dbdcat branch 2014-09-22 16:12:57 -05:00
Andrew Johnson 22db10da16 std: Reintroduce manually-created base.dbd file
The auto-generated base.dbd file has all the includes fully
expaded out before installation, which prevents IOC applications
from being able to replace manuScan.dbd and menuconvert.dbd
2014-09-22 16:09:46 -05:00
Andrew Johnson 92f5e5775d Restructured patch.
* Move the construction of the .pc files into src/tools
* Make more use of the built-in rules for variable substitution
* Make PKGCONFIG an Makefile variable for installing .pc files
* Use EPICS_PATCH_LEVEL for the final digit in the version number
2014-09-19 16:37:56 -05:00
Andrew Johnson 02afb98f38 Reject NULL callback functions in ca_array_*_callback
Fixes lp:1369626
2014-09-17 10:21:07 -05:00
Michael Davidsaver 3bb8536494 dbAccess: dbPut() handle changing BPTR
Forgot to update dbPut(), oops...
2014-09-15 11:42:38 -04:00
Michael Davidsaver 6d678eca60 std/rec/test: test dbGet() and dbPut() for array field
test with waveform record to check that DBADDR
modifications aren't seen by the caller.
2014-09-15 11:42:38 -04:00
Andrew Johnson 42f0b9be21 Posix: Fix how we check POSIX features
Darwin defines some macros as -1, which means unsupported.
2014-09-11 17:08:49 -05:00
Janet Anderson 840669563c Updated concatenated database definition files 2014-09-11 15:18:57 -05:00
Janet Anderson 81fdbdebd9 Added dummy for solaris build. 2014-09-11 09:10:44 -05:00
Andrew Johnson 431e87f95c libCom/posix: Drop SCHED_FIFO before exec() in child process
osiSpawnDetachedProcess() switches to SCHED_OTHER after fork() so
the new program will not be real-time unless is requests it itself.
Only happens when USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES
2014-09-09 18:06:09 -05:00
Janet Anderson 069a40ac46 Concatenated database definition files 2014-09-09 15:58:04 -05:00
Janet Anderson 09e2926c7b Added concatenated database definition files 2014-09-09 13:29:16 -05:00
Andrew Johnson 3f88273d0f Linux builds: Define _GNU_SOURCE and _DEFAULT_SOURCE
These replace the mixture of macros used to pick the features
presented by the standard system header files on Linux.

Updated the section of the CA reference manual that showed some
example compile lines to correct for 3.15 build changes.

Removed unused code & out-of-date comments.
2014-09-08 17:57:18 -05:00
Andrew Johnson 7a9407d7ab libCom: Clean up MS compiler warnings.
This doesn't fix the Microsoft link failure though, that may
need an upgrade of MS Visual Studio on our Hudson Windows VM.
2014-09-04 11:07:59 -05:00
Andrew Johnson c8e18c1b4d ioc/db/test: Fix dependency problems.
dbLockTest.c never actually uses xRecord.h, while
dbPutLinkTest needed a depedency rule for it.
2014-09-03 22:59:34 -05:00
Andrew Johnson 8604d4643a Merged Murali's memlock_all branch. 2014-08-29 10:58:55 -07:00
Andrew Johnson 267ed50dc7 Allow unknown field attributes in record.dbd files
They will be noisy, but are retained in regenerated output and
won't stop the build from proceeding.
2014-08-28 14:12:28 -07:00
Murali Shankar 67ed5d1f21 Added documentation for memlock_all to the release notes 2014-08-27 12:15:04 -07:00
Murali Shankar 1b7c161f7f On POSIX systems, an IOC application's ability to meet timing deadlines is often
dependent on its ability to lock  part  or  all  of  the process's virtual
address space into RAM, preventing that memory from being paged to the swap
area.  This patch will attempt to lock the process's virtual address space into
RAM if the process has the ability to run threads with different priorities. If
unsuccessful, it prints an message to stderr.  

In Linux, one can grant a process the ability to run threads with different
priorities by using a command like ulimit -r unlimited. To use the FIFO
scheduler, use a command like so - chrt -f 1 softIoc -d test.db

In Linux, one can grant a process the ability to lock memory by using a command
like ulimit -l unlimited. Alternatively, these limits can be configured on a per
user/per group basis by using /etc/security/limits.conf or its equivalent.

In Linux, a child process created via fork inherits its parent's resource
limits.  Thus, it is probably a good idea to start the caRepeater before
starting the IOC.
2014-08-26 17:29:27 -07:00
Ralph Lange f40c25723d libCom/osi: Fix for MinGW32 builds on Windows 2014-08-26 17:14:35 -07:00
Andrew Johnson 0d33e8a872 epicsStdio.c allow stderr from inside epicsThreadInit()
Circular initialization problem that Murali discovered when you
try to fprintf(stderr) from the posix/osdThread.c once() routine.
This change lets the stderr stream through in that case.
2014-08-26 16:40:02 -07:00
Andrew Johnson 83d22ce164 libCom: Darwin has setenv(), use it. 2014-08-26 14:51:18 -07:00
Andrew Johnson 2aea693faf Merged Jeff's 3.15_libcom_from_cvs_trunk branch. 2014-08-25 16:27:18 -05:00
Michael Davidsaver 7f5fc4356b generate pkg-config files 2014-08-19 11:16:01 -04:00
Andrew Johnson 9079c8aa53 Reverted changes to epicsTime.h and epicsThread.h 2014-08-18 22:55:07 -05:00
Andrew Johnson c85bd908a3 makeBaseApp tempplate: OPT settings
Eric suggested mentioning the HOST_OPT and CROSS_OPT settings
in the application template's configure/CONFIG_SITE file.
2014-08-18 16:16:02 -05:00
Andrew Johnson 5e0bf53fec epicsTypes.h: Don't use C99 types
The __STDC_VERSION__ >= 199901L test never succeeds
in C++, and there were issues with the epicsInt8
definition anyway (int8_t is signed, but char might
not be).

I also removed the epicsBoolean enum which we never use.
2014-08-15 12:24:31 -05:00
Michael Davidsaver b7e46b8b02 rsrv: better error msg when listen() fails 2014-08-13 14:26:03 -04:00
Andrew Johnson cafebf2428 Merged Ralph's fix-nan-inf-updates branch.
Added a few cosmetic changes en route.
2014-08-05 15:51:52 -05:00
Andrew Johnson 547a9b3ebc Tweak some dependency rules for correctness 2014-08-05 14:03:37 -05:00
Ralph Lange e6a883bc5f std/rec/test: explicitly register test subroutine for subroutine record (fix build on MinGW) 2014-08-05 14:29:14 +02:00
Ralph Lange fdb21252b0 ioc/db (recGblCheckDeadband): avoid signbit() which does not exist on older MSVC installations 2014-08-05 11:20:23 +02:00
Ralph Lange 130d98463c ioc/db (recGblCheckDeadband): pull most common case to front 2014-08-05 11:17:29 +02:00
Ralph Lange ded1f3572d ioc/db: force isnan()/isinf() to be 1 (instead of non-zero) 2014-08-05 10:42:25 +02:00
Andrew Johnson cc656981c0 MSI testing
When testing the msi program, don't rely on EPICS_HOST_ARCH
to find the binary executable as we may be running the tests
on a cross-arch such as linux-x86-debug.
2014-08-04 15:39:02 -05:00