summaryrefslogtreecommitdiffstats
path: root/cpukit/include/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sys: Add files to Doxygen groupSebastian Huber2023-07-263-3/+21
| | | | | | Canonicalize brief descriptions. Update #3707.
* timecounter: Add files to Doxygen groupSebastian Huber2023-07-265-0/+45
| | | | Update #3707.
* sys/exec_elf.h: Bring in newer fileRyan Long2022-07-291-232/+608
| | | | | | Updated this file with the newer version in NetBSD. Updates #4682
* timecounter.h: Add _Timecounter_Discipline()Gabriel Moyano2022-05-231-0/+9
| | | | Update #2349.
* timepps.h: PPS_SYNC defined by defaultGabriel Moyano2022-05-231-0/+1
| | | | Update #2349.
* score: Rename tc_getfrequency()Gabriel Moyano2022-05-231-0/+10
| | | | | | Rename tc_getfrequency() to _Timecounter_Get_frequency(). Update #2349.
* kern_tc.c: Replace FreeBSD event mechanism by adding pointers to functionGabriel Moyano2022-05-231-0/+24
| | | | Update #2349.
* kern_tc.c: Add atomic dependencies required by the PPS APIGabriel Moyano2022-05-231-0/+7
| | | | Update #2349.
* cpukit/include/sys: Change license to BSD-2.Joel Sherrill2022-03-252-6/+44
| | | | Updates #3053.
* kern_ntptime.c: Port to RTEMSSebastian Huber2022-02-211-2/+2
| | | | | | Remove previous adjtime() implementation. Update #2348.
* cpukit: Merge FreeBSD values for the prioritiesChris Johns2021-01-081-17/+85
| | | | | | | It seems we need valid values or assumptions in the FreeBSD about these values breaks some of the code. Closes #4207
* score: Remove superfluous timecounter membersSebastian Huber2019-10-021-1/+3
|
* Remove explicit file names from @fileSebastian Huber2019-02-281-1/+1
| | | | | | This makes the @file documentation independent of the actual file name. Update #3707.
* Add more dummy values to <sys/priority.h>Sebastian Huber2018-09-101-2/+4
| | | | Update #3472.
* Add dummy PI_SOFT to <sys/priority.h>Sebastian Huber2018-08-231-0/+1
| | | | Update #3472.
* Add dummy PRI_MIN_KERN to <sys/priority.h>Sebastian Huber2018-08-101-0/+1
| | | | Update #3472.
* sys/event.h: Update version FreeBSD tagSebastian Huber2018-08-081-1/+1
| | | | Update #3472.
* Make the definition of struct kevent in event.h match what the man page for ↵dab2018-08-081-4/+4
| | | | | | | | | | | | | | | kevent(2) says. This is a trivial comment-only fix. The man page for kevent(2) gives the definition of struct kevent, including a comment on each field. The actual definition in sys/event.h omitted the comments on some fields. Add the comments in. Not only does this make the man page and include file agree, but the comments are useful in and of themselves. Reviewed by: kib (D15778: commented that this should be a separate commit) MFC after: 3 days Sponsored by: Dell EMC
* Address some (although not all) style(9) issues in event.h after r335776.dab2018-08-081-10/+10
| | | | | | Reported by: bde@ MFC after: 1 day Sponsored by: Dell EMC
* Fix compilation error in r335765 under gcc 4.2.1.dab2018-08-081-4/+1
| | | | | | | | | | | The anonymous object initialization introduced in r335765 was acceptable to clang, but not gcc 4.2.1. Fix it for both. Reported by: jhibbits@ Pointy Hat: myself MFC after: 1 week X-MFC-with: r335765 Sponsored by: Dell EMC
* Remove potential identifier conflict in the EV_SET macro.dab2018-08-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | PR43905 pointed out a problem with the EV_SET macro if the passed struct kevent pointer were specified with an expression with side effects (e.g., "kevp++"). This was fixed in rS110241, but by using a local block that defined an internal variable (named "kevp") to get the pointer value once. This worked, but could cause issues if an existing variable named "kevp" is in scope. To avoid that issue, jilles@ pointed out that "C99 compound literals and designated initializers allow doing this cleanly using a macro". This change incorporates that suggestion, essentially verbatim from jilles@ comment on PR43905, except retaining the old definition for pre-C99 or non-STDC (e.g., C++) compilers. PR: 43905 Submitted by: Jilles Tjoelker (jilles@) Reported by: Lamont Granquist <lamont@scriptkiddie.org> Reviewed by: jmg (no comments), jilles MFC after: 1 week Sponsored by: Dell EMC Differential Revision: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=43905
* sys/sys: further adoption of SPDX licensing ID tags.pfg2018-08-081-0/+2
| | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
* Decode kevent structures logged via ktrace(2) in kdump.jhb2018-08-081-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a new KTR_STRUCT_ARRAY ktrace record type which dumps an array of structures. The structure name in the record payload is preceded by a size_t containing the size of the individual structures. Use this to replace the previous code that dumped the kevent arrays dumped for kevent(). kdump is now able to decode the kevent structures rather than dumping their contents via a hexdump. One change from before is that the 'changes' and 'events' arrays are not marked with separate 'read' and 'write' annotations in kdump output. Instead, the first array is the 'changes' array, and the second array (only present if kevent doesn't fail with an error) is the 'events' array. For kevent(), empty arrays are denoted by an entry with an array containing zero entries rather than no record. - Move kevent decoding tables from truss to libsysdecode. This adds three new functions to decode members of struct kevent: sysdecode_kevent_filter, sysdecode_kevent_flags, and sysdecode_kevent_fflags. kdump uses these helper functions to pretty-print kevent fields. - Move structure definitions for freebsd11 and freebsd32 kevent structures to <sys/event.h> so that they can be shared with userland. The 32-bit structures are only exposed if _WANT_KEVENT32 is defined. The freebsd11 structures are only exposed if _WANT_FREEBSD11_KEVENT is defined. The 32-bit freebsd11 structure requires both. - Decode freebsd11 kevent structures in truss for the compat11.kevent() system call. - Log 32-bit kevent structures via ktrace for 32-bit compat kevent() system calls. - While here, constify the 'void *data' argument to ktrstruct(). Reviewed by: kib (earlier version) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D12470
* Add abstime kqueue(2) timers and expand struct kevent members.kib2018-08-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This change implements NOTE_ABSTIME flag for EVFILT_TIMER, which specifies that the data field contains absolute time to fire the event. To make this useful, data member of the struct kevent must be extended to 64bit. Using the opportunity, I also added ext members. This changes struct kevent almost to Apple struct kevent64, except I did not changed type of ident and udata, the later would cause serious API incompatibilities. The type of ident was kept uintptr_t since EVFILT_AIO returns a pointer in this field, and e.g. CHERI is sensitive to the type (discussed with brooks, jhb). Unlike Apple kevent64, symbol versioning allows us to claim ABI compatibility and still name the new syscall kevent(2). Compat shims are provided for both host native and compat32. Requested by: bapt Reviewed by: bapt, brooks, ngie (previous version) Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D11025
* Fix typo.pkelsey2018-08-081-1/+1
| | | | | | hist -> hint MFC after: 3 days
* Remove make preinstallChris Johns2018-01-2511-0/+2771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* Remove obsolete network header filesSebastian Huber2017-12-072-188/+0
| | | | Update #3254.
* sys/endian.h: Document FreeBSD originSebastian Huber2017-01-231-1/+1
|
* sys/uio.h: Update to FreeBSD head 2015-12-03Sebastian Huber2016-10-261-14/+20
|
* score: Use Newlib provided <machine/endian.h>Sebastian Huber2016-05-301-18/+28
|
* Provide dummy <sys/priority.h>Sebastian Huber2015-11-181-1/+40
| | | | Required by new network stack.
* sys/endian.h: Fix 16-bit int problemsSebastian Huber2014-12-151-4/+6
|
* Add <sys/endian.h>Sebastian Huber2014-11-201-0/+195
|
* Move <memory.h> and <sys/uio.h> to non-networking directoryJoel Sherrill2013-01-232-0/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | These two header files were installed from libnetworking even when networking was disabled. This patch moves them to a non-networking location and updates uio.h to match the FreeBSD 8.x source being used for the USB stack and TCP/IP stack upgrade. - cpukit/include/memory.h Move from cpukit/libnetworking/memory.h. No changes - cpukit/include/sys/uio.h Move from cpukit/libnetworking/sys/uio.h. Replace with FreeBSD 8.x version. - cpukit/include/sys/_iovec.h New. FreeBSD 8.x file supporting <sys/uio.h>. - cpukit/Makefile.am Reflect movement of <memory.h> and <sys/uio.h>. - cpukit/preinstall.am Regenerate - cpukit/libnetworking/nfs/bootp_subr.c Eliminate use of uio_procp field no longer in FreeBSD structure. This field was set and never read so eliminating the set has no impact.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-1/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* New.Ralf Corsepius2009-02-201-0/+2