diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-08 01:25:50 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-08 02:28:06 +0200 |
commit | 3bc9a699ca7106204ffa97272374313bf04f6cc0 (patch) | |
tree | d4b83df84a6bb65a343f746b1f542df3ac64ae4b /doc/hurd.texi | |
parent | e22f3a3170e5c3028dc83fbdfb0d8705fd00df75 (diff) | |
download | hurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.tar.gz hurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.tar.bz2 hurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.zip |
Homogeneize [gs]et_translator and get_dire[nc]ts into mach_msg_type_number_t
This makes netfs_[gs]et_translator use mach_msg_type_number_t like
the RPC and diskfs. This also makes the fshelp_fetch_root_callback1_t
for fshelp_fetch_root use mach_msg_type_number_t.
This also makes procfs_get_translator and the get_translator proc method
use mach_msg_type_number_t.
This makes diskfs_get_directs use mach_msg_type_number_t like the
dir_readdir RPC
Also get rid of u_int.
This notably fixes _diskfs_translator_callback1_fn's bogus cast of
size_t *argz_len into (u_int *).
Diffstat (limited to 'doc/hurd.texi')
-rw-r--r-- | doc/hurd.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/hurd.texi b/doc/hurd.texi index b713850c..d11b92cd 100644 --- a/doc/hurd.texi +++ b/doc/hurd.texi @@ -2356,7 +2356,7 @@ If these variables is non-zero, they will be called every time a protid or peropen structure is about to be destroyed. @end deftypefn -@deftypefn {Variable} error_t (*trivfs_getroot_hook) (@w{struct trivfs_control *@var{cntl}}, @w{mach_port_t @var{reply_port}}, @w{mach_msg_type_name_t @var{reply_port_type}}, @w{mach_port_t @var{dotdot}}, @w{const uid_t *@var{uids}}, @w{u_int @var{nuids}}, @w{const uid_t *@var{gids}}, @w{u_int @var{ngids}}, @w{int @var{flags}}, @w{retry_type *@var{do_retry}}, @w{char *@var{retry_name}}, @w{mach_port_t *@var{node}}, @w{mach_msg_type_name_t *@var{node_type}}) +@deftypefn {Variable} error_t (*trivfs_getroot_hook) (@w{struct trivfs_control *@var{cntl}}, @w{mach_port_t @var{reply_port}}, @w{mach_msg_type_name_t @var{reply_port_type}}, @w{mach_port_t @var{dotdot}}, @w{const uid_t *@var{uids}}, @w{unsigned @var{nuids}}, @w{const uid_t *@var{gids}}, @w{unsigned @var{ngids}}, @w{int @var{flags}}, @w{retry_type *@var{do_retry}}, @w{char *@var{retry_name}}, @w{mach_port_t *@var{node}}, @w{mach_msg_type_name_t *@var{node_type}}) If this variable is set, it will be called by @code{trivfs_S_fsys_getroot} before any other processing takes place. If the return value is @code{EAGAIN}, normal trivfs getroot processing continues, otherwise the @@ -2486,7 +2486,7 @@ Initialize a transbox, which contains state information for active translators. @end deftypefun -@deftypefn {Typedef} typedef error_t (*fshelp_fetch_root_callback1_t) (@w{void *@var{cookie1}}, @w{void *@var{cookie2}}, @w{uid_t *@var{uid}}, @w{gid_t *@var{gid}}, @w{char **@var{argz}}, @w{size_t *@var{argz_len}}) +@deftypefn {Typedef} typedef error_t (*fshelp_fetch_root_callback1_t) (@w{void *@var{cookie1}}, @w{void *@var{cookie2}}, @w{uid_t *@var{uid}}, @w{gid_t *@var{gid}}, @w{char **@var{argz}}, @w{mach_msg_type_number_t *@var{argz_len}}) This routine is called by @code{fshelp_fetch_root} to fetch more information. Return the owner and group of the underlying translated file in @code{*@var{uid}} and @code{*@var{gid}}; point @@ -4201,7 +4201,7 @@ continuously since the call to @code{diskfs_lookup}. Initialize @var{ds} such that @code{diskfs_drop_dirstat} will ignore it. @end deftypefun -@deftypefun error_t diskfs_get_directs (@w{struct node *@var{dp}}, @w{int @var{entry}}, @w{int @var{n}}, @w{char **@var{data}}, @w{u_int *@var{datacnt}}, @w{vm_size_t @var{bufsiz}}, @w{int *@var{amt}}) +@deftypefun error_t diskfs_get_directs (@w{struct node *@var{dp}}, @w{int @var{entry}}, @w{int @var{n}}, @w{char **@var{data}}, @w{mach_msg_type_number_t *@var{datacnt}}, @w{vm_size_t @var{bufsiz}}, @w{int *@var{amt}}) Return @var{n} directory entries starting at @var{entry} from locked directory node @var{dp}. Fill @code{*@var{data}} with the entries; which currently points to @code{*@var{datacnt}} bytes. If it isn't big @@ -4222,13 +4222,13 @@ the call@dots{} if this user cannot search the directory, then this routine should fail. @end deftypefun -@deftypefun error_t diskfs_get_translator (@w{struct node *@var{np}}, @w{char **@var{namep}}, @w{u_int *@var{namelen}}) +@deftypefun error_t diskfs_get_translator (@w{struct node *@var{np}}, @w{char **@var{namep}}, @w{mach_msg_type_number_t *@var{namelen}}) For locked node @var{np} (for which @code{diskfs_node_translated} is true) look up the name of its translator. Store the name into newly malloced storage and set @code{*@var{namelen}} to the total length. @end deftypefun -@deftypefun error_t diskfs_set_translator (@w{struct node *@var{np}}, @w{char *@var{name}}, @w{u_int @var{namelen}}, @w{struct protid *@var{cred}}) +@deftypefun error_t diskfs_set_translator (@w{struct node *@var{np}}, @w{char *@var{name}}, @w{mach_msg_type_number_t @var{namelen}}, @w{struct protid *@var{cred}}) For locked node @var{np}, set the name of the translating program to be @var{name}, which is @var{namelen} bytes long. @var{cred} identifies the user responsible for the call. |