This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* liborbis sample | |
* Copyright (C) 2015,2016,2017,2018 Antonio Jose Ramos Marquez (aka bigboss) @psxdev on twitter | |
* Repository https://github.com/psxdev/liborbis | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export TARGET=amd64-marcel-freebsd9.2 | |
export PREFIX=/usr/cross-build | |
export TARGET_PREFIX=$PREFIX/$TARGET | |
export PATH=$PATH:$PREFIX/bin | |
mkdir -p $TARGET_PREFIX{,/lib,/include} | |
mkdir build-{binutils,gmp,mpfr,mpci,gcc} |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
- The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.
Translations: (No guarantee that the translations are up-to-date)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* tcpmd5_server6.c: TCP_MD5SIG | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See the bash script below. :) | |
Tested on debian bookworm-slim (`docker pull debian:bookworm-slim`). | |
### Prerequisites | |
```bash | |
apt update | |
apt install -y build-essential wget bison | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int c; | |
char *hex = "0123456789abcdef"; | |
while( (c = getchar()) != EOF ){ | |
if( ('a' <= c && c <= 'z') | |
|| ('A' <= c && c <= 'Z') | |
|| ('0' <= c && c <= '9') ){ | |
putchar(c); | |
} else { | |
putchar('%'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* pollard-rho.c | |
* Created on: Dec 20, 2011 | |
* Author: martani | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <gmp.h> |
There are some tests ripped out from git://repo.or.cz/ltp-debian.git/testcases/open_posix_testsuite/conformance/interfaces and made self-containing. They demonstrate and can be used to test the POSIX AIO interface for asynchronous I/O and formerly file IO.
Build with a c compiler (for instance clang
or cc
):
cc -o aio_read-test aio_read-test.c && ./aio_read-test
Note: Contrary to popular belief, it has been tested and confirmed to actually be asynchronous on Darwin 10.6.0 (xnu 1504.9.26~3).
NewerOlder