pwd_grp.c: unlocked functions [PATCH]

Rob Landley rob at landley.net
Fri Oct 7 19:31:44 UTC 2005


On Thursday 06 October 2005 16:56, Shaun Jackman wrote:
> This patch is required for newlib, which does not implement the glibc
> extensions fgets_unlocked and feof_unlocked.

But it implements fputc_unlocked()?

> grep _unlocked libpwdgrp/pwd_grp.c
                                        if (fputc_unlocked('\n', f) >= 0) {
        if (fputc_unlocked('\n', stream) > 0) {
                        if (!fgets_unlocked(line_buff, buflen, f)) {
                                if (feof_unlocked(f)) {

We should be consistent.  Either tell me to remove all the _unlocked 
occurrences or none of them.

Rob



More information about the busybox mailing list