Bug#858866: libc6-dev: improve documentation for strchrnul

2017-03-27 Thread Salvo Tomaselli
Package: libc6-dev
Version: 2.24-9
Severity: normal

Dear Maintainer,

See this code:

#include 
#define _GNU_SOURCE
#include 
int main() {
const char * filename = "cia
ii  manpages-dev  4.09-2

-- no debconf information



Bug#583077: libc6-dev: unexplicaple warning when using putenv with -std=c99

2010-05-25 Thread Salvo Tomaselli
Package: libc6-dev
Version: 2.10.2-9
Severity: normal

I try to compile this:

#include stdlib.h
int main () {
putenv(a=b);
}

And i point out that the include is there as reported by putenv(3) manpage.
But compiling it with:

$ gcc -std=c99 test.c 

I obtain:

test.c: In function ‘main’:
test.c:4: warning: implicit declaration of function ‘putenv’

I don't think this is right

Bye


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-vulcano (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6-dev depends on:
ii  libc-dev-bin  2.10.2-9   Embedded GNU C Library: Developmen
ii  libc6 2.10.2-9   Embedded GNU C Library: Shared lib
ii  linux-libc-dev2.6.32-13  Linux support headers for userspac

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]  4:4.4.3-1  The GNU C compiler
ii  gcc-4.4 [c-compiler]  4.4.4-2The GNU C compiler

Versions of packages libc6-dev suggests:
pn  glibc-doc none (no description available)
ii  manpages-dev  3.24-1 Manual pages about using GNU/Linux

-- no debconf information



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100523221628.15747.45320.report...@numbersix.rot.sgsnet.se



Bug#526734: libc: poll not working on ipv4 socket

2009-05-03 Thread Salvo Tomaselli
Package: libc6
Version: 2.9-9
Severity: normal
File: libc

The following code:

if (poll(monitor,1,READ_TIMEOUT)==0) {
r=0;
} else {
r = read(fd,buf-buffer,buf-size);
}

Works as expected (giving up the read after the timeout if there is no data) if
fd is an ipv6 socket, but does a blocking read if fd is an ipv4 socked.

If required, i can provide the full source code.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.4.0-1  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  belocs-locales-data [locales] 2.4-6  base files for localization
pn  glibc-doc none (no description available)
ii  libc6-i6862.9-9  GNU C Library: Shared libraries [i

-- debconf information:
* glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: rsync cups cron



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526734: heem

2009-05-03 Thread Salvo Tomaselli
I am afraid after a suspend2ram it isn't occurring again :-s

-- 
Salvo Tomaselli



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#484477: bug closed

2008-06-05 Thread Salvo Tomaselli
If inet_ntop is not buggy, then inet_pton is.
Since it returns 0 (0 is returned if src does not contain a character
string representing a valid network address in the specified address
family.) when i try to convert

:::151.97.56.250:

using the following code

if (inet_pton(AF_INET6,ip,locAddr.sin6_addr)==0) {
printf(Invalid IP address: %s\n,ip);
exit(2);
}

it exits.

-- 
Salvo Tomaselli

 
/ La Teoria e' quando si sa tutto ma non \
| funziona niente; la Pratica e' quando  |
| tutto funziona ma nessuno sa perche'.  |
| Qui da noi, Teoria e Pratica si sono   |
| fuse: non c'e' niente che funzioni e   |
\ nessuno ne capisce il motivo.  /
 
\   ^__^
 \  (oo)\___
(__)\   )\/\
||w |
|| ||



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484477: sorry

2008-06-05 Thread Salvo Tomaselli
no bug.

Just my fault in copying and pasting ipv6 address from a log. i tought
that : was part of the address and not a splitter between fields.

sorry again
-- 
Salvo Tomaselli

 
/ La Teoria e' quando si sa tutto ma non \
| funziona niente; la Pratica e' quando  |
| tutto funziona ma nessuno sa perche'.  |
| Qui da noi, Teoria e Pratica si sono   |
| fuse: non c'e' niente che funzioni e   |
\ nessuno ne capisce il motivo.  /
 
\   ^__^
 \  (oo)\___
(__)\   )\/\
||w |
|| ||



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484477: wrong result from inet_ntop

2008-06-04 Thread Salvo Tomaselli
Subject: libc6: wrong result from inet_ntop
Package: libc6
Version: 2.7-11
Severity: normal

*** Please type your report below this line ***
Hello,
am sending this report again because i had no feedback from the 1st sending.

executing this code:
inet_ntop(AF_INET6, farAddr.sin6_addr, ip_addr, INET6_ADDRSTRLEN);

if the client is using an ipv4 address (this program is using both IPv4
and 6) the resulting string within ip_addr will be something like:
:::151.97.56.12

The inet_ntop's man page says:
AF_INET6 converts IPv6-mapped IPv4 addresses into an IPv6 format.

I don't think that the resulting string is an IPv6. It is just neither
IPv4 nor IPv6.

Goodbye


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.3.0-5  GCC support library

libc6 recommends no packages.

-- debconf information:
  glibc/upgrade: true
  glibc/restart-failed:
  glibc/restart-services:



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484321: libc: wrong result from inet_ntop

2008-06-03 Thread Salvo Tomaselli
Package: libc6
Version: 2.7-11
Severity: normal
File: libc

Hello

executing this code:
inet_ntop(AF_INET6, farAddr.sin6_addr, ip_addr, INET6_ADDRSTRLEN);

if the client is using an ipv4 address (this program is using both IPv4
and 6) the resulting string within ip_addr will be something like:
:::151.97.56.12

The inet_ntop's man page says:
AF_INET6 converts IPv6-mapped IPv4 addresses into an IPv6 format.

I don't think that the resulting string is an IPv6. It is just neither
IPv4 nor IPv6.

Goodbye

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.3.0-5  GCC support library

libc6 recommends no packages.

-- debconf information:
  glibc/upgrade: true
  glibc/restart-failed:
  glibc/restart-services:



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]