mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
Bash-5.3-alpha release
This commit is contained in:
+8
-10
@@ -3,7 +3,7 @@
|
||||
/* See Makefile for compilation details. */
|
||||
|
||||
/*
|
||||
Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2022 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash.
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
@@ -42,18 +42,19 @@
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
typedef int unix_link_syscall_t PARAMS((const char *, const char *));
|
||||
typedef int unix_link_syscall_t (const char *, const char *);
|
||||
|
||||
#define LN_SYMLINK 0x01
|
||||
#define LN_UNLINK 0x02
|
||||
#define LN_NOFOLLOW 0x04
|
||||
|
||||
static unix_link_syscall_t *linkfn;
|
||||
static int dolink ();
|
||||
|
||||
static char *mkdirpath (char *, char *);
|
||||
static int dolink (char *, char *, int);
|
||||
|
||||
int
|
||||
ln_builtin (list)
|
||||
WORD_LIST *list;
|
||||
ln_builtin (WORD_LIST *list)
|
||||
{
|
||||
int rval, opt, flags;
|
||||
WORD_LIST *l;
|
||||
@@ -125,8 +126,7 @@ ln_builtin (list)
|
||||
}
|
||||
|
||||
static char *
|
||||
mkdirpath (dir, file)
|
||||
char *dir, *file;
|
||||
mkdirpath (char *dir, char *file)
|
||||
{
|
||||
int dlen, flen;
|
||||
char *ret;
|
||||
@@ -152,9 +152,7 @@ mkdirpath (dir, file)
|
||||
#endif
|
||||
|
||||
static int
|
||||
dolink (src, dst, flags)
|
||||
char *src, *dst;
|
||||
int flags;
|
||||
dolink (char *src, char *dst, int flags)
|
||||
{
|
||||
struct stat ssb, dsb;
|
||||
int exists;
|
||||
|
||||
Reference in New Issue
Block a user