mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Move unix and linux code to folders.
This commit is contained in:
@@ -31,20 +31,21 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
|
||||
#include "consts.h"
|
||||
#include "../consts.h"
|
||||
#define _GNU_SOURCE
|
||||
#include "linux.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <features.h>
|
||||
#include <linux/fs.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "linux.h"
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3)) || (__GLIBC__ > 2)
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,12 +31,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
#if defined(unix) || defined(UNIX) || defined(__unix) || defined(__unix__) || defined(__UNIX__)
|
||||
|
||||
#include "unix.h"
|
||||
|
||||
#include "consts.h"
|
||||
#include "defs.h"
|
||||
#include "linux.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
@@ -44,12 +38,19 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
|
||||
#include "unix.h"
|
||||
|
||||
#include "../consts.h"
|
||||
#include "../defs.h"
|
||||
#include "../linux/linux.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statfs.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
|
||||
void GetOsInfo()
|
||||
{
|
||||
Reference in New Issue
Block a user