dragonfly.git
15 years agoFix brain-o.
Simon Schubert [Tue, 11 Oct 2005 13:31:05 +0000 (13:31 +0000)]
Fix brain-o.

Noticed-by: Alexey Slynko, swildner
15 years ago1:1 Userland threading stage 2.8/4:
Simon Schubert [Tue, 11 Oct 2005 09:59:56 +0000 (09:59 +0000)]
1:1 Userland threading stage 2.8/4:

Switch the userland scheduler to use lwps instead of procs.

15 years agoIntroduce pthread_timedjoin_np.
David Xu [Mon, 10 Oct 2005 13:53:57 +0000 (13:53 +0000)]
Introduce pthread_timedjoin_np.

15 years agoIntroduce pthread_timedjoin_np().
David Xu [Mon, 10 Oct 2005 13:46:53 +0000 (13:46 +0000)]
Introduce pthread_timedjoin_np().

15 years agoReplace THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND, this
David Xu [Mon, 10 Oct 2005 13:45:57 +0000 (13:45 +0000)]
Replace THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND, this
fixes the brokeness of pthread_attr_setcreatedsuspend_np.

15 years ago1:1 Userland threading stage 2.7/4:
Simon Schubert [Sun, 9 Oct 2005 21:38:04 +0000 (21:38 +0000)]
1:1 Userland threading stage 2.7/4:

- Retire p_sysmsgq and p_num_sysmsg and use the equivalents in lwp
- convert trap entry and exit points to use lwps

15 years ago1:1 Userland threading stage 2.6/4:
Simon Schubert [Sun, 9 Oct 2005 20:12:34 +0000 (20:12 +0000)]
1:1 Userland threading stage 2.6/4:

Retire p_upcall compat and use lwp_upcall instead.

15 years agoBump subversion in param.h
Matthew Dillon [Sun, 9 Oct 2005 19:02:09 +0000 (19:02 +0000)]
Bump subversion in param.h

Reminded-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years ago1:1 Userland threading stage 2.5/4:
Simon Schubert [Sun, 9 Oct 2005 18:07:55 +0000 (18:07 +0000)]
1:1 Userland threading stage 2.5/4:

Remove compatibility p_dupfd and use the per-lwp one.

15 years ago- Check for execvp returning ENOTDIR
Liam J. Foy [Sun, 9 Oct 2005 15:09:02 +0000 (15:09 +0000)]
- Check for execvp returning ENOTDIR

15 years agoCorrectly initialize n_threads.
Simon Schubert [Sun, 9 Oct 2005 14:50:21 +0000 (14:50 +0000)]
Correctly initialize n_threads.

15 years agoGet sources right so that we don't make depend if not needed.
Simon Schubert [Sun, 9 Oct 2005 14:44:04 +0000 (14:44 +0000)]
Get sources right so that we don't make depend if not needed.

15 years agoAdd rue(4) man page.
Sascha Wildner [Sun, 9 Oct 2005 13:29:50 +0000 (13:29 +0000)]
Add rue(4) man page.

Obtained-from: FreeBSD
Requested-by: sephe
15 years agoSync with FreeBSD's rev. 1.12. This works around an mdoc(7) bug which
Sascha Wildner [Sun, 9 Oct 2005 13:18:40 +0000 (13:18 +0000)]
Sync with FreeBSD's rev. 1.12. This works around an mdoc(7) bug which
was recently discussed on bugs@:

http://leaf.dragonflybsd.org/mailarchive/bugs/2005-09/msg00021.html

15 years ago1:1 Userland threading stage 2.4/4:
Simon Schubert [Sat, 8 Oct 2005 19:46:51 +0000 (19:46 +0000)]
1:1 Userland threading stage 2.4/4:

Introduce p_start and use it.  At the moment td_start is zero
for all kernel threads (no change) and processes (changed).  This
field will be filled in a later commit again.

15 years ago1:1 Userland threading stage 2.3/4:
Simon Schubert [Sat, 8 Oct 2005 14:31:26 +0000 (14:31 +0000)]
1:1 Userland threading stage 2.3/4:

Use p_comm instead of p_thread->td_comm.

15 years ago1:1 Userland threading stage 2.2/4:
Simon Schubert [Sat, 8 Oct 2005 12:24:26 +0000 (12:24 +0000)]
1:1 Userland threading stage 2.2/4:

