<commit_before>/**
 * @file
 *
 * @brief
 * @date 23.11.2012
 * @author <NAME>
 */
/* <sys/wait.h> */
/* use in waitpid()  */

#ifndef EMBOX_DROPBEAR_EMBOX_H_
#define EMBOX_DROPBEAR_EMBOX_H_

#define WNOHANG 0 /*third-party/dropbear-2012.55/svr-chansession.c:91:*/


#define TCP_NODELAY 0
#define WIFEXITED(s) 0
#define WEXITSTATUS(s) 0
#define WIFSIGNALED(s) 0
#define WTERMSIG(s) 0

/* end <sys/wait.h> */

#include <signal.h>


/* <unistd.h */
static inline pid_t setsid(void) {
	return -1;
}

static inline int chown(const char *path, uid_t owner, gid_t group) {
	return -1;
}

extern char *crypt(char *key, const char *salt);
/* end <unistd.h> */

/* <grp.h> */
/* initgroups NOT POSIX */
static inline int initgroups(const char *user, gid_t group) {
	return 0;
}

#include <shadow.h>
static inline struct spwd *getspnam(const char *name) {
	return getspnam_f(name);
}

#include <asm/termbits.h>
#include <sys/select.h>
#include <linux/types.h>

static inline int fork(void) {
	return -1;
}

#endif /* EMBOX_DROPBEAR_EMBOX_H_ */
<commit_msg>dropbear 2012 waitpit stubs removed<commit_after>/**
 * @file
 *
 * @brief
 * @date 23.11.2012
 * @author <NAME>
 */

#ifndef EMBOX_DROPBEAR_EMBOX_H_
#define EMBOX_DROPBEAR_EMBOX_H_

#define TCP_NODELAY 0

#include <signal.h>


/* <unistd.h */
static inline pid_t setsid(void) {
	return -1;
}

static inline int chown(const char *path, uid_t owner, gid_t group) {
	return -1;
}

extern char *crypt(char *key, const char *salt);
/* end <unistd.h> */

/* <grp.h> */
/* initgroups NOT POSIX */
static inline int initgroups(const char *user, gid_t group) {
	return 0;
}

#include <shadow.h>
static inline struct spwd *getspnam(const char *name) {
	return getspnam_f(name);
}

#include <asm/termbits.h>
#include <sys/select.h>
#include <linux/types.h>

static inline int fork(void) {
	return -1;
}

#endif /* EMBOX_DROPBEAR_EMBOX_H_ */

{'fraction_non_alphanumeric': 0.15343633457645178, 'fraction_numerical': 0.02290889717634523, 'mean_word_length': 3.99468085106383, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '2121431', 'n_tokens_mistral': 819, 'n_tokens_neox': 786, 'n_words': 192}