Bump. These scripts could use a little refreshing.
On 22:34:57, 12.06.17, Michal Mazurek wrote:
> This script has an option called -presort or -nosort, that appears to
> never be used, so remove it. This makes the $sort* options unneeded,
> remove them too.
>
> The script it
INVAL
if
.Fa pref
-is unsupported.
+is unsupported, or the value of
+.Fa hashsize
+is insufficient.
.Sh SEE ALSO
.Xr crypt 3 ,
.Xr login.conf 5 ,
--
Michal Mazurek
in
- -s*)
- exec $HACK $@
- ;;
- *)
- exec $HACK $@ $MAXNROFPLAYERS
- ;;
-esac
--
Michal Mazurek
2,7 @@
#define TCPDUMP_MAGIC 0xa1b2c3d4
/* file ids used by priv_getlines */
-#define FTAB_APPLETALK 0
-#define FTAB_PFOSFP1
+#define FTAB_PFOSFP0
enum cmd_types {
PRIV_OPEN_BPF, /* open a bpf descriptor */
--
Michal Mazurek
encryptedlen < BCRYPT_HASHSPACE)
goto inval;
BCRYPT_HASHSPACE is defined thus:
libc/crypt/bcrypt.c:#define BCRYPT_HASHSPACE61
--
Michal Mazurek
inetd.conf, add the line
- huntdgram udp waitnobody /usr/games/lib/huntdhuntd
+ huntdgram udp waitnobody /usr/games/huntdhuntd
This works for 4.3BSD. I don't remember the configuration file
format for 4.2BSD inetd.
--
Michal Mazurek
On 18:50:26, 12.06.17, Jason McIntyre wrote:
> On Mon, Jun 12, 2017 at 07:13:43PM +0200, Michal Mazurek wrote:
> > Can't have outdated paths in fortunes.
> >
> > OK?
> >
> > Index: games/fortune//datfiles/fortunes2
> > ===
"$TMPDIR" > $filelist; then
+$bigram < $filelist | sort -Hnr |
awk -Ft 'BEGIN { ORS = "" } NR <= 128 { print $2 }' > $bigrams
&&
$code $bigrams < $filelist
else
--
Michal Mazurek
-
-trap 'rm -f $bigrams' 0 1 2 3 5 10 15
-
-for db
-do
- $locate -d $db /
-done | $bigram | $sort -nr | awk 'BEGIN { ORS = "" } NR <= 128 { print $2 }' >
$bigrams
-
-for db
-do
- $locate -d $db /
-done | $code $bigrams
--
Michal Mazurek
-- E. E. CUMMINGS
%
-HELP I'm being held prisoner in /usr/games/lib!
+HELP I'm being held prisoner in /usr/share/games!
%
Help stamp out Mickey-Mouse computer interfaces -- Menus are for Restaurants!
%
--
Michal Mazurek
ver value you used here
as well. In /etc/inetd.conf, add the line
- huntdgram udp waitnobody /usr/games/lib/huntdhuntd
+ huntdgram udp waitnobody /usr/games/huntd huntd
This works for 4.3BSD. I don't remember the configuration file
format for 4.2BSD inetd.
--
Michal Mazurek
+.It Pa /dev/ttyVI30
+.It Pa /dev/ttyVI40
.El
.Sh SEE ALSO
.Xr intro 4 ,
--
Michal Mazurek
On 21:16:08, 6.06.17, Michal Mazurek wrote:
> When talking about this with mulander@ it came out that the docs could
> use a touch.
>
> The commit message for the diff that didn't update the docs was:
>
> permit "bcrypt" as an alias for "blowfish"
d as easily as KIP DDP packets
-but aren't.
-Even if we were inclined to do anything to promote the use of Ethertalk
-(we aren't, LBL doesn't allow Ethertalk on any of its
-networks so we'd have no way of testing this code).
.Pp
A packet trace that crosses a daylight saving time change will give
skewed time stamps
--
Michal Mazurek
to
change it. Judging by the commit message the author was aware of this
discrepancy though, and marked is as "for now", so let's see what others say.
--
Michal Mazurek
Dq blowfish
+can be used as an alias for
+.Dq bcrypt .
.El
.Sh RETURN VALUES
.Rv -std crypt_checkpass crypt_newhash
@@ -89,7 +101,9 @@ to
.Er EINVAL
if
.Fa pref
-is unsupported.
+is unsupported, or the value of
+.Fa hashsize
+is insufficient.
.Sh SEE ALSO
.Xr crypt 3 ,
.Xr login.conf 5 ,
--
Michal Mazurek
otify_minor_holdtime[0]),
sizeof(bgpnotify_minor_fsm)/sizeof(bgpnotify_minor_fsm[0]),
sizeof(bgpnotify_minor_cease)/sizeof(bgpnotify_minor_cease[0]),
- sizeof(bgpnotify_minor_cap)/sizeof(bgpnotify_minor_cap[0]),
+ sizeof(bgpnotify_minor_err)/sizeof(bgpnotify_minor_err[0]),
};
static const char *bgpattr_origin[] = {
--
Michal Mazurek
f(bgpnotify_minor_cease)/sizeof(bgpnotify_minor_cease[0]),
sizeof(bgpnotify_minor_cap)/sizeof(bgpnotify_minor_cap[0]),
};
--
Michal Mazurek
them rather than
.Nm tcpdump .
-.Pp
-Apple Ethertalk DDP packets could be dumped as easily as KIP DDP packets
-but aren't.
-Even if we were inclined to do anything to promote the use of Ethertalk
-(we aren't, LBL doesn't allow Ethertalk on any of its
-networks so we'd have no way of testing this code).
.Pp
A packet trace that crosses a daylight saving time change will give
skewed time stamps
--
Michal Mazurek
gpnotify_minor_fsm)/sizeof(bgpnotify_minor_fsm[0]),
sizeof(bgpnotify_minor_cease)/sizeof(bgpnotify_minor_cease[0]),
sizeof(bgpnotify_minor_cap)/sizeof(bgpnotify_minor_cap[0]),
};
--
Michal Mazurek
)
ph = (const struct pkt_hdr *)hdr;
len -= sizeof(*ph);
- if (len < 0 || (u_char *)(ph + 1) <= snapend) {
+ if ((u_char *)(ph + 1) <= snapend) {
if (ph->ph_flags)
printf("*");
switch (ph->ph_type) {
--
Michal Mazurek
r_update[0]),
- 0,
- 0,
+ sizeof(bgpnotify_minor_holdtime)/sizeof(bgpnotify_minor_holdtime[0]),
+ sizeof(bgpnotify_minor_fsm)/sizeof(bgpnotify_minor_fsm[0]),
sizeof(bgpnotify_minor_cease)/sizeof(bgpnotify_minor_cease[0]),
sizeof(bgpnotify_minor_cap)/sizeof(bgpnotify_minor_cap[0]),
};
--
Michal Mazurek
nerating them rather than
.Nm tcpdump .
-.Pp
-Apple Ethertalk DDP packets could be dumped as easily as KIP DDP packets
-but aren't.
-Even if we were inclined to do anything to promote the use of Ethertalk
-(we aren't, LBL doesn't allow Ethertalk on any of its
-networks so we'd have no way of testing this code).
.Pp
A packet trace that crosses a daylight saving time change will give
skewed time stamps
--
Michal Mazurek
);
if (isrdr) {
- if (!rs->rdr->rport.b && rs->rdr->rport.t && np->port != NULL) {
+ if (!rs->rdr->rport.b && rs->rdr->rport.t) {
rpool->proxy_port[1] = ntohs(rs->rdr->rport.a) +
(ntohs(np->port[1]) - ntohs(np->port[0]));
} else
--
Michal Mazurek
("-\t---\t---\n");
+ sort_name_list(opts, &classes);
+ print_name_list(opts, &classes, "");
+ }
+ }
}
+#endif
/* Lookup a fingerprint */
pf_osfp_t
--
Michal Mazurek
erprint_count = 0;
class_count = 0;
}
@@ -980,6 +984,7 @@ get_field(u_char **line, size_t *len, in
}
+#ifdef OSFP_DEBUG
const char *
print_ioctl(struct pf_osfp_ioctl *fp)
{
@@ -1081,3 +1086,4 @@ print_ioctl(struct pf_osfp_ioctl *fp)
return (buf);
}
+#endif
--
Michal Mazurek
* rip the next field ouf of a formatted config file line */
+/* rip the next field out of a formatted config file line */
char *
get_field(u_char **line, size_t *len, int *fieldlen)
{
--
Michal Mazurek
--
Michal Mazurek
fdef OSFP_DEBUG
const char *
print_ioctl(struct pf_osfp_ioctl *fp)
{
@@ -1091,3 +1095,4 @@ print_ioctl(struct pf_osfp_ioctl *fp)
return (buf);
}
+#endif
--
Michal Mazurek
*line, size_t *len, int *fieldlen)
{
char *ret, *ptr = *line;
@@ -989,8 +987,7 @@ get_field(char **line, size_t *len, int
return (ret);
}
-
-const char *
+static const char *
print_ioctl(struct pf_osfp_ioctl *fp)
{
static char buf[1024];
--
Michal Mazurek
On 07:52:28, 19.05.17, Jason McIntyre wrote:
> On Fri, May 19, 2017 at 08:34:54AM +0200, Michal Mazurek wrote:
> > Now that it was commited, what remains is to convert tabs to spaces inside
> > a
> > literal block:
> >
>
> morning.
>
> what's the
rt" ] |
-[ route ] | [ "set tos" tos ] |
- [ [ "!" ] "received-on" ( interface-name | interface-group ) ]
+ "af-to" af "from" ( redirhost | "{" redirhost-list "}" )
+ [ "to" ( redirhost | "{" redirhost-list "}" ) ] |
+ "binat-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] |
+ "rdr-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] |
+ "nat-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] [ "static-port" ] |
+ [ route ] | [ "set tos" tos ] |
+ [ [ "!" ] "received-on" ( interface-name | interface-group ) ]
scrubopts = scrubopt [ [ "," ] scrubopts ]
scrubopt = "no-df" | "min-ttl" number | "max-mss" number |
--
Michal Mazurek
" redirhost-list "}" )
-[ portspec ] [ pooltype ] [ "static-port" ] |
-[ route ] | [ "set tos" tos ] |
-[ [ "!" ] "received-on" ( interface-name | interface-group ) ]
+ "af-to" af "from" ( redirhost | "{" redirhost-list "}" )
+ [ "to" ( redirhost | "{" redirhost-list "}" ) ] |
+ "binat-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] |
+ "rdr-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] |
+ "nat-to" ( redirhost | "{" redirhost-list "}" )
+ [ portspec ] [ pooltype ] [ "static-port" ] |
+ [ route ] | [ "set tos" tos ] |
+ [ [ "!" ] "received-on" ( interface-name | interface-group ) ]
scrubopts = scrubopt [ [ "," ] scrubopts ]
scrubopt = "no-df" | "min-ttl" number | "max-mss" number |
--
Michal Mazurek
On 22:49:38, 20.12.16, Jason McIntyre wrote:
> On Tue, Dec 20, 2016 at 10:58:40PM +0100, Michal Mazurek wrote:
> > While there is nothing wrong with "while true", "while :" is better
> > and used a lot more often in the source tree.
> >
> > OK?
&g
o
ls -l file
sleep 5
done
--
Michal Mazurek
in the directory
.Pa /etc/firmware .
+In addition to that, if the kernel is a ramdisk kernel, the extra
+directory
+.Pa /mnt/etc/firmware
+will also be used for the lookup.
Memory for the firmware is allocated using
.Xr malloc 9
with type
--
Michal Mazurek
drive in
/mnt and reload the interface:
+
+
+ifconfig iwm0 down
+ifconfig iwm0 up
+
+
+And then unmount the drive.
+
+
+Be aware that the installer uses /mnt to copy the
+distribution sets to disk, and thus loading the firmware must be
+performed before it is started.
--
Michal Mazurek
1,
or 79 columns if none of
.Dv stdout ,
.Dv stderr
--
Michal Mazurek
16 19:24:51 -
@@ -543,7 +543,7 @@ If set to a positive integer,
output is formatted to the given width in columns.
Otherwise,
.Nm
-defaults to the terminal width \(mi 1,
+defaults to the terminal width \(mi1,
or 79 columns if none of
.Dv stdout ,
.Dv stderr
--
Michal Mazurek
1.20
+++ lib/libc/gen/err.3 14 Sep 2016 07:28:26 -
@@ -189,6 +189,10 @@ if ((fd = open(block_device, O_RDONLY, 0
.Xr perror 3 ,
.Xr printf 3 ,
.Xr strerror 3
+.Sh STANDARDS
+These functions are
+.Bx
+extensions.
.Sh HISTORY
The functions
.Fn err ,
--
Michal Mazurek
(&p, "../compile/%s", last_component) == -1)
+ err(1, NULL);
}
defbuilddir = (argc == 0) ? "." : p;
--
Michal Mazurek
#include "pathnames.h"
--
Michal Mazurek
== NULL)
+ if (asprintf(&cp, "%s,%s", s0, s1) == -1)
err(1, NULL);
- (void)snprintf(cp, i, "%s,%s", s0, s1);
} else
cp = strdup(s1);
free(s0);
- return (cp);
+ return cp;
}
void
--
Michal Mazurek
7 @@ DASM= ${ASM:.o=.do}
# syscalls that CANNOT FAIL. They can return whatever value they want,
# they just never want to set errno.
ASM_NOERR=__get_tcb.o __set_tcb.o __threxit.o __thrsleep.o __thrwakeup.o \
+ futex.o \
getdtablecount.o getegid.o geteuid.o getgid.o getlogin_r.o \
getpgrp.o getpid.o getppid.o getrtable.o getthrid.o getuid.o \
issetugid.o \
--
Michal Mazurek
lf, 0, NULL, &mutex->lock.ticket,
+ error = __thrsleep(self, 0, NULL, &mutex->lock,
&self->delayed_cancel);
/*
Index: lib/librthread/rthread_tls.c
===
RCS file:
clock_gettime 2
+clock id.
.El
.Pp
.Fn __thrwakeup
--
Michal Mazurek
rror = __thrsleep(self, 0 | _USING_TICKETS, NULL,
- &mutex->lock.ticket, &self->delayed_cancel);
+ error = __thrsleep(self, 0, NULL, &mutex->lock.ticket,
+ &self->delayed_cancel);
/*
* If we took a normal signal (not from
--
Michal Mazurek
r outgoing packets.
.It Fl v
--
Michal Mazurek
-
@@ -39,8 +39,6 @@
#define CLOCK_UPTIME 5
#if __BSD_VISIBLE
-#define__CLOCK_USE_TICKET_LOCKS8 /* flag for
__thrsleep() */
-
/*
* Per-process and per-thread clocks encode the PID or TID into the
* high bits, with the type in the bottom bits
--
Michal Mazurek
LOCK_UPTIME 5
#if __BSD_VISIBLE
-#define__CLOCK_USE_TICKET_LOCKS8 /* flag for
__thrsleep() */
-
/*
* Per-process and per-thread clocks encode the PID or TID into the
* high bits, with the type in the bottom bits
--
Michal Mazurek
It Fl v
--
Michal Mazurek
@@ -176,6 +176,7 @@ Specifies the number of data bytes to be
The default is 56,
which translates into 64 ICMP data bytes
when combined with the 8 bytes of ICMP header data.
+The maximum packet size is 65467.
.It Fl T Ar toskeyword
Change IPv4 TOS value.
.Ar toskeyword
--
Michal Mazurek
On 12:12:11, 2.09.16, Ted Unangst wrote:
> Michal Mazurek wrote:
> > worms(6) does this more concisely:
> >
> > errx(1, "length (2-1024) is %s: %s", errstr,
>
> there's multiple schools of thought here, but i've always preferred somewhat
>
);
if (setsockopt(s, SOL_SOCKET, SO_RTABLE, &rtableid,
sizeof(rtableid)) == -1)
err(1, "setsockopt SO_RTABLE");
--
Michal Mazurek
scallargs.h 27 Jun 2016 16:52:01 - 1.185
+++ sys/sys/syscallargs.h 2 Sep 2016 13:10:02 -
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscallargs.h,v 1.185 2016/06/27 16:52:01 jsing Exp $ */
+/* $OpenBSD$ */
/*
* System call argument lists.
@@ -1098,6 +1098,15 @@ struct sys___set_tcb_args {
syscallarg(void *) tcb;
};
+struct sys_futex_args {
+ syscallarg(void *) uaddr;
+ syscallarg(int) futex_op;
+ syscallarg(int) val;
+ syscallarg(const struct timespec *) tp;
+ syscallarg(int *) uaddr2;
+ syscallarg(int) val3;
+};
+
/*
* System call prototypes.
*/
@@ -1347,3 +1356,4 @@ int sys_symlinkat(struct proc *, void *,
intsys_unlinkat(struct proc *, void *, register_t *);
intsys___set_tcb(struct proc *, void *, register_t *);
intsys___get_tcb(struct proc *, void *, register_t *);
+intsys_futex(struct proc *, void *, register_t *);
--
Michal Mazurek
if (SCARG(uap, pid) < THREAD_PID_OFFSET && tr->ps_single)
--
Michal Mazurek
not need locks
sycall_flags = sprintf("SY_NOLOCK | %s", sycall_flags)
f++
--
Michal Mazurek
*, size_t);
int ktruser(struct proc *, const char *, const void *, size_t);
void ktrexec(struct proc *, int, const char *, ssize_t);
void ktrpledge(struct proc *, int, uint64_t, int);
--
Michal Mazurek
2014 04:31:42 - 1.23
+++ sys/sys/sem.h 1 Sep 2016 07:22:26 -
@@ -195,4 +195,4 @@ int semop(int, struct sembuf *, size_t);
__END_DECLS
#endif /* !_KERNEL */
-#endif /* !_SEM_H_ */
+#endif /* !_SYS_SEM_H_ */
--
Michal Mazurek
p->p_wchan = 0;
- TAILQ_REMOVE(qp, p, p_runq);
+ TAILQ_REMOVE(&slpque, p, p_runq);
if (p->p_stat == SSLEEP)
setrunnable(p);
}
--
Michal Mazurek
- return l < r ? -1 : (l > r);
+ vaddr_t vl = (vaddr_t)l;
+ vaddr_t vr = (vaddr_t)r;
+
+ return vl < vr ? -1 : (vl > vr);
}
RB_PROTOTYPE(hiballoc_addr, hiballoc_entry, hibe_entry, hibe_cmp)
--
Michal Mazurek
ktrpledge(p, error, code, p->p_pledge_syscall);
+ if (KTRPOINT(p, KTR_PLEDGE))
+ ktrpledge(p, error, code, p->p_pledge_syscall);
#endif
/* Send uncatchable SIGABRT for coredump */
memset(&sa, 0, sizeof sa);
--
Michal Mazurek
#x27;:
+ facs |= KTRFAC_PLEDGE;
break;
case '+':
facs |= DEF_POINTS;
--
Michal Mazurek
*path"
@@ -70,12 +67,6 @@ Possible values for the
.Fa type
argument are a mask of the KTRFAC_ values described in
.Xr ktrace 2 .
-.Pp
-.Fn ktremul
-should be called every time emulation for the execution environment
-is changed and thus the name of which is given in the
-.Fa name
-argument.
.Pp
.Fn ktrgenio
should be called for each generic input/output transaction that is
--
Michal Mazurek
_ value described in
.Xr ktrace 2 .
.Pp
.Fn ktremul
--
Michal Mazurek
On 19:55:48, 11.05.16, Ingo Schwarze wrote:
> Hi,
>
> Michal Mazurek wrote on Wed, May 11, 2016 at 10:41:03AM +0200:
>
> > * add explicit RETURN VALUES section
> > * add an EXAMPLES section, from NetBSD and FreeBSD
> > * mention memmem(3)
>
> Committed with
har *arg; /* argument that caused the error */
};
extern struct errs errs[];
--
Michal Mazurek
o Bar Baz";
+const char *smallstring = "Bar";
+char *ptr;
+
+ptr = strstr(largestring, smallstring);
+.Ed
.Sh SEE ALSO
.Xr memchr 3 ,
+.Xr memmem 3 ,
.Xr strchr 3 ,
.Xr strcspn 3 ,
.Xr strpbrk 3 ,
--
Michal Mazurek
:
+is divided into two main sections:
.Bl -tag -width
.It Sy Macros
User-defined variables may be defined and used later, simplifying the
--
Michal Mazurek
d, but don't define the syscall args structure,
-; and allow it to be "really" varargs.
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name. Other than
--
Michal Mazurek
On 10:22:58, 7.04.16, Martin Natano wrote:
> On Wed, Apr 06, 2016 at 03:42:20PM +0200, Michal Mazurek wrote:
> > MPSAFE is never used, and doesn't look like it's even supported (no
> > matching SY_MPSAFE anywhere).
>
> SY_MPSAFE seems to be unused since it's i
On 10:13:06, 7.04.16, Martin Natano wrote:
> On Wed, Apr 06, 2016 at 09:47:35AM +0200, Michal Mazurek wrote:
> > relebad used to have more body:
> > relebad:
> > PRELE(t);
> > return (error);
> > But then PRELE(t); was removed. This
n (error);
}
#endif
+ if (lock)
+ KERNEL_LOCK();
error = (*callp->sy_call)(p, argp, retval);
-#if NSYSTRACE > 0
-done:
-#endif
if (lock)
KERNEL_UNLOCK();
--
Michal Mazurek
RDER == _BIG_ENDIAN
#define SCARG(p, k)((p)->k.be.datum) /* get arg from args pointer */
--
Michal Mazurek
soever.
+; OBSOL obsolete, not included in system.
+; STD always included.
+; UNIMPL unimplemented, not included in system.
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name. Other than
--
Michal Mazurek
or init */
@@ -522,9 +522,6 @@ sys_ptrace(struct proc *p, void *v, regi
}
return (0);
-
- relebad:
- return (error);
case PT_KILL:
if (SCARG(uap, pid) < THREAD_PID_OFFSET && tr->ps_single)
--
Michal Mazurek
-
@@ -209,8 +209,6 @@ CPU ID (zero on single processor systems
Current working directory.
.It Cm dsiz
Data size, in Kilobytes.
-.It Cm emul
-Name of system call emulation environment.
.It Cm flags
Alias:
.Cm f .
--
Michal Mazurek
second. When running
tests with it I sometimes observe one cpu is 0.5-1 second behind another,
so I think this is a good next step for this scheduler.
BFS has one shared queue for all CPUs, maybe there is a very good reason
for that, we'll see.
I'd like to thank everyone for all the feedb
On 14:57:40, 15.03.16, Alexandre Ratchov wrote:
> On Sat, Mar 12, 2016 at 05:36:21PM +0100, Michal Mazurek wrote:
> >
> > p_usrpri and p_priority will go away, so userland utilities like 'ps'
> > will need to be changed.
> >
>
> AFAIU, this would hurt
==
RCS file: /cvs/src/sys/sys/sched.h,v
retrieving revision 1.40
diff -u -p -r1.40 sched.h
--- sys/sched.h 9 Mar 2016 13:38:50 - 1.40
+++ sys/sched.h 15 Mar 2016 13:56:58 -
@@ -70,6 +70,7 @@
#define_SYS_SCHED_H_
#include
+#include
/*
* Posix defines a which may want to include
@@ -99,6 +100,7 @@ struct schedstate_percpu {
u_int spc_schedticks; /* ticks for schedclock() */
u_int64_t spc_cp_time[CPUSTATES]; /* CPU state statistics */
u_char spc_curpriority; /* usrpri of curproc */
+ u_int64_t spc_curdeadline;
int spc_rrticks;/* ticks until roundrobin() */
int spc_pscnt; /* prof/stat counter */
int spc_psdiv; /* prof/stat divisor */
@@ -109,6 +111,8 @@ struct schedstate_percpu {
TAILQ_HEAD(prochead, proc) spc_qs[SCHED_NQS];
volatile uint32_t spc_whichqs;
+
+ RB_HEAD(prochead2, proc) spc_rq;
#ifdef notyet
struct proc *spc_reaper;/* dead proc reaper */
--
Michal Mazurek
On 16:41:37, 9.03.16, Michal Mazurek wrote:
> Sorry, I forgot one:
>
>
> Index: sys/sys/sysctl.h
> ===
> RCS file: /cvs/src/sys/sys/sysctl.h,v
> retrieving revision 1.158
> diff -u -p -r1.158 sysctl.h
> -
This was sent during the freeze.
On 14:13:40, 8.02.16, Michal Mazurek wrote:
> These headers appear to be unneeded:
>
> Index: conv.c
> ===
> RCS file: /cvs/src/usr.bin/hexdump/conv.c,v
> retrieving revision
This was sent during the freeze.
On 15:04:28, 8.02.16, Michal Mazurek wrote:
> Move some declarations out of hexdump.h
> Mark some declarations as __dead or static
> Remove a commented out declaration
> Convert some spaces to tabs
>
>
On 16:35:49, 13.03.16, Martin Pieuchot wrote:
> On 12/03/16(Sat) 17:36, Michal Mazurek wrote:
> > [...]
> > Some notes:
> >
> > Chrome is still not very usable.
>
> Are you wanting to improve the browser experience on OpenBSD? If that's
> your goal t
x27;t know how to replace the call to
sched_yield(), or whether it is a good idea to do so. Any advice?
--
Michal Mazurek
ee.3 13 Mar 2016 09:57:24 -
@@ -549,6 +549,8 @@ main()
return (0);
}
.Ed
+.Sh SEE ALSO
+.Xr queue 3
.Sh NOTES
Trying to free a tree in the following way is a common error:
.Bd -literal -offset indent
--
Michal Mazurek
* !_SYS_PROC_H_ */
-
Index: sys/sys/sched.h
===
RCS file: /cvs/src/sys/sys/sched.h,v
retrieving revision 1.40
diff -u -p -r1.40 sched.h
--- sys/sys/sched.h 9 Mar 2016 13:38:50 - 1.40
+++ sys/sys/sched.h 12 Mar 2016 15:48:37 -
@@ -70,
fine cpu_is_idle(ci)((ci)->ci_schedstate.spc_whichqs == 0)
void sched_init_runqueues(void);
void setrunqueue(struct proc *);
--
Michal Mazurek
On 09:42:32, 9.03.16, Michal Mazurek wrote:
> On 22:47:08, 8.03.16, Martin Pieuchot wrote:
> > On 08/03/16(Tue) 10:01, Michal Mazurek wrote:
> > > p_cpu exists, but p_usrpri isn't based on it.
> >
> > Michal I lost track of all your comment fixes. One of
On 22:47:08, 8.03.16, Martin Pieuchot wrote:
> On 08/03/16(Tue) 10:01, Michal Mazurek wrote:
> > p_cpu exists, but p_usrpri isn't based on it.
>
> Michal I lost track of all your comment fixes. One of the accepted
> rules when we read code is that comments are always lyin
_nice;/* U_CHAR: Process "nice" value. */
u_int16_t p_xstat; /* U_SHORT: Exit status for wait; also
stop signal. */
--
Michal Mazurek
#if(FSHIFT >= CCPU_SHIFT)
p->p_pctcpu += (phz == 100)?
--
Michal Mazurek
EP || p->p_stat == SSTOP)
p->p_slptime++;
@@ -715,4 +714,3 @@ sysctl_hwperfpolicy(void *oldp, size_t *
return 0;
}
#endif
-
--
Michal Mazurek
On 11:32:04, 5.03.16, Philip Guenther wrote:
> On Sat, Mar 5, 2016 at 8:10 AM, Michal Mazurek wrote:
> > sys/compat is gone. I don't know if PID_MAX can or should be increased,
> > but I don't think the comment is now useful.
>
> I think we can go a bit further n
ess group".
- * We set PID_MAX to (SHRT_MAX - 1) so we don't break sys/compat.
+ * We set PID_MAX to (SHRT_MAX - 1) for historical reasons.
*/
#definePID_MAX 32766
#defineNO_PID (PID_MAX+1)
--
Michal Mazurek
On 16:20:11, 1.03.16, Michal Mazurek wrote:
>
> Index: sys/kern/sched_bsd.c
> ===
> RCS file: /cvs/src/sys/kern/sched_bsd.c,v
> retrieving revision 1.42
> diff -u -p -r1.42 sched_bsd.c
> --- sys/kern/sched_bsd
urns the thread ID of the subsequent thread.
+The
+.Dq Li struct ptrace_thread_state
+pointed to by
+.Fa addr
+must be initialized by a previous
+.Dv PT_GET_THREAD_FIRST
+or
+.Dv PT_GET_THREAD_NEXT
+request.
.El
.Pp
Additionally, machine-specific requests can exist.
--
Michal Mazurek
or init */
@@ -522,9 +522,6 @@ sys_ptrace(struct proc *p, void *v, regi
}
return (0);
-
- relebad:
- return (error);
case PT_KILL:
if (SCARG(uap, pid) < THREAD_PID_OFFSET && tr->ps_single)
--
Michal Mazurek
PS_BITS \
("\20" "\01CONTROLT" "\02EXEC" "\03INEXEC" "\04EXITING" "\05SUGID" \
--
Michal Mazurek
ern_proc.c11 Sep 2015 08:27:39 - 1.65
+++ sys/kern/kern_proc.c4 Mar 2016 12:36:26 -
@@ -150,7 +150,7 @@ chgproccnt(uid_t uid, int diff)
}
/*
- * Is p an inferior of parent?
+ * Is pr an inferior of parent?
*/
int
inferior(struct process *pr, struct process *parent)
--
Michal Mazurek
1 - 100 of 157 matches
Mail list logo