mglocker
9d2c42b78a
Add blksize option support for tftpd according to RFC 2348.
Note:
While testing the new option, we noticed that our stable tftpd has
a problem if any option is set (e.g. tsize) and you try to put a file.
This has nothing todo with our new blksize option. We fix this as
next.
ok claudio@
18 years ago
brad
b91eb0957d
add some more C99 functions: round(3) and roundf(3).
By Steven G. Kargl <kargl at troutmask dot apl dot washington.edu>
From FreeBSD
18 years ago
brad
d5e9846a62
add missing prototypes for trunc/truncf.
18 years ago
otto
bf7ad7afc9
delint; ok millert@ beck@
18 years ago
otto
f37b50710e
- Plug huge mem leak; mostly samba was suffering.
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code
that implements this will be made faster in a later commit.
- We loose documented behaviour (after closedir() the telldir()
positions are not valid anymore). This was never in Posix, and most
other systems have nothing like it.
Diff originally from Paul Thorn, rewritten by me using some FreeBSD
code. "slap it in" deraadt@
19 years ago
deraadt
6ba7d08d6c
kvm_openfiles() should take int flag, not unsigned
19 years ago
deraadt
69800b44d4
after we changed mode_t to be an int, the devname() man page was
updated but the function itself never was; ok millert
19 years ago
mickey
b449cbee1d
kill evil \r; from cedric
19 years ago
jmc
115b6ff464
typos from alexey dobriyan;
19 years ago
hshoexer
bed73850e0
Annotate _assert()/__assert2() as __dead.
As discussed with espie@, ok millert@
19 years ago
espie
f6c1fd6bee
use standard type uint32_t, instead of BSD-specific u_int32_t
tell user to get it through stdint.h (note old sys/types.h still works,
for now).
okay millert@, jmc@
19 years ago
millert
09528da913
Add comments to show which printf/scanf formats match which types
19 years ago
millert
f8ff83b550
Update {PRN,SCN}*PTR defines to match types changes
19 years ago
miod
3b7303ff08
Remove neither documented nor found in any spec ctermid_r() function - ctermid()
is reentrant in its current implementation anyway.
Surfing on the recent major version bump, ok millert@ deraadt@
19 years ago
millert
6388df8cda
Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()
19 years ago
millert
7e7c8eb496
Include the function name in assert() output. From espie@
19 years ago
millert
9bd1ce16f0
Add real C99 stdint.h and inttypes.h based on an initial version I did in
1997 (yes, really).
19 years ago
millert
605c5586ca
Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
19 years ago
millert
36cc33b104
Move TTY_NAME_MAX and LOGIN_NAME_MAX to sys/syslimits.h
Use correct values for _POSIX_TTY_NAME_MAX and _POSIX_LOGIN_NAME_MAX
Define MAXLOGNAME in terms of LOGIN_NAME_MAX
OK krw@
19 years ago
jaredy
97f9fddf57
zap unused ohash_lookup_string declaration; ok espie
19 years ago
millert
0b9be39dbf
Split off the non-kernel visible portion of sys/errno.h into a
separate errno.h. sys/errno.h now only contains errno values (which
is included byerrno.h). OK deraadt@
19 years ago
millert
32254634b7
Do not declare errno as extern int, set it via __errno().
19 years ago
millert
c22fbf6967
Get rid of non-OpenBSD bits and use _BYTE_ORDER not BYTE_ORDER
OK deraadt@
19 years ago
millert
16cfa5f58b
This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.
19 years ago
millert
5acf200b2a
First step in include files overhaul. Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
19 years ago
deraadt
03f02251d6
undelete died a while back; millert ok
19 years ago
millert
0d9298523d
Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
19 years ago
millert
059ddb430d
brk() and sbrk() should use void *, not char *. Note that sbrk()
should take intptr_t, not int, but we don't presently have intptr_t
available from unistd.h. OK marco@
19 years ago
otto
212079cfe2
Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD via
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
19 years ago
espie
a63f72f6bc
CODESET support. okay millert@, otto@
(not really useful for now, it mostly helps some programs which want
to use it, it will become useful when we have full 16 bits locale).
19 years ago
deraadt
42e82ce8d7
use xargs -r0 for our build process
19 years ago
millert
910fc384eb
Add VIS_GLOB to escape special characters used by shell-style globbing.
From Solar Designer based on changes in FreeBSD. OK deraadt@
19 years ago
espie
894a3cd7e9
activate LC_CTYPE for 8 bits locale.
Make sure tolower/toupper use the whole 8 bits.
okay deraadt@
thanks to everyone who tested
19 years ago
grange
fbe8b6b13e
Install netbt/ includes.
ok henning@
19 years ago
espie
14a721a9a3
Add a few missing functions so that wctype.h/wchar.h are more or less
uptodate, namely, wcsto(u)l(l) family, wcstod, stubs from wctrans/towctrans
crank minor.
okay millert@, jmc@.
19 years ago
espie
d0f50b55ef
zap duplicate prototype
19 years ago
millert
62151f2edd
Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@
19 years ago
henning
f26dc19c5e
don't install netns includes any longer, ports bulk build test by pval
19 years ago
espie
a428b44e26
next citrus step.
19 years ago
millert
5234066725
bye bye whiteouts
19 years ago
millert
9e06ca5a4b
Make gethostbyaddr() prototype match POSIX. This means len is now
unsigned but there is no ABI change. OK deraadt@
19 years ago
henning
2cd28b2ffd
-netccitt/
19 years ago
millert
fc526f74a1
mktemp(3) et al. go in stdlib.h, not unistd.h. While there be more
explicit about mktemp(3) in the man page.
19 years ago
espie
8d57f68af7
wchar_t is a native C++ type, gcc picks its definition from elsewhere,
so do not redefine it.
Found out by the quite picky fixinc in recent gcc.
okay millert@, kettenis@
19 years ago
espie
175c6c79dd
major abi changes:
* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.
* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).
* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.
bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.
Discussed and matthieu, otto, millert, kettenis, deraadt.
Major libc bump
19 years ago
espie
4ed4e3058c
let vfscanf be a real function. Use a weak_alias on systems where this
is feasible.
Okay millert@
There's a major libc bump coming that is going to cover this as well...
19 years ago
espie
d5049a05a4
Change internals of FILE: reuse the unget buffer field to access an
extended attribute data structure (pimpl idiom). Idea taken from citrus.
Much discussion with deraadt@, otto@, millert@...
This is the least disruptive way to extend FILE, since its size can't really
change without this being a flag day. So the size doesn't change.
Actual additions to the structure will come in separate steps, since this
change is nasty enough on its own.
Tests by otto@ and others, careful reading of code by otto@ and millert@.
This is definitely a major bump, and has been checked to not impact a
full ports build.
19 years ago
espie
18a3d3bb7c
isw* classification functions from citrus, with a `stub' implementation
for the default locale.
comments, tests, okay: kettenis@, otto@, jmc@
functions addition -> Minor bump.
There's a large bump coming in a separate commit.
19 years ago
espie
cfce6166ab
also use new libobjc on old architectures, since it builds fine with
gcc 2.95.
tests and okay miod@, marc@.
19 years ago
millert
da1224ce71
rm libcurses++
19 years ago