-/* $OpenBSD: cd9660.h,v 1.14 2017/04/09 09:58:53 natano Exp $ */
+/* $OpenBSD: cd9660.h,v 1.15 2021/09/01 15:19:00 deraadt Exp $ */
/* $NetBSD: cd9660.h,v 1.21 2015/12/24 15:52:37 christos Exp $ */
/*
#ifndef _MAKEFS_CD9660_H
#define _MAKEFS_CD9660_H
+#include <sys/queue.h>
+#include <sys/endian.h>
+
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <limits.h>
-#include <sys/queue.h>
-#include <sys/param.h>
-#include <sys/endian.h>
#include "makefs.h"
#include "cd9660/iso.h"
-/* $OpenBSD: ffs.c,v 1.32 2020/04/09 16:19:00 krw Exp $ */
+/* $OpenBSD: ffs.c,v 1.33 2021/09/01 15:19:00 deraadt Exp $ */
/* $NetBSD: ffs.c,v 1.66 2015/12/21 00:58:08 christos Exp $ */
/*
* @(#)ffs_alloc.c 8.19 (Berkeley) 7/13/95
*/
-#include <sys/param.h>
+#include <sys/types.h>
#include <sys/disklabel.h>
#include <assert.h>
-/* $OpenBSD: msdos.c,v 1.11 2017/03/23 18:16:06 patrick Exp $ */
+/* $OpenBSD: msdos.c,v 1.12 2021/09/01 15:19:00 deraadt Exp $ */
/* $NetBSD: msdos.c,v 1.16 2016/01/30 09:59:27 mlelstv Exp $ */
/*-
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
-
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
-/* $OpenBSD: walk.c,v 1.9 2016/12/17 16:12:15 krw Exp $ */
+/* $OpenBSD: walk.c,v 1.10 2021/09/01 15:19:00 deraadt Exp $ */
/* $NetBSD: walk.c,v 1.29 2015/11/25 00:48:49 christos Exp $ */
/*
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
+#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
+#include <limits.h>
#include <string.h>
#include <unistd.h>
fsnode *first, *cur, *prev, *last;
DIR *dirp;
struct dirent *dent;
- char path[MAXPATHLEN + 1];
+ char path[PATH_MAX+1];
struct stat stbuf;
char *name, *rp;
int dot, len;