<commit_before>/*
 * PSPLINK
 * -----------------------------------------------------------------------
 * Licensed under the BSD license, see LICENSE in PSPLINK root for details.
 *
 * main.c - Main code for PC side of USB HostFS
 *
 * Copyright (c) 2006 <NAME> <<EMAIL>>
 *
 * $HeadURL: svn://svn.pspdev.org/psp/branches/psplinkusb/usbhostfs_pc/main.c $
 * $Id: main.c 2177 2007-02-15 17:28:02Z tyranid $
 */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <usb.h>
#include <limits.h>
#include <fcntl.h>
#include <usbhostfs.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <utime.h>
#include <signal.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>

#ifdef __CYGWIN__
#include <sys/vfs.h>
#define NO_UID_CHECK
#else
#include <sys/statvfs.h>
#endif

#ifdef READLINE_SHELL
#include <readline/readline.h>
#include <readline/history.h>
#endif

#include "psp_fileio.h"

#define MAX_FILES 256
#define MAX_DIRS  256
#define MAX_TOKENS 256

#define BASE_PORT 10000

#ifdef __CYGWIN__
#define USB_TIMEOUT 1000
#else
#define USB_TIMEOUT 0
#endif

#define MAX_HOSTDRIVES 8
<commit_msg>Added defines to remove set and get uid stuff from cygwin builds<commit_after>/*
 * PSPLINK
 * -----------------------------------------------------------------------
 * Licensed under the BSD license, see LICENSE in PSPLINK root for details.
 *
 * main.c - Main code for PC side of USB HostFS
 *
 * Copyright (c) 2006 <NAME> <<EMAIL>>
 *
 * $HeadURL: svn://svn.pspdev.org/psp/branches/psplinkusb/usbhostfs_pc/main.c $
 * $Id: main.c 2177 2007-02-15 17:28:02Z tyranid $
 */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <usb.h>
#include <limits.h>
#include <fcntl.h>
#include <usbhostfs.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <utime.h>
#include <signal.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>

#ifdef __CYGWIN__
#include <sys/vfs.h>
#define NO_UID_CHECK
/* Define out set* and get* calls for cygwin as they are unnecessary and can cause issues */
#define seteuid(x)
#define setegid(x)
#define getuid()
#define getgid()
#else
#include <sys/statvfs.h>
#endif

#ifdef READLINE_SHELL
#include <readline/readline.h>
#include <readline/history.h>
#endif

#include "psp_fileio.h"

#define MAX_FILES 256
#define MAX_DIRS  256
#define MAX_TOKENS 256

#define BASE_PORT 10000

#ifdef __CYGWIN__
#define USB_TIMEOUT 1000
#else
#define USB_TIMEOUT 0
#endif

#define MAX_HOSTDRIVES 8

{'fraction_non_alphanumeric': 0.18973998594518623, 'fraction_numerical': 0.029515108924806747, 'mean_word_length': 3.6067961165048543, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4969322', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1106, 'n_words': 287}