Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
05756ad5
Commit
05756ad5
authored
16 years ago
by
Yorhel
Browse files
Options
Downloads
Patches
Plain Diff
Remove some calc.c specific defines from ncdu.h
And updated TODO a bit
parent
6d5ae5eb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
TODO
+4
-0
4 additions, 0 deletions
TODO
src/calc.c
+21
-0
21 additions, 0 deletions
src/calc.c
src/ncdu.h
+1
-20
1 addition, 20 deletions
src/ncdu.h
with
26 additions
and
20 deletions
TODO
+
4
−
0
View file @
05756ad5
...
...
@@ -17,3 +17,7 @@ Small list of planned features/changes, suggestions are always welcome.
* Sort by number of files
* Use one key to open up a menu with sort options, instead of
having a special key for each column
- Fix bugs:
* Handle hard links
* Get rid of PATH_MAX reliance
This diff is collapsed.
Click to expand it.
src/calc.c
+
21
−
0
View file @
05756ad5
...
...
@@ -40,6 +40,27 @@
#include
<dirent.h>
/* set S_BLKSIZE if not defined already in sys/stat.h */
#ifndef S_BLKSIZE
# define S_BLKSIZE 512
#endif
#ifndef LINK_MAX
# ifdef _POSIX_LINK_MAX
# define LINK_MAX _POSIX_LINK_MAX
# else
# define LINK_MAX 32
# endif
#endif
#ifndef S_ISLNK
# ifndef S_IFLNK
# define S_IFLNK 0120000
# endif
# define S_ISLNK(x) (x & S_IFLNK)
#endif
struct
{
char
err
;
/* 1/0, error or not */
char
cur
[
PATH_MAX
];
/* current dir/item */
...
...
This diff is collapsed.
Click to expand it.
src/ncdu.h
+
1
−
20
View file @
05756ad5
...
...
@@ -29,11 +29,7 @@
#include
"config.h"
#include
<stdio.h>
#include
<sys/types.h>
/* set S_BLKSIZE if not defined already in sys/stat.h */
#ifndef S_BLKSIZE
# define S_BLKSIZE 512
#endif
#include
<limits.h>
/* PATH_MAX 260 on Cygwin is too small for /proc/registry */
#ifdef __CYGWIN__
...
...
@@ -51,21 +47,6 @@
# define PATH_MAX 4096
# endif
#endif
/* and LINK_MAX */
#ifndef LINK_MAX
# ifdef _POSIX_LINK_MAX
# define LINK_MAX _POSIX_LINK_MAX
# else
# define LINK_MAX 32
# endif
#endif
/* check for S_ISLNK */
#ifndef S_ISLNK
# ifndef S_IFLNK
# define S_IFLNK 0120000
# endif
# define S_ISLNK(x) (x & S_IFLNK)
#endif
/* File Flags (struct dir -> flags) */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment