| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.
From the Perforce logs (change 11995):
Round of cleanups:
o Give uuidgen() the correct prototype in syscalls.master
o Define struct uuid according to DCE 1.1 in sys/uuid.h
o Use struct uuid instead of uuid_t. The latter is defined
in sys/uuid.h but should not be used in kernel land.
o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o Rename the non-standard struct uuid in kern/kern_uuid.c
to struct uuid_private and give it a slightly better definition
for better byte-order handling. See below.
o In sys/gpt.h, fix the broken uuid definitions to match the now
compliant struct uuid definition. See below.
o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.
A note about byte-order:
The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.
|
|
|
|
|
|
|
| |
Remove incorrect examples.
PR: 25016
Submitted by: Martin Kammerhofer, Joshua Goodall
|
| |
|
| |
|
|
|
|
| |
suitable for re-input into the shell.
|
|
|
|
|
|
| |
to fail when the logical current directory no longer exists. Allow changes
to absolute paths when logical cwd is invalid, fall back to physical cd
if logical cd fails.
|
|
|
|
| |
current directory no longer exists incorrectly and breaks `make cleandir'.
|
|
|
|
| |
handling of .. is now the default.
|
|
|
|
| |
on a line by itself.
|
|
|
|
|
|
| |
an unset variable is expanded.
Obtained from: NetBSD (bjh21, christos)
|
|
|
|
|
| |
fg outputs the name of the command, bg outputs the name of the command
and the job id.
|
|
|
|
| |
files from being overwritten by shell redirection.
|
|
|
|
|
|
|
|
| |
-m List files across the page, separated by commas.
-p Print a slash after directory names
-x Same as -C but sort across the columns rather than down
Submitted by: Kyle Martin <mkm@ieee.org>
|
|
|
|
|
|
|
| |
refetch the filesystem information in MNT_WAIT mode. This avoids
incorrect column alignment that sometimes occurs with NFS filesystems.
Submitted by: Ian <freebsd@damnhippie.dyndns.org>
|
|
|
|
| |
convinced it's a good idea.
|
|
|
|
| |
matters), fall back to -P mode if we can't get the logical directory.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fix the case:
cp file nonexistent/
which create nonextstent as file while trailing slash clearly indicates
that nonexistent must be a directory.
Also fix the case:
cp file1 file2/
which should produce error.
|
|
|
|
| |
CURRENT <paths.h>.
|
|
|
|
| |
'security.bsd.see_other_uids'.
|
| |
|
|
|
|
| |
Reviewed by: brian
|
|
|
|
|
|
| |
add break statements to default cases where missing.
Submitted by: bde
|
|
|
|
|
| |
functions we use to assign them. Doesn't seem to be anything else that
relies on these being non-const.
|
|
|
|
| |
is as good as blaknk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in df(1) when we have multiple filesystem types, and the complications of
handling UFS2 pushes this over the edge.
Use the .../mount/extern.h to get prototypes of the functions we
borrow from there. Constify things to match. (why aren't these
functions in a lib anyway ?)
Make everything static and set WARNS?=5.
The way the "df diskdevice" thing works for unmounted diskdevices
is not very general.
Sponsored by: DARPA & NAI Labs.
|
| |
|
|
|
|
| |
and -e reflects the historic behavior of FreeBSD's expr.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
is required to be oblivious to overflow and to use the data type `long'.
(Division by zero is undefined in ISO C so it's still OK to check for it
here.) Add a new `-e' flag to get the old, more useful behavior.
|
| |
|
|
|
|
|
| |
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
|
|
|
|
| |
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
correct manner. Revert my incorrect change to use err(3) for malloc(3)
failing. Use a size_t variable to store the size of the argument buffer
we allocate, and remove silly casts as the result of having this around.
Modify the math in some of the paranoid checks for buffer overflow to
account for the fact we now are dealing with the actual size of the
buffer. Remove the static qualifier for arg_max, and the bogus setting
of it to -1.
Include <limits.h> for the definitions we use to check for possible
overflows.
Submitted by: bde
|
|
|
|
| |
returns NULL, as malloc(3) sets errno. Use err(3).
|
| |
|
|
|
|
| |
parsing for compatibility with old implementations.
|
|
|
|
|
| |
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
|