- May 30, 2013
-
-
Nadav Har'El authored
Previously, we re-implemented "unsupported" file operations (e.g., chmod for a pipe on which fchmod makes no sense) several times - there was an implementation only for chmod in kern_descrip.c, used in sys_socket.c, and af_local.cc had its own. As we add more file descriptor type (e.g., create_epoll()) we'll have even more copies of these silly functions, so let's do it once in fs/unsupported.c - with the fs/unsupported.h header file. This also gives us a central place to document (and argue) whether an unimplemented ioctl() should return ENOTTY or EBADF (I think the former).
-
- May 28, 2013
-
-
Nadav Har'El authored
getsockname() used to fail because by the time the call chain reached kern_getsockname() it got addrlen=0. The problem is getsockname1() which gives it an initialized local variable instead of the given addrlen. Most of these layers and copies are redundant, and are only left because of previous incarnations of the code which had copies from user space - but we need to at least get the unnecessary copies right ;-)
-
- May 27, 2013
-
-
Christoph Hellwig authored
This allows to remove various #if 0'ed code using vnode_t or znode_t to be compiled, both in the current headers and future ported code.
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
- May 26, 2013
-
-
Guy Zana authored
this haven't caused a real bug, I just noticed it while tracing. it may be dangerous if in some flow, the stack will not be zeroed
-
- May 24, 2013
-
-
Christoph Hellwig authored
-
- May 21, 2013
-
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
- May 20, 2013
-
-
Guy Zana authored
read_random() is used indirectly by the TCP stack to randomize a local port number, before this patch it was identical in each execution, and that caused NAT problems. also add a FIXME note to implement real random one day.
-
Guy Zana authored
the linux/musl definition is 2 bytes long instead of 1 byte as in freebsd, this patch is fixing this issue which caused ifconfig to fail
-
Guy Zana authored
Attempting to put an end to the linux<->freebsd confusion.
-
- May 18, 2013
-
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Avi Kivity authored
Add includes where needed, remove duplicate definitions
-
- May 16, 2013
-
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
- May 12, 2013
-
-
Arnon Kanfi authored
-
Arnon Kanfi authored
the lack of extern "C").
-
Christoph Hellwig authored
This is a way to sleep without a wakeup channel. I had to rename the symbol to bsd_pause because it conflicts with the classic Unix pause syscall exposed through unistd.h via libcstd++.
-
Arnon Kanfi authored
NET_RT_IFLIST (list interfaces) and NET_RT_DUMP (dump rout entries).
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
This flag implies the created thread is not started, but we currently always start it. In addition the thread_lock/sched_add/thread_unlock mess the BSD code usually does is something we'd rather avoid for now.
-
Arnon Kanfi authored
Linux IOCTL commands in addition to the BSD IOCTLS. Linux IOCTLs should be used instead of BSD IOCTLs whenever possible.
-
Arnon Kanfi authored
Added support for passing bsd commands to setsockopt() by negating the bsd cmd values. This is guarnteed NOT to clash with Linux commands.
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-
Christoph Hellwig authored
-