/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SORT_TYPES_H
#define _SORT_TYPES_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/resource.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
typedef int flag_t;
typedef union vchar {
char sc;
} vchar_t;
typedef union vcharptr {
char *sp;
} vcharptr_t;
typedef struct line_rec {
} line_rec_t;
enum field_species {
};
typedef struct field {
/*
* field ops vector
*/
/*
* starting and ending fields, and offsets
*/
int f_start_field;
int f_end_field;
} field_t;
typedef struct stream_array {
typedef struct stream_simple_file {
/*
* stream_simple_file_t is used for STREAM_MMAP and for STREAM_OUTPUT
* for either single- (STREAM_SINGLE | STREAM_OUTPUT) or multi-byte
* (STREAM_WIDE | STREAM_OUTPUT) locales.
*/
typedef struct stream_buffered_file {
/*
* stream_buffered_file_t is used for both STREAM_STDIO and
* STREAM_WIDE.
*/
typedef union stream_type {
struct stream;
typedef struct stream_ops {
} stream_ops_t;
/*
* The stream_t type is provided to simplify access to files, particularly for
* external merges.
*/
typedef struct stream {
char *s_filename;
void *s_buffer;
} stream_t;
/*
* sort(1) has, for debugging purposes, a primitive compile-time option to
* generate statistics of various operations executed during an invocation.
* These statistics are recorded in the following sort_statistics_t structure.
*/
typedef struct sort_statistics {
typedef struct sort {
char *m_output_filename;
char *m_tmpdir_template;
vchar_t);
} sort_t;
#ifdef __cplusplus
}
#endif
#endif /* _SORT_TYPES_H */