Move profiling and intervall timer data to struct proc.

15 years agoWhitespace cleanup.
Simon Schubert [Sat, 8 Oct 2005 11:43:02 +0000 (11:43 +0000)]
Whitespace cleanup.

15 years agoRegen.
Simon Schubert [Sat, 8 Oct 2005 11:41:44 +0000 (11:41 +0000)]
Regen.

15 years agoAdd linux_nosys which handles non-existing syscalls like linux does:
Simon Schubert [Sat, 8 Oct 2005 11:41:11 +0000 (11:41 +0000)]
Add linux_nosys which handles non-existing syscalls like linux does:
just return ENOSYS instead of sending a signal.

Taken-from: FreeBSD

15 years agoBring in FreeBSD rev 1.123:
Simon Schubert [Sat, 8 Oct 2005 11:34:25 +0000 (11:34 +0000)]
Bring in FreeBSD rev 1.123:
  revision 1.123
  date: 2005-07-19 07:18:23 +0200;  author: delphij;  state: Exp;  lines: +5 -0;
  PLAY_MSF, PLAY_TRACK, PLAY_TRACK_REL, PAUSE, PLAY_12 commands to pass
  through umass(4), in order to make cdcontrol(1) to issue commands to
  a USB CD driver.

  The command IDs were obtained from the CAM subsystem.  This was tested
  on half dozen of USB CD drivers from different vendors.

  Suggested by: "intron" <intron at intron dot ac>
  PR: usb/83439
  Reviewed by: sanpei
  MFC After: 1 week

Submitted-by: Xin Li <delphij@freebsd.org>
15 years agoPrint what we are doing when running make cleandir.
Simon Schubert [Sat, 8 Oct 2005 11:31:29 +0000 (11:31 +0000)]
Print what we are doing when running make cleandir.

15 years agoAdd sources to generated files.
Simon Schubert [Sat, 8 Oct 2005 11:30:45 +0000 (11:30 +0000)]
Add sources to generated files.

15 years agoRemove erroneous MLINKS. These are handled elsewhere (better even).
Simon Schubert [Sat, 8 Oct 2005 11:29:20 +0000 (11:29 +0000)]
Remove erroneous MLINKS.  These are handled elsewhere (better even).

15 years agoAdd -O option: Ignore non-files when recursing.
Simon Schubert [Sat, 8 Oct 2005 11:28:23 +0000 (11:28 +0000)]
Add -O option: Ignore non-files when recursing.

15 years agoEnable emacs line editing by default.
Simon Schubert [Sat, 8 Oct 2005 11:24:43 +0000 (11:24 +0000)]
Enable emacs line editing by default.

15 years agoClean up old yacc syntax
Simon Schubert [Sat, 8 Oct 2005 11:23:28 +0000 (11:23 +0000)]
Clean up old yacc syntax

15 years agoAlias NO_CLEAN with NOCLEAN. I just get bitten by this every second build.
Simon Schubert [Sat, 8 Oct 2005 10:50:53 +0000 (10:50 +0000)]
Alias NO_CLEAN with NOCLEAN.  I just get bitten by this every second build.

15 years ago- Don't build PIC in btools
Simon Schubert [Sat, 8 Oct 2005 10:47:36 +0000 (10:47 +0000)]
- Don't build PIC in btools
- Build statically linked crosstools
- Remove sysinstall

15 years ago* Fix width in begin list (.Bl) macro.
Sascha Wildner [Sat, 8 Oct 2005 10:00:10 +0000 (10:00 +0000)]
* Fix width in begin list (.Bl) macro.

* Correct buildworld description.

* Add documentation for the quickworld, realquickworld, crossworld,
  nativekernel, quickkernel, kernel, preupgrade and upgrade targets.

* Remove obsolete documentation for the aout-to-elf, aout-to-elf-build,
  aout-to-elf-install and move-aout-libs targets.

* Remove cross-compiling examples for PC98 and Alpha. Comment out
  two sentences that can go back in when we support different
  architectures.

* Refer to /etc/defaults/make.conf instead of
  /usr/share/examples/etc/defaults/make.conf.

* Remove reference to mergemaster(8).

* Bump date.

Add some changes from FreeBSD's build.7:

* Add reference to config(8).

* Miscellaneous mdoc cleanup.

