summaryrefslogtreecommitdiff
path: root/libcli/util/wscript_build
AgeCommit message (Collapse)AuthorFilesLines
2025-01-02libsamba-errors: eliminate dependency on samba-debugMichael Tokarev1-1/+1
libsamba-errors is a collection of error codes/descriptions like strerror(), - it is a set of simple functions converting error code to string or the like. However, in one single place there's a DBG_DEBUG() "call" in errmap_unix.c, in map_errno_from_nt_status(), which is here for a very long time (since before samba3, initially with debug level 10). Drop this debugging info, and eliminate extra dependency. This makes libsamba-errors independent and self-contained, with a well-known and stable ABI. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
2024-10-23Add ntstatus_gen for RustDavid Mulder1-2/+2
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-01-15python: Generate HRESULT definitions automaticallyJoseph Sutton1-2/+8
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Joseph Sutton <jsutton@samba.org> Autobuild-Date(master): Mon Jan 15 01:56:53 UTC 2024 on atb-devel-224
2024-01-15s4:scripting: Generate HRESULT definitions as part of the build processJoseph Sutton1-0/+7
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2023-03-09libcli: Shrink .data segment by 43264 bytesVolker Lendecke1-1/+2
A case statement only references const strings, pointers in an array need to be relocated at exec() time. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2023-03-09build: Fix a long lineVolker Lendecke1-1/+5
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2022-08-17waf: Fix SO version number of libsamba-errorsAndreas Schneider1-1/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15141 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2019-06-27lib/crypto: move gnutls error wrapper to own subsystemAndrew Bartlett1-2/+2
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2019-06-24libcli:util: Add gnutls_errorAndreas Schneider1-2/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-03-21build: Remove bld.gen_python_environments()Andrew Bartlett1-3/+2
This was part of --extra-python support. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-08-22python: Make generated modules samba.ntstatus and samba.werror Python 3 ↵Lumir Balhar1-10/+11
compatible. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Aug 22 17:38:17 CEST 2017 on sn-devel-144
2017-02-14errors: add WERROR generation to build systemBob Campbell1-1/+14
Parts of doserr.c and werror.h are now generated into werror_gen.c and werror_gen.h, respectively. Also, py_werror.c is now generated. Some errors were not included in the list which we now generate WERRORs from. These errors have been manually included. Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-02-14errors: pull out code into common fileBob Campbell1-1/+1
This is a precursor to generating other types of errors. Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-02-14python: Add python module with NTSTATUS constantsBob Campbell1-0/+5
This has been generated by gen_ntstatus.py Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-02-14errors: add gen_ntstatus.py to build systemBob Campbell1-1/+9
nterr_gen.c, ntstatus_gen.h and py_ntstatus.c are now generated files. Errors which are now generated have been removed from nterr.c and ntstatus.h. Errors which existed previously but are not in the table we generated from have been manually added. Some errors are incorrectly named; e.g. STATUS_MORE_ENTRIES should be NT_STATUS_MORE_ENTRIES. These are simply remapped to the correct names. Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-01-13Rename 'errors' to 'samba-errors' and make it public.Jelmer Vernooij1-2/+4
This is necessary because it has public headers. Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Wed Jan 13 07:47:04 CET 2016 on sn-devel-144
2014-09-18lib: Fix samba-util dep in "errors" moduleVolker Lendecke1-1/+1
This piece of code pulls in talloc_stackframe and smb_panic into what should be a very simple mapping library. I'm trying to reduce our dependencies right now a bit, and I think the use cases that this fixes (unknown NTSTATUS together with double nt_errstr() calls in the same DEBUG) are rare enough that this is not justified. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2014-04-02Add autogenerated HRESULT error codes and descriptions from MS_ERREFNoel Power1-2/+2
error codes & string descriptions are generated from http://msdn.microsoft.com/en-us/library/cc704587.aspx, additionally there is a function to return the error description from the error code, this function will also try to determine the error description associated with a W_ERROR code translated as a HRESULT. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2011-06-21lib/util Remove samba-util-common!Andrew Bartlett1-1/+1
All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
2011-06-20libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett1-4/+7
Due to library link orders, this is already the function that is being used. However we still need to sort out the duplicate symbol issues, probably by renaming things. Andrew Bartlett
2011-06-17util: moved nt_errstr() into common codeAndrew Tridgell1-1/+1
this brings nt_errstr() into common code, using the new talloc_stackframe_exists() to ensure that we only allocate an error string using talloc_tos() if a talloc stackframe does currently exists. This makes it safe to use in external libraries Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-06libcli/util Move NTSTATUS table to the top levelAndrew Bartlett1-1/+1
2011-05-06libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett1-1/+1
This takes the Samba4 version, with the NT_STATUS_IS_DOS() check. This will be used in smbd/error.c shortly. Andrew Bartlett
2011-04-29build: put doserr.c into it's own subsystem, so it's no longer a duplicateAndrew Bartlett1-0/+8
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 29 10:00:32 CEST 2011 on sn-devel-104