xref: /titanic_44/usr/src/cmd/mdb/common/libstand/sys/salib.h (revision db8b037b5616a366b7dfdc01ef9552f02f9adfdd)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate  * with the License.
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate  * and limitations under the License.
137c478bd9Sstevel@tonic-gate  *
147c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate  *
207c478bd9Sstevel@tonic-gate  * CDDL HEADER END
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate /*
237c478bd9Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate #ifndef	_SYS_SALIB_H
287c478bd9Sstevel@tonic-gate #define	_SYS_SALIB_H
297c478bd9Sstevel@tonic-gate 
307c478bd9Sstevel@tonic-gate #include <sys/types.h>
31*db8b037bSRichard PALO #include <sys/null.h>
327c478bd9Sstevel@tonic-gate #include <time.h>
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
357c478bd9Sstevel@tonic-gate extern "C" {
367c478bd9Sstevel@tonic-gate #endif
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate extern char *asctime(const struct tm *);
397c478bd9Sstevel@tonic-gate extern char *ctime(const time_t *);
407c478bd9Sstevel@tonic-gate 
417c478bd9Sstevel@tonic-gate extern int bcmp(const void *, const void *, size_t);
427c478bd9Sstevel@tonic-gate extern void bcopy(const void *, void *, size_t);
437c478bd9Sstevel@tonic-gate extern void *bsearch(const void *, const void *, size_t, size_t,
447c478bd9Sstevel@tonic-gate     int (*)(const void *, const void *));
457c478bd9Sstevel@tonic-gate extern void bzero(void *, size_t);
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate extern int getopt(int, char *const [], const char *);
487c478bd9Sstevel@tonic-gate extern void getopt_reset(void);
497c478bd9Sstevel@tonic-gate 
507c478bd9Sstevel@tonic-gate extern void *memchr(const void *, int, size_t);
517c478bd9Sstevel@tonic-gate extern int memcmp(const void *, const void *, size_t);
527c478bd9Sstevel@tonic-gate extern void *memcpy(void *, const void *, size_t);
537c478bd9Sstevel@tonic-gate extern void *memccpy(void *, const void *, int, size_t);
547c478bd9Sstevel@tonic-gate extern void *memmove(void *, const void *, size_t);
557c478bd9Sstevel@tonic-gate extern void *memset(void *, int, size_t);
567c478bd9Sstevel@tonic-gate 
577c478bd9Sstevel@tonic-gate extern void qsort(void *, size_t, size_t, int (*)(const void *,
587c478bd9Sstevel@tonic-gate     const void *));
597c478bd9Sstevel@tonic-gate 
607c478bd9Sstevel@tonic-gate extern long strtol(const char *, char **, int);
617c478bd9Sstevel@tonic-gate extern unsigned long strtoul(const char *, char **, int);
627c478bd9Sstevel@tonic-gate extern char *strcat(char *, const char *);
637c478bd9Sstevel@tonic-gate extern char *strchr(const char *, int);
647c478bd9Sstevel@tonic-gate extern int strcmp(const char *, const char *);
657c478bd9Sstevel@tonic-gate extern char *strcpy(char *, const char *);
667c478bd9Sstevel@tonic-gate extern int strcasecmp(const char *, const char *);
677c478bd9Sstevel@tonic-gate extern int strncasecmp(const char *, const char *, size_t);
687c478bd9Sstevel@tonic-gate extern size_t strlcpy(char *, const char *, size_t);
697c478bd9Sstevel@tonic-gate extern size_t strlen(const char *);
707c478bd9Sstevel@tonic-gate extern char *strncat(char *, const char *, size_t);
717c478bd9Sstevel@tonic-gate extern size_t strlcat(char *, const char *, size_t);
727c478bd9Sstevel@tonic-gate extern int strncmp(const char *, const char *, size_t);
737c478bd9Sstevel@tonic-gate extern char *strncpy(char *, const char *, size_t);
747c478bd9Sstevel@tonic-gate extern char *strrchr(const char *, int);
757c478bd9Sstevel@tonic-gate extern char *strstr(const char *, const char *);
767c478bd9Sstevel@tonic-gate extern size_t strspn(const char *, const char *);
777c478bd9Sstevel@tonic-gate extern char *strpbrk(const char *, const char *);
787c478bd9Sstevel@tonic-gate extern char *strtok(char *, const char *);
797c478bd9Sstevel@tonic-gate 
807c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
817c478bd9Sstevel@tonic-gate }
827c478bd9Sstevel@tonic-gate #endif
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate #endif	/* _SYS_SALIB_H */
85