15 years ago1:1 Userland threading stage 2.1/4:
Simon Schubert [Fri, 7 Oct 2005 21:55:15 +0000 (21:55 +0000)]
1:1 Userland threading stage 2.1/4:

Convert functions to use struct lwp instead struct proc.

15 years agoRemove MAKE_EBONES, convert MAKE_KERBEROS to WANT_KERBEROS.
Simon Schubert [Thu, 6 Oct 2005 22:40:16 +0000 (22:40 +0000)]
Remove MAKE_EBONES, convert MAKE_KERBEROS to WANT_KERBEROS.

15 years agoDisable lwp_flag and lwp_stat for now so that it doesn't get
Simon Schubert [Thu, 6 Oct 2005 20:01:29 +0000 (20:01 +0000)]
Disable lwp_flag and lwp_stat for now so that it doesn't get
used erroneously.  We need to split flags and stats between proc and lwp
at a later stage.

15 years agoSet up correct lpw->proc linkage
Simon Schubert [Thu, 6 Oct 2005 11:04:37 +0000 (11:04 +0000)]
Set up correct lpw->proc linkage

15 years agoUserland 1:1 threading changes step 1/4+:
Simon Schubert [Wed, 5 Oct 2005 21:53:41 +0000 (21:53 +0000)]
Userland 1:1 threading changes step 1/4+:

o Move thread-local members from struct proc into new struct lwp.

o Add a LIST_HEAD(lwp) p_lwps to struct proc.  This links a proc
  with its lwps.

o Add a td_lwp member to struct thread which links a thread to its lwp,
  if it exists.  This won't replace td_proc completely to save indirections.

o For now embed one struct lwp into struct proc and set up preprocessor
  linkage so that semantics don't change for the rest of the kernel.
  Once all consumers are converted to take a struct lwp instead of a struct
  proc, this will go away.

Reviewed-by: dillon, davidxu
15 years agoUpdate subvers to 7 so we can sync up the Preview tag prior to Simon
Matthew Dillon [Wed, 5 Oct 2005 19:42:02 +0000 (19:42 +0000)]
Update subvers to 7 so we can sync up the Preview tag prior to Simon
starting to work on and commit LWPs (light weight processes), which
will be used to separate the proc structure from per-(user)-thread data
and to implement much better native threading support within the
kernel, which in turn will allow us to continue developing David Xu's
threading library and get proper threading support into DragonFly.

15 years agoEnsure that FP registers are not used for integer code.
Matthew Dillon [Wed, 5 Oct 2005 15:39:46 +0000 (15:39 +0000)]
Ensure that FP registers are not used for integer code.

Submitted-by: "Thomas E. Spanjaard" <tgen@netphreax.net>
Taken-from: FreeBSD

15 years agoAllow the target safety check to be overridden. May be necessary in certain
Matthew Dillon [Wed, 5 Oct 2005 15:38:41 +0000 (15:38 +0000)]
Allow the target safety check to be overridden.  May be necessary in certain
situations.

15 years agoChange cvsup collection names. It has been more than 8 months now
Simon Schubert [Tue, 4 Oct 2005 11:12:20 +0000 (11:12 +0000)]
Change cvsup collection names.  It has been more than 8 months now
since we changed to the "dragonfly-" prefix.

15 years agoadd missing bus_dmamap_sync()
Sepherosa Ziehau [Tue, 4 Oct 2005 02:06:46 +0000 (02:06 +0000)]
add missing bus_dmamap_sync()

Obtained-from: FreeBSD dev/em/if_em.c rev1.50

15 years ago- In em_encap(), call seralized version of em_82547_move_tail(), since
Sepherosa Ziehau [Sun, 2 Oct 2005 13:19:55 +0000 (13:19 +0000)]
- In em_encap(), call seralized version of em_82547_move_tail(), since
  "serialize" is non-recursive and lwkt_serialize_enter() has been called
  before em_encap() (in em_start_serialized())
- minor style change

15 years agoIf m_defrag() succeeds, the original mbuf has already been freed, so don't
Sepherosa Ziehau [Sun, 2 Oct 2005 10:01:05 +0000 (10:01 +0000)]
If m_defrag() succeeds, the original mbuf has already been freed, so don't
free it again.

