summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat/fstat.c
Commit message (Collapse)AuthorAgeFilesLines
* fix this code properly. msdosfs can't have device nodes on them.jmg2003-06-241-1/+5
| | | | | | | comment how to read device nodes from ufs (if an adventurous soul wants to fix it!). Reviewed by: bde
* o Fix rev. 1.41, print a header. -STABLE is OK.maxim2003-06-231-0/+1
| | | | | PR: bin/53585 Submitted by: Alexey Dokuchaev <danfe@regency.nsu.ru>
* correct spelling of struct cdev * from dev_t which is a 32bit type andjmg2003-06-191-2/+2
| | | | | | isn't very useful for passing pointers on LP64 systems. device names on sparc64 and alpha should now work.
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-131-4/+4
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-121-6/+4
| | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit.
* Rename struct specinfo to the more appropriate struct cdev.phk2002-09-271-2/+2
| | | | Agreed on: jake, rwatson, jhb
* Userland changes to go with vnode->v_tag change.njl2002-09-141-23/+18
|
* Unbreak building of fstat following version 1.23 ofbmilekic2002-08-141-1/+1
| | | | src/sys/ufs/ufs/quota.h by including mount.h before ufs/quota.h.
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Factor out some code in preparation for un-kmeming fstat(1).des2002-06-061-18/+43
| | | | Sponsored by: DARPA, NAI Labs
* Fix constness warnings.dwmalone2002-03-301-12/+13
| | | | | | Remove register keyword. Don't initialise "badtype" in declaration - it was initialised below anyway. Remove prototype for strcpy.
* remove __Pimp2002-03-221-12/+12
|
* Add support for devfs. In other words, for -CURRENT, make work at allgreen2001-12-171-0/+41
| | | | again for normal device nodes.
* Anding the fsid with 0xffff was causing aliasing problems.dwmalone2001-11-051-2/+2
| | | | | | | PR: 17405, 16320 Submitted by: Mark W. Krentel <krentel@dreamscape.com> Submitted by: Peter Edwards <peter.edwards@ireland.com> MFC after: 2 weeks
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-1/+0
|
* Userland part of nfs client/server split and cleanup.peter2001-09-181-2/+2
|
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-311-0/+1
|
* Fix 64 bit issues so that sockstat && fstat work correctly on alpha.mjacob2001-07-251-9/+8
| | | | | | PR: 29231 Submitted by: pherman@frenchfries.net MFC after: 2 weeks
* Teach fstat(1) about FIFO's - it's OK to display them as regular files.roam2001-06-181-3/+10
| | | | | | While I'm here, fix two second-level indents to be four spaces. Reviewed by: dd, -audit
* Remove MFSphk2001-05-291-4/+0
|
* define _KERNEL before including <sys/conf.h>phk2001-05-231-1/+1
|
* Compensate for header dethreading.markm2001-05-011-0/+1
|
* Revert consequences of changes to mount.h, part 2.grog2001-04-291-1/+0
| | | | Requested by: bde
* Include correct header files, in preparation for fixing sys/mount.h.grog2001-04-231-0/+1
| | | | Suggested-by: phk
* Fix `fstat -m' (show memory-mapped files), which was broken byiedowse2001-02-151-2/+2
| | | | | | | revision 1.25. When evaluating the termination condition for the iteration over all map entries, we must take care to use the kernel versions of all pointers. The code was comparing a kernel pointer to a pointer within a local variable, so the loop never terminated.
* Change the proc information returned from the kernel so that itmckusick2000-12-121-20/+17
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* remove struct mount from useland visibilityalfred2000-12-041-1/+1
|
* Add a new options: -m enables searching for memory-mapped files.green2000-04-051-2/+76
| | | | | | | | It is not default because it's an expensive option by nature, making the search take 2-3 times as long. PR: 17555 Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Support more filesystems in fstat(1): now you can use fstat(1) togreen2000-03-161-22/+14
| | | | | | | | | find out if files on msdosfs and cd9660 filestores are open. There was also a movement of some common things to a header, a small cleanup. PR: bin/16364 bin/7043 Submitted by: Peter Edwards <peter.edwards@openet-telecom.com>
* Fixed a little bit strange INET6 output.shin2000-02-191-0/+1
| | | | | Specified by: Ben Smithurst <ben@scientia.demon.co.uk> Approved by: jkh
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* Make fstat work with file arguments again after being broken by dev_tgreen1999-11-131-1/+28
| | | | | | changes. Thanks, Mr. Edwards! Submitted by: Peter Edwards <peter.edwards@ireland.com>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* o use getprotobynumber(3) instead of hardcoded protocol names.ru1999-07-021-26/+13
| | | | | | | | | Divert(4) sockets will now appear as "internet raw divert" instead of "internet raw 254". o -Wall tweak. Reviewed by: bde
* Fixed printf format errors.bde1998-07-061-25/+27
|
* Include correct header to get definition of struct sockaddr_un.markm1998-05-161-1/+2
|
* Fix argument string for getopt.dima1997-09-181-2/+2
| | | | Submitted by: dillon@best.net
* Display file size as an unsigned long.alex1997-08-311-2/+2
|
* Typo.charnier1997-07-101-2/+2
|
* Use err(3).charnier1997-07-081-34/+23
|
* Removed `#define KERNEL'. This was a hack-around for nfs.h being brokenbde1997-03-291-4/+0
| | | | | | | | in the Lite2 merge to not export some nfs constants. It started causing warnings when I added a kernel-only #define for DIRBLKSIZ. Removed `#define NFS'. This was an old, bad interface for telling <sys/mount.h> to export nfs stuff.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-3/+8
|
* Include <fcntl.h> so that this doesn't depend on the KERNEL versionbde1996-09-291-0/+1
| | | | | of <sys/file.h> including <sys/fcntl.h>. Only the !KERNEL version of <sys/file.h> will do that when I unspam the kernel headers.
* Locate the text inode, closes PR#1070peter1996-08-241-0/+5
|
* Quick attempt to decode DTYPE_PIPE files and print something meaningfulpeter1996-08-241-7/+53
| | | | for them. Otherwise, it does strange things when it hits one..
* Changes to support version 3 of the NFS protocol.dfr1995-06-271-1/+1
| | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
* Remove trailing whitespace.rgrimes1995-05-301-6/+6
|
* Added #include <sys/queue.h>dg1995-04-101-0/+1
|
OpenPOWER on IntegriCloud