Age | Commit message (Collapse) | Author |
|
|
|
* firmlink.c (main): Fix return type to int, and use return.
* fwd.c (main): Likewise.
* new-fifo.c (main): Likewise.
* magic.c (main): Likewise.
* fifo.c (main): Likewise.
* null.c (main): Likewise.
|
|
* crash.c (main): New args for
ports_manage_port_operations_multithread.
* fifo.c (main): Likewise.
* firmlink.c (main): Likewise.
* new-fifo.c (main): Likewise.
* null.c (main): Likewise.
|
|
|
|
New function.
(main):
Use argp instead of getopt.
Don't use old trivfs port class/bucket variables.
Don't create our own port classes/bucket, let trivfs_startup do it.
(argp_program_version, argp):
New variables.
(trivfs_protid_portclasses, trivfs_cntl_portclasses,
trivfs_protid_nportclasses, trivfs_cntl_nportclasses):
Variables removed.
(options):
Use argp structures instead of getopt ones.
<getopt.h>:
Include removed.
<version.h>:
New include.
<argp.h>:
New include.
|
|
Unbreak a new read pipe even if not waiting for writers.
Only bother to do anything if O_READ | O_WRITE.
When O_NONBLOCK is set, just don't block if possible, instead of of
returning EWOULDBLOCK.
Only set PO->hook if O_READ or O_WRITE is set.
(close_hook):
Also disconnect ACTIVE_FIFO if the laster writer is going away and there
were no readers.
(trivfs_S_file_set_size): Add #!$@&* reply port args.
(trivfs_S_io_select): The pipe is on CRED->po->hook, not CRED->hook.
(trivfs_modify_stat): Zero the returned size if there's no pipe.
|
|
|
|
Request interruption if the reply-port dies.
Don't block if there's an error immediately available.
|
|
|
|
Return EINVAL if the new size isn't 0.
|
|
or until there's a writer.
(open_hook): Use the WAIT macro to block.
(wait_for_writer): New variable.
(main): Set WAIT_FOR_WRITER with WAIT_FOR_READER.
(trivfs_modify_stat): Only return pipe info if there's a pipe.
(close_hook): Don't die if there's no pipe.
|
|
(trivfs_S_io_write): Pass in the NOBLOCK parameter to pipe_write.
|
|
(main): When we time out, don't exit unless there are no opens.
(main): Add timeouts.
(port_bucket): Now a local variable in main.
|
|
|
|
(trivfs_modify_stat): Give the size of the fifo now that we've got a handle
on it.
|
|
active_fifo_changed, as all waiters need be notified of changes.
|
|
|