Reviewed-by: joerg, dillon
15 years agoMerge from vendor branch GDB:
Simon Schubert [Sat, 1 Oct 2005 12:40:32 +0000 (12:40 +0000)]
Merge from vendor branch GDB:
Bring cross-compiling to amd64 into shape, i.e. make the infrastructure
work as desired.

Parts-taken-from: FreeBSD

15 years agoBring cross-compiling to amd64 into shape, i.e. make the infrastructure
Simon Schubert [Sat, 1 Oct 2005 12:40:33 +0000 (12:40 +0000)]
Bring cross-compiling to amd64 into shape, i.e. make the infrastructure
work as desired.

Parts-taken-from: FreeBSD

15 years agoBring cross-compiling to amd64 into shape, i.e. make the infrastructure
Simon Schubert [Sat, 1 Oct 2005 12:40:32 +0000 (12:40 +0000)]
Bring cross-compiling to amd64 into shape, i.e. make the infrastructure
work as desired.

Parts-taken-from: FreeBSD

15 years ago- make declaration of ed_get_packet(), ed_ring_copy(), ed_hpp_readmem() and
Sepherosa Ziehau [Sat, 1 Oct 2005 06:36:11 +0000 (06:36 +0000)]
- make declaration of ed_get_packet(), ed_ring_copy(), ed_hpp_readmem() and
  ed_hpp_writemem() consistent with their definition
- remove unused stack variable `sc' in ed_isa_probe()
- ANSIfy

Submitted-by: Matthias Schmidt <schmidtm at mathematik.uni-marburg.de>
- use u_short and u_char instead of "unsigned {short, char}"

15 years agoImplement sysctls to restrict a user's ability to hardlink files owned by
Matthew Dillon [Thu, 29 Sep 2005 20:59:30 +0000 (20:59 +0000)]
Implement sysctls to restrict a user's ability to hardlink files owned by
other users or groups.  These sysctls are in addition to checks already made
(that the user must also be able to write to the file via user, group,
or world perms).

kern.hardlink_check_uid If set the user must own the file to
be able to create a hardlink, or be root.

kern.hardlink_check_gid If set the user must either own the file
or be a member of the same group as the
file, or be root.

Setting both flags is equivalent to just
setting the uid flag.

Taken from FreeBSD with slightly different semantics for hardlink_check_gid.
In DragonFly, if hardlink_check_gid is set, the file can still be hardlinked
if the user is not a member of the file's group if the user owns the file.
non-group membership is quite common due to group inheritance from the
parent directory when a file or directory is created by the user and
disallowing the case would make hardlink_check_gid non-useful.

Submitted-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
15 years agoAdd a sysctl, kern.unprivileged_read_msgbuf (defaults to enabled) which if
Matthew Dillon [Thu, 29 Sep 2005 20:43:56 +0000 (20:43 +0000)]
Add a sysctl, kern.unprivileged_read_msgbuf (defaults to enabled) which if
set to 0 will only allow the root or wheel group to access the kernel message
log.

Submitted-by: Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
With-modifications-by: Matthew Dillon
Taken-from: FreeBSD/subr_prf.c/1.74

15 years agoDo not attempt to modify read-only-mounted filesystems in ufs_inactive().
Matthew Dillon [Thu, 29 Sep 2005 20:20:59 +0000 (20:20 +0000)]
Do not attempt to modify read-only-mounted filesystems in ufs_inactive().
Normally an i_nlink count <= 0 indicates that the inode should be truncated
and destroyed, but such cases can also occur on read-only mounts of corrupted
filesystems.

Submitted-by: Xin LI <delphij@frontfree.net>
15 years agoFor bge(4), dc(4), lge(4), ndis(4), nge(4), pcn(4), re(4), sis(4), sk(4), ti(4)
Sepherosa Ziehau [Thu, 29 Sep 2005 12:52:51 +0000 (12:52 +0000)]
For bge(4), dc(4), lge(4), ndis(4), nge(4), pcn(4), re(4), sis(4), sk(4), ti(4)
- Do not start tx engine or set if_timer, if there is nothing to be sent
- Let if_watchdog() kick if_start().  This may avoid a possible race (in the
  future) between testing/setting if_timer and calling if_watchdog().  Only
  bge(4), re(4), sk(4) and ti(4) require this change.  The rest drivers
  affected by this commit already have this in place.

Discussed-with: joerg
Reviewed-by: joerg
15 years agoFix breakage introduced: When bootstrapping from -RELEASE we don't
Simon Schubert [Tue, 27 Sep 2005 22:35:51 +0000 (22:35 +0000)]
Fix breakage introduced:  When bootstrapping from -RELEASE we don't
have widechar support available.

15 years agoBecause recalculate is only called once or twice for long sleeps,
Matthew Dillon [Tue, 27 Sep 2005 18:03:32 +0000 (18:03 +0000)]
Because recalculate is only called once or twice for long sleeps,
not every second forever while the process is sleeping, we have
to manually call it to resynchronize p_cpbase on wakeup or it
will wrap if the process was sleeping long enough (e.g. ~10 min
with the ACPI timer) and really mess up the nticks calculation.

The bug could very rarely result in an integer divide by 0 crash.

Reported-by: David Rhodus
15 years agoIn xl_list_tx_init_90xB()
Sepherosa Ziehau [Tue, 27 Sep 2005 03:12:55 +0000 (03:12 +0000)]
In xl_list_tx_init_90xB()
- Don't call bzero(), xl_stop() has done it
- Minor style changes

15 years ago- Factor out xl_dma_alloc() from xl_attach()
Sepherosa Ziehau [Tue, 27 Sep 2005 02:41:29 +0000 (02:41 +0000)]
- Factor out xl_dma_alloc() from xl_attach()
- Factor out xl_dma_free() from xl_detach()
- Allocate and deallocate RX/TX descriptor DMA map during device's attaching
  and detaching (i.e. in xl_dma_{alloc, free}()), instead of in xl_stop() and
  xl_list_{rx, tx}_init*().  This brings us:
  1) xl_init()'s failure chance is reduced
  2) In the original code, xl_stop() would destroy TX descriptor DMA map if
     xl_chain.xl_mbuf != NULL, but normally TX descriptor's xl_chain.xl_mbuf
     *is* NULL.  So "ifconfig xl0 down; ifconfig xl0 up" or xl_detach()
     promised TX descriptor DMA map leakage, which is fixed now
- After the above change, xl_list_tx_init*() will not fail, so do not return
  `int' from them.  Adjust their caller accordingly
