Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add socket-related functions and wrappers, and a few other fixes. #2

Open
wants to merge 54 commits into
base: master
Choose a base branch
from

Commits on Jul 9, 2018

  1. Various corrections

    Jimvy committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    e8b90ab View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2018

  1. Some corrections

    Jimvy committed Jul 12, 2018
    Configuration menu
    Copy the full SHA
    4bf0af0 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2018

  1. Configuration menu
    Copy the full SHA
    47b55fd View commit details
    Browse the repository at this point in the history
  2. Replacing getpagesize() by getconf(_SC_PAGESIZE), which is recommande…

    …d by POSIX standard
    Jimvy committed Jul 13, 2018
    Configuration menu
    Copy the full SHA
    ca308e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39dbe6e View commit details
    Browse the repository at this point in the history
  4. Updating Makefile to include all C source in CTester/

    (Including wrap_getpid.c which was absent)
    Minor changes to student_code.h
    Jimvy committed Jul 13, 2018
    Configuration menu
    Copy the full SHA
    65736a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2018

  1. Configuration menu
    Copy the full SHA
    4c2abc5 View commit details
    Browse the repository at this point in the history
  2. Applying non-blocking write to pipe_stdout/pipe_stderr

    The original code only made the reading end of the pipe non-blocking,
    as it needs to empty the pipe after the sandbox.
    But, if the student's program actually writes a lot on the writing end
    of the pipe, the pipe will block and cause the program to timeout.
    It is better to actually report this error (too much output)
    rather than waiting for the task to end.
    In both cases, the output will be truncated and it will not pass the tests,
    as we may expect the problem author to not require the student to output
    more than 65536 bytes or so of data on stdout or on stderr.
    Jimvy committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    01ecaba View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2018

  1. Removes temporarily the possibility for the student to call exit and …

    …bypass the tests.
    
    Also, makes sure to have a less undefined behaviour if the student
    actually calls exit: it will predictably raise a SIGSEGV instead of
    randomly not crashing instantly.
    Jimvy committed Jul 22, 2018
    Configuration menu
    Copy the full SHA
    be4ef7a View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2018

  1. Updating Makefile

    Jimvy committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    12258c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43ade11 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    482e2f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    633320d View commit details
    Browse the repository at this point in the history
  5. Updating Makefile

    Jimvy committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    29a4a70 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2018

  1. Wrapper functions for socket and related functions

    Functions: socket, bind, connect, accept, listen, recv (and al),
    send (and al).
    Currently only supports statistics
    Also included: Some unit tests
    Jimvy committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    a19e302 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2018

  1. Make CTester compile on CentOS

    Jimvy committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    13d65e9 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2018

  1. Configuration menu
    Copy the full SHA
    98c3073 View commit details
    Browse the repository at this point in the history
  2. Add delayed chunks to recv

    Not well-tested, however
    Jimvy committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    3ec71e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2018

  1. Configuration menu
    Copy the full SHA
    1a321cd View commit details
    Browse the repository at this point in the history
  2. Add fstdout and fstderr to allow tests to bypass the pipes when writi…

    …ng on stdout and stderr
    Jimvy committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    8df0a72 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2018

  1. Reorganizing code of read and recv buffering and partial return, for …

    …use by wrap_file and wrap_socket
    Jimvy committed Sep 17, 2018
    Configuration menu
    Copy the full SHA
    f99a7ae View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2018

  1. Configuration menu
    Copy the full SHA
    60a83ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b279f35 View commit details
    Browse the repository at this point in the history
  3. Fix broken ci

    Jimvy committed Sep 18, 2018
    Configuration menu
    Copy the full SHA
    f2c46e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b7d4d9 View commit details
    Browse the repository at this point in the history
  5. Add tests, clean up read_write, and fix a few bugs

    - Remove write-related functions from read_write (currently not needed).
    - Add to run_ci the possibility of executing a single test.
    - A few corrections in read_write (time.h, NULL, const etc).
    - Allow exit to be called normally when the sandbox is not running.
    Jimvy committed Sep 18, 2018
    Configuration menu
    Copy the full SHA
    3685984 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2018

  1. Add more unit test, a few features and fix bugs detected by these

    Among these were incoherence between nanoseconds, microseconds and
    milliseconds, bad type for intervals, and something else.
    Functionnalities added include the possibility to create a read_buffer_t
    from the tables of offsets and intervals, when the data is contigous.
    Jimvy committed Sep 20, 2018
    Configuration menu
    Copy the full SHA
    027afe5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b0915a3 View commit details
    Browse the repository at this point in the history
  3. Add reinit_network_inet_stats

    Jimvy committed Sep 20, 2018
    Configuration menu
    Copy the full SHA
    df4d54e View commit details
    Browse the repository at this point in the history
  4. Add reinit_file_stats

    Jimvy committed Sep 20, 2018
    Configuration menu
    Copy the full SHA
    7e0faab View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2018

  1. Configuration menu
    Copy the full SHA
    73d4fb7 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2018

  1. Small fix to run file

    Jimvy committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    6b1c968 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fbb737 View commit details
    Browse the repository at this point in the history
  3. Remove useless fprintf

    Jimvy committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    7633453 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    43c23a3 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2018

  1. Correcting a few bugs by Valgrind and add a new function to utils-socket

    The function allows to connect a UDP socket to a remote client. Also, a
    confusion has been fixed
    Jimvy committed Sep 23, 2018
    Configuration menu
    Copy the full SHA
    d34f371 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2018

  1. Configuration menu
    Copy the full SHA
    492e131 View commit details
    Browse the repository at this point in the history
  2. Preparing the PR

    Jimvy committed Sep 24, 2018
    Configuration menu
    Copy the full SHA
    fa5ba4a View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. Update gitignore

    Jimvy committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    acc0d8e View commit details
    Browse the repository at this point in the history
  2. CTester.c: fix missing cleanup of read_write

    Needs to be applied after read_write changes
    Jimvy committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    49e4e20 View commit details
    Browse the repository at this point in the history
  3. Add real tests for DNS

    Jimvy committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    8508162 View commit details
    Browse the repository at this point in the history
  4. Fix bugs in DNS wrappers

    - monitored.gai_strerror
    - memory leak when reset
    - missing implementations of setters of fai_report and check_fai
    - Fix simple_getaddrinfo so that it is more compliant to the true one
    - Add reset for all alternative methods
    Jimvy committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    fb12d77 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    eddc70a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8fa48fd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2d4d4f0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    080cc6f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    75be8f1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c82b71a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7ddb2f6 View commit details
    Browse the repository at this point in the history
  12. Add Sphinx documentation

    Jimvy committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    1642bbb View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2019

  1. Configuration menu
    Copy the full SHA
    ac11fb2 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2019

  1. Configuration menu
    Copy the full SHA
    6d9d6f2 View commit details
    Browse the repository at this point in the history
  2. Fix Travis

    Jimvy committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    b1b229c View commit details
    Browse the repository at this point in the history
  3. Fix Travis, again

    Jimvy committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    98ee571 View commit details
    Browse the repository at this point in the history