Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure checks for fflush(NULL) after I choose sfio #2084

Closed
p5pRT opened this issue Jun 12, 2000 · 2 comments
Closed

Configure checks for fflush(NULL) after I choose sfio #2084

p5pRT opened this issue Jun 12, 2000 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 12, 2000

Migrated from rt.perl.org#3370 (status was 'resolved')

Searchable as RT3370$

@p5pRT
Copy link
Author

p5pRT commented Jun 12, 2000

From @nwc10

Created by @nwc10

Configure asks me​:

perl5 can use the sfio library, but it is experimental.
You seem to have sfio available, do you want to try using it? [n] y

and even though I've said yes to sfio it later checks fflush from stdio​:

Checking how to flush all pending stdio output...
Your fflush(NULL) works okay for output streams.
Let's see if it clobbers input pipes...
fflush(NULL) seems to behave okay with input streams.

which seems somewhat illogical. If I'm using sfio, should it skip this case,
or check sfio's sfsync()?

Nicholas Clark

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl v5.6.0:

Configured by nick at Mon Jun 12 20:06:37 BST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.15-rmk1, archname=armv4l-linux
    uname='linux bagpuss.unfortu.net 2.2.15-rmk1 #4 wed may 31 12:47:03 bst 2000 armv4l '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=define uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=egcs-2.91.60 19990113/philb (egcs-1.1.1 release)
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lsfio -lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    


@INC for perl v5.6.0:
    lib
    /usr/local/lib/perl5/5.6.0/armv4l-linux
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/armv4l-linux
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl
    .


Environment for perl v5.6.0:
    HOME=/home/nick
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/other/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/nick/bin:/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


@p5pRT
Copy link
Author

p5pRT commented Jun 12, 2000

From [Unknown Contact. See original ticket]

On Tue, Jun 13, 2000 at 12​:19​:57AM +0100, Nicholas Clark wrote​:

This is a bug report for perl from nick@​talking.bollo.cx,
generated with the help of perlbug 1.28 running under perl v5.6.0.

-----------------------------------------------------------------
[Please enter your report here]

Configure asks me​:

perl5 can use the sfio library, but it is experimental.
You seem to have sfio available, do you want to try using it? [n] y

and even though I've said yes to sfio it later checks fflush from stdio​:

Checking how to flush all pending stdio output...
Your fflush(NULL) works okay for output streams.
Let's see if it clobbers input pipes...
fflush(NULL) seems to behave okay with input streams.

which seems somewhat illogical. If I'm using sfio, should it skip this case,
or check sfio's sfsync()?

  I would say that it never hurts to perform the test. fflush information
is then available for a verbose configuration dump, and may prove useful in
some situations. What's to be gained by skipping the test?

  Peace,
* Kurt Starsinic (kstar@​orientation.com) ---------- Senior Network Engineer *
| `It is always possible to aglutenate multiple separate problems |
| into a single complex interdependent solution. In most cases |
| this is a bad idea.' - Ross Callon |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant