mem2swap.c
changeset 169 df7c720bcaa6
parent 167 7c6b221900bf
equal deleted inserted replaced
168:dfb60716880c 169:df7c720bcaa6
    19 
    19 
    20 #ifdef __linux__
    20 #ifdef __linux__
    21 #define CMD_FREE "/usr/bin/free"
    21 #define CMD_FREE "/usr/bin/free"
    22 #define CMD_ARGS "-m"
    22 #define CMD_ARGS "-m"
    23 #elif __unix__
    23 #elif __unix__
       
    24 #define CMD_FREE "/sbin/sysctl"
       
    25 #define CMD_ARGS "hw.usermem"
       
    26 #else
    24 #define CMD_FREE "/sbin/sysctl"
    27 #define CMD_FREE "/sbin/sysctl"
    25 #define CMD_ARGS "hw.usermem"
    28 #define CMD_ARGS "hw.usermem"
    26 #endif
    29 #endif
    27 
    30 
    28 int set_limit (int);
    31 int set_limit (int);