fstyp.h (85b4c344c8c69ff7993bc0ac833aaf9a8108b88d) | fstyp.h (ec80d2eeddab0c40000c969b62d8281dae27e0c1) |
---|---|
1/*- 2 * Copyright (c) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33#define FSTYP_H 34 35#include <stdbool.h> 36 37#define MIN(a,b) (((a)<(b))?(a):(b)) 38 39/* The spec doesn't seem to permit UTF-16 surrogates; definitely LE. */ 40#define EXFAT_ENC "UCS-2LE" | 1/*- 2 * Copyright (c) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33#define FSTYP_H 34 35#include <stdbool.h> 36 37#define MIN(a,b) (((a)<(b))?(a):(b)) 38 39/* The spec doesn't seem to permit UTF-16 surrogates; definitely LE. */ 40#define EXFAT_ENC "UCS-2LE" |
41/* 42 * NTFS itself is agnostic to encoding; it just stores 255 u16 wchars. In 43 * practice, UTF-16 seems expected for NTFS. (Maybe also for exFAT.) 44 */ 45#define NTFS_ENC "UTF-16LE" |
|
41 42extern bool show_label; /* -l flag */ 43 44void *read_buf(FILE *fp, off_t off, size_t len); 45char *checked_strdup(const char *s); 46void rtrim(char *label, size_t size); 47 48int fstyp_cd9660(FILE *fp, char *label, size_t size); 49int fstyp_exfat(FILE *fp, char *label, size_t size); 50int fstyp_ext2fs(FILE *fp, char *label, size_t size); 51int fstyp_geli(FILE *fp, char *label, size_t size); 52int fstyp_msdosfs(FILE *fp, char *label, size_t size); 53int fstyp_ntfs(FILE *fp, char *label, size_t size); 54int fstyp_ufs(FILE *fp, char *label, size_t size); 55#ifdef HAVE_ZFS 56int fstyp_zfs(FILE *fp, char *label, size_t size); 57#endif 58 59#endif /* !FSTYP_H */ | 46 47extern bool show_label; /* -l flag */ 48 49void *read_buf(FILE *fp, off_t off, size_t len); 50char *checked_strdup(const char *s); 51void rtrim(char *label, size_t size); 52 53int fstyp_cd9660(FILE *fp, char *label, size_t size); 54int fstyp_exfat(FILE *fp, char *label, size_t size); 55int fstyp_ext2fs(FILE *fp, char *label, size_t size); 56int fstyp_geli(FILE *fp, char *label, size_t size); 57int fstyp_msdosfs(FILE *fp, char *label, size_t size); 58int fstyp_ntfs(FILE *fp, char *label, size_t size); 59int fstyp_ufs(FILE *fp, char *label, size_t size); 60#ifdef HAVE_ZFS 61int fstyp_zfs(FILE *fp, char *label, size_t size); 62#endif 63 64#endif /* !FSTYP_H */ |