Skip to content

Instantly share code, notes, and snippets.

@joycemaferko
joycemaferko / main.c
Created October 15, 2021 09:32
RTEMS Test for pthread_wrlock_clockrdlock and pthread_wrlock_clockwrlock
/*
* Copyright (C) 2021 Matthew Joyce
* COPYRIGHT (c) 1989-2008
* On-Line Applications Research Corporation (OAR)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@joycemaferko
joycemaferko / pwrlockclockrdlock.c
Created October 15, 2021 09:26
Implementation of pthread_rwlock_clockrdlock
/**
* @file
*
* @ingroup POSIXAPI
*
* @brief Attempt to Obtain a Read Lock on a RWLock Instance
*/
/*
* POSIX RWLock Manager -- Attempt to Obtain a Read Lock on a RWLock Instance.
@joycemaferko
joycemaferko / pwrlockclockwrlock.c
Created October 15, 2021 09:25
Implementation of pthread_rwlock_clockwrlock
/**
* @file
*
* @ingroup POSIXAPI
*
* @brief Attempt to Obtain a Write lock on a RWLock instance
*/
/*
* POSIX RWLock Manager -- Attempt to Obtain a Write Lock on a RWLock Instance
@joycemaferko
joycemaferko / condimpl.h
Created August 25, 2021 13:01
Adding CLOCK_NOT_SPECIFIED to condimpl.h
/* Adding CLOCK_NOT_SPECIFIED (44) and clock_id parameter in wait_support() */
/**
* @file
*
* This include file contains the static inline implementation of the private
* inlined routines for POSIX condition variables.
*/
/*
@joycemaferko
joycemaferko / mutexclocklock.c
Created August 20, 2021 13:57
pthread_mutex_clocklock Implementation
/**
* @file
*
* @ingroup POSIXAPI
*
* @brief Mutex Clock Lock
*/
/*
* Copyright (C) 2021 Matthew Joyce
@joycemaferko
joycemaferko / init.c
Created August 20, 2021 13:55
pthread_mutex_clocklock Test (psx18)
/*
* Copyright (C) 2021 Matthew Joyce
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@joycemaferko
joycemaferko / condclockwait.c
Last active July 11, 2022 12:09
pthread_cond_clockwait implementation
/**
* @file
*
* @ingroup POSIXAPI
*
* @brief Waiting on a Condition
*/
/*
* Copyright (C) 2021 Matthew Joyce
@joycemaferko
joycemaferko / init.c
Last active August 25, 2021 12:51
RTEMS Test for pthread_cond_clockwait() (psxcond03)
/*
* Copyright (C) 2021 Matthew Joyce
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@joycemaferko
joycemaferko / init.c
Last active September 6, 2021 07:49
RTEMS Test for sig2str.c (psxsignal09)
/* SPDX-License-Identifier: BSD-2-Clause */
/**
* @file
* @brief Test of sig2str and str2sig methods
*
* This test file is used to verify that the methods sig2str and str2sig
* are functioning as expected
*/
@joycemaferko
joycemaferko / sig2str.c
Created August 18, 2021 13:31
Compile Test: sig2str/str2sig
/* SPDX-License-Identifier: BSD-2-Clause */
/**
* @file
* @brief Header File Conformance Test
*
* This test file is used to verify that the header files associated with
* invoking this function are correct.
*/