Skip to content

drawpitech/minilibc

Repository files navigation

MinilibC

Going deeper into the rabbit hole

Note

This is the first project of the second year at Epitech.

Compilation

Build the libasm.so shared library.

Nix x86_64

nix build

Generic Linux x86_64

You'll need the following dependencies:

  • ld
  • gnumake
  • nasm
make

Test

Unit tests

If using Nix, you can run the unit tests with the following command.

nix run .#unit_tests

Else:

Dependencies:

  • gcc
  • criterion
make unit_tests
./unit_tests

In the real world

LD_PRELOAD=./libasm.so firefox

Implemented functions

These function respect the x86_64 calling convention, and followed the man pages from kernel.org/doc/man-pages.

  • strlen
  • strchr
  • strrchr
  • memset
  • memcpy
  • strcmp
  • memmove
  • strncmp
  • strcasecmp
  • strstr
  • strpbrk
  • strcspn

About

b4 - Going deeper into the rabbit hole

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published