- Add comment for xl_chain.xl_prev
- Minor style changes

15 years agosetup UpPoll register before installing RX list pointer
Sepherosa Ziehau [Mon, 26 Sep 2005 06:25:10 +0000 (06:25 +0000)]
setup UpPoll register before installing RX list pointer

15 years agocppinternals.texi includes generated gcc-common.texi in .OBJDIR.
YONETANI Tomokazu [Mon, 26 Sep 2005 03:01:46 +0000 (03:01 +0000)]
cppinternals.texi includes generated gcc-common.texi in .OBJDIR.
Let make know it and fix occasional build failure for -jN(N > 1) case.

15 years agogetchar() is void in its prototype.
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 20:49:55 +0000 (20:49 +0000)]
getchar() is void in its prototype.

15 years agoAdd iwi (fixes building of LINT).
Sascha Wildner [Sun, 25 Sep 2005 16:05:36 +0000 (16:05 +0000)]
Add iwi (fixes building of LINT).

15 years agoRework Makefile logic so that it actually does what it should.
Simon Schubert [Sun, 25 Sep 2005 15:30:26 +0000 (15:30 +0000)]
Rework Makefile logic so that it actually does what it should.

While here partially sync amd64 with i386.

15 years agoRemove bin/ls from the bootstrap-tools.
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 13:07:24 +0000 (13:07 +0000)]
Remove bin/ls from the bootstrap-tools.

15 years agoGet rid of ls and use basic sh/echo constructs.
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 13:06:49 +0000 (13:06 +0000)]
Get rid of ls and use basic sh/echo constructs.

15 years agoReplace use of ls with echo and tr.
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 12:52:44 +0000 (12:52 +0000)]
Replace use of ls with echo and tr.

15 years agoUse echo instead of ls to test for files, change test logic slightly for
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 12:48:46 +0000 (12:48 +0000)]
Use echo instead of ls to test for files, change test logic slightly for
this.

15 years agoAdd usr.bin/stat to bootstrap-tools:
Jeroen Ruigrok/asmodai [Sun, 25 Sep 2005 12:43:58 +0000 (12:43 +0000)]
Add usr.bin/stat to bootstrap-tools:
Make boot2 use stat for getting the filesize instead of ls.

