瀏覽代碼

Fix a few more screwups.

Eric Andersen 25 年之前
父節點
當前提交
042c7cf849
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 4 0
      include/unistd.h
  2. 2 2
      libc/inet/Makefile

+ 4 - 0
include/unistd.h

@@ -183,6 +183,10 @@ extern __pid_t vfork __P ((void));
    which is not necessarily the same as the hardware page size.  */
    which is not necessarily the same as the hardware page size.  */
 extern int getpagesize __P ((void)) __attribute__ ((__const__));
 extern int getpagesize __P ((void)) __attribute__ ((__const__));
 
 
+extern int truncate __P ((const char *path, off_t length));
+extern int ftruncate __P ((int fd, off_t length));
+
+
 #ifdef	__USE_POSIX2
 #ifdef	__USE_POSIX2
 /* Get definitions and prototypes for functions to process the
 /* Get definitions and prototypes for functions to process the
    arguments in ARGV (ARGC of them, minus the program name) for
    arguments in ARGV (ARGC of them, minus the program name) for

+ 2 - 2
libc/inet/Makefile

@@ -58,14 +58,14 @@ $(MOBJ2): $(MSRC2)
 	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
 	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
 
-$(MOBJ3): $(MSRC2)
+$(MOBJ3): $(MSRC3)
 	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
 	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
 
 $(OBJS): Makefile
 $(OBJS): Makefile
 
 
 clean: subdirs_clean
 clean: subdirs_clean
-	rm -f libc.a
+	rm -f *.[oa] *~ core
 
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))