summaryrefslogtreecommitdiffstats
path: root/source/utils/status.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-4/+2
|
* Add -V option (to print out version) to utilities where possibleJelmer Vernooij2003-02-181-0/+1
| | | | (pdbedit already has a -V option..)
* WITH_SENDFILE #ifdef merged from SAMBA_2_2Gerald Carter2003-01-021-1/+1
|
* merge from APP_HEADGerald Carter2002-10-081-0/+5
| | | | | | | | | * s/driverlocation/comment * detect native mode domain and enumerate local groups Also * Added sendfile stats from SAMBA_2_2
* Use popt_common and use popt for showing help infoJelmer Vernooij2002-10-051-30/+15
|
* Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij2002-08-211-0/+6
|
* Use common popt definition for -d option.Tim Potter2002-07-291-1/+1
|
* More cleanups, and add a comment/hint not to clean somthing up in future :-)Andrew Bartlett2002-07-211-8/+0
| | | | Andrew Bartlett
* Some of the updates from ctrlsoft's 'Various' patch:Andrew Bartlett2002-05-241-4/+4
| | | | | | | | | | | - convert net to popt - convert status to popt - adapt examples/pdb/ to multiple passdb system - add dynamic debug class example to examples/pdb/ and some reformatting to better match the samba coding style. Andrew Bartlett
* Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid.Andrew Bartlett2002-05-221-2/+2
| | | | | | | | | | | | | | These might be reimplmented as simple pass-through functions, but all users really should be doing 'getpwnam_alloc' or 'getpwuid_alloc' to ensure that there are not shared static buffers. I don't beleive we actually need a getpw*() cache inside samba - if we do then I think we should look at our code design first. (some of these changes are for platforms I don't have access to, but they look sane) Andrew Bartlett
* merges from SAMBA_2_2Gerald Carter2002-05-151-3/+3
|
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-2/+3
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* Yet another build fix for popt. I gotta get me one of these picky systems...Jim McDonough2002-03-121-1/+1
|
* Another program converted to popt...smbstatus this time.Jim McDonough2002-03-111-30/+23
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* merge changes from 2.2 branch to prevent smb.conf from changing debug levelHerb Lewis2002-01-071-0/+3
| | | | of commands when specified on command line.
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-1/+0
| | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean.
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-5/+4
| | | | default, rather than in preprocessor macros.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
|
* left out {Herb Lewis2001-09-101-1/+1
|
* prevent segv by not calling tdb_traverse and tdb_close if tdb_open_logHerb Lewis2001-09-101-18/+20
| | | | returns NULL.
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* convert more code to using d_printfAndrew Tridgell2001-09-081-369/+369
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-2/+2
|
* always include profile support so you do not need a different binary ofHerb Lewis2001-09-051-5/+0
| | | | smbstatus to dump profile stats.
* add profiling stats from 2.2Herb Lewis2001-09-051-2/+332
|
* Fix up some unused variables and functions, fix up formattingAndrew Bartlett2001-08-231-14/+0
|
* A few changes:Andrew Bartlett2001-08-221-60/+44
| | | | | | | | | | | | drop paramaters: status utmp hostname change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-) change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate). I'll get swat doing some of this shortly.
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* The big character set handling changeover!Andrew Tridgell2001-07-041-3/+1
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Renamed -d option (make verbose) on smbstatus to -v.Tim Potter2001-06-131-3/+11
| | | | Added -d <debuglevel> option.
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
|
* Check sizes of data entries in connections.tdb before deciding they're crecs...Jeremy Allison2001-05-151-1/+5
| | | | | We will need this when we use finer grained locking for max connections. Jeremy.
* remember to close tdb after useAndrew Tridgell2001-05-151-0/+1
|
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-2/+2
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* fixed message textAndrew Tridgell2000-05-041-1/+1
|
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-2/+2
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* use GET_DENY_MODE() macroAndrew Tridgell2000-01-161-2/+1
|
* added code to allow traversal of the byte range lock databaseAndrew Tridgell2000-01-161-1/+29
| | | | this is used with "smbstatus -B" to dump the lock list
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-4/+4
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* improved error message in case the lock list is truncatedAndrew Tridgell1999-12-221-1/+8
|
* changed message is connections.tdb doesn't existAndrew Tridgell1999-12-211-1/+1
|
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-24/+9
| | | | | | | | | | | | | instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-192/+192
| | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-66/+66
|
* patch from Michael Glauche to call get_status_connections() instead ofLuke Leighton1999-08-181-52/+52
| | | | reading STATUS..LCK direct.
* Ken McDonell from SGI was interested in adding some profilingAndrew Tridgell1999-04-011-3/+31
| | | | | | | | | | | | capabilities to Samba so that Samba could talk to the SGI PCP (Performance Co-Pilot) apps. This change adds a profiling shared memory area and uses it to count two fairly trivial things, the number of uid switches and the number of SMB packets processes. To add more just edit include/profile.h and then increment it at the right place. I've also added a -P switch to smbstatus to dump the profile area.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-1/+1
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* check return value of locking_init()Andrew Tridgell1998-11-051-10/+12
|