<commit_before>/* KallistiOS ##version##

   kos/exports.h
   Copyright (C)2003 <NAME>

   $Id: exports.h,v 1.1 2003/06/19 04:30:23 bardtx Exp $

*/

#ifndef __KOS_EXPORTS_H
#define __KOS_EXPORTS_H

#include <sys/cdefs.h>
__BEGIN_DECLS

#include <arch/types.h>

/* This struct holds one export symbol that will be patched into
   loaded ELF files. */
typedef struct export_sym {
	const char 	* name;
	unsigned long	ptr;
} export_sym_t;

/* These are the platform-independent exports */
extern export_sym_t kernel_symtab[];

/* And these are the arch-specific exports */
extern export_sym_t arch_symtab[];

#ifndef __EXPORTS_FILE
#include <kos/nmmgr.h>
/* This struct defines a symbol table "handler" for nmmgr. */
typedef struct symtab_handler {
	/* Name manager handler header */
	struct nmmgr_handler	nmmgr;

	/* Location of the first entry */
	export_sym_t		* table;
} symtab_handler_t;
#endif<commit_msg>Change kos/exports.h to use ptr_t instead of unsigned long<commit_after>/* KallistiOS ##version##

   kos/exports.h
   Copyright (C)2003 <NAME>

   $Id: exports.h,v 1.1 2003/06/19 04:30:23 bardtx Exp $

*/

#ifndef __KOS_EXPORTS_H
#define __KOS_EXPORTS_H

#include <sys/cdefs.h>
__BEGIN_DECLS

#include <arch/types.h>

/* This struct holds one export symbol that will be patched into
   loaded ELF files. */
typedef struct export_sym {
	const char	* name;
	ptr_t		ptr;
} export_sym_t;

/* These are the platform-independent exports */
extern export_sym_t kernel_symtab[];

/* And these are the arch-specific exports */
extern export_sym_t arch_symtab[];

#ifndef __EXPORTS_FILE
#include <kos/nmmgr.h>
/* This struct defines a symbol table "handler" for nmmgr. */
typedef struct symtab_handler {
	/* Name manager handler header */
	struct nmmgr_handler	nmmgr;

	/* Location of the first entry */
	export_sym_t		* table;
} symtab_handler_t;
#endif
{'fraction_non_alphanumeric': 0.1025364274150027, 'fraction_numerical': 0.021586616297895305, 'mean_word_length': 4.121546961325967, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5134362', 'n_tokens_mistral': 713, 'n_tokens_neox': 669, 'n_words': 198}