This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <errno.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/statvfs.h> | |
| static int print_bytes_free_32( const char* directory ) | |
| { | |
| struct statvfs buf32; | |
| if ( statvfs( directory, &buf32 ) == -1 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <inttypes.h> | |
| #include <sys/statvfs.h> | |
| typedef unsigned long long uint64; | |
| uint64 get_free_size( const char* path ) | |
| { | |
| struct statvfs buffer; | |
| if ( statvfs( path, &buffer ) != -1 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <utmp.h> | |
| int main() | |
| { | |
| setutent(); | |
| struct utmp* entry; | |
| for ( entry = getutent(); entry; entry = getutent() ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # The location of the iem tool | |
| IEM=/opt/BESServer/bin/iem | |
| # The password regex | |
| REGEX="A+B+" | |
| # The password description | |
| DESCRIPTION="Your password needs some As then some Bs" |
NewerOlder