15 years agoReplace FreeBSD mailing list aliases with appropriate ones for some
Sascha Wildner [Sun, 25 Sep 2005 06:09:07 +0000 (06:09 +0000)]
Replace FreeBSD mailing list aliases with appropriate ones for some
DragonFly lists.

15 years agoSync with FreeBSD. This enables 'set -o emacs' by default (for command
Sascha Wildner [Sun, 25 Sep 2005 06:04:52 +0000 (06:04 +0000)]
Sync with FreeBSD. This enables 'set -o emacs' by default (for command
line editing).

15 years ago- in xl_attach(), print xl card type ("90X"/"90XB"), if verbose booting is
Sepherosa Ziehau [Sun, 25 Sep 2005 05:33:32 +0000 (05:33 +0000)]
- in xl_attach(), print xl card type ("90X"/"90XB"), if verbose booting is
  enabled
- in xl_start() and xl_start_90xB(), do BUS_DMASYNC_PREWRITE after *all* of
  the CPU memory updating is finished
- use UpPoll feature for XL_TYPE_905B typed card.  this can eliminate device
  register accessing during xl_rxeof() thus improving recv performance(*) with
  less CPU overhead
Inspired-by: FreeBSD pci/if_xl.c rev1.58's commit log
(*)
benchmark setting:
1) sephe:xl0 (dev-1.3.6 Sep.24) <----> sephe-test:vr0 (dev-1.3.6 Sep.24)
2) except for the different xl driver, rest part of the kernel running on
   sephe is same
3) xl0 is a <3Com 3c905C-TX Fast Etherlink XL> card, XL_TYPE_905B typed
4) netperf is executed with only "-H <host> -p <port> -t <test type>"

benchmark result:
1) run netperf from sephe-test:vr0
   17.0% (41.30[new xl]/35.28[old xl]) performance boost is observed for
   "TCP STREAM TEST"
2) run netperf from sephe:xl0
   13.6% (7405.79[new xl]/6518.39[old xl]) performance boost is observed for
   "TCP REQUEST/RESPONSE TEST"
3) minor performance boosts are observed in the rest of netperf "TEST"s

# Thank Bill Paul for that detailed commit log

15 years ago* Document the {build,install}world targets instead of just world.
Sascha Wildner [Sun, 25 Sep 2005 04:49:39 +0000 (04:49 +0000)]
* Document the {build,install}world targets instead of just world.

* Add reference to build(7).

* Add references to the DragonFly handbook.

15 years agoFix a memory leak I introduced when I changed the vtb_buffer from
Sascha Wildner [Sat, 24 Sep 2005 14:40:00 +0000 (14:40 +0000)]
Fix a memory leak I introduced when I changed the vtb_buffer from
'vm_offset_t' to 'uint16_t *' in my last commit. This caused the
vtb_buffer never to be free()'d again in sc_vtb_destroy(). Ouchie!

15 years agoClean up a little after removing Buf_GetAll()
Max Okumoto [Sat, 24 Sep 2005 07:38:03 +0000 (07:38 +0000)]
Clean up a little after removing Buf_GetAll()

15 years agoGet rid of Buf_GetAll()
Max Okumoto [Sat, 24 Sep 2005 07:37:38 +0000 (07:37 +0000)]
Get rid of Buf_GetAll()

15 years agoMove OPEN_PAREN, CLOSE_PAREN, OPEN_BRACE, and CLOSE_BRACE into util.h
Max Okumoto [Sat, 24 Sep 2005 07:37:01 +0000 (07:37 +0000)]
Move OPEN_PAREN, CLOSE_PAREN, OPEN_BRACE, and CLOSE_BRACE into util.h
and use them.  This inproves code readablity.

15 years agoRemove Var_Exists() and just use Var_Value() and compare
Max Okumoto [Sat, 24 Sep 2005 07:27:26 +0000 (07:27 +0000)]
Remove Var_Exists() and just use Var_Value() and compare
with NULL.

15 years agoChange prototypes to clearify that the input is an array.
Max Okumoto [Sat, 24 Sep 2005 07:25:57 +0000 (07:25 +0000)]
Change prototypes to clearify that the input is an array.

