From owner-freebsd-hackers Sun Apr 9 9:36:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from nets5.rz.rwth-aachen.de (nets5.rz.RWTH-Aachen.DE [137.226.144.13]) by hub.freebsd.org (Postfix) with ESMTP id 0039A37B8C9 for ; Sun, 9 Apr 2000 09:32:00 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from campino.informatik.rwth-aachen.de (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by nets5.rz.rwth-aachen.de (8.9.1a/8.9.1/10) with ESMTP id SAA11204 for ; Sun, 9 Apr 2000 18:30:54 +0200 (MET DST) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by campino.informatik.rwth-aachen.de (8.9.1a/8.9.1/3) with ESMTP id SAA12432 for ; Sun, 9 Apr 2000 18:31:53 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.9.3/8.6.9) id SAA02426 for hackers@freebsd.org; Sun, 9 Apr 2000 18:30:55 +0200 (CEST) Date: Sun, 9 Apr 2000 18:30:55 +0200 (CEST) From: Christoph Kukulies Message-Id: <200004091630.SAA02426@gil.physik.rwth-aachen.de> To: hackers@freebsd.org Subject: mntent.h - what is it? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to port quicktime for Linux to FreeBSD (xmovie). I'm stumbling across the following code fragment: #include !!!!! #include #include ... int mpeg2io_device(mpeg2_fs_t *fs, char *device) { struct stat file_st, device_st; struct mntent *mnt; FILE *fp; if(stat(fs->path, &file_st) < 0) { perror("mpeg2io_device"); return 1; } fp = setmntent(MOUNTED, "r"); while(fp && (mnt = getmntent(fp))) { .... is mntent a linux speciality? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message