Commit Graph

190516 Commits

Author SHA1 Message Date
jruoho dccc94a2b3 Put the historical note to its own section. Note that also the other
functions (except the _unlocked variants) were in early UNIX versions.
2010-05-06 09:01:34 +00:00
jruoho aa18298cd3 Note POSIX compliance. 2010-05-06 08:58:57 +00:00
jruoho 4c0553eda5 Correct the discussion about return values: fileno() may fail and return -1.
Note that in such cases the NetBSD implementation does not set errno to
EBADF, hence diverging from the standard in this small detail.
2010-05-06 08:14:08 +00:00
dholland abd3e02364 Improve previous further. 2010-05-06 08:02:47 +00:00
macallan 2fcb22f400 set RI_NO_AUTO when initializing the early console - we're so early that
kmem_alloc() can't be used and we don't really need box drawing characters
for the OF font anyway
2010-05-06 04:32:16 +00:00
macallan 21bc7f3caa Introduce a new flag for rasops_info to keep rasops_reconfig() from trying
to allocate memory. Use this when calling rasops_reconfig() before it is safe
to call kmem_alloc().
2010-05-06 04:30:18 +00:00
wiz e35956774d Sort option descriptions. 2010-05-05 22:11:19 +00:00
wiz 430d51d315 Accept -v in getopt(); sort flag cases. 2010-05-05 22:10:50 +00:00
wiz c45196503b Sort errors. 2010-05-05 22:07:58 +00:00
wiz 0d0949dea8 Mark up NULL with Dv. 2010-05-05 22:05:31 +00:00
wiz 1bc0f49c9b New sentence, new line. 2010-05-05 22:03:19 +00:00
wiz 2203063e19 Add "function" to make sentences easier to read. 2010-05-05 22:01:10 +00:00
dyoung ffd45aaae7 Constify some ether_output() arguments so that it's clear that they
can never be re-assigned.
2010-05-05 18:12:24 +00:00
dyoung 197183aa9f Andrew Doran points out that _ALIGN_TEXT is unused, and the processor
may be able to "pair or pipeline" instructions if I load the
bus_space_tag pointer nearer the top of the functions.  Get rid of the
_ALIGN_TEXT definition, and load the pointer earlier.
2010-05-05 17:42:19 +00:00
christos e6a464cc84 PR/43258: Hauke Fath: remove duplicate setservent declaration 2010-05-05 17:12:29 +00:00
dyoung 42360ba78f As Andrew Doran points out, _ALIGN_TEXT is unused, and to test that
X86_BUS_SPACE_IO equals 0 is no longer necessary.  Get rid of the
_ALIGN_TEXT definition, and do not "assert" that X86_BUS_SPACE_IO == 0.
2010-05-05 16:53:57 +00:00
christos 9612529ef4 Revert bogus patch that attempted to canonicalize a non absolute argv[0] using
realpath(3). Consider: touch Makefile; mkdir make; make. This will set $MAKE
to $PWD/make so further attempts to use ${MAKE} will try to execute the
directory. This needs $ORIGIN to be fixed properly, or alternatively one
can duplicate the logic for execvp(3) and search the path for the make
executable. Not worth it. It was working just fine before!
2010-05-05 14:10:39 +00:00
joerg 0246da9a5b Add a note to run services_mkdb after modifications. 2010-05-05 13:27:17 +00:00
joerg aa73978631 Add verbose flag -v and make -q the default behavior. 2010-05-05 13:19:51 +00:00
sjg 25ba15c805 gcc defines __svr4__
SunPro compiler defines __SVR4
We need to check both to ensure that on SunOS signal is hooked into
sigaction - otherwise we do not pass the unit-tests due to missing
a SIGCHLD
2010-05-05 07:05:33 +00:00
jruoho 61d5c5bd31 Note the POSIX compliance (already since SUSv2, '97). 2010-05-05 06:55:57 +00:00
jruoho 09008336f5 Add a note that rb(3) is preferred for new code. 2010-05-05 06:24:43 +00:00
jruoho 450d8f49d5 Clarify a sentence by removing a comma. 2010-05-05 06:19:15 +00:00
jruoho 59d481ff7f Upon lukem@'s request, put the list of functions back.
XXX: Someone, please keep this up-to-date.
2010-05-05 06:11:14 +00:00
jruoho 12456d3098 Properly enumerate the two special cases. Also some markup improvements. 2010-05-05 06:04:19 +00:00
jruoho 50ad9a0506 Markup: .Fn instead of .Nm, .Tn, offset indent, newline for a new sentence. 2010-05-05 05:49:38 +00:00
jruoho 4a4dc62ed5 .Nm -> .Fn, and wrap the kernel config option so that it will fit into 80
columns.
2010-05-05 05:43:19 +00:00
jruoho 0f2121f16f Wrap the USD reference around .Rs/.Re. 2010-05-05 05:36:21 +00:00
jruoho 29cfcc518e Upon lukem@'s request, put the list of functions back.
XXX: Someone needs to go through all standard I/O functions in the libc,
     update the list, and keep it updated. While at it, please convert the
     list to use .Xr so that we can have links in HTML pages.
2010-05-05 04:13:16 +00:00
christos 242fd69b63 give the name of the dup initialization. 2010-05-05 02:20:42 +00:00
jym 7a985d70fe xen: Enable no-execute bit feature for i386pae and amd64 kernels. 2010-05-04 23:31:54 +00:00
jym d66ce3b289 Enable the NX bit feature for Xen i386pae and amd64 kernels.
Tested with Xen 3.1 and Xen 3.3, dom0 and domU, by bouyer@ and jym@.

Ok bouyer@.
2010-05-04 23:27:13 +00:00
macallan d3a30408f7 add a bunch of small utility functions to pick video modes based on things
like dot clock, resolution etc.
2010-05-04 21:17:10 +00:00
kardel a2c1ee7188 switch to nanotime() for 100ns resolution 2010-05-04 19:23:56 +00:00
macallan 38ea318425 remove now redundant ri = ... lines in putchar() methods
Looks like none of my usual test builds used rasops2.c
2010-05-04 19:16:22 +00:00
tsutsui fa836933a2 Switch NetBSD/news68k to using 8KB/page in kernel.
It slightly improves performance on NWS-1750D (MC68030 25MHz):
http://mail-index.NetBSD.org/port-m68k/2009/12/08/msg000204.html

MI m68k/pmap_motorola.c and other sources can handle both 4KB/8KB pages
(amiga and atari have used 8KB pages for many years) and there is
no binary compatibility issue on it.
(kernel modules might be affected but 5.99.29 was just two days ago)
2010-05-04 16:47:13 +00:00
tsutsui 7ea90218ce Make local functions static. 2010-05-04 15:38:04 +00:00
tsutsui 15939df54d Fix dumb build errors. Compile test only. 2010-05-04 15:32:31 +00:00
tsutsui a97c5654cb Merge .rodata.* sections (like .rodata.str1.4) into .rodata section.
Newer binutils creates such sections and old firmware might be confused.
2010-05-04 15:00:39 +00:00
tsutsui 9a9555d932 Some KNF. 2010-05-04 14:14:54 +00:00
tsutsui 67ae586755 Put an INSTALL kernel and ofwboot.xcf into ISO9660 root.
Newer OpenFirmware recognizes not only HFS but also ISO partition.

XXX: should I also update files in src/distrib/cdrom?
2010-05-04 14:09:11 +00:00
tsutsui 30fe5a6c65 Remove non-English translations from ews4800mips sysinst.
I don't think there are any EWS4800 users outside Japan.
2010-05-04 13:33:13 +00:00
phx 2363b986ca sandpoint: support for Marvell-SKnet in netboot 2010-05-04 12:45:11 +00:00
nonaka 71c9ab4685 fix compile failure. 2010-05-04 12:36:37 +00:00
tsutsui 25362a67ff Don't #error on invalid LABELSECTOR or LABELOFFSET on __RUMPKERNEL build.
As mentioned in src/sys/rump/dev/lib/libdisk/Makefile,
rump(4) builds don't check if each ${MACHINE} actually supports
MBR in MD readdisklabel(9) ops while it pulls MD <machine/disklabel.h>.

Workarounds so long broken build of ews4800mips.
2010-05-04 12:20:50 +00:00
jmmv 0c7618681c Fix execution of the installed tests by using h_{simple,args} as program
names, without the .sh extension.
2010-05-04 09:33:57 +00:00
plunky c76d621ddd handle the difference between C99 and GNUC semantics of inline
functions with external linkage, by using "inline" for STDC and
"extern inline" for GNUC

(as noted by joerg@, using static inline may be clearer)
2010-05-04 09:07:11 +00:00
jruoho 43f2dd8f20 Rework the example a little. 2010-05-04 07:58:28 +00:00
jruoho dd121e1e5b Remove the list of functions.
This list was updated only two times in nearly two decades.

(If people need to learn the standard I/O functions in C, it would be better
to mention K&R or some other textbook; if people need to know the list of
functions, it would be better to point out the location of the standard.)

In addition, some clean-up and structural editing.
2010-05-04 07:43:12 +00:00
jruoho c17db6ca32 Remove the list of functions in the libutil library.
While such lists are nice, they are doomed to be repeatedly out of date due
maintenance costs related to manual updates. Ideally there should be a
common routine to auto-generate these, but in the meantime, just point to
the directory where libutil is implemented.
2010-05-04 07:07:12 +00:00