diff --git a/src/OSspecific/POSIX/Make/files b/src/OSspecific/POSIX/Make/files index 26e735cb8831b43f81edb98d9a082b05acd8c326..06df47630ffa8349ce2acf3718d025b4e4147d17 100644 --- a/src/OSspecific/POSIX/Make/files +++ b/src/OSspecific/POSIX/Make/files @@ -1,3 +1,8 @@ +clockTime/clockTime.C +clockValue/clockValue.C +cpuInfo/cpuInfo.C +cpuTime/cpuTime.C +memInfo/memInfo.C signals/sigFpe.C signals/sigSegv.C signals/sigInt.C @@ -8,11 +13,6 @@ regExpPosix.C timer.C fileStat.C POSIX.C -cpuTime/cpuTime.C -clockTime/clockTime.C -clockValue/clockValue.C -cpuInfo/cpuInfo.C -memInfo/memInfo.C /* * Note: fileMonitor assumes inotify by default. Compile with -DFOAM_USE_STAT diff --git a/src/OSspecific/POSIX/POSIX.H b/src/OSspecific/POSIX/POSIX.H index 7eedfb5e5cb800d06fd3ac361b0bdb8e6cbf4a78..c5a8818baa7f3e1c94f2a730e4a66b4714414cad 100644 --- a/src/OSspecific/POSIX/POSIX.H +++ b/src/OSspecific/POSIX/POSIX.H @@ -51,8 +51,8 @@ namespace POSIX //- Declare namespace and its debug switch NamespaceName("POSIX"); - const label pathLengthChunk = 256; - const label pathLengthMax = 4096; + constexpr label pathLengthChunk = 256; + constexpr label pathLengthMax = 4096; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OSspecific/POSIX/fileMonitor.H b/src/OSspecific/POSIX/fileMonitor.H index 181587a302824a6ec224dd95d6924d54a7012b7d..302930f86e16f84d04c489060126d22677756fea 100644 --- a/src/OSspecific/POSIX/fileMonitor.H +++ b/src/OSspecific/POSIX/fileMonitor.H @@ -120,7 +120,7 @@ public: // Constructors //- Construct null - fileMonitor(const bool useInotify); + explicit fileMonitor(const bool useInotify); //- Destructor diff --git a/src/OSspecific/POSIX/fileStat.H b/src/OSspecific/POSIX/fileStat.H index 2c2d02f3682689dc8f132b054ade26454af62622..13b17f3d0f5ea7457156454eae0e83fb7c2edb8a 100644 --- a/src/OSspecific/POSIX/fileStat.H +++ b/src/OSspecific/POSIX/fileStat.H @@ -111,7 +111,7 @@ public: ); //- Construct from Istream - fileStat(Istream& is); + explicit fileStat(Istream& is); // Member Functions diff --git a/src/OSspecific/POSIX/timer.H b/src/OSspecific/POSIX/timer.H index 2f9df530b5cf4f77ec7cfb385d4343d7e1e011b5..c4ddc7accaec1d86cd17a6a8ffed0018d6fe8224 100644 --- a/src/OSspecific/POSIX/timer.H +++ b/src/OSspecific/POSIX/timer.H @@ -114,9 +114,8 @@ public: // Constructors - //- Construct from components. - // newTimeOut=0 makes it do nothing. - timer(const unsigned int newTimeOut); + //- Construct with specified time-out, a value of 0 makes it a no-op. + explicit timer(unsigned int seconds); //- Destructor