l use, so
it must be something special in some way.
--
Jilles Tjoelker
his to 0. With this, the
system call can be restarted automatically after a signal.
In any case, [EINTR] and the internal ERESTART must not be returned
unless it is safe to repeat the call with the same (direct) arguments.
--
Jilles Tjoelker
_
es, this is the extreme
> error prone approach. We should convert this to script generated code,
> including guest syscalls definition.
Definitions of system calls are in syscalls.master and should be
automatically processable; definitions of types are in header files and
cannot really b
On Sun, Sep 16, 2018 at 01:21:33PM -0700, Mark Millard wrote:
> On 2018-Sep-16, at 10:50 AM, Jilles Tjoelker wrote:
> > On another note, the comment just below that,
> >/* But we need to zero-extend (char is unsigned) the value and then
> > perform a sign
rong reason for doing the right thing since memcmp (as well as
strcmp and strncmp) are defined to compare based on unsigned chars,
regardless of the signedness of char.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd
e implementation of the future more secure world would be
per-application UIDs a la Android. Another one would be
Capsicum-sandboxed applications where applications receive their Wayland
sockets pre-connected by code that tells the Wayland server the
application identity.
--
Jilles Tjoelker
__
ser to hold onto process slots for RLIMIT_NPROC. The only
solution would be to add variants of the necessary calls that take a
process descriptor instead of a process ID.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/
On Sun, May 21, 2017 at 05:25:35PM +0300, Konstantin Belousov wrote:
> On Sun, May 21, 2017 at 04:03:55PM +0200, Jilles Tjoelker wrote:
> > On Sun, May 21, 2017 at 03:31:18PM +0300, Konstantin Belousov wrote:
> > > On Sun, May 21, 2017 at 02:14:56PM +0200, Jilles Tjoelker wrot
On Sun, May 21, 2017 at 03:31:18PM +0300, Konstantin Belousov wrote:
> On Sun, May 21, 2017 at 02:14:56PM +0200, Jilles Tjoelker wrote:
> > We have another type in this area which is too small in some situations:
> > uint8_t for struct dirent.d_namlen. For filesystems that store f
plications using the deprecated readdir_r() will not be able
to read such long names, since the API does not allow specifying that a
larger buffer has been provided. (This could be avoided by making struct
dirent.d_name 766 bytes long instead of 256.)
Unfortunately, the existence of read
depending on how many signals are pending)
in this situation and document that reapers must use WAIT_ANY or P_ALL.
(However, compared to the pre-r309886 situation they can still use
SIGCHLD to get notified when to call waitpid() or similar.)
--
Jilles Tjoelker
On Mon, Jan 23, 2017 at 10:52:21AM -0800, Simon J. Gerraty wrote:
> Jilles Tjoelker wrote:
> > Index: etc/rc.d/random
> > ===
> > --- etc/rc.d/random (revision 311446)
> > +++ etc/rc.d/random (working
On Sun, Jan 22, 2017 at 01:22:07AM +, Lu Tung-Pin wrote:
> On 2017-01-21 22:01, Jilles Tjoelker wrote:
> > [Adding Cc: Dag-Erling Smørgrav who committed r273957 which seems to
> > have introduced this]
> > On Sat, Jan 21, 2017 at 01:21:42AM +, Lu Tung-Pin wrote:
>
l
- fi
+ debug "saving entropy to $f"
+ dd if=/dev/random of="$f" bs=4096 count=1 status=none &&
+ chmod 600 "$f"
done
+ umask ${oumask}
}
feed_dev_random()
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
On Fri, Dec 02, 2016 at 10:20:32AM -0600, Eric van Gyzen wrote:
> On 11/02/2016 15:33, Jilles Tjoelker wrote:
> > On Wed, Nov 02, 2016 at 02:24:43PM -0500, Eric van Gyzen wrote:
> >> Does copyinstr guarantee that it has filled the output buffer when it
> >> returns ENAM
design, it makes more sense to set error = 0 if a truncated name
is being set anyway. This preserves the property that the name remains
unchanged if the call fails.
A change to the man page thr_set_name(2) is needed in any case.
--
Jilles Tjoelker
___
f
BSD. A (userland) dev_t is an
opaque identifier.
The direct equivalent is devname_r() or fdevname_r() followed by parsing
the resulting string.
There is also a VT_GETINDEX ioctl but I don't know whether it works.
--
Jilles Tjoelker
___
freebsd-curr
and uses less memory. It has been
supported for a long time, at least since FreeBSD 9.0.
Process-shared mutexes, condition variables, reader/writer locks, etc.
are available in FreeBSD 11 but use more memory (a 1-page object per
synchronization object), somewhat like named semapho
On Thu, Jun 09, 2016 at 07:34:55AM +0300, Konstantin Belousov wrote:
> On Wed, Jun 08, 2016 at 11:17:44PM +0200, Jilles Tjoelker wrote:
> > On Wed, Jun 08, 2016 at 04:56:35PM +0300, Konstantin Belousov wrote:
> > > On Wed, Jun 08, 2016 at 06:35:08AM -0700, Mark Johnston wrote:
&
On Wed, Jun 08, 2016 at 04:56:35PM +0300, Konstantin Belousov wrote:
> On Wed, Jun 08, 2016 at 06:35:08AM -0700, Mark Johnston wrote:
> > On Wed, Jun 08, 2016 at 07:30:55AM +0300, Konstantin Belousov wrote:
> > > On Tue, Jun 07, 2016 at 11:19:19PM +0200, Jilles Tjoelker wro
On Tue, Jun 07, 2016 at 07:01:55PM +0300, Konstantin Belousov wrote:
> On Tue, Jun 07, 2016 at 04:24:53PM +0200, Jilles Tjoelker wrote:
> > On Tue, Jun 07, 2016 at 07:29:56AM +0300, Konstantin Belousov wrote:
> > > This looks as if we should not ignore susp
new kind of sleep would fail with [ERESTART] only for stops, since
[EINTR] should only be returned if a signal handler was called. There
cannot be a signal handler since a SIGTSTP/SIGTTIN/SIGTTOU signal with a
handler does not stop the process.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
compiler in the module?
> I suspect this is caused by my r292180 back in December. I'm trying to
> figure out if that's the case and if so, how to fix it.
I think this is caused by the missing MODULE_DEPEND. The kernel linker
only looks for symbols in the ELF objec
and allow getting rid of sh -c, but would change the
directory as root so permission problems with NAME_user would be
detected later.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-
: fd
> Stack left redzone: f1
> Stack mid redzone: f2
> Stack right redzone: f3
> Stack partial redzone: f4
> Stack after return: f5
> Stack use after scope: f8
> Global redzone: f9
> Global init order:
people expect.
Alternatively, the pattern could be rewritten to be locale-sensitive:
[[:upper:][:digit:]]*[[:upper:][:digit:]]
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
tly better: it calculates the maximum width of
the abbreviated month names and pads to that (with a maximum of 5). In
particular, this ensures that the output does not change for locales
that have 3-character abbreviations, such as the POSIX locale. I think
disappointed that setting birthtimes apparently wasn't needed
when I added futimens and utimensat. However, they are not part of any
release yet, so it may be possible to remove them at some point.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
ts.
Whether you want to do this instead of adding two more system calls is a
different question.
Also note that, in some sense, the inability to set the birthtime
forward is a feature.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
ber 2003), UTF-8 has been restricted to code points up to 0x10
(inclusive). The higher sequences should be removed from the tests (or,
even better, be expected to cause [EILSEQ]).
I can provide a patch, but thought I'd explain the problem first.
--
Jilles Tjoelker
cessive with the current libc implementation), you could store at
telldir() time the offset of the current block returned by
getdirentries() and the d_fileno of all entries already returned in the
current block.
The D2410 patch can conceptually work for what Samba needs, stepping
back one directory
er make buildworld. Then mergemaster will work,
even with a read-only /usr/obj.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
e start of the buffer if
not found (and possibly return some entries again that should not be
returned, but Samba copes with that).
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
ow byte-at-a-time
implementations.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
For example, utilities like cp and touch currently use
utimensat/futimens without #ifdef mess or extra code in libegacy. The
strict BOOTSTRAPPING conditionals allow removing bootstrap tools
eventually, when building from such old versions as to need them is n
On Fri, Jun 27, 2014 at 04:06:53PM -0700, Xin Li wrote:
> [moving discussion to freebsd-current@]
> On 06/27/14 15:23, Jilles Tjoelker wrote:
> > On Fri, Jun 27, 2014 at 07:57:54PM +, Xin LI wrote:
> >> Author: delphij
> >> Date: Fri Jun 27 19:57:54 2014
>
NFS) /usr/obj first. I reported this a while ago in
http://lists.freebsd.org/pipermail/freebsd-testing/2014-May/000384.html
"build Kyuafile.auto during buildworld, not installworld". This message
includes patches, although they are a bit ugly.
--
Jilles Tjoelker
_
118
> lines/388 words/3377 characters.)
These messages are harmless, but are fixed by r264167. The cause is
pretty much expected: libnv was listed in SUBDIR twice.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
needs
to be different so it can report a write error but still return a file
descriptor. One way to do this is to return the file descriptor by
reference. Another is to expect the application to call fileno() and not
return the descriptor from the new function.
--
Jilles Tjoelker
_
libnv/nv.3 (revision 262358)
+++ lib/libnv/nv.3 (working copy)
@@ -310,7 +310,9 @@ The
.Fn nvlist_send
function sends the given nvlist over the socket given by the
.Fa sock
-argument.
+argument,
+without generating
+.Dv SIGPIPE .
Note that nvlist that contains file d
On Tue, Feb 25, 2014 at 11:30:56AM +0100, Baptiste Daroussin wrote:
> On Mon, Feb 24, 2014 at 11:50:10PM +0100, Jilles Tjoelker wrote:
> > On Mon, Feb 24, 2014 at 07:01:54PM +0400, Slawa Olhovchenkov wrote:
> > > On Mon, Feb 24, 2014 at 03:30:14PM +0100, Baptiste Daroussin wrot
tors, send
signals, etc), I think it is better to implement trusted submission
differently. A privileged daemon (not necessarily running as root) can
listen on a Unix domain socket and use getpeereid(3) to verify the
credentials of the client.
Note that the largest gain with s
On Sun, Jan 05, 2014 at 04:04:03PM -0500, Nathan Whitehorn wrote:
> On 12/01/13 07:34, Jilles Tjoelker wrote:
> > On Sat, Nov 30, 2013 at 04:36:18PM -0600, Nathan Whitehorn wrote:
> >> This took much longer than I'd anticipated, but the patch to init is
> >> a
hich is irrelevant with utmpx. This noise warning would also appear
in most cases when changing from a "fake" console entry to a real line
in /etc/ttys. Also, if you do decide to fake ttys entries in init rather
than libc, the patch to init will be simpler.
--
Jilles Tjoelker
__
>There is no(intended) functional change.
This part indeed looks wrong. The while loop was not under the if (rem >
H0) but now is. The closing brace should be added before instead of
after the while loop.
Also, putting braces around out->right(re
trol systems and not
provided separately.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
+++ include/mk-osreldate.sh (working copy)
@@ -48,4 +48,5 @@
#define __FreeBSD_version $RELDATE
#endif
EOF
+chmod 644 $tmpfile
mv $tmpfile osreldate.h
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
On Tue, Sep 24, 2013 at 10:29:09PM +0300, Konstantin Belousov wrote:
> On Tue, Sep 24, 2013 at 09:19:49PM +0200, Jilles Tjoelker wrote:
> > On Tue, Sep 24, 2013 at 12:37:30AM +0300, Konstantin Belousov wrote:
> > > On Mon, Sep 23, 2013 at 10:26:13PM +0200, Tijl Coosemans wrote:
local system by racing signal
delivery via handler with acceptance in sigtimedwait().
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
freebsd32_cap_enter(void); }
517AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); }
518AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); }
519AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); }
--
Jilles Tjoelker
___
f
idea.
Apart from the annoyance of the restarts, automatic stopping and
starting is probably the best policy for having things "just work". Some
daemons will crash or otherwise stop being useful when their files have
been deleted or replaced, an
e better part of a year. Note that
fdlopen() (possibly used by PAM) has depended on F_DUPFD_CLOEXEC for
longer.
You can try booting the new kernel manually or getting a /bin/sh binary
from before svn r250267 from somewhere.
--
Jilles Tjoelker
___
freebsd
On Sun, May 26, 2013 at 10:52:07PM +0200, Roger Pau Monné wrote:
> On 26/05/13 22:20, Jilles Tjoelker wrote:
> > Instead of a pause() that may be too short or too long, how about
> > waiting for the necessary lock? In other words, replace the kern_yield()
> > call with VI_L
s(+), 1 deletions(-)
>
> diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
> index 0da6764..597f4b7 100644
> --- a/sys/kern/vfs_subr.c
> +++ b/sys/kern/vfs_subr.c
> @@ -4703,7 +4703,15 @@ restart:
> if (mp_ncpus == 1 || should_yi
d mentioned this possibility on IRC, but this feature is specific to
Almquist-derived shells (ash) and so something more portable was
selected. (It's still not standard because POSIX does not specify
"local" but it works on most shells in use.)
--
Jilles Tjoelker
On Sun, Mar 10, 2013 at 08:26:03PM -0200, Jan Beich wrote:
> Jilles Tjoelker writes:
> > On Thu, Mar 07, 2013 at 04:54:01AM -0100, Jan Beich wrote:
> >> Jilles Tjoelker writes:
> >> > On Tue, Mar 05, 2013 at 08:59:09PM +0100, Hartmann, O. wrote:
> >> &g
On Thu, Mar 07, 2013 at 04:54:01AM -0100, Jan Beich wrote:
> Jilles Tjoelker writes:
> > On Tue, Mar 05, 2013 at 08:59:09PM +0100, Hartmann, O. wrote:
> >> A "truss top" reveals this, is this of help?
> >> [...]
> >> stat("/etc/nsswitch.c
ockfd, &cred_hdr, 0) == -1) ?
- -1 : 0;
+ result = (_sendmsg(connection->sockfd, &cred_hdr,
+ MSG_NOSIGNAL) == -1) ? -1 : 0;
EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD,
On Wed, Feb 13, 2013 at 11:44:19AM -0500, John Baldwin wrote:
> On Thursday, February 07, 2013 4:12:22 pm Jilles Tjoelker wrote:
> > On Tue, Feb 05, 2013 at 03:46:43PM -0500, John Baldwin wrote:
> > > I've written an implementation of open_memstream() and
> > > op
n to bytes and back probably makes open_wmemstream() quite
slow but I don't think that is very important.
> http://www.FreeBSD.org/~jhb/patches/open_memstream.patch
The seek functions should check for overflow in the addition (for
SEEK_CUR and SE
ocesses of ktrace (at a time just before it
executes the utility) should be traced as well. This is almost always an
empty set, unless you do things like
cmd1 & ktrace -d cmd2
which will trace cmd2 and part of cmd1.
You probably want ktrace -i.
--
Jilles Tjoelker
t this right, callouts from device drivers will just "DTRT",
> if you get it wrong, all device drivers will need boilerplate code
> to handle S/R
Userland could get access to this via CLOCK_REALTIME vs CLOCK_MONOTONIC
vs CLOCK_UPTIME.
--
Jilles Tjoelker
__
n you can
use; in older versions you can use hexdigit and hexprint from
network.subr.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "fr
saved and restored around that to avoid setting errno to
0 as a side effect of the function. The empty string needs a specific
check.
I don't insist on this being fixed but it shows that strtol() is too
hard to use correctly. The non-standard strtonum() looks easier but has
other problems (su
is incomplete%s",
> + string, line);
> + return (1);
> case ENOMEM:
> - errx(1, "%s: type is unknown to this program",
> - string);
; +#undef isnan
> int
> isnan(double d)
> {
> @@ -40,7 +41,7 @@ isnan(double d)
> u.d = d;
> return (u.bits.exp == 2047 && (u.bits.manl != 0 || u.bits.manh != 0));
> }
> -#endif
> +#endif /* !PIC */
>
> int
> __isnanf(float f)
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> makes perfect sense to me that tools for dealing with the ports should
> follow changes to ports rather than changes to the base.
Yes.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
On Wed, Aug 29, 2012 at 08:09:20AM -0400, John Baldwin wrote:
> On Wednesday, August 29, 2012 6:02:47 am Jilles Tjoelker wrote:
> > GNU coreutils mv (and also cp/install/ln) appears to use
> > -T/--no-target-directory for a similar purpose: -T prevents the target
> > being t
y. I
> could not find any other mv commands that have adopted a -h (or a different
> flag that accomplishes the same task). Given that it functions identically
> to the -h flag for ln, -h seemed the "logical" choice. Any objections?
GNU coreutils mv (and also cp/install/l
e to be distributed with base
(like the public keys for freebsd-update and portsnap).
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
*) echo no ;;
esac
done
This does assume that the list does not change during the loop.
Also, instead of
pName=`echo $pkg | rev | cut -d "-" -f 2-25 | rev`
try
pName=${pkg%-*}
and use arithmetic expansion ($((...))) instead of invoking expr where
possible.
--
esentation. The conversion might be
non-trivial and a "type-pun" may not work properly. However, in almost
all real machines the conversion is trivial.
Some compilers may still consider the union approach a strict-aliasing
violation. In any case, I think it is a
one loop.
(Note the second "sh" at the end, which serves as a value for $0 so all
strings from xargs become positional parameters.)
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
arbitrarily chose some information
to print, since I do not use -DDEBUG=2 myself.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
think it is not used
deliberately by many people but is annoying if you accidentally press it
and do not realize.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
bytes/sec)
> 00|.|
> n0001
Yes, this was broken by r229794 (Jan 7) and repaired again by r230649
(yesterday).
http://www.freebsd.org/cgi/query-pr.cgi?pr=144722
--
Jilles Tjoelker
___
freebsd-curren
c character sets.
The base catgets(3) facility does not provide a utility for use from
shell scripts, and is also harder to use than gettext.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/fre
On Sat, Jan 14, 2012 at 01:05:59AM -0800, Doug Barton wrote:
> Per discussion in freebsd-rc@, I have removed set_rcvar() from rc.subr.
> The concept of set_rcvar() was nice in theory, but the forks it creates
> are a drag on the startup process, which is especially noticeable on
> slower systems, s
work as a cross tool. Upsides are that it is simple and it shows
exactly what rtld would do (because it is rtld), handling things like
/var/run/ld-elf.so.hints, LD_LIBRARY_PATH and pathnames hardcoded into
objects.
You will have to run objdump (or readelf) recursively. (Note that there
are also use cas
ewhat).
Another consideration is compatibility for 32-bit applications on 64-bit
kernels; a good ABI design will minimize the amount of code needed to
support that.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/ma
if (--ts->ts_slice > 0)
> - return;
> - /*
>* We're out of time, force a requeue at userret().
>*/
> ts->ts_slice = sched_slice;
> and refusal to use options FULL_PREEMPTION
> But no one has unsubscribed
es are pmcstat and callgrind/cachegrind.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
tations. C99
recognized this need and created a way to do it, which looks like
uint16_t addr_type[];. This adds any necessary padding and allows access
to however many elements have been allocated. Also, if it is not at the
end of a struct it is an error.
Using this new construct requires cod
till cause erratic undefined behaviour. Therefore, it may not be
desirable to do this.
An alternative is to use pthread_suspend_np(). This function will wait
for the thread to stop before returning, although it may stop almost
anywhere. I have not tried this but calling it on a thread in
pthr
ils) use
something like
devfs_set_rulesets="/usr/jails/jail1/dev=devfsrules_jail1
/usr/jails/jail2/dev=devfsrules_jail2"
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-curr
environment variables) when it receives SIGWINCH,
so only if bash is in the foreground when the change happens. You can do
shopt -s checkwinsize
to make it check more often.
libedit (as used in sh) is different; it appears to check the size
before reading each line.
--
Jilles Tjoelker
c snap/${F} | ${SHA256} -q` != ${F} ]; then
+ if [ "`gunzip -c snap/${F} | ${SHA256} -q`" != ${F} ]; then
echo "snapshot corrupt."
return 1
fi
--
Jilles Tjoelker
___
freebsd-c
is because a thread awakened by pthread_cond_signal()
(or any other event) is not guaranteed to start running immediately and
pthread_cond_signal() does nothing if there is no thread to wake up.
If there is no second CPU core available to run the detailer thread,
> + }
> + if ((strlen(p) + 1 + strlen(name) + 1) >= sizeof
> fullname) {
This sizeof is now the sizeof of a pointer. The comparison should be
against FILENAME_MAX + 1 instead.
Alternatively, the name could be created using asprintf().
--
Jill
0644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -777,6 +777,7 @@ ttyil_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int
fflag,
error = ttydevsw_cioctl(tp, dev2unit(dev), cmd, data, td);
if (error != ENOIOCTL)
goto done;
+ e
oblem that they are laid out in such a way that they cannot be cached
efficiently.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
n.
To avoid this, use waitpid(-1, ...) and maintain more tracking for
processes that have already terminated.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
ansion changes, required for the line:
iface="${line#\# resolv.conf from *}"
This can be avoided by changing that line to:
iface=${line#\# resolv.conf from *}
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
uct cmsghdr *)(cmsg))->cmsg_len))
Although there is no alignment problem (assuming cmsg is properly
aligned and _ALIGN is correct), this violates -Wcast-align. Therefore I
think an intermediate cast to void * would be appropriate here.
--
Jilles Tjoelker
_
ot;$LOG_TOPIC_ERR" <"$fifo2" &
exec >"$fifo1" 2>"$fifo2"
rm -rf "$tempdir"
Once the fifos have been opened for writing, the readers must have
already opened too, therefore it is safe to unlink them.
If you have a secure directory you may c
On Wed, Jan 05, 2011 at 10:30:43PM +0100, Ulrich Spörlein wrote:
> On Wed, 05.01.2011 at 20:36:53 +0100, Jilles Tjoelker wrote:
> > On Wed, Jan 05, 2011 at 05:55:45PM +0100, Ulrich Spörlein wrote:
> > > *But*, it should grok that for err(3) and exit(3). Now there are some
>
eordering the functions in the file does not help to make gcc see that
the functions do not return.
> - come up with a way to mark the false positives (kinda impossible with
> the way scan-build currently works)
--
Jilles Tjoelker
___
freebs
and stddef.h resulting in 'offsetof' being redefined.
This problem was introduced by r213775 include changes, which you have
merged yourself. I had already noticed this myself in head and fixed it
in r213925.
I have now MFCed r213775 and r213925 so your problem should be solved
differently. This
should not have been allowed to happen, but now we are stuck with it.
I suppose bin/sh/bltin/echo.1 can go away.
--
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-c
$FreeBSD$
v1=/homes/SOME_USER
v2=
v3=C123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
while [ ${#v2} -lt 2000 ]; do
v4="${v2} ${v1%/*} $v3"
if [ ${#v4} -ne $((${#v2} + ${#v3} + 8)) ]; then
echo bad: ${#v4} -ne $((${#v2} + ${#v3} + 8))
fi
v
1 - 100 of 110 matches
Mail list logo