| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
is empty. There doesn't appear to be another easy way to do this.
mobile# mkdir foo
mobile# mkdir foo/bar
mobile# mkdir bar
mobile# find . -empty
./foo/bar
./bar
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
an error. As it was, which find command lines that would work (be
accepted at all) was dependent on the presently running kernel, making
script writing and porting hard.
|
| |
|
|
|
|
| |
Submitted by: nrahlstr
|
|
|
|
|
|
|
|
|
|
|
|
| |
behave as in GNU find (and of course as described in the manual page
diff included). I think these options would be useful for some people.
Some missing $FreeBSD$ tags are also added.
The patch was slightly modified (send-pr mangling of TABS).
PR: bin/18941
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
|
|
|
|
|
|
|
|
|
|
| |
or if the mode is preceded by a '-', it checks for a match
in at least the bits specified on the command line. It is
often desirable to find things with any execute or setuid or
setgid bits set.
PR: bin/10169
Submitted by: Monte Mitzelfelt <monte@gonefishing.org>
|
|
|
|
|
| |
PR: docs/17057
Submitted by: Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
interface, and statically link them to the programs using them.
These functions, upon reflection and discussion, are too generically
named for a library interface with such specific functionality.
Also the api that they use, whilst ok for private use, isn't good
enough for a libc function.
Additionally there were complications with the build/install-world
process. It depends heavily upon xinstall, which got broken by
the change in api, and caused bootstrap problems and general mayhem.
There is work in progress to address future problems that may be
caused by changes in install-chain tools, and better names for
{g|s}etflags can be derived when some future program requires them.
For now the code has been left in src/lib/libc/gen (it started off
in src/bin/ls).
It's important to provide library functions for manipulating file
flag strings if we ever want this interface to be adopted outside
of the source tree, but now isn't necessarily the right moment
with 4.0-release just around the corner.
Approved: jkh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'. As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.
There are two already existing libc functions for manipulating file
modes: setmode and getmode. In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
|
|
|
|
| |
Obtained from: bde
|
|
|
|
| |
many places nowadays.
|
|
|
|
|
|
|
|
| |
I added $FreeBSD$ whicle I was here. The patch wasn't usable anymore
due to its age so I adapted it.
PR: bin/3648
Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD, by way of OpenBSD
|
|
|
|
|
|
|
|
|
| |
(and can be both files or directories). Show white space between
"(", ")", "!" and their corresponding `expression' arguments as
expected by the expression parser inside find(1).
Prompted by: David Honig <David.Honig@idt.com> on freebsd-doc
Message-Id: <199904132055.NAA09432@justinian.Eng.idt.com>
|
|
|
|
|
| |
PR: docs/9255
Submitted by: Christian Weisgerber <naddy@bigeye.rhein-neckar.de>
|
|
|
|
| |
Obtained from: OpenBSD
|
| |
|
|
|
|
|
| |
Don't format paragraphs manually (new sentences not beginning on new
lines give hard-formatted line breaks).
|
| |
|
| |
|
|
|
|
| |
Broken in: previous commit
|
| |
|
|
|
|
|
| |
The sort option make it possible to build the locate
database without large (usually 20-100MB) temp files.
|
|
|
|
|
|
|
|
|
|
|
| |
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
|
|
|
|
|
| |
Correct bug in the inverse operator optimisation code which caused segv
on ! without a following expression.
|
| |
|
|
|
|
|
|
| |
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
|
|
|
|
|
| |
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
|
|
|
|
| |
the default.
|
|
|
|
|
|
|
|
|
| |
doesn't know about getvfsbyname() and the vfsconf structure. This
disables the -fstype option if compiled with a pre-processor that
defines __NetBSD__. With the FreeBSD built pre-processor, find can only
be built with the FreeBSD libc. So when running with a NetBSD kernel,
FreeBSD's libc will have to return ENOSYS for things that NetBSD
doesn't support. That's life in a hybrid world.
|
|
|
|
|
| |
PR: 5171
Submitted by: Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
|
|
|
|
|
|
| |
are extensions along with the previous list of primaries.
Suggested by: bde
|
|
|
|
|
|
|
| |
can gather from the Posix spec that I have (which is very old)
all one character options are extensions to Posix.
PR: docs/4701
|
| |
|
|
|
|
|
|
|
| |
in question. This change and the fts changes should be merged into 2.2-stable
as soon as they are vetted in -current. This should allow cleaning of files
in /tmp to be reneabled.
Obtained from: OpenBSD
|
| |
|
| |
|
|
|
|
|
|
| |
Closes PR docs/3612.
Submitted by: Josh Gilliam <soil@quick.net>
|
|
|
|
|
| |
PR: 3472
Submitted by: Josh Gilliam <soil@quick.net>
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
| |
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3076
|
|
|
|
| |
understand whiteouts (FTS_W from fts()).
|
|
|
|
|
|
|
|
| |
kind of expressions caused a dereferencation of an uninitialized malloc
area, yielding wrong expression evaluation at best, and core dumps at
worst (malloc.conf -> AJ):
find ... ! \( expr1 ! expr2 \) ...
|
| |
|