Validates a data block of length size in bytes.
int validate_utf8validator( utf8validator_t * utf8validator, size_t size, const uint8_t data[size], /*err*/size_t * erroffset )
Return the CRC32 checksum.
uint32_t value_crc32( const crc32_t * crc )
Returns the value of attribute.
int value_eglconfig( eglconfig_t eglconf, struct opengl_display_t * egldisp, const int32_t attribute, /*out*/int32_t * value )
Returns the value of attribute stored in gconf.
int value_gconfig( const gconfig_t * gconf, struct display_t * display, int32_t attribute, /*out*/int32_t * value )
Udpates internal fields the last time and returns hash value.
sha1_hashvalue_t * value_sha1hash( sha1_hash_t * sha1 )
Returns valuecache_t holding precomputed values.
struct valuecache_t * valuecache_maincontext( void )
Returns the supported version of the address.
ipversion_e version_ipaddr( const ipaddr_t * addr )
Returns protocol version ipversion_e.
uint16_t version_ipsocket( const ipsocket_t * ipsock )
Returns the native visualid of the configuration.
int visualconfigid_eglconfig( eglconfig_t eglconf, struct opengl_display_t * egldisp, /*out*/int32_t * visualid )
Returns the native visualid of the configuration.
int visualid_gconfig( const gconfig_t * gconf, struct display_t * display, /*out*/int32_t * visualid )
Same as printf_logbuffer.
void vprintf_logbuffer( logbuffer_t * logbuf, const char * format, va_list args )
Same as printf_logwriter except that variadic arguments are replaced by args.
void vprintf_logwriter( logwriter_t * lgwrt, uint8_t channel, uint8_t flags, const struct log_header_t * header, const char * format, va_list args )
Waits for a blocked signal until it has been received.
static int wait_for_signal( int signr )
Waits timeout_ms milliseconds for events and returns them.
int wait_iopoll( iopoll_t * iopoll, /*out*/uint32_t * nr_events, uint32_t queuesize, /*out*/struct ioevent_t * eventqueue/*[queuesize]*/, uint16_t timeout_ms )
Waits until process has terminated.
int wait_process( process_t * process, /*out*/process_result_t * result )
Waits until a signal is received.
int wait_semaphore( semaphore_t * semaobj )
Waits for a realtime signal with number nr.
int wait_signalrt( signalrt_t nr, /*out*/uintptr_t * value )
Waits until timer expires.
int wait_systimer( systimer_t timer )
Suspends the calling thread until some other calls trywakeup_waitlist.
int wait_waitlist( waitlist_t * wlist )
Waits for syncevent to be signaled.
void waitforevent_syncrun( syncrun_t * srun, struct syncevent_t * syncevent )
Waits for the last started thread to exit.
int waitforexit_syncrun( syncrun_t * srun )
Waits for syncwlist to be signaled.
void waitforlist_syncrun( syncrun_t * srun, struct syncwlist_t * syncwlist )
Returns the single thread which waits for this event.
syncwait_t * waiting_syncevent( const syncevent_t * syncevent )
Waits until operation completes.
int waitms_ipsocketasync( ipsocket_async_t * ipsockasync, uint32_t millisec/*0 = > no timeout*/ )
Wait for XRRScreenChangeNotify and checks that x11disp gets updated.
static int waitXRRScreenChangeNotify( x11screen_t * x11screen, x11videomode_t * xvidmode )
Wakes up all readers waiting in rwlock->readers.
static inline void wakeupreader_rwlock( rwlock_t * rwlock )
Wakes up the first writer stored in list rwlock->writers.
static inline void wakeupwriter_rwlock( rwlock_t * rwlock )
Declares an interface to handle window events.
void window_evh_DECLARE( TYPENAME declared_evh_t, TYPENAME subwindow_t )
Writes size bytes from buffer to file referenced by fileobj.
int write_file( file_t fileobj, size_t size, const void * buffer/*[size]*/, size_t * bytes_written )
Writes size bytes from buffer to the data stream referenced by ioc.
int write_iochannel( iochannel_t ioc, size_t size, const void * buffer/*[size]*/, /*out*/size_t * bytes_written )
Transfers maxdata_len bytes into internal write (send) queue.
int write_ipsocket( ipsocket_t * ipsock, size_t maxdata_len, const uint8_t data[maxdata_len], /*out*/size_t * bytes_written )
Writes (flushes) the buffer to the configured io channel.
int write_logbuffer( logbuffer_t * logbuf )
Writes errlog to s_unittest_singleton.log_files_directory + “/” + testname.
static int writelogfile_unittest( const char * testname )
Writes a single byte of “out of band” data (urgent data).
int writeoob_ipsocket( ipsocket_t * ipsock, uint8_t data )
Same as write_ipsocket but for unconnected (UDP) sockets.
int writeto_ipsocket( ipsocket_t * ipsock, const struct ipaddr_t * remoteaddr, size_t maxdata_len, const uint8_t data[maxdata_len], /*out*/size_t * bytes_written )
Declares an interface function table for getting notified if window an event has occurred.
void x11window_evh_DECLARE( TYPENAME declared_evh_t, TYPENAME subwindow_t )
Returns the sign of combined bigint_t.sign_and_used_digits fields.
static inline int16_t xorsign_biginthelper( int16_t lsign, int16_t rsign )
Schedules another thread on this Processor.
void yield_thread( void )