|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 01/15] mini-os: split struct file definition from its usage
Juergen Gross, le jeu. 06 janv. 2022 12:57:27 +0100, a ecrit:
> Make the struct file definition standalone and use it for the
> declaration of the files array.
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
> ---
> include/lib.h | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/include/lib.h b/include/lib.h
> index 39d6a18..a638bc9 100644
> --- a/include/lib.h
> +++ b/include/lib.h
> @@ -181,7 +181,7 @@ struct evtchn_port_info {
> int bound;
> };
>
> -extern struct file {
> +struct file {
> enum fd_type type;
> union {
> struct {
> @@ -236,7 +236,9 @@ extern struct file {
> #endif
> };
> int read; /* maybe available for read */
> -} files[];
> +};
> +
> +extern struct file files[];
>
> int alloc_fd(enum fd_type type);
> void close_all_files(void);
> --
> 2.26.2
>
--
Samuel
> C'est vrai. FreeBSD pourrait être bien s'il avait une licence
> correcte.
Oh, mon troll-ô-meter vient d'exploser...
-+- OR in Guide du linuxien pervers - "Bien regler son troll-ô-meter"
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |