mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
OpenZFS release 2.2.7 Notable upstream pull request merges: #15457022bf8637Increase L2ARC write rate and headroom #155271ba5b2ef8freebsd: remove __FBSDID macro use #157929e7af55e8Add custom debug printing for your asserts #15793a1ea40af8libzfs: use zfs_strerror() in place of strerror() #16181 -multiple zdb/ztest: improve and harmonise crash output #16208e5e4957a5Allow block cloning to be interrupted by a signal #16210ba4e582a6FreeBSD: Add const qualifier to members of struct opensolaris_utsname #16225a6198f34bSimplify issig() #1633525ec9a903zdb: fix BRT dump #16364cf80a803dzvol: ensure device minors are properly cleaned up #16404384b53be8FreeBSD: Add missing memory reclamation accounting #16492 -multiple Split "shared" userspace & kernel code into separate files #16496f1694496azfs_file: rename zfs_file_fallocate to zfs_file_deallocate #16511bc0d89bfcFix an uninitialized data access #165292dc8529d9Fix handling of DNS names with '-' in them for sharenfs #1653930ea44296zfs_log: add flex array fields to log record structs #16546098789216Evicting too many bytes from MFU metadata #1655154278533aReduce and handle EAGAIN errors on AIO label reads #1655484ad1d536FreeBSD: restore zfs_znode_update_vfs() #1656521c40e6d9FreeBSD: Sync taskq_cancel_id() returns with Linux #1656748482bb2fProperly release key in spa_keystore_dsl_key_hold_dd() #16584e8f4592a1Avoid computing strlen() inside loops #16605acc8a3186ARC: Cache arc_c value during arc_evict() #16650fc60e0c6efreebsd: Use compiler.h from FreeBSD's base's linuxkpi #16667b32b35ceazdb: show bp in uberblock dump #166841f5e1b919Pack dmu_buf_impl_t by 16 bytes #1668873b3e8aceFix gcc uninitialized warning in FreeBSD zio_crypt.c #16690727506c94On the first vdev open ignore impossible ashift hints #16692d83cd5307zdb: add extra -T flag to show histograms of BRT refcounts #1669382ab837a0Fix gcc unused value warning in FreeBSD simd.h #167402bba6e3c5BRT: Don't call brt_pending_remove() on holes/embedded #16801299da6aceFix race in libzfs_run_process_impl Obtained from: OpenZFS OpenZFS commit:e269af1b3cOpenZFS tag: zfs-2.2.7
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/*
|
|
** $Id: lstring.h,v 1.49.1.1 2013/04/12 18:48:47 roberto Exp $
|
|
** String table (keep all strings handled by Lua)
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lstring_h
|
|
#define lstring_h
|
|
|
|
#include "lgc.h"
|
|
#include "lobject.h"
|
|
#include "lstate.h"
|
|
|
|
|
|
#define sizestring(s) (sizeof(struct TString)+((s)->len+1)*sizeof(char))
|
|
|
|
#define sizeudata(u) (sizeof(union Udata)+(u)->len)
|
|
|
|
#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
|
|
(sizeof(s)/sizeof(char))-1))
|
|
|
|
#define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT)
|
|
|
|
|
|
/*
|
|
** test whether a string is a reserved word
|
|
*/
|
|
#define isreserved(s) ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0)
|
|
|
|
|
|
/*
|
|
** equality for short strings, which are always internalized
|
|
*/
|
|
#define eqshrstr(a,b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b))
|
|
|
|
|
|
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
|
|
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
|
|
LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
|
|
LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
|
|
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);
|
|
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
|
|
LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
|
|
|
|
|
|
#endif
|