15 years agoin if_xl.c, xl_detach():
Sepherosa Ziehau [Sat, 24 Sep 2005 03:50:30 +0000 (03:50 +0000)]
in if_xl.c, xl_detach():
- do not use XL_FLAG_ATTACH_MAPPED to test whether xl_stop(), xl_reset() and
  ether_ifdetach() can be performed, use device_is_attached() instead.  this
  can prevent ether_ifdetach() from being called if ether_ifattach() is not
  done yet (e.g. xl_attach() fails before calling ether_ifattch())
- adjust white spaces

in if_xl.c, xl_attach():
- in various busdma operation, use BUS_DMA_WAITOK instead of BUS_DMA_NOWAIT,
  since xl_attach() is already intr safe
- use BUS_DMA_ZERO in bus_dmamem_alloc() instead of calling bzero() afterwards
Suggested-by: joerg
- do not set XL_FLAG_ATTACH_MAPPED in xl_softc.xl_flags
- minor cleanup

in if_xlreg.h
- GC now unused XL_FLAG_ATTACH_MAPPED macro

15 years agodo not build following files:
Sepherosa Ziehau [Sat, 24 Sep 2005 02:50:47 +0000 (02:50 +0000)]
do not build following files:
fromhost.c -- TLI junks
myvsyslog.c -- we have vsyslog(3)
tli.c -- TLI junks
workarounds.c -- compat junks

15 years ago- remove compat junks
Sepherosa Ziehau [Sat, 24 Sep 2005 02:34:11 +0000 (02:34 +0000)]
- remove compat junks
- declare fix_options()
Obtained-from: NetBSD lib/libwrap/tcpd.h rev 1.2, 1.12

- declare hosts_ctl(), as stated in hosts_access(3)

15 years ago* Add braces to while statements and remove the '?' option
Sascha Wildner [Fri, 23 Sep 2005 19:56:32 +0000 (19:56 +0000)]
* Add braces to while statements and remove the '?' option
  in the example.

Noticed by: corecode

15 years agoRemove description of the old release infrastructure.
Sascha Wildner [Fri, 23 Sep 2005 19:47:49 +0000 (19:47 +0000)]
Remove description of the old release infrastructure.

15 years ago* Initialize nlist entries and bump WARNS to 6.
Sascha Wildner [Fri, 23 Sep 2005 18:51:34 +0000 (18:51 +0000)]
* Initialize nlist entries and bump WARNS to 6.

Some cleanup:

* Remove parameter names from prototypes.

* Get rid of '?' option.

15 years agoAdd the wide character files for ncurses.
Jeroen Ruigrok/asmodai [Fri, 23 Sep 2005 09:42:17 +0000 (09:42 +0000)]
Add the wide character files for ncurses.

15 years agoRevert last commit for two reasons:
Jeroen Ruigrok/asmodai [Fri, 23 Sep 2005 07:09:03 +0000 (07:09 +0000)]
Revert last commit for two reasons:

1) Simon had already fixed it
2) Don't do this when just awake

15 years agoFix accidental reversal of assignment for suffix/suffixlen.
Jeroen Ruigrok/asmodai [Fri, 23 Sep 2005 07:03:11 +0000 (07:03 +0000)]
Fix accidental reversal of assignment for suffix/suffixlen.

Noticed by: Kyle Butt

15 years ago- Catch up with rev 1.157 of sys/dev/acpica/acpi.c in FreeBSD:
YONETANI Tomokazu [Fri, 23 Sep 2005 02:28:50 +0000 (02:28 +0000)]
- Catch up with rev 1.157 of sys/dev/acpica/acpi.c in FreeBSD:
    Don't forget to pass shutdown events down to children first now that we
    handle them at the bus level too.
  This should prevent acpi_cpu_idle() from doing something nasty
  in the middle of shutdown procedure(by turning of cpu_cx_count).

- Move prototype for cpu_idle_hook into <machine/md_var.h>.

- In acpi_cpu_shutdown(), use lwkt_cpusync_simple() to synchronize
  CPUs instead of dropping into DDB.

Reported-by: Rumko <rumcic at gmail.com>
15 years agoRe-initialize the interrupt mask on ACPI wakeup. This seems to
Matthew Dillon [Fri, 23 Sep 2005 02:22:48 +0000 (02:22 +0000)]
Re-initialize the interrupt mask on ACPI wakeup.  This seems to
fix a panic/failure on some machines when waking up from sleep mode.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
15 years agoCorrectly pass arguments. This enables doing e.g.
Simon Schubert [Fri, 23 Sep 2005 00:31:37 +0000 (00:31 +0000)]
Correctly pass arguments.  This enables doing e.g.

