Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
0622ba44
Commit
0622ba44
authored
Nov 14, 2000
by
Niels Möller
Browse files
* src/io.h (local_info): New class.
Rev: src/io.h:1.66
parent
ebc56683
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/io.h
View file @
0622ba44
...
...
@@ -185,7 +185,23 @@ void init_consuming_read(struct io_consuming_read *self,
; The port number here is always in host byte order
(port . UINT32))) */
/* Returned by listen. And also by connect, so this is an improper name. */
/* Used for listening and connecting to local sockets.
* Both strings have to be NUL-terminated. */
/* GABA:
(class
(name local_info)
(vars
(directory string)
(name string)))
*/
struct
local_info
*
make_local_info
(
struct
lsh_string
*
directory
,
struct
lsh_string
*
name
);
/* Returned by listen. And also by connect, so this is an improper name.
* Functions related to AF_UNIX sockets leave the peer field as NULL. */
/* GABA:
(class
(name listen_value)
...
...
@@ -311,15 +327,13 @@ io_listen(struct io_backend *b,
struct
lsh_fd
*
io_listen_local
(
struct
io_backend
*
b
,
struct
lsh_string
*
directory
,
struct
lsh_string
*
name
,
struct
local_info
*
info
,
struct
io_callback
*
callback
,
struct
exception_handler
*
e
);
struct
lsh_fd
*
io_connect_local
(
struct
io_backend
*
b
,
struct
lsh_string
*
directory
,
struct
lsh_string
*
name
,
struct
local_info
*
info
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
);
...
...
@@ -328,6 +342,12 @@ make_listen_callback(struct io_backend *backend,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
);
#if 0
struct io_callback *
make_listen_callback_no_peer(struct io_backend *backend,
struct command_continuation *c);
#endif
struct
lsh_fd
*
io_read_write
(
struct
lsh_fd
*
fd
,
struct
io_callback
*
read
,
UINT32
block_size
,
...
...
@@ -362,12 +382,14 @@ io_read_file(struct io_backend *backend,
const
char
*
fname
,
struct
exception_handler
*
e
);
#if 0
struct lsh_fd *
io_read_user_file(struct io_backend *backend,
const char *fname,
uid_t uid, int secret,
const struct exception **x,
struct exception_handler *e);
#endif
int
lsh_make_pipe
(
int
*
fds
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment