Up to [local] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 22 20:03:05 2023 UTC (8 months, 2 weeks ago) by mvs
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
HEAD
Changes since 1.77: +43 -17 lines
Diff to previous 1.77 (colored)
Make `logread_filterops' MP safe. For that purpose use `log_mtx' mutex(9) protecting message buffer. ok bluhm
Revision 1.77 / (download) - annotate - [select for diffs], Fri Jul 14 07:07:08 2023 UTC (10 months, 4 weeks ago) by claudio
Branch: MAIN
Changes since 1.76: +3 -5 lines
Diff to previous 1.76 (colored)
struct sleep_state is no longer used, remove it. Also remove the priority argument to sleep_finish() the code can use the p_flag P_SINTR flag to know if the signal check is needed or not. OK cheloha@ kettenis@ mpi@
Revision 1.76 / (download) - annotate - [select for diffs], Wed Jun 28 08:23:25 2023 UTC (11 months, 2 weeks ago) by claudio
Branch: MAIN
Changes since 1.75: +4 -3 lines
Diff to previous 1.75 (colored)
First step at removing struct sleep_state. Pass the timeout and sleep priority not only to sleep_setup() but also to sleep_finish(). With that sls_timeout and sls_catch can be removed from struct sleep_state. The timeout is now setup first thing in sleep_finish() and no longer as last thing in sleep_setup(). This should not cause a noticeable difference since the code run between sleep_setup() and sleep_finish() is minimal. OK kettenis@
Revision 1.75 / (download) - annotate - [select for diffs], Sat Jul 2 08:50:42 2022 UTC (23 months, 1 week ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.74: +1 -18 lines
Diff to previous 1.74 (colored)
Remove unused device poll functions. Also remove unneeded includes of <sys/poll.h> and <sys/select.h>. Some addenda from jsg@. OK miod@ mpi@
Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 18 08:43:38 2021 UTC (3 years, 2 months ago) by mvs
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.73: +56 -39 lines
Diff to previous 1.73 (colored)
Unlock sendsyslog(2). Console output still requires kernel lock to be held but this path is only followed while `syslogf' socket is not set. New `syslogf_rwlock' used to protect `syslogf' access. ok bluhm@
Revision 1.73 / (download) - annotate - [select for diffs], Tue Mar 9 15:08:23 2021 UTC (3 years, 3 months ago) by bluhm
Branch: MAIN
Changes since 1.72: +154 -28 lines
Diff to previous 1.72 (colored)
Early daemons like dhcpleased(8), slaacd(8), unwind(8), resolvd(8) are started before syslogd(8). This resulted in ugly sendsyslog(2) dropped logs and the real message was lost. Create a temporary stash for log messages within the kernel. It has a limited size of 100 messages, and each message is truncated to 8192 bytes. When the stash is exhausted, the well-known dropped message is generated with a counter. After syslogd(8) has setup everything, it sends a debug line through libc to flush the kernel stash. Then syslogd receives all messages from the kernel before the usual logs. OK deraadt@ visa@
Revision 1.72 / (download) - annotate - [select for diffs], Mon Feb 8 08:18:45 2021 UTC (3 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.71: +3 -5 lines
Diff to previous 1.71 (colored)
Simplify sleep_setup API to two operations in preparation for splitting the SCHED_LOCK(). Putting a thread on a sleep queue is reduce to the following: sleep_setup(); /* check condition or release lock */ sleep_finish(); Previous version ok cheloha@, jmatthew@, ok claudio@
Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 8 11:23:57 2021 UTC (3 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.70: +15 -4 lines
Diff to previous 1.70 (colored)
Fix boot-time crash on sparc64 On sparc64, initmsgbuf() is invoked before curcpu() is usable on the boot processor. Consequently, it is unsafe to use mutexes during the message buffer initialization. Avoid such use by skipping log_mtx when appending a newline from initmsgbuf(). Use mbp instead of msgbufp as the buffer argument to the putchar routine for consistency. Bug reported and fix suggested by miod@
Revision 1.70 / (download) - annotate - [select for diffs], Fri Dec 25 12:59:52 2020 UTC (3 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)
Refactor klist insertion and removal Rename klist_{insert,remove}() to klist_{insert,remove}_locked(). These functions assume that the caller has locked the klist. The current state of locking remains intact because the kernel lock is still used with all klists. Add new functions klist_insert() and klist_remove() that lock the klist internally. This allows some code simplification. OK mpi@
Revision 1.69 / (download) - annotate - [select for diffs], Sun Oct 25 10:55:42 2020 UTC (3 years, 7 months ago) by visa
Branch: MAIN
Changes since 1.68: +62 -28 lines
Diff to previous 1.68 (colored)
Serialize msgbuf access with a mutex. This introduces a system-wide mutex that serializes msgbuf operations. The mutex controls access to all modifiable fields of struct msgbuf. It also covers logsoftc.sc_state. To avoid adding extra lock order constraints that would affect use of printf(9), the code does not take new locks when the log mutex is held. The code assumes that there is at most one thread using logread(). This keeps the logic simple. If there was more than one reader, logread() might return the same data to different readers. Also, log wakeup might not be reliable with multiple threads. Tested in snaps for two weeks. OK mpi@
Revision 1.68 / (download) - annotate - [select for diffs], Tue Aug 18 13:41:49 2020 UTC (3 years, 9 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.67: +21 -16 lines
Diff to previous 1.67 (colored)
Fix kn_data returned by filt_logread(). Take into account the circular nature of the message buffer when computing the number of available bytes. Move the computation into a separate function and use it with the kevent(2) and ioctl(2) interfaces. OK mpi@
Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 18 13:38:24 2020 UTC (3 years, 9 months ago) by visa
Branch: MAIN
Changes since 1.66: +1 -2 lines
Diff to previous 1.66 (colored)
Remove an unnecessary field from struct msgbuf. OK mvs@
Revision 1.66 / (download) - annotate - [select for diffs], Tue Apr 7 13:27:51 2020 UTC (4 years, 2 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)
Abstract the head of knote lists. This allows extending the lists, for example, with locking assertions. OK mpi@, anton@
Revision 1.65 / (download) - annotate - [select for diffs], Thu Feb 20 16:56:52 2020 UTC (4 years, 3 months ago) by visa
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)
Replace field f_isfd with field f_flags in struct filterops to allow adding more filter properties without cluttering the struct. OK mpi@, anton@
Revision 1.64 / (download) - annotate - [select for diffs], Sat Jan 11 14:30:24 2020 UTC (4 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored)
Convert infinite sleeps to tsleep_nsec(9). ok bluhm@
Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 8 16:27:41 2020 UTC (4 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.62: +5 -5 lines
Diff to previous 1.62 (colored)
Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP and FIOGETOWN/SIOCGPGRP/TIOCGPGRP. Do this by determining the meaning of the ID parameter inside the sigio code. Also add cases for FIOSETOWN and FIOGETOWN where there have been TIOCSPGRP and TIOCGPGRP before. These changes allow removing the ID translation from sys_fcntl() and sys_ioctl(). Idea from NetBSD OK mpi@, claudio@
Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 2 20:50:06 2020 UTC (4 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.61: +9 -11 lines
Diff to previous 1.61 (colored)
Change /dev/log to use pgsigio(9) and sigio_init(9) like it was done for bpf(4) and tun(4) instead of using hand rolled code using csignal(). OK visa@
Revision 1.61 / (download) - annotate - [select for diffs], Tue Dec 31 13:48:32 2019 UTC (4 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.60: +7 -3 lines
Diff to previous 1.60 (colored)
Use C99 designated initializers with struct filterops. In addition, make the structs const so that the data are put in .rodata. OK mpi@, deraadt@, anton@, bluhm@
Revision 1.60 / (download) - annotate - [select for diffs], Tue Dec 24 12:56:07 2019 UTC (4 years, 5 months ago) by bluhm
Branch: MAIN
Changes since 1.59: +4 -9 lines
Diff to previous 1.59 (colored)
The console buffer is allocated during startup. initconsbuf() is only called from main(). There allocation must not fail, so better use M_WAITOK and remove error handling. As it is not a temporary buffer, M_TTYS is more appropriate. OK deraadt@ mpi@
Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 24 03:31:49 2019 UTC (4 years, 7 months ago) by visa
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)
Make log tick interval independent of hz and reduce the frequency so that the timeout would not be scheduled on every tick. Discussed with and OK mpi@
Revision 1.58 / (download) - annotate - [select for diffs], Thu Jun 20 04:31:33 2019 UTC (4 years, 11 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.57: +41 -1 lines
Diff to previous 1.57 (colored)
Work around locking issues in logwakeup(). Instead of actually waking up waiters, just set a flag in logwakeup(). The flag is later noted through periodic polling. This lets the wakeup code run with sufficient locking. logwakeup() is a very tricky place to take locks because the function can be called in many different contexts. By not requiring locks in the routine helps to keep printf(9) as usable as possible. OK mpi@
Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 17 00:21:28 2019 UTC (4 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.56: +8 -15 lines
Diff to previous 1.56 (colored)
dosendsyslog() must only pass ktrgenio(9) userspace buffers that it can use copyin() on. While here: just put the struct iovec for ktrace on the stack instead of mallocing and freeing it. problem debugged by patrick@ ok deraadt@ mpi@
Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 30 12:22:14 2018 UTC (5 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)
Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O mode for sockets is non-blocking. This allows us to G/C SS_NBIO. Having to keep the two flags in sync in a mp-safe way is complicated. This change introduce a behavior change in sosplice(), it can now always block. However this should not matter much due to the socket lock being taken beforhand. ok bluhm@, benno@, visa@
Revision 1.55 / (download) - annotate - [select for diffs], Mon Feb 19 08:59:52 2018 UTC (6 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)
Remove almost unused `flags' argument of suser(). The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
Revision 1.54 / (download) - annotate - [select for diffs], Tue Oct 17 08:29:43 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.53: +10 -6 lines
Diff to previous 1.53 (colored)
Print the pid of the most recent program that failed to send a log via sendsyslog(2) along with the corresponding errno. Help when troubleshooting which program is triggering an error, like an overflow. ok bluhm@
Revision 1.53 / (download) - annotate - [select for diffs], Mon Sep 25 23:00:33 2017 UTC (6 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)
sendsyslog should take a const char * everywhere. okay bluhm@, deraadt@
Revision 1.52 / (download) - annotate - [select for diffs], Tue Aug 8 14:23:23 2017 UTC (6 years, 10 months ago) by bluhm
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)
Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict and truncate the length of a syslog message to 8192 bytes. Use one global define LOG_MAXLINE for all of them. OK deraadt@ millert@
Revision 1.48.2.1 / (download) - annotate - [select for diffs], Wed Aug 2 16:48:43 2017 UTC (6 years, 10 months ago) by deraadt
Branch: OPENBSD_6_0
Changes since 1.48: +4 -1 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)
Both syslog(3) and syslogd(8) truncate the message at 8192 bytes. Do the same in sendsyslog(2). reported by Ilja Van Sprundel errata 30
Revision 1.50.4.1 / (download) - annotate - [select for diffs], Tue Aug 1 21:58:24 2017 UTC (6 years, 10 months ago) by bluhm
Branch: OPENBSD_6_1
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)
Both syslog(3) and syslogd(8) truncate the message at 8192 bytes. Do the same in sendsyslog(2). reported by Ilja Van Sprundel errata 016
Revision 1.51 / (download) - annotate - [select for diffs], Tue Jul 18 22:22:19 2017 UTC (6 years, 10 months ago) by bluhm
Branch: MAIN
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored)
Both syslog(3) and syslogd(8) truncate the message at 8192 bytes. Do the same in sendsyslog(2) and document the behavior. reported by Ilja Van Sprundel; OK millert@ deraadt@
Revision 1.50 / (download) - annotate - [select for diffs], Mon Mar 27 11:45:49 2017 UTC (7 years, 2 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE
Branch point for: OPENBSD_6_1
Changes since 1.49: +9 -7 lines
Diff to previous 1.49 (colored)
Reorder FREF() and FRELE() in a way that the the global variable syslogf always points to a file object with increased reference count. This makes the implementation independent from the fact whether changing the reference counter may sleep. pointed out by Mateusz Guzik; OK deraadt@
Revision 1.49 / (download) - annotate - [select for diffs], Fri Mar 24 16:42:38 2017 UTC (7 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.48: +10 -7 lines
Diff to previous 1.48 (colored)
There was a race in dosendsyslog() which resulted in a crash. sosend(syslogf->f_data, ...) could be called with a NULL pointer. syslogf was not NULL, f_data was NULL and f_count was 1. The file structure is ref counted, but the global variable syslogf is not protected. So it may change during sleep and dosendsyslog() possibly used a different socket at each access. Solution is to access syslogf only once, use a local copy, and do the ref counting there. OK millert@ deraadt@
Revision 1.48 / (download) - annotate - [select for diffs], Thu Jun 23 15:41:42 2016 UTC (7 years, 11 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE
Branch point for: OPENBSD_6_0
Changes since 1.47: +6 -9 lines
Diff to previous 1.47 (colored)
As klog dropped message has no ifdef small kernel, sendsyslog should not have it either. While there bring some variables in sync between both functions. OK deraadt@
Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 23 13:15:21 2016 UTC (7 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.46: +15 -1 lines
Diff to previous 1.46 (colored)
It is annoying that the dmesg buffer can overflow and loose messages undetected during debugging. To make clear what happens, count the dropped bytes and write message buffer full to syslogd. This also helps to have a reliable log system. OK deraadt@ millert@ tedu@
Revision 1.46 / (download) - annotate - [select for diffs], Wed Jun 8 11:11:47 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.45: +21 -15 lines
Diff to previous 1.45 (colored)
As logging to dmesg with msgbuf_putchar() can happen in any interrupt handler, every access to msg buf counters should be protected by splhigh(). This is already done in some places, make it consistenly everywhere. OK mpi@ deraadt@
Revision 1.45 / (download) - annotate - [select for diffs], Tue May 31 22:12:26 2016 UTC (8 years ago) by deraadt
Branch: MAIN
Changes since 1.44: +1 -16 lines
Diff to previous 1.44 (colored)
sys_osendsyslog can go away; we have transitioned to the new version with a flags argument ok guenther sthen
Revision 1.44 / (download) - annotate - [select for diffs], Thu May 19 09:40:30 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)
All msg buf counters are long, so lmin(9) should be used for them. OK deraadt@ natano@
Revision 1.43 / (download) - annotate - [select for diffs], Wed May 18 23:42:12 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)
Kill trailing whitespaces.
Revision 1.42 / (download) - annotate - [select for diffs], Wed May 18 23:28:43 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.41: +21 -23 lines
Diff to previous 1.41 (colored)
Use constty and cn_devvp for checking wether to use cnwrite(). That makes console redirection with senssyslog(2) and LOG_CONS work again. Also merge the two if else if else blocks into one. OK deraadt@
Revision 1.41 / (download) - annotate - [select for diffs], Tue May 17 23:43:47 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.40: +29 -5 lines
Diff to previous 1.40 (colored)
Allow sendsyslog(2) with LOG_CONS even when /dev/console has not been opened during init(8). Only log with cnwrite() if cn_devvp exists, otherwise use cnputc() as fallback. While there move extern declarations to dev/cons.h. input and OK deraadt@
Revision 1.40 / (download) - annotate - [select for diffs], Tue May 17 23:28:03 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)
Backout the previous fix for the sendsyslog(2) with LOG_CONS solution. Permanently holding /dev/console open in the kernel works only until init(8) calls revoke(2). After that the console device vnode cannot be used anymore. It still resulted in a hanging init(8) if it tried to syslog(3) something. With the backout also dmesg -s works again.
Revision 1.39 / (download) - annotate - [select for diffs], Tue May 10 23:54:00 2016 UTC (8 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)
If sendsyslog(2) is called with LOG_CONS before syslogd(8) has been started and before init(8) has opened the console, the kernel could crash as the console device has not been initialized. Open /dev/console in the kernel before starting init(8) and keep it open. This way sendsyslog(2) can be called early in the system. OK beck@ deraadt@
Revision 1.38 / (download) - annotate - [select for diffs], Mon Mar 21 22:41:29 2016 UTC (8 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored)
Rename the system call sendsyslog2 to sendsyslog. Keep the old one as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 13 17:05:25 2016 UTC (8 years, 4 months ago) by stefan
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.36: +7 -6 lines
Diff to previous 1.36 (colored)
Convert to uiomove(); from Martin Natano, thanks! ok deraadt@
Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 7 12:27:07 2016 UTC (8 years, 5 months ago) by bluhm
Branch: MAIN
Changes since 1.35: +32 -4 lines
Diff to previous 1.35 (colored)
In sendsyslogd(2) strip off syslog priority when logging to console. OK deraadt@ millert@
Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 1 19:15:00 2016 UTC (8 years, 5 months ago) by bluhm
Branch: MAIN
Changes since 1.34: +32 -31 lines
Diff to previous 1.34 (colored)
The pointer buf is a user space string which was directly passed to tputchar() and could crash the kernel. Better use cnwrite() in sendsyslog2() for writing to console. It takes a struct uio which does the copyin() automatically. In addition cnwrite() outputs to the real console or to a redirected one, whichever is appropriate. One drawback is that the syslog priority cannot be stripped off easily. OK deraadt@
Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 5 10:11:53 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.33: +1 -6 lines
Diff to previous 1.33 (colored)
remove stale lint annotations
Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 24 23:59:22 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +40 -7 lines
Diff to previous 1.32 (colored)
Add sendsyslog2(), which accepts the syslog/openlog "logopt" flag LOG_CONS. If syslogd is not accepting messages, direct them to the console. This allows us to remove the direct /dev/console opening code from the bowels of libc. Of course, that forgotten code was exposed by pledge. ok kettenis millert beck
Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 11 12:33:36 2015 UTC (8 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)
The must be no space after the syslog priority in the sendsyslog(2) dropped message error log. OK benno@
Revision 1.31 / (download) - annotate - [select for diffs], Wed Sep 2 13:21:37 2015 UTC (8 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.30: +40 -4 lines
Diff to previous 1.30 (colored)
To make logging to local syslog reliable, log a message about failed log atempts. sendsyslog(2) is a good place to detect and report the problem. OK deraadt@
Revision 1.30 / (download) - annotate - [select for diffs], Wed May 6 08:52:17 2015 UTC (9 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
Pass a thread pointer instead of its file descriptor table to getsock(9). Diff from Vitaliy Makkoveev. Manpage tweak and ok millert@
Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:50 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 10 21:56:09 2015 UTC (9 years, 4 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)
First step towards making uiomove() take a size_t size argument: - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 13 18:51:27 2015 UTC (9 years, 4 months ago) by kettenis
Branch: MAIN
Changes since 1.26: +7 -1 lines
Diff to previous 1.26 (colored)
Many architectures call initmsgbuf() really really early, before uvm is initialized. Calling malloc(9) at that point is not a good idea. So initialize consbuf later. Fixes dmesg -s on sparc64 (and probably a few other architectures). ok miod@, deraadt@
Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 13 10:07:58 2015 UTC (9 years, 4 months ago) by mpf
Branch: MAIN
Changes since 1.25: +13 -7 lines
Diff to previous 1.25 (colored)
Add dmesg -s support, to view the output of rc(8) system startup messages. Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 13 21:05:33 2014 UTC (9 years, 6 months ago) by doug
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)
yet more mallocarray() changes. ok tedu@ deraadt@
Revision 1.24 / (download) - annotate - [select for diffs], Wed Dec 10 02:44:47 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)
convert bcopy to memcpy. ok millert
Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 3 03:08:00 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)
pass size argument to free() ok doug tedu
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 28 20:30:01 2014 UTC (9 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.21: +6 -2 lines
Diff to previous 1.21 (colored)
I/O ktrace of sendsyslog(2) did not work. As uiomove() adjusts iov_len to 0, we need a propper length calculation. While there, use -1 for the file descriptor because 0 is reserved for stdin. OK deraadt@ guenther@
Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 12 18:43:32 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 10 08:55:35 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +79 -2 lines
Diff to previous 1.19 (colored)
Add new sendsyslog(const char *, size_t) system call which simply passes a message up into syslogd's /dev/log interface. This will be used to make syslog_r work during file descriptor exhaustion, or inside sandboxes which prohibit socket, connect, sendto, etc. The system call is being added about a week before the library and daemon changes. ok guenther tedu miod matthew
Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 30 21:54:48 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Eliminates struct pcred by moving the real and saved ugids into struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 21 01:48:44 2014 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
bzero -> memset
Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 2 22:20:08 2011 UTC (12 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
kqueue attach functions should return an errno or 0, not a plain 1. Fix the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 9 17:53:39 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)
Every selwakeup() should have a matching KNOTE() (even if kqueue isn't supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 3 17:51:03 2007 UTC (16 years, 9 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
unsupported ioctl's should be returned with ENOTTY not -1; ok miod@
Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 9 09:09:52 2005 UTC (18 years, 6 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.13: +8 -27 lines
Diff to previous 1.13 (colored)
ansi and deregister. No binary change.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Apr 20 00:08:50 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)
knf
Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 14 21:58:50 2005 UTC (19 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.11: +28 -5 lines
Diff to previous 1.11 (colored)
Try to start log message buffer on a new line. Helps install scripts avoid detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@.
Revision 1.5.12.5 / (download) - annotate - [select for diffs], Thu Feb 19 10:56:37 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.5.12.4: +14 -17 lines
Diff to previous 1.5.12.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)
Merge of current from two weeks agointo the SMP branch
Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 23 16:51:12 2003 UTC (20 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B,
SMP_SYNC_A,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.10: +11 -13 lines
Diff to previous 1.10 (colored)
Replace select backends with poll backends. selscan() and pollscan() now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 21 22:44:50 2003 UTC (20 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.9: +4 -5 lines
Diff to previous 1.9 (colored)
remove caddr_t casts. it's just silly to cast something when the function takes a void *. convert uiomove to take a void * as well. ok deraadt@
Revision 1.5.12.4 / (download) - annotate - [select for diffs], Sat Jun 7 11:03:40 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.5.12.3: +2 -6 lines
Diff to previous 1.5.12.3 (colored) to branchpoint 1.5 (colored)
Sync SMP branch to -current
Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:06 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.8: +2 -6 lines
Diff to previous 1.8 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.5.12.3 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:27 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.5.12.2: +51 -1 lines
Diff to previous 1.5.12.2 (colored) to branchpoint 1.5 (colored)
Sync the SMP branch with 3.3
Revision 1.7.6.1 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:44 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.7: +51 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
sync to -current
Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 29 02:58:14 2002 UTC (21 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: UBC_SYNC_B,
UBC_SYNC_A,
OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.7: +51 -1 lines
Diff to previous 1.7 (colored)
kqfilter for the log. niels said i can commit it if it works and i converted syslog to libevent and it works now (;
Revision 1.5.12.2 / (download) - annotate - [select for diffs], Mon May 14 22:32:43 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.5.12.1: +1 -3 lines
Diff to previous 1.5.12.1 (colored) to branchpoint 1.5 (colored)
merge in approximately 2.9 into SMP branch
Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 6 04:42:07 2001 UTC (23 years, 2 months ago) by csapuntz
Branch: MAIN
CVS Tags: UBC_BASE,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9
Branch point for: UBC
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)
Move offsetof define into sys/param.h
Revision 1.5.12.1 / (download) - annotate - [select for diffs], Thu Mar 2 07:04:40 2000 UTC (24 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.5: +42 -19 lines
Diff to previous 1.5 (colored)
Sync with -current
Revision 1.6 / (download) - annotate - [select for diffs], Tue Feb 22 19:28:03 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.5: +42 -19 lines
Diff to previous 1.5 (colored)
enlarge msgbuf, somewhat line netbsd did
Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 18 13:23:26 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: kame_19991208,
SMP_BASE,
OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2
Branch point for: SMP
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)
it is definately wrong to initialize the pgid at open() time because the uid/euid used for checking in csignal() is controlled by whoever used TIOCSPGRP previously.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 31 20:42:20 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +8 -9 lines
Diff to previous 1.3 (colored)
for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uid and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 21 22:27:17 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1,
OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored)
partial sync with netbsd 960418, more to come
Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 3 17:20:00 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.1: +14 -6 lines
Diff to previous 1.1 (colored)
From NetBSD: 960217 merge
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:52:45 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:52:45 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Initial revision