ʲϡMakefile  CFLAGS ޥΥե饰ˤĤƵҤޤ



ǥ쥯ȥɤ߹ߡ

	⤷opendir(), readdir(), closedr() ɸ饤֥ˤꡢ
	줬 direct ¤ΤѤƤʤФʤˤ⤤ʤ
	direct ¤ΤѤƤʤС-DSYSV_SYSTEM_DIR  CFLAGS 
	ɲá
	⤷ɸ饤֥ˤʤС lhdir.o  Makefile  OBJS ޥ
	ɲäơ-DNONSYSTEM_DIR_LIBRARY  CFLAGS ޥɲá
	ϡǥ쥯ȥľ open/read/write  opendir ʤɤ
	ߥ졼Ȥ롣
	Ǥʤ餢 -DNODIRECTORY  CFLAGS ޥɲá
	ꤷ硢ǥ쥯ȥꤷƤΥ֤Ǥʤ
	ʤ롣


꡼ӡԡեط

	bcmpbcopybzero Υ饤֥꤬ʤޥ¿ System-V
	ޥ ˤϡ-DNOBSTRING  CFLAGS ޥɲáˤä
	memcmpmemcpymemset Ȥ褦ˤʤ롣ʤСʲ
	ʤΤ񤭤ʤ
 		int bcmp (a, b, n) char *a, *b; int n;
		{ while (n--) if (*a++ != *b++)
		    return (a[-1] & 0xff) - (b[-1] & 0xff);
		  return 0; }

		void bcopy (s, d, n) char *s, *d; int n;
	 	{ while (n--) *d++ = *s++; }

		void bzero (d, n) char *d; int n;
	 	{ while (n--) *d++ = 0; }


򰷤¤

	sys/time.h  struct tm ƤʤСtime.h
	ƤʤСˡ-DSYSTIME_HAS_NO_TM  CFLAGS
	ޥɲá


ե I/O

	¿ System-V ǡftruncate ƥॳ뤬ʤС
	-DNOFTRUNCATE  CFLAGS ޥɲá
#	Ĥ뤳Ȥˤꡢƥݥե뤫饳ԡȤ
#	rename ƥॳȤʤʤ


ե⡼

	⤷ʤޤȤʤ뤯stat ե⡼
	ΰ̣ʲΤΤȰ㤦ʤС-DNOT_COMPATIBLE_MODE  CFLAGS
	ޥɲä򤽤ʤ˽ľ
		
		#define UNIX_FILE_TYPEMASK	0170000
		#define UNIX_FILE_REGULAR	0100000
		#define UNIX_FILE_DIRECTORY	0040000
		#define UNIX_SETUID		0004000
		#define UNIX_SETGID		0002000
		#define UNIX_STYCKYBIT		0001000
		#define UNIX_OWNER_READ_PERM	0000400
		#define UNIX_OWNER_WRITE_PERM	0000200
		#define UNIX_OWNER_EXEC_PERM	0000100
		#define UNIX_GROUP_READ_PERM	0000040
		#define UNIX_GROUP_WRITE_PERM	0000020
		#define UNIX_GROUP_EXEC_PERM	0000010
		#define UNIX_OTHER_READ_PERM	0000004
		#define UNIX_OTHER_WRITE_PERM	0000002
		#define UNIX_OTHER_EXEC_PERM	0000001
		#define UNIX_RW_RW_RW		0000666


ʾϳƼˤޤ롣ʾ塣Ƥ򵧤롣
						1989.09.18  Y.Tagawa

