libclockhack | Intercept library to set the time
kandi X-RAY | libclockhack Summary
kandi X-RAY | libclockhack Summary
libclockhack is a C library. libclockhack has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Set the time backward or forward for a process by intercepting the relevant system calls using LD_PRELOAD to have the run time loader preload this library. A small shared library that intercepts the three system calls that Linux processes use to get the current time viz. The offset in seconds from the current time is passed via the environment variable HACK_CLOCK_SHIFT. Note: the apparent time still increases monotonically at a constant offset from the real time. Should be able to fiddle it to work on most unix systems. If RTLD_NEXT isn't supported then accessing the real system calls using the syscall(2) interface is another option. NetBSD seems to rename gettimeofday to gettimeofday50 and has a slightly different prototype but did work after making this change. Obviously doesn't work for statically linked executables such as /bin/date on OpenBSD. LICENSE Creative Commons CC0 (
Set the time backward or forward for a process by intercepting the relevant system calls using LD_PRELOAD to have the run time loader preload this library. A small shared library that intercepts the three system calls that Linux processes use to get the current time viz. The offset in seconds from the current time is passed via the environment variable HACK_CLOCK_SHIFT. Note: the apparent time still increases monotonically at a constant offset from the real time. Should be able to fiddle it to work on most unix systems. If RTLD_NEXT isn't supported then accessing the real system calls using the syscall(2) interface is another option. NetBSD seems to rename gettimeofday to gettimeofday50 and has a slightly different prototype but did work after making this change. Obviously doesn't work for statically linked executables such as /bin/date on OpenBSD. LICENSE Creative Commons CC0 (
Support
Quality
Security
License
Reuse
Support
libclockhack has a low active ecosystem.
It has 2 star(s) with 0 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
libclockhack has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of libclockhack is current.
Quality
libclockhack has 0 bugs and 0 code smells.
Security
libclockhack has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
libclockhack code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
libclockhack is licensed under the CC0-1.0 License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
libclockhack releases are not available. You will need to build from source code and install.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libclockhack
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libclockhack
libclockhack Key Features
No Key Features are available at this moment for libclockhack.
libclockhack Examples and Code Snippets
No Code Snippets are available at this moment for libclockhack.
Community Discussions
No Community Discussions are available at this moment for libclockhack.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libclockhack
You can download it from GitHub.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page