| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=42780
|
| |
|
|
|
|
|
|
|
|
| |
- document that sysctl() and sysctlbyname() return 0 on success
- if the provided buffer is too small, set errno to ENOMEM and return -1
instead of returning ENOMEM.
Notes:
svn path=/head/; revision=42353
|
| |
|
|
|
|
|
|
|
|
|
| |
is actually mounted on "/" can be determined using statfs() and is
in /dev. This fixes fsck operating on the wrong device when the
fs_spec entry is only an alias. The aliased case became more
dangerous when the ROOTSLICE_HUNT hack was committed in mount(8).
ROOTSLICE_HUNT may be unnecessary now.
Notes:
svn path=/head/; revision=42232
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41898
|
| |
|
|
|
|
|
|
|
|
|
| |
an unimprovement here. I thought it would be an improvement, as in libkvm,
but here we can access the strings directly.
Use sysctlbyname() instead of sysctl() and trust it to give a nonzero
address if it succeeds.
Notes:
svn path=/head/; revision=41875
|
| |
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=41841
|
| |
|
|
|
|
|
|
| |
Add reference to required include file #include <stdlib.h> for
getloadavg(3) function call.
Notes:
svn path=/head/; revision=41714
|
| |
|
|
|
|
|
|
|
| |
depend on libkvm.
Removed obsolete `#define _NEW_VFSCONF'.
Notes:
svn path=/head/; revision=41581
|
| |
|
|
|
|
|
| |
Pointed-out-by: Bruce Evans
Notes:
svn path=/head/; revision=41025
|
| |
|
|
|
|
|
|
| |
"src/lib/libc/gen/popen.c" --- popen() in the child
now closes any copies of popen()'ed descriptors in the parent.
Notes:
svn path=/head/; revision=40952
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
they cannot mount a filesystem that they cannot see in getvfsbyname().
Part 1 of this is a hack, make vfsisloadable() always return true - the
ultimate decider of whether it's loadable or not is kldload() or mount().
Part 2 of this is to have vfsload() call kldload(2) and return success if
it works. This means that we will use a viable kld module in preference
to an LKM!
Ultimately, the thing to do is remove the hacks to do a vfsload in all the
mount_* commands and let the kernel do it by itself in mount(2).
Notes:
svn path=/head/; revision=40863
|
| |
|
|
|
|
|
|
| |
PR: bin/8176
Submitted by: Archie Cobbs <archie@whistle.com>
Notes:
svn path=/head/; revision=40742
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40738
|
| |
|
|
|
|
|
|
| |
NULL, in line with perror(3). However, the code presently checks only
for a zero-length string. Check for both.
Notes:
svn path=/head/; revision=40727
|
| |
|
|
|
|
|
| |
where "/var/db/kvm_kernel.db" doesn't exist.
Notes:
svn path=/head/; revision=40688
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40667
|
| |
|
|
|
|
|
| |
Add some content from objformat(1).
Notes:
svn path=/head/; revision=40641
|
| |
|
|
|
|
|
|
| |
Reviewed by: bde
Approved by: jkh
Notes:
svn path=/head/; revision=40396
|
| |
|
|
|
|
|
|
|
|
| |
popen()ed child.
PR: misc/7810
Submitted by: Wayne Scott <wscott@ichips.intel.com>
Notes:
svn path=/head/; revision=40367
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40357
|
| |
|
|
|
|
|
|
|
|
| |
telnet and tip, and probably a few other apps.
Reviewed by: bde
Approved by: jkh
Notes:
svn path=/head/; revision=40356
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40219
|
| |
|
|
|
|
|
|
|
|
|
|
| |
vfork() can't be used. We could use alloca() in execl() so that
it can be called between vfork() and execve(), but a "portable"
popen() shouldn't depend on this. Calling execle() instead of
execl() should be fairly safe, since execle() is supposed to be
callable from signal handlers and signal handlers can't call
malloc(). However, execle() is broken.
Notes:
svn path=/head/; revision=40191
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR: 7923
Submitted by: Archie Cobbs <archie@whistle.com>
The scandir() function returns -1 if it fails.
In many cases when this happens, it does not free
the memory that it allocated, resulting in a memory
leak, or close the directory opened with opendir().
BAD DOG, BAD!
Notes:
svn path=/head/; revision=40013
|
| |
|
|
|
|
|
| |
Reminded by: Bruce Evans <bde@zeta.org.au>
Notes:
svn path=/head/; revision=39750
|
| |
|
|
|
|
|
| |
/etc/disktab.
Notes:
svn path=/head/; revision=39684
|
| |
|
|
|
|
|
| |
Pointed out by: bde
Notes:
svn path=/head/; revision=39334
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In some cases replace if (a == null) a = malloc(x); else a =
realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is
guaranteed to be the same thing.
I've been running these on my system here w/o ill effects for some
time. However, the CTM-express is at part 6 of 34 for the CAM
changes, so I've not been able to do a build world with the CAM in the
tree with these changes. Shouldn't impact anything, but...
Notes:
svn path=/head/; revision=39327
|
| |
|
|
|
|
|
|
|
| |
or NIS server problems, local user can login without a pause.
Also, -Wsomething cleanup.
Notes:
svn path=/head/; revision=39283
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
addresses by default.
Add a knob "icmp_bmcastecho" to "rc.network" to allow this
behaviour to be controlled from "rc.conf".
Document the controlling sysctl variable "net.inet.icmp.bmcastecho"
in sysctl(3).
Reviewed by: dg, jkh
Reminded on -hackers by: Steinar Haug <sthaug@nethelp.no>
Notes:
svn path=/head/; revision=39267
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39202
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39201
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Fix some style errors I made back in 1995.
- Add a new flavor of the err(3) family, which takes an explicit
errno argument rather than implicitly examining errno. This
will make it easier to use these functions in conjunction with
modern library interfaces that return an errno value explicitly.
Notes:
svn path=/head/; revision=39112
|
| |
|
|
|
|
|
| |
written by John Dyson.
Notes:
svn path=/head/; revision=39022
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format. This
consolidates some code that was starting to be duplicated in more
and more places.
Use the new function in ldconfig.
Note: I don't think that gcc should use getobjformat(), even though
it could. The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
Notes:
svn path=/head/; revision=38960
|
| |
|
|
|
|
|
| |
are too long to affect real code
Notes:
svn path=/head/; revision=38938
|
| |
|
|
|
|
|
|
|
|
| |
<dfr@nlsystems.com>
Rewrote sleep() to remove int/long typing assumptions between the argument
to the function and the timespec structure.
Notes:
svn path=/head/; revision=38878
|
| |
|
|
|
|
|
| |
is an int, not a long.
Notes:
svn path=/head/; revision=38847
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38702
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38391
|
| |
|
|
|
|
|
|
|
| |
revisions to match the confusing spelling in getttyent.c (1 to
break it to match the man page and 1 in each of 2 branches to fix
it). This function seems to be orphaned and unused.
Notes:
svn path=/head/; revision=38054
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38020
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37515
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37513
|
| |\
| |
| |
| |
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
Notes:
svn path=/head/; revision=37511
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD (author: Klaus Klein)
Notes:
svn path=/vendor/NetBSD/dist/; revision=37510
|
| |
|
|
|
|
|
|
|
|
|
| |
references sp. The free needs to follow ISSET
PR: 7148
Reviewed by: phk
Submitted by: Ken Mayer <kmayer@freegate.com>
Notes:
svn path=/head/; revision=37349
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37319
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37301
|
| |
|
|
| |
Notes:
svn path=/head/; revision=36919
|