wmake -n DESTDIR=/ install

which failed before.

15 years agoAdd declaration of struct tm to suppress a warning.
Simon Schubert [Thu, 22 Sep 2005 23:50:10 +0000 (23:50 +0000)]
Add declaration of struct tm to suppress a warning.

15 years agostyle(9) cleanup
Simon Schubert [Thu, 22 Sep 2005 23:47:14 +0000 (23:47 +0000)]
style(9) cleanup

15 years agoUnbreak basename suffix removal introduced in last commit.
Simon Schubert [Thu, 22 Sep 2005 23:44:55 +0000 (23:44 +0000)]
Unbreak basename suffix removal introduced in last commit.

Submitted-by: Kyle Butt <kylebutt@gmail.com>
15 years agoEnable wide character support in ncurses, since we have it, better make
Jeroen Ruigrok/asmodai [Thu, 22 Sep 2005 11:14:44 +0000 (11:14 +0000)]
Enable wide character support in ncurses, since we have it, better make
use of it.

This also enables the wide character functions for ncurses so that we
actually synchronise the library and header files which the manual pages
we install.

Furthermore reflect the SYSTEM_NAME properly (1.1->1.3.6) and update to
reflect the currently installed compiler suites.

15 years agoMove commandShell from shell.[ch] to job.[ch]
Max Okumoto [Thu, 22 Sep 2005 09:13:38 +0000 (09:13 +0000)]
Move commandShell from shell.[ch] to job.[ch]

15 years agoSuppress kernel message "mfree: m->m_nextpkt != NULL",
Noritoshi Demizu [Thu, 22 Sep 2005 06:45:01 +0000 (06:45 +0000)]
Suppress kernel message "mfree: m->m_nextpkt != NULL",
which is printed by m_free() in kern/uipc_mbuf.c.
Reported-by: Dave Hayes
15 years agoImplement permanent answers to confirmation questions.
Simon Schubert [Thu, 22 Sep 2005 01:49:44 +0000 (01:49 +0000)]
Implement permanent answers to confirmation questions.
This allows the user to enter "always" or "never" at the prompt.

15 years agoPrefer the general purpose m_getl() routine for mbuf allocation.
Jeffrey Hsu [Wed, 21 Sep 2005 21:03:10 +0000 (21:03 +0000)]
Prefer the general purpose m_getl() routine for mbuf allocation.
Remove special case for 2-mbuf chains, which we haven't created
since FreeBSD rev 1.35 to mbuf.h in Nov 1999.

15 years agoMake zalloc() and zfree() non-blocking for ZONE_INTERRUPT zones.
Jeffrey Hsu [Wed, 21 Sep 2005 19:48:05 +0000 (19:48 +0000)]
Make zalloc() and zfree() non-blocking for ZONE_INTERRUPT zones.

15 years agoGive each CPU its own taskqueue thread so per-cpu data can be
Jeffrey Hsu [Wed, 21 Sep 2005 18:58:55 +0000 (18:58 +0000)]
Give each CPU its own taskqueue thread so per-cpu data can be
safely manipulated in taskqueue-defered routines.

15 years agopull changes from gcc34/libstdc++: rename ctype class flags
Simon Schubert [Wed, 21 Sep 2005 00:25:53 +0000 (00:25 +0000)]
pull changes from gcc34/libstdc++: rename ctype class flags

15 years agoFix the function declaration.
Jeroen Ruigrok/asmodai [Tue, 20 Sep 2005 15:00:45 +0000 (15:00 +0000)]
Fix the function declaration.

memchr() has had its second argument as int ever since c90.

15 years agoDocument and order the wlan devices.
Jeroen Ruigrok/asmodai [Tue, 20 Sep 2005 11:55:42 +0000 (11:55 +0000)]
Document and order the wlan devices.

15 years agoActually hook up ipw.
Jeroen Ruigrok/asmodai [Tue, 20 Sep 2005 11:48:23 +0000 (11:48 +0000)]
Actually hook up ipw.

Forgotten since 2005-03-06.