/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | DevicePathLib.h | 7 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> 8 SPDX-License-Identifier: BSD-2-Clause-Patent 18 Determine whether a given device path is valid. 20 @param DevicePath A pointer to a device path data structure. 21 @param MaxSize The maximum size of the device path data structure. 41 Returns the Type field of a device path node. 43 Returns the Type field of the device path node specified by Node. 47 @param Node A pointer to a device path node data structure. 49 @return The Type field of the device path node specified by Node. 59 Returns the SubType field of a device path node. [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_store.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 63 * Manages in-memory and persistent representations of NVRAM data. 81 bhnd_nvstore_path *path, 87 bhnd_nvstore_path *path, 93 * Allocate and initialize a new NVRAM data store instance. 98 * @param[out] store On success, a pointer to the newly allocated NVRAM data 100 * @param data The NVRAM data to be managed by the returned NVRAM data store 104 * @retval non-zero if an error occurs during allocation or initialization, a [all …]
|
H A D | bhnd_nvram_store_subr.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 62 * Allocate and initialize a new path instance. 67 * @param path_str The path's canonical string representation. 70 * @retval non-NULL success 76 bhnd_nvstore_path *path; in bhnd_nvstore_path_new() local 79 path = bhnd_nv_malloc(sizeof(*path)); in bhnd_nvstore_path_new() 80 if (path == NULL) in bhnd_nvstore_path_new() 83 path->index = NULL; in bhnd_nvstore_path_new() [all …]
|
H A D | bhnd_nvram_storevar.h | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 79 * NVRAM path descriptor types. 82 BHND_NVSTORE_PATH_STRING = 0, /**< path is a string value */ 83 BHND_NVSTORE_PATH_ALIAS = 1 /**< path is an alias reference */ 95 for device path handling */ 100 void bhnd_nvstore_path_free(struct bhnd_nvstore_path *path); 116 bhnd_nvstore_path *path); 120 bhnd_nvstore_path *path, void **indexp); [all …]
|
/freebsd/lib/libefivar/ |
H A D | uefi-dputil.c | 1 /*- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 #include "efi-osdep.h" 40 #include "uefi-dplib.h" 46 * hash a11928f3310518ab1c6fd34e8d0fdbb72de9602c 2017-Mar-01 50 Device Path services. The thing to remember is device paths are built out of 51 nodes. The device path is terminated by an end node that is length 55 The only place where multi-instance device paths are supported is in 56 environment varibles. Multi-instance device paths should never be placed 59 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> [all …]
|
H A D | uefi-dplib.h | 1 /*- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 Definition for Device Path library. 33 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> 34 SPDX-License-Identifier: BSD-2-Clause-Patent 57 #define IS_HYPHEN(a) ((a) == '-') 65 // Private Data structure 180 Returns the size of a device path in bytes. 182 This function returns the size, in bytes, of the device path data structure 183 specified by DevicePath including the end of device path node. [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_helpers.c | 2 * WPA Supplicant / dbus-based control interface 31 for (dsc = props; dsc && dsc->dbus_property; dsc++) { in fill_dict_with_properties() 32 /* Only return properties for the requested D-Bus interface */ in fill_dict_with_properties() 33 if (os_strncmp(dsc->dbus_interface, interface, in fill_dict_with_properties() 37 /* Skip write-only properties */ in fill_dict_with_properties() 38 if (dsc->getter == NULL) in fill_dict_with_properties() 46 &dsc->dbus_property)) in fill_dict_with_properties() 50 if (!dsc->getter(dsc, &entry_iter, error, user_data)) { in fill_dict_with_properties() 53 __func__, dsc->dbus_interface, in fill_dict_with_properties() 54 dsc->dbus_property); in fill_dict_with_properties() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerIO.cpp | 1 //===- FuzzerIO.cpp - IO utils. -------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===// 34 long GetEpoch(const std::string &Path) { in GetEpoch() argument 36 if (stat(Path.c_str(), &St)) in GetEpoch() 41 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument 42 std::ifstream T(Path, std::ios::binary); in FileToVector() 44 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector() 57 T.read(reinterpret_cast<char *>(Res.data()), FileLen); in FileToVector() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__filesystem/ |
H A D | path.h | 1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 //===----------------------------------------------------------------------===// 109 _LIBCPP_HIDE_FROM_ABI static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); } 111 …_LIBCPP_HIDE_FROM_ABI static _ECharT const* __range_end(_Str const& __s) { return __s.data() + __s… 122 _LIBCPP_HIDE_FROM_ABI static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); } 124 …_LIBCPP_HIDE_FROM_ABI static _ECharT const* __range_end(_Str const& __s) { return __s.data() + __s… 216 _Widener()(back_inserter(__dest), __utf8.data(), __utf8.data() + __utf8.size()); 230 _Narrower()(back_inserter(__utf8), __tmp.data(), __tmp.data() + __tmp.length()); [all …]
|
/freebsd/contrib/libxo/doc/ |
H A D | formatting.rst | 8 programmers need to extract information from this human-oriented 15 which allow trivial parsing and extraction of data. Such formats are 19 data, which can reduce maintenance costs and increase feature velocity. 25 traditional text output, as well as XML and JSON formatted data. HTML 27 output, with attributes that detail how to render the data. 34 Connecting to my-box.example.com... 36 <host>my-box</host> 39 "host": "my-box", 44 <div class="data" data-tag="host" 45 data-xpath="/top/host">my-box</div> [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_extattr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1999-2001 Robert N. M. Watson 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 50 static int user_extattr_set_path(struct thread *td, const char *path, 51 int attrnamespace, const char *attrname, void *data, 53 static int user_extattr_get_path(struct thread *td, const char *path, 54 int attrnamespace, const char *attrname, void *data, 56 static int user_extattr_delete_path(struct thread *td, const char *path, 58 static int user_extattr_list_path(struct thread *td, const char *path, [all …]
|
/freebsd/lib/libsys/ |
H A D | extattr_get_file.2 | 21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 52 .Fn extattr_delete_file "const char *path" "int attrnamespace" "const char *attrname" 54 .Fn extattr_delete_link "const char *path" "int attrnamespace" "const char *attrname" 56 .Fn extattr_get_fd "int fd" "int attrnamespace" "const char *attrname" "void *data" "size_t nbytes" 58 .Fn extattr_get_file "const char *path" "int attrnamespace" "const char *attrname" "void *data" "si… 60 .Fn extattr_get_link "const char *path" "int attrnamespace" "const char *attrname" "void *data" "si… 62 .Fn extattr_list_fd "int fd" "int attrnamespace" "void *data" "size_t nbytes" 64 .Fn extattr_list_file "const char *path" "int attrnamespace" "void *data" "size_t nbytes" 66 .Fn extattr_list_link "const char *path" "int attrnamespace" "void *data" "size_t nbytes" 68 .Fn extattr_set_fd "int fd" "int attrnamespace" "const char *attrname" "const void *data" "size_t n… [all …]
|
H A D | open.2 | 22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 .Fn open "const char *path" "int flags" "..." 41 .Fn openat "int fd" "const char *path" "int flags" "..." 44 .Fa path 74 .Fa path 75 specifies a relative path. 79 .Fa path , 102 .Fa path , 113 .Fa path 119 .Fa path [all …]
|
/freebsd/sys/sys/ |
H A D | kernel.h | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 70 * The ticks and ticksl symbols overlap, giving a 64-bit tick counter on 64-bit 71 * platforms while still maintaining compatibility with the legacy 32-bit 73 * ticks (and ticksl on 32-bit platforms) roll over roughly every 25 days. On 74 * 64-bit platforms, ticksl will not roll over in the foreseeable future. 162 SI_SUB_PROTO_IFATTACHDOMAIN = 0x8808000,/* domain dependent data init */ 205 * to discern SYSINIT's which take non-constant data pointers and 206 * SYSINIT's which take constant data pointers, [all …]
|
/freebsd/contrib/kyua/utils/process/ |
H A D | executor.cpp | 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 #include "utils/fs/path.hpp" 88 /// Mapping of active subprocess PIDs to their execution data. 111 /// Prepares a subprocess to run a user-provided hook in a controlled manner. 114 /// \param control_directory Path to the subprocess-specific control directory. 115 /// \param work_directory Path to the subprocess-specific work directory. 119 const fs::path& control_directory, in setup_child() 120 const fs::path& work_directory) in setup_child() 133 /// Path to the subprocess-specific work directory. 134 fs::path control_directory; [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | hashed_db.c | 3 * Copyright 2006-2011,2013 Free Software Foundation, Inc. * 31 * Author: Thomas E. Dickey 2006-on * 49 char *path; member 59 _nc_db_close(connections->db); in cleanup() 64 find_connection(const char *path, bool modify) in find_connection() argument 69 for (p = connections; p != 0; p = p->next) { in find_connection() 70 if (!strcmp(p->path, path) && p->modify == modify) { in find_connection() 71 result = p->db; in find_connection() 84 for (p = connections, q = 0; p != 0; q = p, p = p->next) { in drop_connection() 85 if (p->db == db) { in drop_connection() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_mod.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 26 * Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 43 * 2. If no vdevs are found, then search for any vdevs whose udev path 91 #define DEV_BYID_PATH "/dev/disk/by-id/" 92 #define DEV_BYPATH_PATH "/dev/disk/by-path/" 93 #define DEV_BYVDEV_PATH "/dev/disk/by-vdev/" 125 return (vs->vs_state); in zfs_toplevel_state() 129 zfs_unavail_pool(zpool_handle_t *zhp, void *data) in zfs_unavail_pool() argument 142 uap->uap_zhp = zhp; in zfs_unavail_pool() 143 list_insert_tail((list_t *)data, uap); in zfs_unavail_pool() [all …]
|
/freebsd/sbin/hastd/ |
H A D | hast.conf.5 | 2 .\" Copyright (c) 2010-2012 Pawel Jakub Dawidek <pawel@dawidek.net> 23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 55 .Bd -literal -offset indent 63 exec <path> 65 pidfile <path> 71 pidfile <path> 78 pidfile <path> 87 local <path> 89 exec <path> 93 # Resource-node section [all …]
|
/freebsd/contrib/libxo/xo/ |
H A D | xo.1 | 36 .Bl -tag -width indent 37 .It Ic --close Ar path 38 Close tags for the given path 39 .It Ic -C | Ic --continuation 40 Indicates this output is a continuation of the previous output data 43 .It Ic --depth Ar num 45 .It Ic --help 47 .It Ic -H | Ic --html 49 .It Ic -J | Ic --json 51 .It Ic --leading-xpath Ar path [all …]
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | acm.c | 2 * Copyright (c) 2010-2012 Intel Corporation. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 74 uint8_t data[3]; member 87 struct ibv_path_record path; member 102 struct acm_ep_addr_data data[0]; member 108 uint8_t data[ACM_MSG_DATA_LENGTH]; member 114 static int sock = -1; 156 sock = -1; in ucma_ib_init() 176 struct ibv_path_record *path; in ucma_ib_set_addr() local [all …]
|
/freebsd/contrib/ntp/sntp/tests/ |
H A D | keyFile.c | 73 const char * path = CreatePath("key-test-empty", INPUT_DIR); in test_ReadEmptyKeyFile() local 75 TEST_ASSERT_NOT_NULL(path); in test_ReadEmptyKeyFile() 76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys)); in test_ReadEmptyKeyFile() 79 DestroyPath(path); in test_ReadEmptyKeyFile() 88 const char * path = CreatePath("key-test-ascii", INPUT_DIR); in test_ReadASCIIKeys() local 90 TEST_ASSERT_NOT_NULL(path); in test_ReadASCIIKeys() 91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadASCIIKeys() 94 DestroyPath(path); in test_ReadASCIIKeys() 112 const char * path = CreatePath("key-test-hex", INPUT_DIR); in test_ReadHexKeys() local 116 TEST_ASSERT_NOT_NULL(path); in test_ReadHexKeys() [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A D | ext_password_file.c | 2 * External backend for file-backed passwords 17 * Data structure for the file-backed password backend. 20 char *path; /* path of the password file */ member 25 * ext_password_file_init - Initialize file-backed password backend 29 * This function initializes a new file-backed password backend. The user is 30 * expected to initialize this backend with the parameters being the path of 35 struct ext_password_file_data *data; in ext_password_file_init() local 38 wpa_printf(MSG_ERROR, "EXT PW FILE: no path given"); in ext_password_file_init() 42 data = os_zalloc(sizeof(*data)); in ext_password_file_init() 43 if (!data) in ext_password_file_init() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_cmdline.c | 1 /*- 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 63 return ((ssize_t)(s + 1 - p)); in extract_quotation() 76 /* Copy non-space characters. */ in get_argument() 96 return ((ssize_t)(s - p)); in get_argument() 107 __archive_cmdline_parse(struct archive_cmdline *data, const char *cmd) 116 /* Get first argument as a command path. */ in __archive_cmdline_parse() 123 r = ARCHIVE_FAILED;/* An empty command path. */ in __archive_cmdline_parse() 126 r = cmdline_set_path(data, as.s); in __archive_cmdline_parse() 134 r = cmdline_add_arg(data, in __archive_cmdline_parse() 109 __archive_cmdline_parse(struct archive_cmdline * data,const char * cmd) __archive_cmdline_parse() argument 166 cmdline_set_path(struct archive_cmdline * data,const char * path) cmdline_set_path() argument 182 cmdline_add_arg(struct archive_cmdline * data,const char * arg) cmdline_add_arg() argument 212 __archive_cmdline_free(struct archive_cmdline * data) __archive_cmdline_free() argument [all...] |
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | smpdump.c | 2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 57 char path[64]; member 77 uint8_t data[64]; member 82 void drsmp_get_init(void *umad, DRPath * path, int attr, int mod) in drsmp_get_init() argument 88 smp->base_version = 1; in drsmp_get_init() 89 smp->mgmt_class = IB_SMI_DIRECT_CLASS; in drsmp_get_init() 90 smp->class_version = 1; in drsmp_get_init() 92 smp->method = 1; in drsmp_get_init() [all …]
|
/freebsd/lib/libproc/ |
H A D | proc_sym.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2016-2017 Mark Johnston <markj@FreeBSD.org> 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 117 (void)gelf_getsym(thunk->symtab->data, i1, &sym1); in symvalcmp() 118 (void)gelf_getsym(thunk->symtab->data, i2, &sym2); in symvalcmp() 121 return (sym1.st_value < sym2.st_value ? -1 : 1); in symvalcmp() 123 /* Prefer non-local symbols. */ in symvalcmp() 128 return (-1); in symvalcmp() 133 s1 = elf_strptr(thunk->e, thunk->symtab->stridx, sym1.st_name); in symvalcmp() [all …]
|