Preliminary implementation of bind and fcntl