svn commit: r239296 - head/sys/compat/freebsd32

Konstantin Belousov kib at FreeBSD.org
Wed Aug 15 15:17:57 UTC 2012


Author: kib
Date: Wed Aug 15 15:17:56 2012
New Revision: 239296
URL: http://svn.freebsd.org/changeset/base/239296

Log:
  Provide 32bit compat for truncate(2) and ftruncate(2).
  
  MFC after:	1 week

Modified:
  head/sys/compat/freebsd32/syscalls.master

Modified: head/sys/compat/freebsd32/syscalls.master
==============================================================================
--- head/sys/compat/freebsd32/syscalls.master	Wed Aug 15 14:18:54 2012	(r239295)
+++ head/sys/compat/freebsd32/syscalls.master	Wed Aug 15 15:17:56 2012	(r239296)
@@ -257,8 +257,9 @@
 126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
 127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
 128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
-129	AUE_TRUNCATE	OBSOL	otruncate
-130	AUE_FTRUNCATE	OBSOL	ftruncate
+129	AUE_TRUNCATE	COMPAT|NOPROTO	{ int truncate(char *path, \
+					    int length); }
+130	AUE_FTRUNCATE	COMPAT|NOPROTO	{ int ftruncate(int fd, int length); }
 131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
 132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
 133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \


More information about the svn-src-head mailing list