summaryrefslogtreecommitdiffstats
path: root/source3/lib/util.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Add processes_existVolker Lendecke2011-10-271-0/+66
|
* s3:include: implement trans_oob() as wrapper to smb_buffer_oob()Stefan Metzmacher2011-10-261-19/+0
| | | | metze
* s3:include: make smb_setlen() a macroStefan Metzmacher2011-10-211-14/+0
| | | | metze
* s3:libsmb/smb_seal: move smb_set_enclen() to smb_seal.c and make it static thereStefan Metzmacher2011-10-191-13/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 19 19:06:35 CEST 2011 on sn-devel-104
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-061-0/+9
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* s3:lib/util: make sure panic action can attach a debugger on ubuntu (>=10.10)Stefan Metzmacher2011-10-041-0/+11
| | | | | | | | | | | By default user processes can't attach a debugger to a process. So explicitly allow that for all child processes, before calling the panic action script. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 4 12:51:35 CEST 2011 on sn-devel-104
* s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke2011-07-291-0/+148
|
* s3: Make is_executable() available in lib/Volker Lendecke2011-07-291-0/+17
|
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/lib/util.c: str_checksum to use Jenkins hash from CCAN.Rusty Russell2011-06-201-2/+4
| | | | | Rather than tdb's internal one.
* s3:lib/util: use %llu consitently (instead of %d) in interpret_pid() to ↵Stefan Metzmacher2011-06-091-1/+1
| | | | | | parse the pid metze
* s3-lib Add myhostname_upper()Andrew Bartlett2011-06-091-0/+16
| | | | | | | This varient always upper cases the hostname, which is needed for the netbios name. Andrew Bartlett
* server_id: Change format to vnn:pid.task_id, pid.task_id or pidAndrew Bartlett2011-06-091-4/+14
| | | | | | | | | | | This helps ensure the string cannot be ambiguous, while also ensuring that it remains simple in the non-cluster case. The asymmetry of reading get_my_vnn() but writing based on NONCLUSTER_VNN is acceptable because in the non-clustered case, they are equal, and in the clustered case we will print the full string. Andrew Bartlett
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-091-17/+1
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* s3-lib Read and write the full struct server_id (except the unique_id)Andrew Bartlett2011-06-091-19/+18
| | | | | | | This is in preperation for making this code the common, only reader and writer of this structure. Andrew Bartlett
* s3-server_id Add task_id to server_id to match Samba4Andrew Bartlett2011-06-091-0/+5
| | | | | | | | | | This will allow this structure to be shared, and allow us to create a common messaging system between all Samba processes. Samba4 uses the task_id to indicate the different tasks within a single unix process. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-talloc Remove unused TALLOC zeronull functions and macro definitionsAndrew Bartlett2011-06-091-105/+0
| | | | | | These have been under #if 0 for a long time now. Andrew Bartlett
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-061-37/+0
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s3-lib Remove unused lib_path()Andrew Bartlett2011-06-061-13/+0
|
* s3-lib Move source3-specific malloc replacements into a seperate fileAndrew Bartlett2011-05-311-143/+0
| | | | | | | This will make it easier to create a dep tree for otherwise simple libraries. Andrew Bartlett
* s3-build Specify more of the smbconf dependenciesAndrew Bartlett2011-05-311-162/+0
| | | | | | | | | | | | | This brings more functions into util_names.c, and util_names.c into PARAM_WITHOUT_REG_SRC. This is not yet a full list, that would formalise the implicit dependency loop. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue May 31 01:43:37 CEST 2011 on sn-devel-104
* s3-lib Move free_namearray() into it's own fileAndrew Bartlett2011-05-311-16/+0
| | | | | | | This makes it easier to have conn_smbd strictly depend on all it's dependencies. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-2/+2
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* Fix broken interface to set_namearray() - don't modify incoming string.Jeremy Allison2011-05-061-6/+17
|
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-051-4/+4
|
* Fix many const compiler warnings.Jeremy Allison2011-05-051-2/+2
|
* s3-util: move valid_share_pathname() to lib/util.cGünther Deschner2011-05-021-0/+34
| | | | Guenther
* libcli/smb Move attrib_string in commonAndrew Bartlett2011-04-291-20/+0
|
* s3-client Add TALLOC_CTX argument to attrib_string().Andrew Bartlett2011-04-291-2/+2
| | | | | | This ensures the caller knows where the memory was allocated. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_VOLUME intead of aVOLIDAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett2011-04-131-1/+0
| | | | | | | | | | | | This means that there is no need for the 'valid.dat' table to be loaded by anything other than smbd, so the unloader is also removed. The concept of a 'valid dos character' has been replaced by the hash2 mangle method. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-util: separate out cmdline helpers.Günther Deschner2011-04-121-253/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 12 13:06:27 CEST 2011 on sn-devel-104
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-lib Remove the clobber_region() code.Andrew Bartlett2011-03-231-14/+0
| | | | | | | | | | | | | | | | | | This code wrote to the full buffer in fstrcpy(), pstrcpy() and other fixed-length string manipulation functions. The hope of this code was to find out at run time if we were mixing up pstring and fstring etc, and to record where this came from. It has a runtime performance impact (particularly if compiled with --enable-developer). It is being removed because of the complexity it adds, and the distinct lack of bugs that this complexity has been credited in finding. The macro-based compile-time checking of string sizes remains. Andrew Bartlett
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-1/+1
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* s3: Use jenkins hash for str_checksum, fix bug 8010Volker Lendecke2011-03-161-11/+2
| | | | | | | | | | | | From the bugreport: I have a folder with ~90 photos: IMG_XXXX.JPG where XXXX is a four digit number, almost consecutive (photos from camera for one day). Current implementation gives about 30 different checksums for this set of files. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 16 01:15:41 CET 2011 on sn-devel-104
* s3: Add timeval_to_msecVolker Lendecke2011-02-281-0/+5
|
* Detect Mac OS X as a separate client type.Justin Maggard2011-02-251-0/+3
|
* s3-cluster Always fill in the clustering vnn elementAndrew Bartlett2011-02-171-24/+0
| | | | | | This avoids this structure being partially uninitialised. Adnrew Bartlett