/freebsd/sys/fs/ext2fs/ |
H A D | ext2_extattr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 80 ext2_extattr_name_to_bsd(int attrnamespace, const char *name, int* name_len) in ext2_extattr_name_to_bsd() argument 84 return (name); in ext2_extattr_name_to_bsd() 86 return (name); in ext2_extattr_name_to_bsd() 100 "can not convert ext2fs name to bsd namespace"); in ext2_extattr_name_to_bsd() 106 ext2_extattr_attrnamespace_to_linux(int attrnamespace, const char *name) in ext2_extattr_attrnamespace_to_linux() argument 110 !strcmp(name, POSIX1E_ACL_DEFAULT_EXTATTR_NAME)) in ext2_extattr_attrnamespace_to_linux() 114 !strcmp(name, POSIX1E_ACL_ACCESS_EXTATTR_NAME)) in ext2_extattr_attrnamespace_to_linux() 129 return (-1); in ext2_extattr_attrnamespace_to_linux() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_entry.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 115 if (ns < 0) { --t; ns += 1000000000; } \ 139 return p - s; in wcslen() 154 archive_entry_clear(struct archive_entry *entry) in archive_entry_clear() argument 156 if (entry == NULL) in archive_entry_clear() 158 archive_mstring_clean(&entry->ae_fflags_text); in archive_entry_clear() 159 archive_mstring_clean(&entry->ae_gname); in archive_entry_clear() 160 archive_mstring_clean(&entry->ae_linkname); in archive_entry_clear() 161 archive_mstring_clean(&entry->ae_pathname); in archive_entry_clear() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | event_rpcgen.py | 3 # Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu> 4 # Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 9 # pylint: disable=too-many-lines 10 # pylint: disable=too-many-branches 11 # pylint: disable=too-many-public-methods 12 # pylint: disable=too-many-statements 13 # pylint: disable=global-statement 35 STRUCT_REF_RE = re.compile(r"^struct\[(?P<name>[a-zA-Z_][a-zA-Z0-9_]*)\]$") 36 STRUCT_DEF_RE = re.compile(r"^struct +[a-zA-Z_][a-zA-Z0-9_]* *{$") 57 def __init__(self, why): # pylint: disable=super-init-not-called [all …]
|
/freebsd/contrib/libevent/ |
H A D | event_rpcgen.py | 3 # Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu> 4 # Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 9 # pylint: disable=too-many-lines 10 # pylint: disable=too-many-branches 11 # pylint: disable=too-many-public-methods 12 # pylint: disable=too-many-statements 13 # pylint: disable=global-statement 35 STRUCT_REF_RE = re.compile(r"^struct\[(?P<name>[a-zA-Z_][a-zA-Z0-9_]*)\]$") 36 STRUCT_DEF_RE = re.compile(r"^struct +[a-zA-Z_][a-zA-Z0-9_]* *{$") 57 def __init__(self, why): # pylint: disable=super-init-not-called [all …]
|
/freebsd/usr.sbin/nscd/ |
H A D | hashtable.h | 1 /*- 36 * This file contains queue.h-like macro definitions for hash tables. 39 * entry (user defined structure) stores its elements in the sorted array. 47 * Defines the hash table entry structure, that uses specified type of 50 #define HASHTABLE_ENTRY_HEAD(name, type) struct name { \ argument 61 #define HASHTABLE_HEAD(name, entry) struct name { \ argument 62 struct entry *entries; \ 67 ((table)->entries_size) 71 * statically - so there is no HASHTABLE_HEAD_INITIALIZED macro. 76 (table)->entries = calloc(_entries_size, \ [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_swinstalled_tbl.c | 2 * Copyright (c) 2005-2006 The FreeBSD Project 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 63 * This structure is used to hold a SNMP table entry 64 * for HOST-RESOURCES-MIB's hrSWInstalledTable 68 u_char *name; /* max len for this is SW_NAME_MLEN */ member 87 u_char *name; /* map key,a copy of swins_entry::name*/ member 93 struct swins_entry *entry; member 121 * Create a new entry into the hrSWInstalledTable 124 swins_entry_create(const char *name) in swins_entry_create() argument 126 struct swins_entry *entry; in swins_entry_create() local [all …]
|
H A D | hostres_fs_tbl.c | 1 /*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 65 * This structure is used to hold a SNMP table entry 66 * for HOST-RESOURCES-MIB's hrFSTable 85 * Next structure is used to keep o list of mappings from a specific name 86 * (a_name) to an entry in the hrFSTblEntry. We are trying to keep the same 87 * index for a specific name at least for the duration of one SNMP agent run. 94 struct fs_entry *entry; member 147 * Create an entry into the FS table and an entry in the map (if needed). [all …]
|
H A D | hostres_swrun_tbl.c | 2 * Copyright (c) 2005-2006 The FreeBSD Project 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 74 * This structure is used to hold a SNMP table entry 80 u_char *name; /* it may be NULL */ member 90 uint64_t r_tick; /* tick when entry refreshed */ 104 /* the value of the MIB object with the same name */ 108 * Malloc a new entry and add it to the list 115 struct swrun_entry *entry; in swrun_entry_create() local 117 if ((entry = malloc(sizeof(*entry))) == NULL) { in swrun_entry_create() 121 memset(entry, 0, sizeof(*entry)); in swrun_entry_create() [all …]
|
H A D | hostres_device_tbl.c | 1 /*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 51 free(entry_p->name); \ 52 free(entry_p->location); \ 53 free(entry_p->descr); \ 86 static int devd_sock = -1; 96 * Create a new entry out of thin air. 99 device_entry_create(const char *name, const char *location, const char *descr) in device_entry_create() argument 101 struct device_entry *entry = NULL; in device_entry_create() local [all …]
|
/freebsd/crypto/heimdal/doc/doxyout/krb5/man/man3/ |
H A D | krb5_keytab.3 | 1 …ytab handling functions" 3 "11 Jan 2012" "Version 1.5.2" "HeimdalKerberos5library" \" -*- nroff -*- 4 .SH NAME 5 Heimdal Kerberos 5 keytab handling functions \- 13 …code KRB5_LIB_CALL \fBkrb5_kt_resolve\fP (krb5_context context, const char *name, krb5_keytab *id)" 16 …_code KRB5_LIB_CALL \fBkrb5_kt_default_name\fP (krb5_context context, char *name, size_t namesize)" 19 …RB5_LIB_CALL \fBkrb5_kt_default_modify_name\fP (krb5_context context, char *name, size_t namesize)" 31 …ALL \fBkrb5_kt_get_name\fP (krb5_context context, krb5_keytab keytab, char *name, size_t namesize)" 43 …_LIB_CALL \fBkrb5_kt_compare\fP (krb5_context context, krb5_keytab_entry *entry, krb5_const_princi… 46 …d, krb5_const_principal principal, krb5_kvno kvno, krb5_enctype enctype, krb5_keytab_entry *entry)" 52 …error_code KRB5_LIB_CALL \fBkrb5_kt_free_entry\fP (krb5_context context, krb5_keytab_entry *entry)" [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | keytab.c | 2 * Copyright (c) 1997 - 2005 Kungliga Tekniska Högskolan 17 * 3. Neither the name of the Institute nor the names of its contributors 51 * A keytab name is on the form type:residual. The residual part is 52 * specific to each keytab-type. 54 * When a keytab-name is resolved, the type is matched with an internal 63 * - file 64 * store the keytab in a file, the type's name is FILE . The 72 * - keytab 74 * the type's name is AFSKEYFILE. The residual part is a filename. 76 * - memory [all …]
|
/freebsd/sys/geom/part/ |
H A D | g_part.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2002, 2005-2009 Marcel Moolenaar 67 { "apple-apfs", G_PART_ALIAS_APPLE_APFS }, 68 { "apple-boot", G_PART_ALIAS_APPLE_BOOT }, 69 { "apple-core-storage", G_PART_ALIAS_APPLE_CORE_STORAGE }, 70 { "apple-hfs", G_PART_ALIAS_APPLE_HFS }, 71 { "apple-label", G_PART_ALIAS_APPLE_LABEL }, 72 { "apple-raid", G_PART_ALIAS_APPLE_RAID }, 73 { "apple-raid-offline", G_PART_ALIAS_APPLE_RAID_OFFLINE }, [all …]
|
H A D | g_part.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2006-2008 Marcel Moolenaar 34 #define G_PART_PROBE_PRI_LOW -10 35 #define G_PART_PROBE_PRI_NORM -5 40 G_PART_ALIAS_APPLE_BOOT, /* An Apple boot partition entry. */ 42 G_PART_ALIAS_APPLE_HFS, /* An HFS+ file system entry. */ 43 G_PART_ALIAS_APPLE_LABEL, /* An Apple label partition entry. */ 44 G_PART_ALIAS_APPLE_RAID, /* An Apple RAID partition entry. */ 45 G_PART_ALIAS_APPLE_RAID_OFFLINE,/* An Apple RAID (offline) part entry.*/ [all …]
|
/freebsd/sbin/restore/ |
H A D | symtab.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 15 * 3. Neither the name of the University nor the names of its contributors 35 * name or inode number. They also provide for creation, deletion, 62 * HASHFACTOR. The variable "entry" points to the hash table; 66 static struct entry **entry; variable 69 static void addino(ino_t, struct entry *); 70 static struct entry *lookupparent(char *); 71 static void removeentry(struct entry *); 74 * Look up an entry by inode number [all …]
|
/freebsd/crypto/krb5/src/plugins/kdb/db2/ |
H A D | adb_policy.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 8 #include "k5-int.h" 18 else if (db->magic != OSA_ADB_POLICY_DB_MAGIC) \ 35 * Purpose: create a policy entry in the policy db. 38 * entry (input) pointer to the entry to be added 42 * entry have a valid name. 45 * creates the entry in the db 52 osa_adb_create_policy(osa_adb_policy_t db, osa_policy_ent_t entry) in osa_adb_create_policy() argument 61 if(entry->name == NULL) { in osa_adb_create_policy() 65 dbkey.data = entry->name; in osa_adb_create_policy() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DebugNamesDWARFIndex.cpp | 1 //===-- DebugNamesDWARFIndex.cpp ------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 31 if (llvm::Error E = index_up->extract()) in Create() 64 DebugNamesDWARFIndex::GetForeignTypeUnit(const DebugNames::Entry &entry) const { in GetForeignTypeUnit() 65 std::optional<uint64_t> type_sig = entry.getForeignTUTypeSignature(); in GetForeignTypeUnit() 69 // Ask the entry for the skeleton compile unit offset and fetch the .dwo in GetForeignTypeUnit() 73 std::optional<uint64_t> cu_offset = entry.getRelatedCUOffset(); in GetForeignTypeUnit() 85 DWARFUnit &dwo_cu = cu->GetNonSkeletonUnit(); in GetForeignTypeUnit() 101 // then we need to ignore this accelerator table entry as the type unit that in GetForeignTypeUnit() [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_plist.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 50 bhnd_nvram_plist *plist, const char *name); 58 * @retval non-NULL success 70 /* Implicit caller-owned reference */ in bhnd_nvram_plist_new() 71 plist->refs = 1; in bhnd_nvram_plist_new() 73 /* Initialize entry list */ in bhnd_nvram_plist_new() 74 plist->num_entries = 0; in bhnd_nvram_plist_new() 75 TAILQ_INIT(&plist->entries); in bhnd_nvram_plist_new() 77 /* Initialize entry hash table */ in bhnd_nvram_plist_new() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | qemu_loader.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 29 uint8_t name[QEMU_FWCFG_MAX_NAME]; member 40 uint8_t name[QEMU_FWCFG_MAX_NAME]; member 67 struct qemu_loader_entry entry; member 76 qemu_loader_alloc(struct qemu_loader *const loader, const uint8_t *name, in qemu_loader_alloc() argument 81 if (strlen(name) >= QEMU_FWCFG_MAX_NAME) in qemu_loader_alloc() 90 element->entry.cmd_le = htole32(QEMU_LOADER_CMD_ALLOC); in qemu_loader_alloc() 91 strncpy(element->entry.alloc.name, name, QEMU_FWCFG_MAX_NAME); in qemu_loader_alloc() 92 element->entry.alloc.alignment_le = htole32(alignment); in qemu_loader_alloc() [all …]
|
/freebsd/crypto/krb5/src/lib/kadm5/srv/ |
H A D | svr_policy.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 44 * entry (input) The policy entry to be written out to the DB. 45 * mask (input) Specifies which fields in entry are to ge written out 50 * Entry must be a valid principal entry, and mask have a valid value. 59 kadm5_create_policy(void *server_handle, kadm5_policy_ent_t entry, long mask) in kadm5_create_policy() argument 68 krb5_clear_error_message(handle->context); in kadm5_create_policy() 70 if ((entry == (kadm5_policy_ent_t) NULL) || (entry->policy == NULL)) in kadm5_create_policy() 72 if(strlen(entry->policy) == 0) in kadm5_create_policy() 77 entry->allowed_keysalts != NULL) { in kadm5_create_policy() 78 ret = validate_allowed_keysalts(entry->allowed_keysalts); in kadm5_create_policy() [all …]
|
/freebsd/crypto/krb5/src/lib/krb5/keytab/ |
H A D | kt_memory.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 27 #include "k5-int.h" 28 #include "kt-int.h" 36 * Information needed by internal routines of the file-based ticket 52 * krb5_timestamp timestamp; time entry written to keytable 61 krb5_keytab_entry *entry; member 64 /* Per-keytab data header */ 66 char *name; /* Name of the keytab */ member 67 k5_mutex_t lock; /* Thread-safety - all but link */ 92 #define KTLOCK(id) k5_mutex_lock(&(((krb5_mkt_data *)(id)->data)->lock)) [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_iov_schema.c | 1 /*- 2 * Copyright (c) 2014-2015 Sandvine Inc. 48 const nvlist_t *, const char *name); 107 .type_name = "unicast-mac", 126 if (strcmp(type, validator->type_name) == 0) in pci_iov_schema_find_validator() 134 pci_iov_schema_add_type(nvlist_t *entry, const char *type) in pci_iov_schema_add_type() argument 138 nvlist_set_error(entry, EINVAL); in pci_iov_schema_add_type() 141 nvlist_add_string(entry, "type", type); in pci_iov_schema_add_type() 145 pci_iov_schema_add_required(nvlist_t *entry, uint32_t flags) in pci_iov_schema_add_required() argument 150 nvlist_set_error(entry, EINVAL); in pci_iov_schema_add_required() [all …]
|
/freebsd/contrib/unbound/validator/ |
H A D | val_kentry.h | 2 * validator/val_kentry.h - validator key entry definition. 19 * Neither the name of the NLNET LABS nor the names of its contributors may 51 * A key entry for the validator. 54 * This is the key part for the cache; the key entry key. 57 /** lru hash entry */ 58 struct lruhash_entry entry; member 59 /** name of the key */ 60 uint8_t* name; member 61 /** length of name */ 68 * Key entry for the validator. [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
H A D | DWARFAcceleratorTable.h | 1 //===- DWARFAcceleratorTable.h ----------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 /// (using a symbol name as a key) into debug info by providing an index of the 38 /// An abstract class representing a single entry in the accelerator tables. 39 class Entry { 43 Entry() = default; 46 Entry(const Entry &) = default; 47 Entry(Entry &&) = default; 48 Entry &operator=(const Entry &) = default; [all …]
|
/freebsd/lib/libmt/ |
H A D | mt.3 | 35 .Sh NAME 63 .Fa "const char *name" 69 .Fa "const char *name" 80 .Fa "struct mt_status_entry *entry" 82 .Fa "void (*sbuf_func)(struct sbuf *sb, struct mt_status_entry *entry, void *arg)" 87 .Fa "struct mt_status_entry *entry" 89 .Fa "void (*print_func)(struct mt_status_entry *entry, void *arg)" 94 .Fa "struct mt_status_entry *entry" 95 .Fa "char *name" 100 .Fa "char *name" [all …]
|
H A D | mtlib.c | 1 /*- 56 mt_start_element(void *user_data, const char *name, const char **attr) in mt_start_element() argument 60 struct mt_status_entry *entry; in mt_start_element() local 64 if (mtinfo->error != 0) in mt_start_element() 67 mtinfo->level++; in mt_start_element() 68 if ((u_int)mtinfo->level >= (sizeof(mtinfo->cur_sb) / in mt_start_element() 69 sizeof(mtinfo->cur_sb[0]))) { in mt_start_element() 70 mtinfo->error = 1; in mt_start_element() 71 snprintf(mtinfo->error_str, sizeof(mtinfo->error_str), in mt_start_element() 73 sizeof(mtinfo->cur_sb) / sizeof(mtinfo->cur_sb[0])); in mt_start_element() [all …]
|