You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rich Felker
77baaa47e1
fix a64l undefined behavior on ILP32 archs, wrong results on LP64 archs
the difference of pointers is a signed type ptrdiff_t; if it is only
32-bit, left-shifting it by 30 bits produces undefined behavior. cast
the difference to an appropriate unsigned type, uint32_t, before
shifting to avoid this.
the a64l function is specified to return a signed 32-bit result in
type long. as noted in the bug report by Ed Schouten, converting
implicitly from uint32_t only produces the desired result when long is
a 32-bit type. since the computation has to be done in unsigned
arithmetic to avoid overflow, simply cast the result to int32_t.
further, POSIX leaves the behavior on invalid input unspecified but
not undefined, so we should not take the difference between the
potentially-null result of strchr and the base pointer without first
checking the result. the simplest behavior is just returning the
partial conversion already performed in this case, so do that.
10 years ago
..
a64l.c
fix a64l undefined behavior on ILP32 archs, wrong results on LP64 archs
10 years ago
basename.c
alias basename to glibc name for it, to meet abi goals
15 years ago
dirname.c
fix dirname to handle input of form "foo/" correctly
14 years ago
ffs.c
optimize legacy ffs function
14 years ago
ffsl.c
implement ffsl and ffsll functions
12 years ago
ffsll.c
implement ffsl and ffsll functions
12 years ago
fmtmsg.c
implement fmtmsg function
12 years ago
forkpty.c
overhaul forkpty function using new login_tty
12 years ago
get_current_dir_name.c
optimize get_current_dir_name to reduce stack bloat
13 years ago
getauxval.c
provide getauxval(AT_SECURE) even if it is missing from the aux vector
12 years ago
getdomainname.c
add setdomainname syscall, fix getdomainname (previously a stub)
14 years ago
gethostid.c
cleanup src/linux and src/misc trees, etc.
14 years ago
getopt.c
fix unlikely corner cases in getopt's message printing
10 years ago
getopt_long.c
simplify part of getopt_long
11 years ago
getpriority.c
global cleanup to use the new syscall interface
15 years ago
getresgid.c
add getresuid and getresgid syscall wrappers
14 years ago
getresuid.c
add getresuid and getresgid syscall wrappers
14 years ago
getrlimit.c
fix for broken kernel side RLIM_INFINITY on mips
12 years ago
getrusage.c
include cleanups: remove unused headers and add feature test macros
13 years ago
getsubopt.c
getsubopt: don't include leading = in value string
11 years ago
initgroups.c
include cleanups: remove unused headers and add feature test macros
13 years ago
ioctl.c
global cleanup to use the new syscall interface
15 years ago
issetugid.c
add issetugid function to check for elevated privilege
12 years ago
lockf.c
initial check-in, version 0.5.0
15 years ago
login_tty.c
add login_tty function
12 years ago
mntent.c
make endmntent function handle null argument
12 years ago
nftw.c
fix nftw FTW_MOUNT flag
12 years ago
openpty.c
block pthread cancellation in openpty function
12 years ago
ptsname.c
fix ptsname_r to conform to the upcoming posix requirements
14 years ago
pty.c
fix negated error codes from ptsname_r
12 years ago
realpath.c
support kernels with no SYS_open syscall, only SYS_openat
12 years ago
setdomainname.c
add setdomainname syscall, fix getdomainname (previously a stub)
14 years ago
setpriority.c
fix typo in setpriority syscall wrapper
13 years ago
setrlimit.c
for multithreaded set*id/setrlimit, handle case where callback does not run
12 years ago
syscall.c
use syscall_arg_t for arguments in public syscall() function
12 years ago
syslog.c
handle loss of syslog socket connection
11 years ago
uname.c
include cleanups: remove unused headers and add feature test macros
13 years ago
wordexp.c
fix bad character checking in wordexp
11 years ago