L4Re/OLD/libfsclient

Changeset

60:0d899a240da1
2019-07-15 Paul Boddie raw files shortlog changelog graph Moved directory listing flags into a separate header file.
include/fsclient/client_fcntl.h (file) include/fsclient/ops.h (file)
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/fsclient/client_fcntl.h	Mon Jul 15 21:02:48 2019 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +/*
     1.5 + * Filesystem operation flags.
     1.6 + *
     1.7 + * Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk>
     1.8 + *
     1.9 + * This program is free software; you can redistribute it and/or
    1.10 + * modify it under the terms of the GNU General Public License as
    1.11 + * published by the Free Software Foundation; either version 2 of
    1.12 + * the License, or (at your option) any later version.
    1.13 + *
    1.14 + * This program is distributed in the hope that it will be useful,
    1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 + * GNU General Public License for more details.
    1.18 + *
    1.19 + * You should have received a copy of the GNU General Public License
    1.20 + * along with this program; if not, write to the Free Software
    1.21 + * Foundation, Inc., 51 Franklin Street, Fifth Floor,
    1.22 + * Boston, MA  02110-1301, USA
    1.23 + */
    1.24 +
    1.25 +#pragma once
    1.26 +
    1.27 +/* Operation flags. */
    1.28 +
    1.29 +enum
    1.30 +{
    1.31 +  OPENDIR_DIRENT  = 0,
    1.32 +  OPENDIR_STAT    = 1
    1.33 +};
     2.1 --- a/include/fsclient/ops.h	Mon Jul 15 16:31:10 2019 +0200
     2.2 +++ b/include/fsclient/ops.h	Mon Jul 15 21:02:48 2019 +0200
     2.3 @@ -21,20 +21,8 @@
     2.4  
     2.5  #pragma once
     2.6  
     2.7 -EXTERN_C_BEGIN
     2.8 -
     2.9  /* IPC operation values. */
    2.10  
    2.11  enum { Fs_op_mount, Fs_op_getfs, Fs_op_open, Fs_op_read, Fs_op_write,
    2.12         Fs_op_flush, Fs_op_getuserfs, Fs_op_mmap, Fs_op_wait, Fs_op_yield,
    2.13         Fs_op_begin, Fs_op_fstat };
    2.14 -
    2.15 -/* Operation flags. */
    2.16 -
    2.17 -enum
    2.18 -{
    2.19 -  OPENDIR_DIRENT  = 0,
    2.20 -  OPENDIR_STAT    = 1
    2.21 -};
    2.22 -
    2.23 -EXTERN_C_END