Skip to content

Commit

Permalink
Merge pull request #151 from ecmwf/feature/c_header
Browse files Browse the repository at this point in the history
replaced c headers
  • Loading branch information
simondsmart authored Nov 19, 2024
2 parents cbee1c8 + 5da2f6e commit 9d2807d
Show file tree
Hide file tree
Showing 60 changed files with 78 additions and 78 deletions.
2 changes: 1 addition & 1 deletion src/eckit/cmd/DirCmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* nor does it submit to any jurisdiction.
*/

#include <limits.h>
#include <climits>
#include <unistd.h>

#include "eckit/cmd/DirCmd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/cmd/KillCmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* nor does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <unistd.h>

#include "eckit/cmd/KillCmd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/cmd/StopCmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* nor does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <unistd.h>

#include "eckit/cmd/StopCmd.h"
Expand Down
10 changes: 5 additions & 5 deletions src/eckit/cmd/UserInput.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <climits>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <termios.h>
#include <unistd.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/config/LibEcKit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// @author Tiago Quintino
/// @date August 2016

#include <stdlib.h>
#include <cstdlib>

#include <algorithm>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/container/Cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef eckit_container_Cache_h
#define eckit_container_Cache_h

#include <stdint.h>
#include <cstdint>
#include <sys/time.h>

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/container/MappedArray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "eckit/eckit.h"

#include <fcntl.h>
#include <stdint.h>
#include <cstdint>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/container/MappedArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef eckit_MappedArray_h
#define eckit_MappedArray_h

#include <stdint.h>
#include <cstdint>

#include "eckit/exception/Exceptions.h"
#include "eckit/filesystem/PathName.h"
Expand Down
4 changes: 2 additions & 2 deletions src/eckit/container/SharedMemArray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

#include <fcntl.h>
#include <stdint.h>
#include <string.h>
#include <cstdint>
#include <cstring>
#include <unistd.h>

#include <sys/mman.h>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/container/SharedMemArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef eckit_SharedMemArray_h
#define eckit_SharedMemArray_h

#include <stdint.h>
#include <cstdint>

#include "eckit/memory/NonCopyable.h"
#include "eckit/os/Semaphore.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/container/bsptree/BSPNode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <random>
#include "eckit/eckit.h"

#include <stdio.h>
#include <cstdio>
#include <limits>
#include <random>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/exception/Exceptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <unistd.h>

#include "eckit/config/LibEcKit.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/exception/Exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef eckit_Exceptions_h
#define eckit_Exceptions_h

#include <errno.h>
#include <cerrno>
#include <iostream>
#include <sstream>

Expand Down
4 changes: 2 additions & 2 deletions src/eckit/filesystem/LocalPathName.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include "LocalPathName.h"

#include <dirent.h>
#include <limits.h>
#include <climits>
#include <pwd.h>
#include <stdlib.h>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/filesystem/PathName.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <string.h>
#include <cstring>

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/io/AIOHandle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "eckit/eckit.h"

#include <fcntl.h>
#include <limits.h>
#include <climits>
#include <unistd.h>

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/io/StdFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <stdio.h>
#include <cstdio>

#include "eckit/exception/Exceptions.h"
#include "eckit/filesystem/PathName.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/io/StdFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef eckit_io_StdFile_h
#define eckit_io_StdFile_h

#include <stdio.h>
#include <cstdio>

#include "eckit/filesystem/PathName.h"
#include "eckit/memory/NonCopyable.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/io/StdPipe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <stdio.h>
#include <cstdio>
#include <string>

#include "eckit/exception/Exceptions.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/io/StdPipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef eckit_io_StdPipe_h
#define eckit_io_StdPipe_h

#include <stdio.h>
#include <cstdio>
#include <string>

#include "eckit/io/AutoCloser.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/log/Colour.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <errno.h>
#include <cerrno>
#include <unistd.h>

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/log/Seconds.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define eckit_Seconds_h

#include <sys/time.h>
#include <time.h>
#include <ctime>
#include <iosfwd>

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/log/TimeStamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef eckit_log_TimeStamp_h
#define eckit_log_TimeStamp_h

#include <time.h>
#include <ctime>

#include <iosfwd>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/log/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define eckit_Timer_h

#include <sys/time.h>
#include <time.h>
#include <ctime>

#include "eckit/log/Log.h"
#include "eckit/memory/NonCopyable.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/mpi/Parallel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "eckit/mpi/Parallel.h"

#include <errno.h>
#include <cerrno>
#include <unistd.h>
#include <limits>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/mpi/Serial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "eckit/mpi/Serial.h"

#include <errno.h>
#include <cerrno>
#include <unistd.h>

#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/net/IPAddress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <ostream>
#include <string.h>
#include <cstring>

namespace eckit::net {

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/net/ProxiedTCPServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <fcntl.h>
#include <signal.h>
#include <csignal>
#include <sys/socket.h>
#include <unistd.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/net/TCPServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <fcntl.h>
#include <signal.h>
#include <csignal>
#include <sys/socket.h>
#include <unistd.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/net/TCPSocket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <setjmp.h>
#include <signal.h>
#include <csignal>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/eckit/net/UDPClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/

#include <arpa/inet.h>
#include <errno.h>
#include <cerrno>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <cstdlib>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/eckit/net/UDPServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/

#include <arpa/inet.h>
#include <errno.h>
#include <cerrno>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <cstdlib>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/os/AutoAlarm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <unistd.h>

#include "eckit/exception/Exceptions.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/os/SemLocker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <errno.h>
#include <cerrno>
#include <sys/sem.h>
#include <unistd.h>
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/os/Semaphore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <errno.h>
#include <cerrno>
#include <sys/sem.h>
#include <cstdio>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/os/SignalHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define eckit_SignalHandler_h

#include <setjmp.h>
#include <signal.h>
#include <csignal>

#include "eckit/eckit.h"

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/runtime/Library.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

// #include <stdlib.h>
// #include <cstdlib>

#include "eckit/runtime/Library.h"
#include "eckit/exception/Exceptions.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/runtime/Monitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <pthread.h>
#include <signal.h>
#include <csignal>

#include "eckit/config/Resource.h"
#include "eckit/container/MappedArray.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/runtime/PipeHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>

#include "eckit/config/LibEcKit.h"
#include "eckit/log/Log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/runtime/ProcessControler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <sys/wait.h>
#include <unistd.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/runtime/TaskInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <signal.h>
#include <csignal>
#include <sys/time.h>
#include <unistd.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eckit/serialisation/PipeStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <fcntl.h>
#include <signal.h>
#include <csignal>
#include <unistd.h>

#include "eckit/exception/Exceptions.h"
Expand Down
Loading

0 comments on commit 9d2807d

Please sign in to comment.