420 DER_LOG,
421 DER_VERB,
422 DER_NOTE,
423 DER_WARN,
424 DER_PANIC,
425 DER_MODE,
426 DER_DEBUG
427 } ddi_err_t;
428
429 extern void ddi_err(ddi_err_t de, dev_info_t *rdip, const char *fmt, ...);
430
431
432 extern char *ddi_strdup(const char *str, int flag);
433 extern char *strdup(const char *str);
434 extern void strfree(char *str);
435
436 /*
437 * Functions and data references which really should be in <sys/ddi.h>
438 */
439
440 extern int maxphys;
441 extern void minphys(struct buf *);
442 extern int physio(int (*)(struct buf *), struct buf *, dev_t,
443 int, void (*)(struct buf *), struct uio *);
444 extern void disksort(struct diskhd *, struct buf *);
445
446 extern size_t strlen(const char *) __PURE;
447 extern size_t strnlen(const char *, size_t) __PURE;
448 extern char *strcpy(char *, const char *);
449 extern char *strncpy(char *, const char *, size_t);
450 /* Need to be consistent with <string.h> C++ definition for strchr() */
451 #if __cplusplus >= 199711L
452 extern const char *strchr(const char *, int);
453 #ifndef _STRCHR_INLINE
454 #define _STRCHR_INLINE
455 extern "C++" {
456 inline char *strchr(char *__s, int __c) {
457 return (char *)strchr((const char *)__s, __c);
458 }
459 }
460 #endif /* _STRCHR_INLINE */
|
420 DER_LOG,
421 DER_VERB,
422 DER_NOTE,
423 DER_WARN,
424 DER_PANIC,
425 DER_MODE,
426 DER_DEBUG
427 } ddi_err_t;
428
429 extern void ddi_err(ddi_err_t de, dev_info_t *rdip, const char *fmt, ...);
430
431
432 extern char *ddi_strdup(const char *str, int flag);
433 extern char *strdup(const char *str);
434 extern void strfree(char *str);
435
436 /*
437 * Functions and data references which really should be in <sys/ddi.h>
438 */
439
440 extern volatile int maxphys;
441 extern void minphys(struct buf *);
442 extern int physio(int (*)(struct buf *), struct buf *, dev_t,
443 int, void (*)(struct buf *), struct uio *);
444 extern void disksort(struct diskhd *, struct buf *);
445
446 extern size_t strlen(const char *) __PURE;
447 extern size_t strnlen(const char *, size_t) __PURE;
448 extern char *strcpy(char *, const char *);
449 extern char *strncpy(char *, const char *, size_t);
450 /* Need to be consistent with <string.h> C++ definition for strchr() */
451 #if __cplusplus >= 199711L
452 extern const char *strchr(const char *, int);
453 #ifndef _STRCHR_INLINE
454 #define _STRCHR_INLINE
455 extern "C++" {
456 inline char *strchr(char *__s, int __c) {
457 return (char *)strchr((const char *)__s, __c);
458 }
459 }
460 #endif /* _STRCHR_INLINE */
|