christos
1e9ca58635
- add getdiskrawname.
...
- exit on error for lint.
2012-04-07 16:44:39 +00:00
christos
8f3dcf00a8
fix typo
2012-04-07 16:22:42 +00:00
christos
4a87bdacc7
read returns ssize_t, and err is a function name.
2012-04-07 16:17:17 +00:00
christos
920e381419
- pass correct types.
...
- use sizeof(var) instead of sizeof(type)
2012-04-07 16:16:34 +00:00
wiz
98dbe2d32a
Remove trailing whitespace, add dot.
2012-04-07 10:43:38 +00:00
christos
29484ab26f
add getfsspecname
2012-04-07 04:04:21 +00:00
christos
9dbf303bcb
cross reference getfsspecname
2012-04-07 03:47:30 +00:00
wiz
711cb78a48
Fix capitalization and typo, from Bug Hunting.
2012-04-06 11:36:04 +00:00
wiz
5eee512564
Fix typo, from Bug Hunting.
2012-04-06 11:35:39 +00:00
christos
5662c2716e
trailing whitespace police.
2012-04-04 17:47:03 +00:00
joerg
b757af438b
Disable new -Wstring-plus-int warning where needed for now.
...
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
agc
76f4f39125
Add a pthread cancel stub for sigwait, following Onno van der Linden's
...
analysis in PR 45131. Kindly tested by Hisashi T Fujinaka (using csup
as the test case) with a successful outcome.
OK martin@
2012-04-04 06:29:16 +00:00
agc
6578e3b1a4
fix a couple of typos
2012-04-02 22:06:47 +00:00
rmind
5f6fa3d5ee
Add NPF config retrieval routines.
2012-04-01 19:16:24 +00:00
christos
df08f9313b
nbytes is now size_t
2012-03-29 21:21:04 +00:00
christos
781d83f527
make constant explicitly unsigned
2012-03-29 19:27:05 +00:00
christos
ad6ae348d8
fix lint, should nbytes be changed to size_t to match with the struct passed?
2012-03-29 19:26:21 +00:00
christos
4a263fd8ca
PR/46279: Dr. W. Stukenbrock: Off-by-one in buffer length check and make sure
...
that the password fits in the supplied buffer.
2012-03-29 14:43:58 +00:00
christos
b66595809f
The flush function makes the tests fail. So undo it for now until we decide
...
if the tests are wrong or the flushing is wrong.
2012-03-29 14:27:33 +00:00
christos
2ad3ddd659
PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users
...
and groups.
2012-03-29 13:05:10 +00:00
christos
61a429c0b1
only provide compatibility i/o functions to the ones provided by the caller.
2012-03-28 15:21:11 +00:00
christos
de001ba2a5
- widen the internal read and write calls to match the syscalls
...
- add funopen2() which provides access to flush() and the wider calls.
- make use of the new flush call in fmemopen()
2012-03-27 15:05:42 +00:00
christos
9bd5031289
cast RHS of >>= operation to unsigned int
2012-03-25 19:53:41 +00:00
christos
9c9d360d27
- change from size_t to unsigned int because we don't need the extra width
...
- cast to unsigned int results of quad ops
2012-03-25 19:53:18 +00:00
christos
a105f91c05
PR/41558: Stathis Kamperis: Treat a backslash followed by NUL as NUL, instead
...
of a backslash if FNM_NOESCAPE is not set. According to TOG: a backslash in
a pattern followed by any other character, will match that second character
in the string.
2012-03-25 16:31:23 +00:00
joerg
0e8643658c
Don't pass assembler flags to genassym, it doesn't compile.
2012-03-25 06:55:19 +00:00
christos
fac360ff28
From: Jilles Tjoelker: Add a mapping for the cursor delete key
2012-03-24 20:09:30 +00:00
christos
d067817eea
From Jilles Tjoelker:
...
Do not move the cursor for ed-delete-next-char in emacs mode.
This makes ed-delete-next-char suitable for mapping to the <Delete> key.
Behaviour in vi mode is unchanged (for 'x').
2012-03-24 20:08:43 +00:00
matt
05c78a4552
Fix a bug introduced by lint cleanup.
2012-03-24 00:06:20 +00:00
njoly
28247a8661
Use major.minor for NetBSD versions.
2012-03-23 18:08:34 +00:00
skrll
5b9a421677
Shut lint up.
...
From he@
2012-03-23 09:34:09 +00:00
joerg
e057b2281a
Use __printflike.
2012-03-22 23:46:49 +00:00
joerg
4cd46b4ac8
Add some more __dead as exposed by the recent WARN bumps.
2012-03-22 22:59:43 +00:00
joerg
5df6c2ea3b
Format the diagnostic with vasprintf once and use plain syslog instead
...
of messing with format strings.
2012-03-22 22:58:15 +00:00
drochner
e917deee9c
don't reuse a dynamically allocated stack if a fixed one is requested
2012-03-22 20:01:18 +00:00
christos
1bb11e66cb
vax-specific lint fixes.
2012-03-22 17:32:21 +00:00
christos
c5142b6c92
add constcond, make shifts unsigned
2012-03-22 15:34:14 +00:00
christos
12968661bf
get rid of the cheesy BAD macros
2012-03-22 14:18:34 +00:00
he
4efbcb2b62
Make this lint-free (only built for real for the __sh__ ports):
...
* Mark some code after goto as /* NOTREACHED */
* Add a cast for file size (off_t) to size_t to avoid warning about
possibly losing bits.
* Avoid a "pointer casts may be troublesome" warning from lint
by doing a cast via "void *" instead of directly to "struct
coff_filehdr *".
2012-03-22 13:42:36 +00:00
he
99339bb8f4
Add a pair of casts to silence lint about conversion possibly losing bits.
2012-03-22 13:25:45 +00:00
he
6f8da331f6
A few modifications to make this build for vax:
...
* The decpt variable is only used if INFNAN_CHECK, which isn't defined
for vax.
* Use a cast to avoid warning about shift of a signed variable.
* Mark a condition as (potentially) a constant condition.
2012-03-22 13:15:48 +00:00
he
648512f83d
A few fixes to make this build for vax:
...
* The fivesbits[] variable is not used for vax
* The decpt variable is only used if INFNAN_CHECK, which isn't
defined for vax
2012-03-22 13:09:12 +00:00
he
ff8e71502d
Convert to use c89 function declaration.
2012-03-22 13:02:15 +00:00
skrll
d66dab05c4
Shut lint up about dp.
...
From he@
2012-03-22 12:31:32 +00:00
he
1c46a18eb1
Follow the pattern from powerpc, make lint happy.
2012-03-22 09:32:04 +00:00
he
2bf75ee57f
Add a void to make function declaration c89.
2012-03-22 08:56:52 +00:00
he
b722f9f3bf
Add a cast of the shift count to int32_t, so that we don't try
...
to do int32_t << long, since ANSI C doesn't perform "balancing"
before the shift operation according to lint. Should not make a
difference, offset is limited to 0..3 anyway.
2012-03-22 08:54:48 +00:00
he
2df8a64968
Make 'i' unsigned to avoid signed/unsigned comparison warnings from lint.
2012-03-22 08:52:22 +00:00
matt
3fb1a336a3
Make lint happy.
...
While here, make sure the top of stack is aligned properly.
2012-03-22 05:36:50 +00:00
christos
a79bdcfa71
c89 prototypes
2012-03-21 21:37:29 +00:00
he
638c9cf502
Add some casts to get rid of "bitwise op on signed value is non-portable"
...
warning from lint.
2012-03-21 20:07:52 +00:00
he
2d215eaf5b
Use c89 function declaration.
2012-03-21 20:04:57 +00:00
christos
2fab93ccbb
c89 definitions
2012-03-21 15:32:26 +00:00
christos
acf4d8064f
welcome to WARNS=5
2012-03-21 14:52:40 +00:00
christos
d703a14882
rename umax2s->size_t2s function per apb's request.
2012-03-21 14:32:22 +00:00
christos
b2b93bb9ff
fix argument order.
2012-03-21 14:28:32 +00:00
christos
d9285aa434
unsigned char portability casts
2012-03-21 14:19:15 +00:00
christos
de7ac11be7
add casts
2012-03-21 14:17:54 +00:00
christos
56a2b6ea32
cast CHAR_MAX to (char) for unsigned character machines
2012-03-21 14:11:24 +00:00
christos
ebf07d2912
do not need lint overrides anymore
2012-03-21 14:10:47 +00:00
christos
db0b896367
no need for linted annotations
2012-03-21 14:03:06 +00:00
matt
e1a2f47f12
Use C89 function definition
2012-03-21 10:10:36 +00:00
matt
cb0a562de5
Use __UNCONST to unconst a ""
2012-03-21 10:09:20 +00:00
matt
572e1c8587
These directories don't handle WARNS=5
2012-03-21 10:08:30 +00:00
he
912d4f1845
Cast an int argument to umax2s() to size_t.
2012-03-21 09:49:02 +00:00
bsh
583109cfde
shut up lint(1)
2012-03-21 09:05:35 +00:00
matt
fcd1fc711f
Libraries default to be built with WARNS=5
2012-03-21 05:39:21 +00:00
matt
510d3d4c1d
These directories default to WARNS=2
2012-03-21 05:38:49 +00:00
matt
fa835e8c8b
These directories default to WARNS?=5
2012-03-21 05:37:42 +00:00
matt
5d04d368b8
Use WARNS=2 (the previous WARN=4 was incorrect and ignored).
2012-03-21 05:36:24 +00:00
matt
6fb2a3179f
Use C89 functions definitions.
2012-03-21 05:34:54 +00:00
matt
f9113d007b
Use C89 functions definitions.
...
Remove use of __P
2012-03-21 05:33:26 +00:00
christos
39052f3b3d
cast to appropriate types.
2012-03-21 02:32:26 +00:00
christos
59f433dfc5
- don't compile unreachable code.
...
- convert uintmax_t to uintptr_t
2012-03-21 02:18:14 +00:00
christos
c2ff854c81
c89 prototypes, unsigned int
2012-03-21 00:38:34 +00:00
christos
c59812a81a
uintmax_t -> size_t (never called with larger than size_t)
2012-03-21 00:38:06 +00:00
christos
79f2de1232
size_t -> uint8_t
2012-03-21 00:35:50 +00:00
christos
a8d19c80ee
time_t casts
2012-03-21 00:34:54 +00:00
christos
de9f2b1f30
void cast
2012-03-21 00:34:04 +00:00
martin
9e9f4b8bed
We do not care about portability when instantiating softfloats for our
...
concrete environment - add appropriate lintflags.
2012-03-20 21:37:19 +00:00
martin
2335ebce2c
Remove initialized but unused variable
2012-03-20 21:34:51 +00:00
matt
504f867176
Use C89 Prototypes.
...
Remove use of __P
2012-03-20 17:44:17 +00:00
matt
adb7422177
Use C89 definitions
...
Remove use of __P
2012-03-20 17:14:50 +00:00
matt
1f0437222e
Use C89 definitions
2012-03-20 17:08:13 +00:00
matt
56a38fd9b4
Use C89 definition.
...
u_int*_t -> uint*_t
2012-03-20 17:06:43 +00:00
matt
5688dfcf9c
Switch to C89 definitions.
...
Remove use of __P
2012-03-20 17:05:59 +00:00
matt
44551472c9
Remove use of __P
...
Switch to using C89 definitions.
2012-03-20 16:38:44 +00:00
matt
cf884af3e9
Use C89 definitions.
...
Remove use of __P
2012-03-20 16:36:04 +00:00
matt
8147d218bf
Convert to use C89 prototypes.
...
Remove use of __P
2012-03-20 16:30:26 +00:00
matt
68e3ffa377
Convert to C89 prototypes. Remove use of __P
2012-03-20 16:26:12 +00:00
matt
336af9bbce
Revert unneeded casts.
2012-03-20 16:19:56 +00:00
kardel
5d92cd82ed
PR pkg/46206
...
re-establish fqdn lookup when AI_ADDRCONFIG is used in hints
AI_ADDRCONFIG led to fqdn lookup being skipped as the systems didn't
configure any PF_UNSPEC addresses - check was too strict here.
Thnaks to Ryo ONODERA for testing.
2012-03-20 12:04:01 +00:00
he
46fd488dd6
Cast to unsigned int before doing shift operations, to appease lint.
2012-03-20 10:51:23 +00:00
he
a1a4d3d82c
Sprinkle some /* ARGSUSED */ before the dummy functions to appease lint.
2012-03-20 10:40:48 +00:00
kardel
52f5a00d5c
PR 46206: fix programmed SIGSEGV
...
more work is needed as tests seem to indicate that name resolution now
does no seem to work (firefox reports Server not found)
thanks to Ryo ONODERA for testing.
2012-03-20 10:34:33 +00:00
christos
bc3dd708b6
ansi prototype
2012-03-20 01:42:59 +00:00
matt
7e14795b01
Simplify a bit and constify as well. Since the file is mapped read-only,
...
use const references to access its data.
2012-03-20 00:31:24 +00:00
christos
b5fc25d19b
cast to size_t
2012-03-20 00:16:35 +00:00
christos
8b01ea2a71
- sprinkle CONSTCOND
...
- back to char * to simplify code, requested by gimpy
2012-03-20 00:03:12 +00:00
matt
f8659af7ae
Move -D_DIAGNOSTIC to a separate line (makes it easier to comment out).
2012-03-19 22:32:16 +00:00
matt
5d44f1d51d
Convert to C89 definitions.
...
Cleanup up type usage.
2012-03-19 22:23:10 +00:00
christos
ff236fe4d7
don't do arithmetic on void pointer.
2012-03-19 16:20:58 +00:00
plunky
3d672173f2
pselect->paccept for this page
2012-03-19 09:34:36 +00:00
christos
768a62209a
parenthesize.
2012-03-18 16:43:34 +00:00
christos
1af1a7c82f
fix lint
2012-03-18 16:26:34 +00:00
christos
8aceef3b7b
fix lint.
2012-03-18 14:34:28 +00:00
christos
59ba550f28
fail as the man page says sched_rr_get_interval should.
2012-03-18 02:04:39 +00:00
christos
2a6850a9bf
Add AI_ADDRCONFIG, which makes getaddrinfo() return only address with families
...
that are already configured in the system.
2012-03-17 21:56:40 +00:00
martin
0abf123a71
delint
2012-03-17 21:35:06 +00:00
martin
e9be25776b
Avoid lint warnings
2012-03-17 20:48:58 +00:00
christos
3bf842e395
PR/44097: Yamamoto Takashi: Prevent overflow.
2012-03-17 20:01:14 +00:00
christos
4bc43cf6c5
make lint exit on warnings
2012-03-17 18:00:50 +00:00
christos
64c780f832
hack to silence lint
2012-03-17 17:59:58 +00:00
njoly
a973b36486
Use Lk macro when dealing with URLs. Another part of PR/29238.
2012-03-15 19:04:46 +00:00
christos
526d942790
- ansify, knf.
...
- no functional changes
2012-03-15 18:22:30 +00:00
christos
815317212f
missed one (thanks joerg)
2012-03-15 16:47:38 +00:00
christos
16b0f218f0
fix signature.
2012-03-15 13:23:10 +00:00
njoly
874d053d0b
Use puffs_access() return value in the VA_UTIMES_NULL case.
2012-03-15 12:49:36 +00:00
christos
504754efd0
ansi prototypes.
2012-03-15 11:46:08 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
martin
90310d68b0
Rename __zero to __sf128_zero to avoid clashes with the strange new
...
inline function in cdefs.h
2012-03-14 17:03:10 +00:00
skrll
938140d192
Use the _end symbol rather than the end symbol. Prevents version info
...
problems in elflink.c for the heimdal libraries.
2012-03-14 14:18:10 +00:00
jruoho
0208cf2398
Use more markup.
2012-03-14 13:24:48 +00:00
christos
98c744016d
rename the macros ftsent_ since they apply to the ftsent struct not the
...
fts one.
2012-03-14 00:25:19 +00:00
joerg
9cc96dd169
Fix all the issues lint is too dumb to warn about and re-enable
...
-Wconstant-conversion.
2012-03-13 22:37:51 +00:00
joerg
3e39914d72
Add missing includes.
2012-03-13 22:24:48 +00:00
joerg
7e379a8558
Disable -w again until the complains are resolved.
2012-03-13 22:12:40 +00:00
joerg
51d5b8a1ef
Revert bloat.
2012-03-13 21:32:12 +00:00
christos
c5e820cae4
PR/45989: Martin Husemann: lint invocation does include -w only on i386
...
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
2012-03-13 21:13:30 +00:00
joerg
e865ac2891
Move the pthread_once alias where it belongs.
2012-03-13 01:05:55 +00:00
joerg
77bfe129a9
Move pthread_once implementation into a separate file, it doesn't depend
...
on the mutex implementation in any way.
2012-03-12 21:35:10 +00:00
joerg
d3660af7b6
Keep track of the size of the guard area, in case we want to make it
...
modifiable later. Only reuse the stack if it was allocated by libpthread
and if the expected thread size matches the current stack size.
2012-03-12 20:16:52 +00:00
joerg
1d34190ecc
Further refine stack allocation. If the stack was provided by the user,
...
don't bother with setting up a guard page. Otherwise, round up the size
to page size. Point stack inside the guarded area, without the guard
page. Fix size when mprotect failed.
2012-03-12 16:37:15 +00:00
christos
9b25b03245
include the NULL in the argv conversion
2012-03-11 21:15:25 +00:00
christos
75b1bb5aad
use arraycount
2012-03-11 21:14:56 +00:00
joerg
654395b265
Keep in sync with libpthread: Fix error handling.
2012-03-10 19:59:21 +00:00
joerg
fa060fc8c7
Fix error handling
2012-03-10 18:01:10 +00:00
joerg
af435e468b
Use correct size.
2012-03-10 18:01:09 +00:00
joerg
a65b1aeb01
Disable reduced stack for now. It creates fallout I'm not willing to
...
deal with.
2012-03-09 21:03:09 +00:00
drochner
677d666c8d
-fix initial stacksize rounding
...
-minor indentation fix
2012-03-09 12:06:44 +00:00
njoly
92562600d4
On alpha compile the math library with dynamic rounding mode instead
...
of fixed normal IEEE rounding mode. This makes function that depends on
the current rounding mode, such as rint(3), just work.
2012-03-09 08:03:53 +00:00
wiz
9c18a264d9
Add sem_timedwait to NAME and fix SYNOPSIS. Add serial comma.
2012-03-08 22:13:32 +00:00
wiz
6e8389e3bc
Whitespace nits.
2012-03-08 22:13:05 +00:00
wiz
5f354a83a5
Merge error descriptions for same error code.
2012-03-08 22:12:52 +00:00
wiz
c744abbb43
Add missing comma.
2012-03-08 22:12:37 +00:00
joerg
4acff4c01b
Implement sem_timedwait.
2012-03-08 21:59:24 +00:00
joerg
344a231144
Actually use the stack thread attributes when creating a new thread.
2012-03-08 16:40:45 +00:00
joerg
bfcb2008c8
Fix the stack base pointer for the initial thread on !HPPA.
...
AT_STACKBASE is pointing to the start of the stack, which is the
upper limit on platforms where the stack grows down.
2012-03-08 16:33:45 +00:00
manu
202e6de05c
The kernel can lookup the same node multiple time and will reclaim as
...
many times it looked up. All reclaims but the last one must be ignored,
otherwise we discard a node which will still get operations. We therefore
have to keep track of lookup/reclaim count and hnour reclaims only when
the count reaches zero.
2012-03-08 14:58:57 +00:00
joerg
d1de8de689
Remove libpthread's semaphore implementation and always use the kernel
...
one. The implementation doesn't provide an async-safe sem_post and can't
without a lot of work on the pthread primitives.
Remove bogus time out requirement in test case, it should have been
a "known failure" if anything.
2012-03-07 23:31:44 +00:00