[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]: aktuelle glibc: fstat fehlt / libc5-libpthread0 conflict




> Was mir auffällt: Es gibt da nirgends die fstat()-Funktion.

1> cat foo.c
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>

int main (int ac, char **av)
{
  struct stat buf;
  int fd = open (av[0],O_RDONLY);
  if (fd != -1) { printf ("%s %d\n", av[0], fstat (fd, &buf)); }
  close (fd);
  return 0;
}
1> gcc foo.c
1> ./a.out
./a.out 0

-- 
"i'm working on it"
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     495


Reply to: